OSDN Git Service

2007-02-20 Gary Benson <gbenson@redhat.com>
[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 # Tools that need to be compiled against classpath's tools classes
5091 for package in gnu/gcj/tools/gc_analyze ; do
5092     echo $package >> standard.omit
5093     echo $package >> vm-tools-packages
5094 done
5095
5096 if test -z "${with_multisubdir}"; then
5097    builddotdot=.
5098 else
5099    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5100 fi
5101
5102 NATIVE=yes
5103
5104 # Which gcj and host gcj (for ecjx) do we use?
5105 which_gcj=default
5106 host_exeext=${ac_exeext}
5107 GCJ_FOR_ECJX=
5108 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5109 if test -n "${with_cross_host}"; then
5110   # We are being configured with a cross compiler. We can't
5111   # use ac_exeext, because that is for the target platform.
5112   NATIVE=no
5113   cross_host_exeext=
5114   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5115   case "${with_cross_host}" in
5116      *mingw* | *cygwin*)
5117          cross_host_exeext=.exe
5118      ;;
5119   esac
5120   host_exeext=${cross_host_exeext}
5121   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5122      if test x"$build_noncanonical" = x"$with_cross_host"; then
5123         # Ordinary cross (host!=target and host=build)
5124         which_gcj=built
5125      else
5126         # Canadian cross (host!=target and host!=build)
5127         which_gcj=cross
5128      fi
5129   else
5130      which_gcj=cross
5131   fi
5132 else
5133   # We are being configured with a native or crossed-native compiler
5134   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5135      if test x"$build" = x"$host"; then
5136         # True native build (host=target and host=build)
5137         which_gcj=built
5138      else
5139         # Crossed-native build (host=target and host!=build)
5140         which_gcj=cross
5141      fi
5142   else
5143      which_gcj=path
5144   fi
5145 fi
5146 case "${which_gcj}" in
5147    built)
5148       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5149       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5150    ;;
5151    cross)
5152       if test "x${with_newlib}" = "xyes"; then
5153          # FIXME (comment): Why is this needed?
5154          GCC_UNWIND_INCLUDE=
5155          GCJ="${target_noncanonical}-gcj"
5156       else
5157          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5158       fi
5159       GCJH='$(target_noncanonical)-gcjh'
5160    ;;
5161    path)
5162       GCJ="gcj -B`${PWDCMD-pwd}`/"
5163       GCJH=gcjh
5164    ;;
5165 esac
5166
5167
5168
5169
5170
5171 # Create it, so that compile/link tests don't fail
5172 test -f libgcj.spec || touch libgcj.spec
5173
5174
5175
5176 # Set up to configure Classpath.
5177 # FIXME: no supported way to pass args in autoconf.
5178 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5179 # Disable tool wrappers to avoid ltdl.h configure check.
5180 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5181 ac_configure_args="$ac_configure_args --disable-load-library"
5182 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5183 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5184 dir1=`cd $srcdir && pwd`
5185 dir2=`pwd`
5186 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5187 ac_configure_args="$ac_configure_args --disable-core-jni"
5188 ac_configure_args="$ac_configure_args --disable-examples"
5189 ac_configure_args="$ac_configure_args --with-glibj=build"
5190 if test "$plugin_enabled" != yes; then
5191   ac_configure_args="$ac_configure_args --disable-plugin"
5192 fi
5193 if test "$gconf_enabled" != yes; then
5194   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5195   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5196 fi
5197 if test "$use_gtk_awt" != yes; then
5198   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5199 fi
5200 if test "$use_qt_awt" != yes; then
5201   ac_configure_args="$ac_configure_args --disable-qt-peer"
5202 else
5203   # We need this as qt is disabled by default in classpath.
5204   ac_configure_args="$ac_configure_args --enable-qt-peer"
5205 fi
5206 if test "$use_x_awt" != yes; then
5207   ac_configure_args="$ac_configure_args --without-escher"
5208 else
5209   # We need this as escher is disabled by default in classpath.
5210   if test "$use_escher" != true; then
5211     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5212 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5213    { (exit 1); exit 1; }; }
5214   else
5215     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5216   fi
5217 fi
5218 # -Werror causes unavoidable problems in code using alsa.
5219 ac_configure_args="$ac_configure_args --disable-Werror"
5220
5221 # Only use libltdl for non-newlib builds.
5222 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5223      case $enable_ltdl_convenience in
5224   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5225 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227   "") enable_ltdl_convenience=yes
5228       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5229   esac
5230   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5231   INCLTDL='-I${top_srcdir}/''libltdl'
5232
5233
5234    DIRLTDL=libltdl
5235
5236 cat >>confdefs.h <<\_ACEOF
5237 #define USE_LTDL 1
5238 _ACEOF
5239
5240    # Sigh.  Libtool's macro doesn't do the right thing.
5241    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5242    # FIXME: this is a hack.
5243    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5244    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5245 fi
5246
5247
5248
5249 # Check whether --enable-shared or --disable-shared was given.
5250 if test "${enable_shared+set}" = set; then
5251   enableval="$enable_shared"
5252   p=${PACKAGE-default}
5253 case $enableval in
5254 yes) enable_shared=yes ;;
5255 no) enable_shared=no ;;
5256 *)
5257   enable_shared=no
5258   # Look at the argument we got.  We use all the common list separators.
5259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5260   for pkg in $enableval; do
5261     if test "X$pkg" = "X$p"; then
5262       enable_shared=yes
5263     fi
5264   done
5265   IFS="$ac_save_ifs"
5266   ;;
5267 esac
5268 else
5269   enable_shared=yes
5270 fi;
5271 # Check whether --enable-static or --disable-static was given.
5272 if test "${enable_static+set}" = set; then
5273   enableval="$enable_static"
5274   p=${PACKAGE-default}
5275 case $enableval in
5276 yes) enable_static=yes ;;
5277 no) enable_static=no ;;
5278 *)
5279   enable_static=no
5280   # Look at the argument we got.  We use all the common list separators.
5281   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5282   for pkg in $enableval; do
5283     if test "X$pkg" = "X$p"; then
5284       enable_static=yes
5285     fi
5286   done
5287   IFS="$ac_save_ifs"
5288   ;;
5289 esac
5290 else
5291   enable_static=yes
5292 fi;
5293 # Check whether --enable-fast-install or --disable-fast-install was given.
5294 if test "${enable_fast_install+set}" = set; then
5295   enableval="$enable_fast_install"
5296   p=${PACKAGE-default}
5297 case $enableval in
5298 yes) enable_fast_install=yes ;;
5299 no) enable_fast_install=no ;;
5300 *)
5301   enable_fast_install=no
5302   # Look at the argument we got.  We use all the common list separators.
5303   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5304   for pkg in $enableval; do
5305     if test "X$pkg" = "X$p"; then
5306       enable_fast_install=yes
5307     fi
5308   done
5309   IFS="$ac_save_ifs"
5310   ;;
5311 esac
5312 else
5313   enable_fast_install=yes
5314 fi;
5315
5316 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5317 if test "${with_gnu_ld+set}" = set; then
5318   withval="$with_gnu_ld"
5319   test "$withval" = no || with_gnu_ld=yes
5320 else
5321   with_gnu_ld=no
5322 fi;
5323 ac_prog=ld
5324 if test "$GCC" = yes; then
5325   # Check if gcc -print-prog-name=ld gives a path.
5326   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5327 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5328   case $host in
5329   *-*-mingw*)
5330     # gcc leaves a trailing carriage return which upsets mingw
5331     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5332   *)
5333     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5334   esac
5335   case $ac_prog in
5336     # Accept absolute paths.
5337     [\\/]* | [A-Za-z]:[\\/]*)
5338       re_direlt='/[^/][^/]*/\.\./'
5339       # Canonicalize the path of ld
5340       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5341       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5342         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5343       done
5344       test -z "$LD" && LD="$ac_prog"
5345       ;;
5346   "")
5347     # If it fails, then pretend we aren't using GCC.
5348     ac_prog=ld
5349     ;;
5350   *)
5351     # If it is relative, then search for the first ld in PATH.
5352     with_gnu_ld=unknown
5353     ;;
5354   esac
5355 elif test "$with_gnu_ld" = yes; then
5356   echo "$as_me:$LINENO: checking for GNU ld" >&5
5357 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5358 else
5359   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5360 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5361 fi
5362 if test "${lt_cv_path_LD+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   if test -z "$LD"; then
5366   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5367   for ac_dir in $PATH; do
5368     test -z "$ac_dir" && ac_dir=.
5369     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5370       lt_cv_path_LD="$ac_dir/$ac_prog"
5371       # Check to see if the program is GNU ld.  I'd rather use --version,
5372       # but apparently some GNU ld's only accept -v.
5373       # Break only if it was the GNU/non-GNU ld that we prefer.
5374       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5375         test "$with_gnu_ld" != no && break
5376       else
5377         test "$with_gnu_ld" != yes && break
5378       fi
5379     fi
5380   done
5381   IFS="$ac_save_ifs"
5382 else
5383   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5384 fi
5385 fi
5386
5387 LD="$lt_cv_path_LD"
5388 if test -n "$LD"; then
5389   echo "$as_me:$LINENO: result: $LD" >&5
5390 echo "${ECHO_T}$LD" >&6
5391 else
5392   echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5397    { (exit 1); exit 1; }; }
5398 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5401   echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5404 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5405   lt_cv_prog_gnu_ld=yes
5406 else
5407   lt_cv_prog_gnu_ld=no
5408 fi
5409 fi
5410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412 with_gnu_ld=$lt_cv_prog_gnu_ld
5413
5414
5415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417 if test "${lt_cv_ld_reload_flag+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   lt_cv_ld_reload_flag='-r'
5421 fi
5422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424 reload_flag=$lt_cv_ld_reload_flag
5425 test -n "$reload_flag" && reload_flag=" $reload_flag"
5426
5427 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5428 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5429 if test "${lt_cv_path_NM+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   if test -n "$NM"; then
5433   # Let the user override the test.
5434   lt_cv_path_NM="$NM"
5435 else
5436   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5437   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5438     test -z "$ac_dir" && ac_dir=.
5439     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5440     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5441       # Check to see if the nm accepts a BSD-compat flag.
5442       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5443       #   nm: unknown option "B" ignored
5444       # Tru64's nm complains that /dev/null is an invalid object file
5445       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5446         lt_cv_path_NM="$tmp_nm -B"
5447         break
5448       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5449         lt_cv_path_NM="$tmp_nm -p"
5450         break
5451       else
5452         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5453         continue # so that we can try to find one that supports BSD flags
5454       fi
5455     fi
5456   done
5457   IFS="$ac_save_ifs"
5458   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5459 fi
5460 fi
5461
5462 NM="$lt_cv_path_NM"
5463 echo "$as_me:$LINENO: result: $NM" >&5
5464 echo "${ECHO_T}$NM" >&6
5465
5466 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5467 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5468 if test "${lt_cv_deplibs_check_method+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   lt_cv_file_magic_cmd='$MAGIC_CMD'
5472 lt_cv_file_magic_test_file=
5473 lt_cv_deplibs_check_method='unknown'
5474 # Need to set the preceding variable on all platforms that support
5475 # interlibrary dependencies.
5476 # 'none' -- dependencies not supported.
5477 # `unknown' -- same as none, but documents that we really don't know.
5478 # 'pass_all' -- all dependencies passed with no checks.
5479 # 'test_compile' -- check by making test program.
5480 # 'file_magic [regex]' -- check by looking for files in library path
5481 # which responds to the $file_magic_cmd with a given egrep regex.
5482 # If you have `file' or equivalent on your system and you're not sure
5483 # whether `pass_all' will *always* work, you probably want this one.
5484
5485 case $host_os in
5486 aix*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 beos*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 bsdi4*)
5495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5496   lt_cv_file_magic_cmd='/usr/bin/file -L'
5497   lt_cv_file_magic_test_file=/shlib/libc.so
5498   ;;
5499
5500 cygwin* | mingw* |pw32*)
5501   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5502   lt_cv_file_magic_cmd='$OBJDUMP -f'
5503   ;;
5504
5505 darwin* | rhapsody*)
5506   # this will be overwritten by pass_all, but leave it in just in case
5507   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5508   lt_cv_file_magic_cmd='/usr/bin/file -L'
5509   case "$host_os" in
5510   rhapsody* | darwin1.012)
5511     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5512     ;;
5513   *) # Darwin 1.3 on
5514     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5515     ;;
5516   esac
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 freebsd* | kfreebsd*-gnu)
5521   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5522     case $host_cpu in
5523     i*86 )
5524       # Not sure whether the presence of OpenBSD here was a mistake.
5525       # Let's accept both of them until this is cleared up.
5526       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5527       lt_cv_file_magic_cmd=/usr/bin/file
5528       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5529       ;;
5530     esac
5531   else
5532     lt_cv_deplibs_check_method=pass_all
5533   fi
5534   ;;
5535
5536 gnu*)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 hpux10.20*|hpux11*)
5541   case $host_cpu in
5542   hppa*)
5543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5544     lt_cv_file_magic_cmd=/usr/bin/file
5545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5546     ;;
5547   ia64*)
5548     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5549     lt_cv_file_magic_cmd=/usr/bin/file
5550     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5551     ;;
5552   esac
5553   ;;
5554
5555 irix5* | irix6*)
5556   case $host_os in
5557   irix5*)
5558     # this will be overridden with pass_all, but let us keep it just in case
5559     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5560     ;;
5561   *)
5562     case $LD in
5563     *-32|*"-32 ") libmagic=32-bit;;
5564     *-n32|*"-n32 ") libmagic=N32;;
5565     *-64|*"-64 ") libmagic=64-bit;;
5566     *) libmagic=never-match;;
5567     esac
5568     # this will be overridden with pass_all, but let us keep it just in case
5569     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5570     ;;
5571   esac
5572   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5573   lt_cv_deplibs_check_method=pass_all
5574   ;;
5575
5576 # This must be Linux ELF.
5577 linux-gnu*)
5578   lt_cv_deplibs_check_method=pass_all
5579   ;;
5580
5581 netbsd* | knetbsd*-gnu)
5582   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5583     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5584   else
5585     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5586   fi
5587   ;;
5588
5589 newsos6)
5590   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5591   lt_cv_file_magic_cmd=/usr/bin/file
5592   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5593   ;;
5594
5595 osf3* | osf4* | osf5*)
5596   # this will be overridden with pass_all, but let us keep it just in case
5597   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5598   lt_cv_file_magic_test_file=/shlib/libc.so
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601
5602 sco3.2v5*)
5603   lt_cv_deplibs_check_method=pass_all
5604   ;;
5605
5606 solaris*)
5607   lt_cv_deplibs_check_method=pass_all
5608   lt_cv_file_magic_test_file=/lib/libc.so
5609   ;;
5610
5611 sysv5uw[78]* | sysv4*uw2*)
5612   lt_cv_deplibs_check_method=pass_all
5613   ;;
5614
5615 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5616   case $host_vendor in
5617   ncr)
5618     lt_cv_deplibs_check_method=pass_all
5619     ;;
5620   motorola)
5621     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]'
5622     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5623     ;;
5624   esac
5625   ;;
5626 esac
5627
5628 fi
5629 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5630 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5631 file_magic_cmd=$lt_cv_file_magic_cmd
5632 deplibs_check_method=$lt_cv_deplibs_check_method
5633
5634
5635
5636
5637 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5638
5639 # find the maximum length of command line arguments
5640 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5641 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5642 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645     i=0
5646   teststring="ABCD"
5647
5648   case $build_os in
5649   msdosdjgpp*)
5650     # On DJGPP, this test can blow up pretty badly due to problems in libc
5651     # (any single argument exceeding 2000 bytes causes a buffer overrun
5652     # during glob expansion).  Even if it were fixed, the result of this
5653     # check would be larger than it should be.
5654     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5655     ;;
5656
5657   cygwin* | mingw*)
5658     # On Win9x/ME, this test blows up -- it succeeds, but takes
5659     # about 5 minutes as the teststring grows exponentially.
5660     # Worse, since 9x/ME are not pre-emptively multitasking,
5661     # you end up with a "frozen" computer, even though with patience
5662     # the test eventually succeeds (with a max line length of 256k).
5663     # Instead, let's just punt: use the minimum linelength reported by
5664     # all of the supported platforms: 8192 (on NT/2K/XP).
5665     lt_cv_sys_max_cmd_len=8192;
5666     ;;
5667
5668   amigaos*)
5669     # On AmigaOS with pdksh, this test takes hours, literally.
5670     # So we just punt and use a minimum line length of 8192.
5671     lt_cv_sys_max_cmd_len=8192;
5672     ;;
5673
5674   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5675     # This has been around since 386BSD, at least.  Likely further.
5676     if test -x /sbin/sysctl; then
5677       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5678     elif test -x /usr/sbin/sysctl; then
5679       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5680     else
5681       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5682     fi
5683     # And add a safety zone
5684     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5685     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686     ;;
5687   esac
5688
5689 fi
5690
5691 if test -n "$lt_cv_sys_max_cmd_len" ; then
5692   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5693 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5694 else
5695   echo "$as_me:$LINENO: result: none" >&5
5696 echo "${ECHO_T}none" >&6
5697 fi
5698
5699
5700 # Only perform the check for file, if the check method requires it
5701 case $deplibs_check_method in
5702 file_magic*)
5703   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5704     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5705 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   case $MAGIC_CMD in
5710   /*)
5711   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5712   ;;
5713   ?:/*)
5714   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5715   ;;
5716   *)
5717   ac_save_MAGIC_CMD="$MAGIC_CMD"
5718   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5719   ac_dummy="/usr/bin:$PATH"
5720   for ac_dir in $ac_dummy; do
5721     test -z "$ac_dir" && ac_dir=.
5722     if test -f $ac_dir/${ac_tool_prefix}file; then
5723       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5724       if test -n "$file_magic_test_file"; then
5725         case $deplibs_check_method in
5726         "file_magic "*)
5727           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5728           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5729           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5730             egrep "$file_magic_regex" > /dev/null; then
5731             :
5732           else
5733             cat <<EOF 1>&2
5734
5735 *** Warning: the command libtool uses to detect shared libraries,
5736 *** $file_magic_cmd, produces output that libtool cannot recognize.
5737 *** The result is that libtool may fail to recognize shared libraries
5738 *** as such.  This will affect the creation of libtool libraries that
5739 *** depend on shared libraries, but programs linked with such libtool
5740 *** libraries will work regardless of this problem.  Nevertheless, you
5741 *** may want to report the problem to your system manager and/or to
5742 *** bug-libtool@gnu.org
5743
5744 EOF
5745           fi ;;
5746         esac
5747       fi
5748       break
5749     fi
5750   done
5751   IFS="$ac_save_ifs"
5752   MAGIC_CMD="$ac_save_MAGIC_CMD"
5753   ;;
5754 esac
5755 fi
5756
5757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5758 if test -n "$MAGIC_CMD"; then
5759   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5760 echo "${ECHO_T}$MAGIC_CMD" >&6
5761 else
5762   echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5764 fi
5765
5766 if test -z "$lt_cv_path_MAGIC_CMD"; then
5767   if test -n "$ac_tool_prefix"; then
5768     echo "$as_me:$LINENO: checking for file" >&5
5769 echo $ECHO_N "checking for file... $ECHO_C" >&6
5770 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   case $MAGIC_CMD in
5774   /*)
5775   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5776   ;;
5777   ?:/*)
5778   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5779   ;;
5780   *)
5781   ac_save_MAGIC_CMD="$MAGIC_CMD"
5782   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5783   ac_dummy="/usr/bin:$PATH"
5784   for ac_dir in $ac_dummy; do
5785     test -z "$ac_dir" && ac_dir=.
5786     if test -f $ac_dir/file; then
5787       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5788       if test -n "$file_magic_test_file"; then
5789         case $deplibs_check_method in
5790         "file_magic "*)
5791           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5794             egrep "$file_magic_regex" > /dev/null; then
5795             :
5796           else
5797             cat <<EOF 1>&2
5798
5799 *** Warning: the command libtool uses to detect shared libraries,
5800 *** $file_magic_cmd, produces output that libtool cannot recognize.
5801 *** The result is that libtool may fail to recognize shared libraries
5802 *** as such.  This will affect the creation of libtool libraries that
5803 *** depend on shared libraries, but programs linked with such libtool
5804 *** libraries will work regardless of this problem.  Nevertheless, you
5805 *** may want to report the problem to your system manager and/or to
5806 *** bug-libtool@gnu.org
5807
5808 EOF
5809           fi ;;
5810         esac
5811       fi
5812       break
5813     fi
5814   done
5815   IFS="$ac_save_ifs"
5816   MAGIC_CMD="$ac_save_MAGIC_CMD"
5817   ;;
5818 esac
5819 fi
5820
5821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5822 if test -n "$MAGIC_CMD"; then
5823   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5824 echo "${ECHO_T}$MAGIC_CMD" >&6
5825 else
5826   echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 fi
5829
5830   else
5831     MAGIC_CMD=:
5832   fi
5833 fi
5834
5835   fi
5836   ;;
5837 esac
5838
5839 if test -n "$ac_tool_prefix"; then
5840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   if test -n "$RANLIB"; then
5848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863
5864 fi
5865 fi
5866 RANLIB=$ac_cv_prog_RANLIB
5867 if test -n "$RANLIB"; then
5868   echo "$as_me:$LINENO: result: $RANLIB" >&5
5869 echo "${ECHO_T}$RANLIB" >&6
5870 else
5871   echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5873 fi
5874
5875 fi
5876 if test -z "$ac_cv_prog_RANLIB"; then
5877   ac_ct_RANLIB=$RANLIB
5878   # Extract the first word of "ranlib", so it can be a program name with args.
5879 set dummy ranlib; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$ac_ct_RANLIB"; then
5886   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_ac_ct_RANLIB="ranlib"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901
5902   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5903 fi
5904 fi
5905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906 if test -n "$ac_ct_RANLIB"; then
5907   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5909 else
5910   echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5912 fi
5913
5914   RANLIB=$ac_ct_RANLIB
5915 else
5916   RANLIB="$ac_cv_prog_RANLIB"
5917 fi
5918
5919 if test -n "$ac_tool_prefix"; then
5920   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}strip; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_STRIP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   if test -n "$STRIP"; then
5928   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942 done
5943
5944 fi
5945 fi
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948   echo "$as_me:$LINENO: result: $STRIP" >&5
5949 echo "${ECHO_T}$STRIP" >&6
5950 else
5951   echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5953 fi
5954
5955 fi
5956 if test -z "$ac_cv_prog_STRIP"; then
5957   ac_ct_STRIP=$STRIP
5958   # Extract the first word of "strip", so it can be a program name with args.
5959 set dummy strip; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$ac_ct_STRIP"; then
5966   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_prog_ac_ct_STRIP="strip"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981
5982   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5983 fi
5984 fi
5985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986 if test -n "$ac_ct_STRIP"; then
5987   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5988 echo "${ECHO_T}$ac_ct_STRIP" >&6
5989 else
5990   echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6
5992 fi
5993
5994   STRIP=$ac_ct_STRIP
5995 else
5996   STRIP="$ac_cv_prog_STRIP"
5997 fi
5998
5999
6000 # Check for any special flags to pass to ltconfig.
6001 libtool_flags="--cache-file=$cache_file"
6002 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6003 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6004 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6005 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6006 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6007
6008
6009 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6010 if test "${enable_libtool_lock+set}" = set; then
6011   enableval="$enable_libtool_lock"
6012
6013 fi;
6014 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6015 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6016
6017
6018 # Check whether --with-pic or --without-pic was given.
6019 if test "${with_pic+set}" = set; then
6020   withval="$with_pic"
6021   pic_mode="$withval"
6022 else
6023   pic_mode=default
6024 fi;
6025 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6026 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6027
6028 # Some flags need to be propagated to the compiler or linker for good
6029 # libtool support.
6030 case $host in
6031 *-*-irix6*)
6032   # Find out which ABI we are using.
6033   echo '#line 6033 "configure"' > conftest.$ac_ext
6034   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035   (eval $ac_compile) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; then
6039    if test "$lt_cv_prog_gnu_ld" = yes; then
6040     case `/usr/bin/file conftest.$ac_objext` in
6041     *32-bit*)
6042       LD="${LD-ld} -melf32bsmip"
6043       ;;
6044     *N32*)
6045       LD="${LD-ld} -melf32bmipn32"
6046       ;;
6047     *64-bit*)
6048       LD="${LD-ld} -melf64bmip"
6049       ;;
6050     esac
6051    else
6052     case `/usr/bin/file conftest.$ac_objext` in
6053     *32-bit*)
6054       LD="${LD-ld} -32"
6055       ;;
6056     *N32*)
6057       LD="${LD-ld} -n32"
6058       ;;
6059     *64-bit*)
6060       LD="${LD-ld} -64"
6061       ;;
6062     esac
6063    fi
6064   fi
6065   rm -rf conftest*
6066   ;;
6067
6068 ia64-*-hpux*)
6069   # Find out which ABI we are using.
6070   echo 'int i;' > conftest.$ac_ext
6071   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072   (eval $ac_compile) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; then
6076     case "`/usr/bin/file conftest.o`" in
6077     *ELF-32*)
6078       HPUX_IA64_MODE="32"
6079       ;;
6080     *ELF-64*)
6081       HPUX_IA64_MODE="64"
6082       ;;
6083     esac
6084   fi
6085   rm -rf conftest*
6086   ;;
6087
6088 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6089   # Find out which ABI we are using.
6090   echo 'int i;' > conftest.$ac_ext
6091   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092   (eval $ac_compile) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); }; then
6096     case "`/usr/bin/file conftest.o`" in
6097     *32-bit*)
6098       case $host in
6099         x86_64-*linux*)
6100           LD="${LD-ld} -m elf_i386"
6101           ;;
6102         ppc64-*linux*|powerpc64-*linux*)
6103           LD="${LD-ld} -m elf32ppclinux"
6104           ;;
6105         s390x-*linux*)
6106           LD="${LD-ld} -m elf_s390"
6107           ;;
6108         sparc64-*linux*)
6109           LD="${LD-ld} -m elf32_sparc"
6110           ;;
6111       esac
6112       ;;
6113     *64-bit*)
6114       case $host in
6115         x86_64-*linux*)
6116           LD="${LD-ld} -m elf_x86_64"
6117           ;;
6118         ppc*-*linux*|powerpc*-*linux*)
6119           LD="${LD-ld} -m elf64ppc"
6120           ;;
6121         s390*-*linux*)
6122           LD="${LD-ld} -m elf64_s390"
6123           ;;
6124         sparc*-*linux*)
6125           LD="${LD-ld} -m elf64_sparc"
6126           ;;
6127       esac
6128       ;;
6129     esac
6130   fi
6131   rm -rf conftest*
6132   ;;
6133
6134 *-*-sco3.2v5*)
6135   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6136   SAVE_CFLAGS="$CFLAGS"
6137   CFLAGS="$CFLAGS -belf"
6138   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6139 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6140 if test "${lt_cv_cc_needs_belf+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143
6144
6145      ac_ext=c
6146 ac_cpp='$CPP $CPPFLAGS'
6147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
6151      if test x$gcc_no_link = xyes; then
6152   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6154    { (exit 1); exit 1; }; }
6155 fi
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162
6163 int
6164 main ()
6165 {
6166
6167   ;
6168   return 0;
6169 }
6170 _ACEOF
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6173   (eval $ac_link) 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } &&
6180          { ac_try='test -z "$ac_c_werror_flag"
6181                          || test ! -s conftest.err'
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); }; } &&
6187          { ac_try='test -s conftest$ac_exeext'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   lt_cv_cc_needs_belf=yes
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 lt_cv_cc_needs_belf=no
6199 fi
6200 rm -f conftest.err conftest.$ac_objext \
6201       conftest$ac_exeext conftest.$ac_ext
6202      ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208 fi
6209 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6210 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6211   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6212     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6213     CFLAGS="$SAVE_CFLAGS"
6214   fi
6215   ;;
6216
6217
6218 esac
6219
6220
6221 # Save cache, so that ltconfig can load it
6222 cat >confcache <<\_ACEOF
6223 # This file is a shell script that caches the results of configure
6224 # tests run on this system so they can be shared between configure
6225 # scripts and configure runs, see configure's option --config-cache.
6226 # It is not useful on other systems.  If it contains results you don't
6227 # want to keep, you may remove or edit it.
6228 #
6229 # config.status only pays attention to the cache file if you give it
6230 # the --recheck option to rerun configure.
6231 #
6232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6234 # following values.
6235
6236 _ACEOF
6237
6238 # The following way of writing the cache mishandles newlines in values,
6239 # but we know of no workaround that is simple, portable, and efficient.
6240 # So, don't put newlines in cache variables' values.
6241 # Ultrix sh set writes to stderr and can't be redirected directly,
6242 # and sets the high bit in the cache file unless we assign to the vars.
6243 {
6244   (set) 2>&1 |
6245     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6246     *ac_space=\ *)
6247       # `set' does not quote correctly, so add quotes (double-quote
6248       # substitution turns \\\\ into \\, and sed turns \\ into \).
6249       sed -n \
6250         "s/'/'\\\\''/g;
6251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6252       ;;
6253     *)
6254       # `set' quotes correctly as required by POSIX, so do not add quotes.
6255       sed -n \
6256         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6257       ;;
6258     esac;
6259 } |
6260   sed '
6261      t clear
6262      : clear
6263      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6264      t end
6265      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6266      : end' >>confcache
6267 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6268   if test -w $cache_file; then
6269     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6270     cat confcache >$cache_file
6271   else
6272     echo "not updating unwritable cache $cache_file"
6273   fi
6274 fi
6275 rm -f confcache
6276
6277 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6278 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6279 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6280 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6281 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6282 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6283 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6284 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6285 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6286 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6287 echo "$as_me: error: libtool configure failed" >&2;}
6288    { (exit 1); exit 1; }; }
6289
6290 # Reload cache, that may have been modified by ltconfig
6291 if test -r "$cache_file"; then
6292   # Some versions of bash will fail to source /dev/null (special
6293   # files actually), so we avoid doing that.
6294   if test -f "$cache_file"; then
6295     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6296 echo "$as_me: loading cache $cache_file" >&6;}
6297     case $cache_file in
6298       [\\/]* | ?:[\\/]* ) . $cache_file;;
6299       *)                      . ./$cache_file;;
6300     esac
6301   fi
6302 else
6303   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6304 echo "$as_me: creating cache $cache_file" >&6;}
6305   >$cache_file
6306 fi
6307
6308
6309 # This can be used to rebuild libtool when needed
6310 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6311
6312 # Always use our own libtool.
6313 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6314
6315 # Redirect the config.log output again, so that the ltconfig log is not
6316 # clobbered by the next message.
6317 exec 5>>./config.log
6318
6319 ac_ext=cc
6320 ac_cpp='$CXXCPP $CPPFLAGS'
6321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6324 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6325 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6326 if test -z "$CXXCPP"; then
6327   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330       # Double quotes because CXXCPP needs to be expanded
6331     for CXXCPP in "$CXX -E" "/lib/cpp"
6332     do
6333       ac_preproc_ok=false
6334 for ac_cxx_preproc_warn_flag in '' yes
6335 do
6336   # Use a header file that comes with gcc, so configuring glibc
6337   # with a fresh cross-compiler works.
6338   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339   # <limits.h> exists even on freestanding compilers.
6340   # On the NeXT, cc -E runs the code through the compiler's parser,
6341   # not just through cpp. "Syntax error" is here to catch this case.
6342   cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h.  */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h.  */
6348 #ifdef __STDC__
6349 # include <limits.h>
6350 #else
6351 # include <assert.h>
6352 #endif
6353                      Syntax error
6354 _ACEOF
6355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } >/dev/null; then
6363   if test -s conftest.err; then
6364     ac_cpp_err=$ac_cxx_preproc_warn_flag
6365     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6366   else
6367     ac_cpp_err=
6368   fi
6369 else
6370   ac_cpp_err=yes
6371 fi
6372 if test -z "$ac_cpp_err"; then
6373   :
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378   # Broken: fails on valid input.
6379 continue
6380 fi
6381 rm -f conftest.err conftest.$ac_ext
6382
6383   # OK, works on sane cases.  Now check whether non-existent headers
6384   # can be detected and how.
6385   cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <ac_nonexistent.h>
6392 _ACEOF
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } >/dev/null; then
6401   if test -s conftest.err; then
6402     ac_cpp_err=$ac_cxx_preproc_warn_flag
6403     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6404   else
6405     ac_cpp_err=
6406   fi
6407 else
6408   ac_cpp_err=yes
6409 fi
6410 if test -z "$ac_cpp_err"; then
6411   # Broken: success on invalid input.
6412 continue
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417   # Passes both tests.
6418 ac_preproc_ok=:
6419 break
6420 fi
6421 rm -f conftest.err conftest.$ac_ext
6422
6423 done
6424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6425 rm -f conftest.err conftest.$ac_ext
6426 if $ac_preproc_ok; then
6427   break
6428 fi
6429
6430     done
6431     ac_cv_prog_CXXCPP=$CXXCPP
6432
6433 fi
6434   CXXCPP=$ac_cv_prog_CXXCPP
6435 else
6436   ac_cv_prog_CXXCPP=$CXXCPP
6437 fi
6438 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6439 echo "${ECHO_T}$CXXCPP" >&6
6440 ac_preproc_ok=false
6441 for ac_cxx_preproc_warn_flag in '' yes
6442 do
6443   # Use a header file that comes with gcc, so configuring glibc
6444   # with a fresh cross-compiler works.
6445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446   # <limits.h> exists even on freestanding compilers.
6447   # On the NeXT, cc -E runs the code through the compiler's parser,
6448   # not just through cpp. "Syntax error" is here to catch this case.
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #ifdef __STDC__
6456 # include <limits.h>
6457 #else
6458 # include <assert.h>
6459 #endif
6460                      Syntax error
6461 _ACEOF
6462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } >/dev/null; then
6470   if test -s conftest.err; then
6471     ac_cpp_err=$ac_cxx_preproc_warn_flag
6472     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6473   else
6474     ac_cpp_err=
6475   fi
6476 else
6477   ac_cpp_err=yes
6478 fi
6479 if test -z "$ac_cpp_err"; then
6480   :
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6484
6485   # Broken: fails on valid input.
6486 continue
6487 fi
6488 rm -f conftest.err conftest.$ac_ext
6489
6490   # OK, works on sane cases.  Now check whether non-existent headers
6491   # can be detected and how.
6492   cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 #include <ac_nonexistent.h>
6499 _ACEOF
6500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } >/dev/null; then
6508   if test -s conftest.err; then
6509     ac_cpp_err=$ac_cxx_preproc_warn_flag
6510     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6511   else
6512     ac_cpp_err=
6513   fi
6514 else
6515   ac_cpp_err=yes
6516 fi
6517 if test -z "$ac_cpp_err"; then
6518   # Broken: success on invalid input.
6519 continue
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524   # Passes both tests.
6525 ac_preproc_ok=:
6526 break
6527 fi
6528 rm -f conftest.err conftest.$ac_ext
6529
6530 done
6531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6532 rm -f conftest.err conftest.$ac_ext
6533 if $ac_preproc_ok; then
6534   :
6535 else
6536   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6539 See \`config.log' for more details." >&2;}
6540    { (exit 1); exit 1; }; }
6541 fi
6542
6543 ac_ext=c
6544 ac_cpp='$CPP $CPPFLAGS'
6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548
6549
6550
6551 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6552 lt_save_CC="$CC"
6553 lt_save_CFLAGS="$CFLAGS"
6554 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6555 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6556 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6557 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6558 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6559 deplibs_check_method="$deplibs_check_method" \
6560 file_magic_cmd="$file_magic_cmd" \
6561 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6562 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6563 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6564 echo "$as_me: error: libtool tag configuration failed" >&2;}
6565    { (exit 1); exit 1; }; }
6566 CC="$lt_save_CC"
6567 CFLAGS="$lt_save_CFLAGS"
6568
6569 # Redirect the config.log output again, so that the ltconfig log is not
6570 # clobbered by the next message.
6571 exec 5>>./config.log
6572
6573
6574
6575
6576
6577
6578
6579 for ac_prog in gcj
6580 do
6581   # Extract the first word of "$ac_prog", so it can be a program name with args.
6582 set dummy $ac_prog; ac_word=$2
6583 echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6585 if test "${ac_cv_prog_GCJ+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   if test -n "$GCJ"; then
6589   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596   for ac_exec_ext in '' $ac_executable_extensions; do
6597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_GCJ="$ac_prog"
6599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603 done
6604
6605 fi
6606 fi
6607 GCJ=$ac_cv_prog_GCJ
6608 if test -n "$GCJ"; then
6609   echo "$as_me:$LINENO: result: $GCJ" >&5
6610 echo "${ECHO_T}$GCJ" >&6
6611 else
6612   echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6
6614 fi
6615
6616   test -n "$GCJ" && break
6617 done
6618 test -n "$GCJ" || GCJ="gcj"
6619
6620 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6621 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6622    { (exit 1); exit 1; }; }
6623 if test "x${GCJFLAGS-unset}" = xunset; then
6624    GCJFLAGS="-g -O2"
6625 fi
6626
6627
6628 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6629
6630 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6631 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6632 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6636   # We make a subdir and do the tests there.  Otherwise we can end up
6637   # making bogus files that we don't know about and never remove.  For
6638   # instance it was reported that on HP-UX the gcc test will end up
6639   # making a dummy file named `D' -- because `-MD' means `put the output
6640   # in D'.
6641   mkdir conftest.dir
6642   # Copy depcomp to subdir because otherwise we won't find it if we're
6643   # using a relative directory.
6644   cp "$am_depcomp" conftest.dir
6645   cd conftest.dir
6646   # We will build objects and dependencies in a subdirectory because
6647   # it helps to detect inapplicable dependency modes.  For instance
6648   # both Tru64's cc and ICC support -MD to output dependencies as a
6649   # side effect of compilation, but ICC will put the dependencies in
6650   # the current directory while Tru64 will put them in the object
6651   # directory.
6652   mkdir sub
6653
6654   am_cv_GCJ_dependencies_compiler_type=none
6655   if test "$am_compiler_list" = ""; then
6656      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6657   fi
6658   for depmode in $am_compiler_list; do
6659     # Setup a source with many dependencies, because some compilers
6660     # like to wrap large dependency lists on column 80 (with \), and
6661     # we should not choose a depcomp mode which is confused by this.
6662     #
6663     # We need to recreate these files for each test, as the compiler may
6664     # overwrite some of them when testing with obscure command lines.
6665     # This happens at least with the AIX C compiler.
6666     : > sub/conftest.c
6667     for i in 1 2 3 4 5 6; do
6668       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6669       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6670       # Solaris 8's {/usr,}/bin/sh.
6671       touch sub/conftst$i.h
6672     done
6673     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6674
6675     case $depmode in
6676     nosideeffect)
6677       # after this tag, mechanisms are not by side-effect, so they'll
6678       # only be used when explicitly requested
6679       if test "x$enable_dependency_tracking" = xyes; then
6680         continue
6681       else
6682         break
6683       fi
6684       ;;
6685     none) break ;;
6686     esac
6687     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6688     # mode.  It turns out that the SunPro C++ compiler does not properly
6689     # handle `-M -o', and we need to detect this.
6690     if depmode=$depmode \
6691        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6692        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6693        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6694          >/dev/null 2>conftest.err &&
6695        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6696        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6697        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6698       # icc doesn't choke on unknown options, it will just issue warnings
6699       # or remarks (even with -Werror).  So we grep stderr for any message
6700       # that says an option was ignored or not supported.
6701       # When given -MP, icc 7.0 and 7.1 complain thusly:
6702       #   icc: Command line warning: ignoring option '-M'; no argument required
6703       # The diagnosis changed in icc 8.0:
6704       #   icc: Command line remark: option '-MP' not supported
6705       if (grep 'ignoring option' conftest.err ||
6706           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6707         am_cv_GCJ_dependencies_compiler_type=$depmode
6708         break
6709       fi
6710     fi
6711   done
6712
6713   cd ..
6714   rm -rf conftest.dir
6715 else
6716   am_cv_GCJ_dependencies_compiler_type=none
6717 fi
6718
6719 fi
6720 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6721 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6722 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6723
6724
6725
6726 if
6727   test "x$enable_dependency_tracking" != xno \
6728   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6729   am__fastdepGCJ_TRUE=
6730   am__fastdepGCJ_FALSE='#'
6731 else
6732   am__fastdepGCJ_TRUE='#'
6733   am__fastdepGCJ_FALSE=
6734 fi
6735
6736
6737
6738
6739 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6740 lt_save_CC="$CC"
6741 lt_save_CFLAGS="$CFLAGS"
6742 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6743 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6744 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6745 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6746 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6747 deplibs_check_method="$deplibs_check_method" \
6748 file_magic_cmd="$file_magic_cmd" \
6749 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6750 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6751 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6752 echo "$as_me: error: libtool tag configuration failed" >&2;}
6753    { (exit 1); exit 1; }; }
6754 CC="$lt_save_CC"
6755 CFLAGS="$lt_save_CFLAGS"
6756
6757 # Redirect the config.log output again, so that the ltconfig log is not
6758 # clobbered by the next message.
6759 exec 5>>./config.log
6760
6761
6762
6763 if test "x$CC" != xcc; then
6764   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6765 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6766 else
6767   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6768 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6769 fi
6770 set dummy $CC; ac_cc=`echo $2 |
6771                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6772 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781
6782 int
6783 main ()
6784 {
6785
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 # Make sure it works both with $CC and with simple cc.
6791 # We do the test twice because some compilers refuse to overwrite an
6792 # existing .o file with -o, though they will create one.
6793 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); };
6804 then
6805   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6806   if test "x$CC" != xcc; then
6807     # Test first that cc exists at all.
6808     if { ac_try='cc -c conftest.$ac_ext >&5'
6809   { (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); }; }; then
6814       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6815       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816   (eval $ac_try) 2>&5
6817   ac_status=$?
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); } &&
6820          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821   (eval $ac_try) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); };
6825       then
6826         # cc works too.
6827         :
6828       else
6829         # cc exists but doesn't like -o.
6830         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6831       fi
6832     fi
6833   fi
6834 else
6835   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6836 fi
6837 rm -f conftest*
6838
6839 fi
6840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6841   echo "$as_me:$LINENO: result: yes" >&5
6842 echo "${ECHO_T}yes" >&6
6843 else
6844   echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define NO_MINUS_C_MINUS_O 1
6849 _ACEOF
6850
6851 fi
6852
6853 # FIXME: we rely on the cache variable name because
6854 # there is no other way.
6855 set dummy $CC
6856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6858    # Losing compiler, so override with the script.
6859    # FIXME: It is wrong to rewrite CC.
6860    # But if we don't then we get into trouble of one sort or another.
6861    # A longer-term fix would be to have automake use am__CC in this case,
6862    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6863    CC="$am_aux_dir/compile $CC"
6864 fi
6865
6866
6867
6868
6869 subdirs="$subdirs classpath libltdl"
6870
6871
6872 # The -no-testsuite modules omit the test subdir.
6873
6874
6875 if test -d $srcdir/testsuite; then
6876   TESTSUBDIR_TRUE=
6877   TESTSUBDIR_FALSE='#'
6878 else
6879   TESTSUBDIR_TRUE='#'
6880   TESTSUBDIR_FALSE=
6881 fi
6882
6883
6884 # Should the runtime set system properties by examining the
6885 # environment variable GCJ_PROPERTIES?
6886 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6887 if test "${enable_getenv_properties+set}" = set; then
6888   enableval="$enable_getenv_properties"
6889
6890 fi;
6891
6892 # Whether GCJ_PROPERTIES is used depends on the target.
6893 if test -z "$enable_getenv_properties"; then
6894    enable_getenv_properties=${enable_getenv_properties_default-yes}
6895 fi
6896 if test "$enable_getenv_properties" = no; then
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define DISABLE_GETENV_PROPERTIES 1
6900 _ACEOF
6901
6902 fi
6903
6904 # Whether we should use arguments to main()
6905 if test -z "$enable_main_args"; then
6906    enable_main_args=${enable_main_args_default-yes}
6907 fi
6908 if test "$enable_main_args" = no; then
6909
6910 cat >>confdefs.h <<\_ACEOF
6911 #define DISABLE_MAIN_ARGS 1
6912 _ACEOF
6913
6914 fi
6915
6916
6917 # Should we use hashtable-based synchronization?
6918 # Currently works only for Linux X86/ia64
6919 # Typically faster and more space-efficient
6920 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6921 if test "${enable_hash_synchronization+set}" = set; then
6922   enableval="$enable_hash_synchronization"
6923
6924 fi;
6925
6926 if test -z "$enable_hash_synchronization"; then
6927    enable_hash_synchronization=$enable_hash_synchronization_default
6928 fi
6929
6930
6931 install_ecj_jar=no
6932 ECJ_BUILD_JAR=
6933 ECJ_JAR=
6934
6935 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6936 if test "${with_ecj_jar+set}" = set; then
6937   withval="$with_ecj_jar"
6938   ECJ_JAR=$withval
6939 else
6940   if test -f $multi_basedir/ecj.jar; then
6941            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6942            ECJ_JAR='$(jardir)/ecj.jar'
6943            install_ecj_jar=yes
6944          fi
6945 fi;
6946
6947
6948
6949
6950 if test "$ECJ_JAR" != ""; then
6951   BUILD_ECJ1_TRUE=
6952   BUILD_ECJ1_FALSE='#'
6953 else
6954   BUILD_ECJ1_TRUE='#'
6955   BUILD_ECJ1_FALSE=
6956 fi
6957
6958
6959
6960 if test $install_ecj_jar = yes; then
6961   INSTALL_ECJ_JAR_TRUE=
6962   INSTALL_ECJ_JAR_FALSE='#'
6963 else
6964   INSTALL_ECJ_JAR_TRUE='#'
6965   INSTALL_ECJ_JAR_FALSE=
6966 fi
6967
6968
6969
6970 # Check whether --with-java-home or --without-java-home was given.
6971 if test "${with_java_home+set}" = set; then
6972   withval="$with_java_home"
6973   JAVA_HOME="${withval}"
6974 else
6975   JAVA_HOME=""
6976 fi;
6977
6978
6979 if test ! -z "$JAVA_HOME"; then
6980   JAVA_HOME_SET_TRUE=
6981   JAVA_HOME_SET_FALSE='#'
6982 else
6983   JAVA_HOME_SET_TRUE='#'
6984   JAVA_HOME_SET_FALSE=
6985 fi
6986
6987
6988
6989 # What is the native OS API for MinGW?
6990
6991 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6992 if test "${with_win32_nlsapi+set}" = set; then
6993   withval="$with_win32_nlsapi"
6994   case "${withval}" in
6995   ansi) with_win32_nlsapi=ansi ;;
6996   unicows) with_win32_nlsapi=unicows ;;
6997   unicode) with_win32_nlsapi=unicode ;;
6998   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6999 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
7000    { (exit 1); exit 1; }; } ;;
7001 esac
7002 else
7003   with_win32_nlsapi=ansi
7004 fi;
7005
7006 case "${with_win32_nlsapi}" in
7007   unicows | unicode)
7008
7009 cat >>confdefs.h <<\_ACEOF
7010 #define MINGW_LIBGCJ_UNICODE 1
7011 _ACEOF
7012
7013     ;;
7014 esac
7015
7016 # configure.host sets slow_pthread_self if the synchronization code should
7017 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7018 if test "${slow_pthread_self}" = "yes"; then
7019
7020 cat >>confdefs.h <<\_ACEOF
7021 #define SLOW_PTHREAD_SELF 1
7022 _ACEOF
7023
7024 fi
7025
7026 # Check for gc debugging.  This option is handled both here and in the GC.
7027 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7028 if test "${enable_gc_debug+set}" = set; then
7029   enableval="$enable_gc_debug"
7030    if test "$enable_gc_debug" = "yes"; then
7031
7032 cat >>confdefs.h <<\_ACEOF
7033 #define LIBGCJ_GC_DEBUG 1
7034 _ACEOF
7035
7036   fi
7037 fi;
7038
7039 # See if the user has the interpreter included.
7040 # Check whether --enable-interpreter or --disable-interpreter was given.
7041 if test "${enable_interpreter+set}" = set; then
7042   enableval="$enable_interpreter"
7043   if test "$enable_interpreter" = yes; then
7044     # This can also be set in configure.host.
7045     libgcj_interpreter=yes
7046   elif test "$enable_interpreter" = no; then
7047     libgcj_interpreter=no
7048   fi
7049 fi;
7050
7051 if test "$libgcj_interpreter" = yes; then
7052
7053 cat >>confdefs.h <<\_ACEOF
7054 #define INTERPRETER 1
7055 _ACEOF
7056
7057 fi
7058 INTERPRETER="$libgcj_interpreter"
7059
7060
7061 echo "$as_me:$LINENO: checking for exception model to use" >&5
7062 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7063 ac_ext=cc
7064 ac_cpp='$CXXCPP $CPPFLAGS'
7065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7068
7069 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7070 if test "${enable_sjlj_exceptions+set}" = set; then
7071   enableval="$enable_sjlj_exceptions"
7072   :
7073 else
7074   cat > conftest.$ac_ext << EOF
7075 #line 7075 "configure"
7076 struct S { ~S(); };
7077 void bar();
7078 void foo()
7079 {
7080   S s;
7081   bar();
7082 }
7083 EOF
7084 old_CXXFLAGS="$CXXFLAGS"
7085 CXXFLAGS=-S
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087   (eval $ac_compile) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; then
7091   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7092     enable_sjlj_exceptions=yes
7093   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7094     enable_sjlj_exceptions=no
7095   fi
7096 fi
7097 CXXFLAGS="$old_CXXFLAGS"
7098 rm -f conftest*
7099 fi;
7100 if test x$enable_sjlj_exceptions = xyes; then
7101
7102 cat >>confdefs.h <<\_ACEOF
7103 #define SJLJ_EXCEPTIONS 1
7104 _ACEOF
7105
7106   ac_exception_model_name=sjlj
7107 elif test x$enable_sjlj_exceptions = xno; then
7108   ac_exception_model_name="call frame"
7109 else
7110   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7111 echo "$as_me: error: unable to detect exception model" >&2;}
7112    { (exit 1); exit 1; }; }
7113 fi
7114 ac_ext=c
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119
7120 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7121 echo "${ECHO_T}$ac_exception_model_name" >&6
7122
7123 # If we are non using SJLJ exceptions, and this host does not have support
7124 # for unwinding from a signal handler, enable checked dereferences and divides.
7125 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7126   CHECKREFSPEC=-fcheck-references
7127   DIVIDESPEC=-fuse-divide-subroutine
7128   EXCEPTIONSPEC=
7129 fi
7130
7131 # See if the user wants to disable java.net.  This is the mildly
7132 # ugly way that we admit that target-side configuration sucks.
7133 # Check whether --enable-java-net or --disable-java-net was given.
7134 if test "${enable_java_net+set}" = set; then
7135   enableval="$enable_java_net"
7136
7137 fi;
7138
7139 # Whether java.net is built by default can depend on the target.
7140 if test -z "$enable_java_net"; then
7141    enable_java_net=${enable_java_net_default-yes}
7142 fi
7143 if test "$enable_java_net" = no; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define DISABLE_JAVA_NET 1
7147 _ACEOF
7148
7149 fi
7150
7151 # See if the user wants to configure without libffi.  Some
7152 # architectures don't support it, and default values are set in
7153 # configure.host.
7154
7155 # Check whether --with-libffi or --without-libffi was given.
7156 if test "${with_libffi+set}" = set; then
7157   withval="$with_libffi"
7158   :
7159 else
7160   with_libffi=${with_libffi_default-yes}
7161 fi;
7162
7163 LIBFFI=
7164 LIBFFIINCS=
7165 if test "$with_libffi" != no; then
7166
7167 cat >>confdefs.h <<\_ACEOF
7168 #define USE_LIBFFI 1
7169 _ACEOF
7170
7171    LIBFFI=../libffi/libffi_convenience.la
7172    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7173 fi
7174
7175
7176
7177 # See if the user wants to disable JVMPI support.
7178 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7179 if test "${enable_jvmpi+set}" = set; then
7180   enableval="$enable_jvmpi"
7181
7182 fi;
7183
7184 if test "$enable_jvmpi" != no; then
7185
7186 cat >>confdefs.h <<\_ACEOF
7187 #define ENABLE_JVMPI 1
7188 _ACEOF
7189
7190 fi
7191
7192 # If the target is an eCos system, use the appropriate eCos
7193 # I/O routines.
7194 # FIXME: this should not be a local option but a global target
7195 # system; at present there is no eCos target.
7196 TARGET_ECOS=${PROCESS-"no"}
7197
7198 # Check whether --with-ecos or --without-ecos was given.
7199 if test "${with_ecos+set}" = set; then
7200   withval="$with_ecos"
7201   TARGET_ECOS="$with_ecos"
7202
7203 fi;
7204
7205 case "$TARGET_ECOS" in
7206    no) case "$host" in
7207       *mingw*)
7208             PLATFORM=Win32
7209             PLATFORMNET=Win32
7210             PLATFORMH=win32.h
7211
7212 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7213 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7214 LD_PROG=`$CC --print-prog-name=ld`
7215 LD_VERSION=`$LD_PROG --version`
7216 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7217 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7218 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7219   LD_OK="ok"
7220 else
7221   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7222     LD_OK="ok"
7223   fi
7224 fi
7225 if test "x$LD_OK" != x; then
7226   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7227 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7228 else
7229   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7230 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7231   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7232 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7233
7234 cat >>confdefs.h <<\_ACEOF
7235 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7236 _ACEOF
7237
7238 fi
7239       ;;
7240       *)
7241             PLATFORM=Posix
7242             PLATFORMNET=Posix
7243             PLATFORMH=posix.h
7244       ;;
7245       esac
7246       ;;
7247    *)
7248       PLATFORM=Ecos
7249       PLATFORMNET=NoNet
7250
7251 cat >>confdefs.h <<\_ACEOF
7252 #define ECOS 1
7253 _ACEOF
7254
7255       PLATFORMH=posix.h
7256       ;;
7257 esac
7258
7259           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7260
7261
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7269 # On Suns, sometimes $CPP names a directory.
7270 if test -n "$CPP" && test -d "$CPP"; then
7271   CPP=
7272 fi
7273 if test -z "$CPP"; then
7274   if test "${ac_cv_prog_CPP+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277       # Double quotes because CPP needs to be expanded
7278     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7279     do
7280       ac_preproc_ok=false
7281 for ac_c_preproc_warn_flag in '' yes
7282 do
7283   # Use a header file that comes with gcc, so configuring glibc
7284   # with a fresh cross-compiler works.
7285   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7286   # <limits.h> exists even on freestanding compilers.
7287   # On the NeXT, cc -E runs the code through the compiler's parser,
7288   # not just through cpp. "Syntax error" is here to catch this case.
7289   cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 #ifdef __STDC__
7296 # include <limits.h>
7297 #else
7298 # include <assert.h>
7299 #endif
7300                      Syntax error
7301 _ACEOF
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } >/dev/null; then
7310   if test -s conftest.err; then
7311     ac_cpp_err=$ac_c_preproc_warn_flag
7312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7313   else
7314     ac_cpp_err=
7315   fi
7316 else
7317   ac_cpp_err=yes
7318 fi
7319 if test -z "$ac_cpp_err"; then
7320   :
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325   # Broken: fails on valid input.
7326 continue
7327 fi
7328 rm -f conftest.err conftest.$ac_ext
7329
7330   # OK, works on sane cases.  Now check whether non-existent headers
7331   # can be detected and how.
7332   cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338 #include <ac_nonexistent.h>
7339 _ACEOF
7340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342   ac_status=$?
7343   grep -v '^ *+' conftest.er1 >conftest.err
7344   rm -f conftest.er1
7345   cat conftest.err >&5
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } >/dev/null; then
7348   if test -s conftest.err; then
7349     ac_cpp_err=$ac_c_preproc_warn_flag
7350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7351   else
7352     ac_cpp_err=
7353   fi
7354 else
7355   ac_cpp_err=yes
7356 fi
7357 if test -z "$ac_cpp_err"; then
7358   # Broken: success on invalid input.
7359 continue
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364   # Passes both tests.
7365 ac_preproc_ok=:
7366 break
7367 fi
7368 rm -f conftest.err conftest.$ac_ext
7369
7370 done
7371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372 rm -f conftest.err conftest.$ac_ext
7373 if $ac_preproc_ok; then
7374   break
7375 fi
7376
7377     done
7378     ac_cv_prog_CPP=$CPP
7379
7380 fi
7381   CPP=$ac_cv_prog_CPP
7382 else
7383   ac_cv_prog_CPP=$CPP
7384 fi
7385 echo "$as_me:$LINENO: result: $CPP" >&5
7386 echo "${ECHO_T}$CPP" >&6
7387 ac_preproc_ok=false
7388 for ac_c_preproc_warn_flag in '' yes
7389 do
7390   # Use a header file that comes with gcc, so configuring glibc
7391   # with a fresh cross-compiler works.
7392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393   # <limits.h> exists even on freestanding compilers.
7394   # On the NeXT, cc -E runs the code through the compiler's parser,
7395   # not just through cpp. "Syntax error" is here to catch this case.
7396   cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407                      Syntax error
7408 _ACEOF
7409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } >/dev/null; then
7417   if test -s conftest.err; then
7418     ac_cpp_err=$ac_c_preproc_warn_flag
7419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7420   else
7421     ac_cpp_err=
7422   fi
7423 else
7424   ac_cpp_err=yes
7425 fi
7426 if test -z "$ac_cpp_err"; then
7427   :
7428 else
7429   echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432   # Broken: fails on valid input.
7433 continue
7434 fi
7435 rm -f conftest.err conftest.$ac_ext
7436
7437   # OK, works on sane cases.  Now check whether non-existent headers
7438   # can be detected and how.
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <ac_nonexistent.h>
7446 _ACEOF
7447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } >/dev/null; then
7455   if test -s conftest.err; then
7456     ac_cpp_err=$ac_c_preproc_warn_flag
7457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7458   else
7459     ac_cpp_err=
7460   fi
7461 else
7462   ac_cpp_err=yes
7463 fi
7464 if test -z "$ac_cpp_err"; then
7465   # Broken: success on invalid input.
7466 continue
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471   # Passes both tests.
7472 ac_preproc_ok=:
7473 break
7474 fi
7475 rm -f conftest.err conftest.$ac_ext
7476
7477 done
7478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479 rm -f conftest.err conftest.$ac_ext
7480 if $ac_preproc_ok; then
7481   :
7482 else
7483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7484 See \`config.log' for more details." >&5
7485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7486 See \`config.log' for more details." >&2;}
7487    { (exit 1); exit 1; }; }
7488 fi
7489
7490 ac_ext=c
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7495
7496
7497 echo "$as_me:$LINENO: checking for egrep" >&5
7498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7499 if test "${ac_cv_prog_egrep+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7503     then ac_cv_prog_egrep='grep -E'
7504     else ac_cv_prog_egrep='egrep'
7505     fi
7506 fi
7507 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7508 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7509  EGREP=$ac_cv_prog_egrep
7510
7511
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518 #include <stdint.h>
7519
7520 _ACEOF
7521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7522   $EGREP "uint32_t" >/dev/null 2>&1; then
7523
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_INT32_DEFINED 1
7526 _ACEOF
7527
7528 fi
7529 rm -f conftest*
7530
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h.  */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h.  */
7537 #include <inttypes.h>
7538
7539 _ACEOF
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541   $EGREP "uint32_t" >/dev/null 2>&1; then
7542
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_INT32_DEFINED 1
7545 _ACEOF
7546
7547 fi
7548 rm -f conftest*
7549
7550 cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 #include <sys/types.h>
7557
7558 _ACEOF
7559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7560   $EGREP "u_int32_t" >/dev/null 2>&1; then
7561
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_BSD_INT32_DEFINED 1
7564 _ACEOF
7565
7566 fi
7567 rm -f conftest*
7568
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 #include <sys/config.h>
7576
7577 _ACEOF
7578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7579   $EGREP "u_int32_t" >/dev/null 2>&1; then
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_BSD_INT32_DEFINED 1
7583 _ACEOF
7584
7585 fi
7586 rm -f conftest*
7587
7588
7589
7590
7591 if test "$PLATFORM" = Win32; then
7592   USING_WIN32_PLATFORM_TRUE=
7593   USING_WIN32_PLATFORM_FALSE='#'
7594 else
7595   USING_WIN32_PLATFORM_TRUE='#'
7596   USING_WIN32_PLATFORM_FALSE=
7597 fi
7598
7599
7600
7601 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7602   USING_POSIX_PLATFORM_TRUE=
7603   USING_POSIX_PLATFORM_FALSE='#'
7604 else
7605   USING_POSIX_PLATFORM_TRUE='#'
7606   USING_POSIX_PLATFORM_FALSE=
7607 fi
7608
7609
7610 case "$host" in
7611   *-darwin*) DARWIN_CRT=true ;;
7612   *) DARWIN_CRT=false ;;
7613 esac
7614
7615
7616 if $DARWIN_CRT; then
7617   USING_DARWIN_CRT_TRUE=
7618   USING_DARWIN_CRT_FALSE='#'
7619 else
7620   USING_DARWIN_CRT_TRUE='#'
7621   USING_DARWIN_CRT_FALSE=
7622 fi
7623
7624
7625 # These may not be defined in a non-ANS conformant embedded system.
7626 # FIXME: Should these case a runtime exception in that case?
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h.  */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h.  */
7633 #include <time.h>
7634
7635 _ACEOF
7636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7637   $EGREP "mktime" >/dev/null 2>&1; then
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 #define HAVE_MKTIME 1
7641 _ACEOF
7642
7643 fi
7644 rm -f conftest*
7645
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h.  */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h.  */
7652 #include <time.h>
7653
7654 _ACEOF
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656   $EGREP "localtime" >/dev/null 2>&1; then
7657
7658 cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_LOCALTIME 1
7660 _ACEOF
7661
7662 fi
7663 rm -f conftest*
7664
7665
7666 # Create the subdirectory for natFile.cc, or the attempt
7667 # to create the link will fail.
7668 test -d java || mkdir java
7669 test -d java/io || mkdir java/io
7670 test -d gnu || mkdir gnu
7671           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7672
7673
7674 # Likewise for natConcreteProcess.cc.
7675 test -d java/lang || mkdir java/lang
7676           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7677
7678
7679 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7680 test -d java/net || mkdir java/net
7681           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7682
7683           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7684
7685
7686 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7687 test -d gnu/java || mkdir gnu/java
7688 test -d gnu/java/net || mkdir gnu/java/net
7689           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7690
7691           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7692
7693
7694 # Likewise for natVMPipe.cc and natVMSelector.cc.
7695 test -d gnu/java/nio || mkdir gnu/java/nio
7696           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7697
7698           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7699
7700
7701 # Likewise for natFileChannelImpl.cc
7702 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7703           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7704
7705
7706 case "${host}" in
7707     *mingw*)
7708       SYSTEMSPEC="-lgdi32 -lws2_32"
7709       if test "${with_win32_nlsapi}" = "unicows"; then
7710         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7711       fi
7712     ;;
7713     *)
7714       SYSTEMSPEC=
7715     ;;
7716 esac
7717
7718
7719 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7720
7721
7722
7723 # Check whether --with-system-zlib or --without-system-zlib was given.
7724 if test "${with_system_zlib+set}" = set; then
7725   withval="$with_system_zlib"
7726
7727 fi;
7728 ZLIBSPEC=
7729
7730 ZLIBTESTSPEC=
7731
7732
7733 echo "$as_me:$LINENO: checking for X" >&5
7734 echo $ECHO_N "checking for X... $ECHO_C" >&6
7735
7736
7737 # Check whether --with-x or --without-x was given.
7738 if test "${with_x+set}" = set; then
7739   withval="$with_x"
7740
7741 fi;
7742 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7743 if test "x$with_x" = xno; then
7744   # The user explicitly disabled X.
7745   have_x=disabled
7746 else
7747   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7748     # Both variables are already set.
7749     have_x=yes
7750   else
7751     if test "${ac_cv_have_x+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   # One or both of the vars are not set, and there is no cached value.
7755 ac_x_includes=no ac_x_libraries=no
7756 rm -fr conftest.dir
7757 if mkdir conftest.dir; then
7758   cd conftest.dir
7759   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7760   cat >Imakefile <<'_ACEOF'
7761 acfindx:
7762         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7763 _ACEOF
7764   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7765     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7766     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7767     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7768     for ac_extension in a so sl; do
7769       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7770          test -f $ac_im_libdir/libX11.$ac_extension; then
7771         ac_im_usrlibdir=$ac_im_libdir; break
7772       fi
7773     done
7774     # Screen out bogus values from the imake configuration.  They are
7775     # bogus both because they are the default anyway, and because
7776     # using them would break gcc on systems where it needs fixed includes.
7777     case $ac_im_incroot in
7778         /usr/include) ;;
7779         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7780     esac
7781     case $ac_im_usrlibdir in
7782         /usr/lib | /lib) ;;
7783         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7784     esac
7785   fi
7786   cd ..
7787   rm -fr conftest.dir
7788 fi
7789
7790 # Standard set of common directories for X headers.
7791 # Check X11 before X11Rn because it is often a symlink to the current release.
7792 ac_x_header_dirs='
7793 /usr/X11/include
7794 /usr/X11R6/include
7795 /usr/X11R5/include
7796 /usr/X11R4/include
7797
7798 /usr/include/X11
7799 /usr/include/X11R6
7800 /usr/include/X11R5
7801 /usr/include/X11R4
7802
7803 /usr/local/X11/include
7804 /usr/local/X11R6/include
7805 /usr/local/X11R5/include
7806 /usr/local/X11R4/include
7807
7808 /usr/local/include/X11
7809 /usr/local/include/X11R6
7810 /usr/local/include/X11R5
7811 /usr/local/include/X11R4
7812
7813 /usr/X386/include
7814 /usr/x386/include
7815 /usr/XFree86/include/X11
7816
7817 /usr/include
7818 /usr/local/include
7819 /usr/unsupported/include
7820 /usr/athena/include
7821 /usr/local/x11r5/include
7822 /usr/lpp/Xamples/include
7823
7824 /usr/openwin/include
7825 /usr/openwin/share/include'
7826
7827 if test "$ac_x_includes" = no; then
7828   # Guess where to find include files, by looking for Xlib.h.
7829   # First, try using that file with no special directory specified.
7830   cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #include <X11/Xlib.h>
7837 _ACEOF
7838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } >/dev/null; then
7846   if test -s conftest.err; then
7847     ac_cpp_err=$ac_c_preproc_warn_flag
7848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7849   else
7850     ac_cpp_err=
7851   fi
7852 else
7853   ac_cpp_err=yes
7854 fi
7855 if test -z "$ac_cpp_err"; then
7856   # We can compile using X headers with no special include directory.
7857 ac_x_includes=
7858 else
7859   echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862   for ac_dir in $ac_x_header_dirs; do
7863   if test -r "$ac_dir/X11/Xlib.h"; then
7864     ac_x_includes=$ac_dir
7865     break
7866   fi
7867 done
7868 fi
7869 rm -f conftest.err conftest.$ac_ext
7870 fi # $ac_x_includes = no
7871
7872 if test "$ac_x_libraries" = no; then
7873   # Check for the libraries.
7874   # See if we find them without any special options.
7875   # Don't add to $LIBS permanently.
7876   ac_save_LIBS=$LIBS
7877   LIBS="-lX11 $LIBS"
7878   if test x$gcc_no_link = xyes; then
7879   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7881    { (exit 1); exit 1; }; }
7882 fi
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889 #include <X11/Xlib.h>
7890 int
7891 main ()
7892 {
7893 XrmInitialize ()
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>conftest.er1
7901   ac_status=$?
7902   grep -v '^ *+' conftest.er1 >conftest.err
7903   rm -f conftest.er1
7904   cat conftest.err >&5
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -z "$ac_c_werror_flag"
7908                          || test ! -s conftest.err'
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); }; } &&
7914          { ac_try='test -s conftest$ac_exeext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   LIBS=$ac_save_LIBS
7921 # We can link X programs with no special library path.
7922 ac_x_libraries=
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 LIBS=$ac_save_LIBS
7928 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7929 do
7930   # Don't even attempt the hair of trying to link an X program!
7931   for ac_extension in a so sl; do
7932     if test -r $ac_dir/libXt.$ac_extension; then
7933       ac_x_libraries=$ac_dir
7934       break 2
7935     fi
7936   done
7937 done
7938 fi
7939 rm -f conftest.err conftest.$ac_objext \
7940       conftest$ac_exeext conftest.$ac_ext
7941 fi # $ac_x_libraries = no
7942
7943 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7944   # Didn't find X anywhere.  Cache the known absence of X.
7945   ac_cv_have_x="have_x=no"
7946 else
7947   # Record where we found X for the cache.
7948   ac_cv_have_x="have_x=yes \
7949                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7950 fi
7951 fi
7952
7953   fi
7954   eval "$ac_cv_have_x"
7955 fi # $with_x != no
7956
7957 if test "$have_x" != yes; then
7958   echo "$as_me:$LINENO: result: $have_x" >&5
7959 echo "${ECHO_T}$have_x" >&6
7960   no_x=yes
7961 else
7962   # If each of the values was on the command line, it overrides each guess.
7963   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7964   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7965   # Update the cache value to reflect the command line values.
7966   ac_cv_have_x="have_x=yes \
7967                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7968   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7969 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7970 fi
7971
7972 if test "$no_x" = yes; then
7973   # Not all programs may use this symbol, but it does not hurt to define it.
7974
7975 cat >>confdefs.h <<\_ACEOF
7976 #define X_DISPLAY_MISSING 1
7977 _ACEOF
7978
7979   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7980 else
7981   if test -n "$x_includes"; then
7982     X_CFLAGS="$X_CFLAGS -I$x_includes"
7983   fi
7984
7985   # It would also be nice to do this for all -L options, not just this one.
7986   if test -n "$x_libraries"; then
7987     X_LIBS="$X_LIBS -L$x_libraries"
7988     # For Solaris; some versions of Sun CC require a space after -R and
7989     # others require no space.  Words are not sufficient . . . .
7990     case `(uname -sr) 2>/dev/null` in
7991     "SunOS 5"*)
7992       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7993 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7994       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7995       if test x$gcc_no_link = xyes; then
7996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7998    { (exit 1); exit 1; }; }
7999 fi
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006
8007 int
8008 main ()
8009 {
8010
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017   (eval $ac_link) 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } &&
8024          { ac_try='test -z "$ac_c_werror_flag"
8025                          || test ! -s conftest.err'
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); }; } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_R_nospace=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_R_nospace=no
8043 fi
8044 rm -f conftest.err conftest.$ac_objext \
8045       conftest$ac_exeext conftest.$ac_ext
8046       if test $ac_R_nospace = yes; then
8047         echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049         X_LIBS="$X_LIBS -R$x_libraries"
8050       else
8051         LIBS="$ac_xsave_LIBS -R $x_libraries"
8052         if test x$gcc_no_link = xyes; then
8053   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8055    { (exit 1); exit 1; }; }
8056 fi
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063
8064 int
8065 main ()
8066 {
8067
8068   ;
8069   return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074   (eval $ac_link) 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -z "$ac_c_werror_flag"
8082                          || test ! -s conftest.err'
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); }; } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   ac_R_space=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 ac_R_space=no
8100 fi
8101 rm -f conftest.err conftest.$ac_objext \
8102       conftest$ac_exeext conftest.$ac_ext
8103         if test $ac_R_space = yes; then
8104           echo "$as_me:$LINENO: result: yes" >&5
8105 echo "${ECHO_T}yes" >&6
8106           X_LIBS="$X_LIBS -R $x_libraries"
8107         else
8108           echo "$as_me:$LINENO: result: neither works" >&5
8109 echo "${ECHO_T}neither works" >&6
8110         fi
8111       fi
8112       LIBS=$ac_xsave_LIBS
8113     esac
8114   fi
8115
8116   # Check for system-dependent libraries X programs must link with.
8117   # Do this before checking for the system-independent R6 libraries
8118   # (-lICE), since we may need -lsocket or whatever for X linking.
8119
8120   if test "$ISC" = yes; then
8121     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8122   else
8123     # Martyn Johnson says this is needed for Ultrix, if the X
8124     # libraries were built with DECnet support.  And Karl Berry says
8125     # the Alpha needs dnet_stub (dnet does not exist).
8126     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8127     if test x$gcc_no_link = xyes; then
8128   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8129 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8130    { (exit 1); exit 1; }; }
8131 fi
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h.  */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h.  */
8138
8139 /* Override any gcc2 internal prototype to avoid an error.  */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 /* We use char because int might match the return type of a gcc2
8144    builtin and then its argument prototype would still apply.  */
8145 char XOpenDisplay ();
8146 int
8147 main ()
8148 {
8149 XOpenDisplay ();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156   (eval $ac_link) 2>conftest.er1
8157   ac_status=$?
8158   grep -v '^ *+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } &&
8163          { ac_try='test -z "$ac_c_werror_flag"
8164                          || test ! -s conftest.err'
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); }; } &&
8170          { ac_try='test -s conftest$ac_exeext'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; }; then
8176   :
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8182 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8183 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   ac_check_lib_save_LIBS=$LIBS
8187 LIBS="-ldnet  $LIBS"
8188 if test x$gcc_no_link = xyes; then
8189   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8191    { (exit 1); exit 1; }; }
8192 fi
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199
8200 /* Override any gcc2 internal prototype to avoid an error.  */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205    builtin and then its argument prototype would still apply.  */
8206 char dnet_ntoa ();
8207 int
8208 main ()
8209 {
8210 dnet_ntoa ();
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"
8225                          || test ! -s conftest.err'
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); }; } &&
8231          { ac_try='test -s conftest$ac_exeext'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   ac_cv_lib_dnet_dnet_ntoa=yes
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_lib_dnet_dnet_ntoa=no
8243 fi
8244 rm -f conftest.err conftest.$ac_objext \
8245       conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8247 fi
8248 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8249 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8250 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8251   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8252 fi
8253
8254     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8255       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8256 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8257 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   ac_check_lib_save_LIBS=$LIBS
8261 LIBS="-ldnet_stub  $LIBS"
8262 if test x$gcc_no_link = xyes; then
8263   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8265    { (exit 1); exit 1; }; }
8266 fi
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 /* Override any gcc2 internal prototype to avoid an error.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279    builtin and then its argument prototype would still apply.  */
8280 char dnet_ntoa ();
8281 int
8282 main ()
8283 {
8284 dnet_ntoa ();
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag"
8299                          || test ! -s conftest.err'
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); }; } &&
8305          { ac_try='test -s conftest$ac_exeext'
8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307   (eval $ac_try) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_cv_lib_dnet_stub_dnet_ntoa=no
8317 fi
8318 rm -f conftest.err conftest.$ac_objext \
8319       conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8323 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8324 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8325   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8326 fi
8327
8328     fi
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332     LIBS="$ac_xsave_LIBS"
8333
8334     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8335     # to get the SysV transport functions.
8336     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8337     # needs -lnsl.
8338     # The nsl library prevents programs from opening the X display
8339     # on Irix 5.2, according to T.E. Dickey.
8340     # The functions gethostbyname, getservbyname, and inet_addr are
8341     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8342     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8344 if test "${ac_cv_func_gethostbyname+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   if test x$gcc_no_link = xyes; then
8348   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8350    { (exit 1); exit 1; }; }
8351 fi
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8360 #define gethostbyname innocuous_gethostbyname
8361
8362 /* System header to define __stub macros and hopefully few prototypes,
8363     which can conflict with char gethostbyname (); below.
8364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8365     <limits.h> exists even on freestanding compilers.  */
8366
8367 #ifdef __STDC__
8368 # include <limits.h>
8369 #else
8370 # include <assert.h>
8371 #endif
8372
8373 #undef gethostbyname
8374
8375 /* Override any gcc2 internal prototype to avoid an error.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 {
8379 #endif
8380 /* We use char because int might match the return type of a gcc2
8381    builtin and then its argument prototype would still apply.  */
8382 char gethostbyname ();
8383 /* The GNU C library defines this for functions which it implements
8384     to always fail with ENOSYS.  Some functions are actually named
8385     something starting with __ and the normal name is an alias.  */
8386 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8387 choke me
8388 #else
8389 char (*f) () = gethostbyname;
8390 #endif
8391 #ifdef __cplusplus
8392 }
8393 #endif
8394
8395 int
8396 main ()
8397 {
8398 return f != gethostbyname;
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8405   (eval $ac_link) 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag"
8413                          || test ! -s conftest.err'
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); }; } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_func_gethostbyname=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_func_gethostbyname=no
8431 fi
8432 rm -f conftest.err conftest.$ac_objext \
8433       conftest$ac_exeext conftest.$ac_ext
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8436 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8437
8438     if test $ac_cv_func_gethostbyname = no; then
8439       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8440 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8441 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8442   echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444   ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lnsl  $LIBS"
8446 if test x$gcc_no_link = xyes; then
8447   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8449    { (exit 1); exit 1; }; }
8450 fi
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 /* Override any gcc2 internal prototype to avoid an error.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 /* We use char because int might match the return type of a gcc2
8463    builtin and then its argument prototype would still apply.  */
8464 char gethostbyname ();
8465 int
8466 main ()
8467 {
8468 gethostbyname ();
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
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); }; } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   ac_cv_lib_nsl_gethostbyname=yes
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_cv_lib_nsl_gethostbyname=no
8501 fi
8502 rm -f conftest.err conftest.$ac_objext \
8503       conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8505 fi
8506 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8507 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8508 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8509   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8510 fi
8511
8512       if test $ac_cv_lib_nsl_gethostbyname = no; then
8513         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8514 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8515 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   ac_check_lib_save_LIBS=$LIBS
8519 LIBS="-lbsd  $LIBS"
8520 if test x$gcc_no_link = xyes; then
8521   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8523    { (exit 1); exit 1; }; }
8524 fi
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531
8532 /* Override any gcc2 internal prototype to avoid an error.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 /* We use char because int might match the return type of a gcc2
8537    builtin and then its argument prototype would still apply.  */
8538 char gethostbyname ();
8539 int
8540 main ()
8541 {
8542 gethostbyname ();
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549   (eval $ac_link) 2>conftest.er1
8550   ac_status=$?
8551   grep -v '^ *+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } &&
8556          { ac_try='test -z "$ac_c_werror_flag"
8557                          || test ! -s conftest.err'
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); }; } &&
8563          { ac_try='test -s conftest$ac_exeext'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; }; then
8569   ac_cv_lib_bsd_gethostbyname=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574 ac_cv_lib_bsd_gethostbyname=no
8575 fi
8576 rm -f conftest.err conftest.$ac_objext \
8577       conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8579 fi
8580 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8581 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8582 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8583   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8584 fi
8585
8586       fi
8587     fi
8588
8589     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8590     # socket/setsockopt and other routines are undefined under SCO ODT
8591     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8592     # on later versions), says Simon Leinen: it contains gethostby*
8593     # variants that don't use the name server (or something).  -lsocket
8594     # must be given before -lnsl if both are needed.  We assume that
8595     # if connect needs -lnsl, so does gethostbyname.
8596     echo "$as_me:$LINENO: checking for connect" >&5
8597 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8598 if test "${ac_cv_func_connect+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   if test x$gcc_no_link = xyes; then
8602   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8604    { (exit 1); exit 1; }; }
8605 fi
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8614 #define connect innocuous_connect
8615
8616 /* System header to define __stub macros and hopefully few prototypes,
8617     which can conflict with char connect (); below.
8618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8619     <limits.h> exists even on freestanding compilers.  */
8620
8621 #ifdef __STDC__
8622 # include <limits.h>
8623 #else
8624 # include <assert.h>
8625 #endif
8626
8627 #undef connect
8628
8629 /* Override any gcc2 internal prototype to avoid an error.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 {
8633 #endif
8634 /* We use char because int might match the return type of a gcc2
8635    builtin and then its argument prototype would still apply.  */
8636 char connect ();
8637 /* The GNU C library defines this for functions which it implements
8638     to always fail with ENOSYS.  Some functions are actually named
8639     something starting with __ and the normal name is an alias.  */
8640 #if defined (__stub_connect) || defined (__stub___connect)
8641 choke me
8642 #else
8643 char (*f) () = connect;
8644 #endif
8645 #ifdef __cplusplus
8646 }
8647 #endif
8648
8649 int
8650 main ()
8651 {
8652 return f != connect;
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -z "$ac_c_werror_flag"
8667                          || test ! -s conftest.err'
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); }; } &&
8673          { ac_try='test -s conftest$ac_exeext'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; }; then
8679   ac_cv_func_connect=yes
8680 else
8681   echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8683
8684 ac_cv_func_connect=no
8685 fi
8686 rm -f conftest.err conftest.$ac_objext \
8687       conftest$ac_exeext conftest.$ac_ext
8688 fi
8689 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8690 echo "${ECHO_T}$ac_cv_func_connect" >&6
8691
8692     if test $ac_cv_func_connect = no; then
8693       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8694 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8695 if test "${ac_cv_lib_socket_connect+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   ac_check_lib_save_LIBS=$LIBS
8699 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8700 if test x$gcc_no_link = xyes; then
8701   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8703    { (exit 1); exit 1; }; }
8704 fi
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 /* Override any gcc2 internal prototype to avoid an error.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717    builtin and then its argument prototype would still apply.  */
8718 char connect ();
8719 int
8720 main ()
8721 {
8722 connect ();
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729   (eval $ac_link) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_c_werror_flag"
8737                          || test ! -s conftest.err'
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); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_cv_lib_socket_connect=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_cv_lib_socket_connect=no
8755 fi
8756 rm -f conftest.err conftest.$ac_objext \
8757       conftest$ac_exeext conftest.$ac_ext
8758 LIBS=$ac_check_lib_save_LIBS
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8761 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8762 if test $ac_cv_lib_socket_connect = yes; then
8763   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8764 fi
8765
8766     fi
8767
8768     # Guillermo Gomez says -lposix is necessary on A/UX.
8769     echo "$as_me:$LINENO: checking for remove" >&5
8770 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8771 if test "${ac_cv_func_remove+set}" = set; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774   if test x$gcc_no_link = xyes; then
8775   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8777    { (exit 1); exit 1; }; }
8778 fi
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8787 #define remove innocuous_remove
8788
8789 /* System header to define __stub macros and hopefully few prototypes,
8790     which can conflict with char remove (); below.
8791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792     <limits.h> exists even on freestanding compilers.  */
8793
8794 #ifdef __STDC__
8795 # include <limits.h>
8796 #else
8797 # include <assert.h>
8798 #endif
8799
8800 #undef remove
8801
8802 /* Override any gcc2 internal prototype to avoid an error.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 {
8806 #endif
8807 /* We use char because int might match the return type of a gcc2
8808    builtin and then its argument prototype would still apply.  */
8809 char remove ();
8810 /* The GNU C library defines this for functions which it implements
8811     to always fail with ENOSYS.  Some functions are actually named
8812     something starting with __ and the normal name is an alias.  */
8813 #if defined (__stub_remove) || defined (__stub___remove)
8814 choke me
8815 #else
8816 char (*f) () = remove;
8817 #endif
8818 #ifdef __cplusplus
8819 }
8820 #endif
8821
8822 int
8823 main ()
8824 {
8825 return f != remove;
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832   (eval $ac_link) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -z "$ac_c_werror_flag"
8840                          || test ! -s conftest.err'
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); }; } &&
8846          { ac_try='test -s conftest$ac_exeext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_func_remove=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_func_remove=no
8858 fi
8859 rm -f conftest.err conftest.$ac_objext \
8860       conftest$ac_exeext conftest.$ac_ext
8861 fi
8862 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8863 echo "${ECHO_T}$ac_cv_func_remove" >&6
8864
8865     if test $ac_cv_func_remove = no; then
8866       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8867 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8868 if test "${ac_cv_lib_posix_remove+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   ac_check_lib_save_LIBS=$LIBS
8872 LIBS="-lposix  $LIBS"
8873 if test x$gcc_no_link = xyes; then
8874   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8876    { (exit 1); exit 1; }; }
8877 fi
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884
8885 /* Override any gcc2 internal prototype to avoid an error.  */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 /* We use char because int might match the return type of a gcc2
8890    builtin and then its argument prototype would still apply.  */
8891 char remove ();
8892 int
8893 main ()
8894 {
8895 remove ();
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902   (eval $ac_link) 2>conftest.er1
8903   ac_status=$?
8904   grep -v '^ *+' conftest.er1 >conftest.err
8905   rm -f conftest.er1
8906   cat conftest.err >&5
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); } &&
8909          { ac_try='test -z "$ac_c_werror_flag"
8910                          || test ! -s conftest.err'
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); }; } &&
8916          { ac_try='test -s conftest$ac_exeext'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; }; then
8922   ac_cv_lib_posix_remove=yes
8923 else
8924   echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ac_cv_lib_posix_remove=no
8928 fi
8929 rm -f conftest.err conftest.$ac_objext \
8930       conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8932 fi
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8934 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8935 if test $ac_cv_lib_posix_remove = yes; then
8936   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8937 fi
8938
8939     fi
8940
8941     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8942     echo "$as_me:$LINENO: checking for shmat" >&5
8943 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8944 if test "${ac_cv_func_shmat+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   if test x$gcc_no_link = xyes; then
8948   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8950    { (exit 1); exit 1; }; }
8951 fi
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8960 #define shmat innocuous_shmat
8961
8962 /* System header to define __stub macros and hopefully few prototypes,
8963     which can conflict with char shmat (); below.
8964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965     <limits.h> exists even on freestanding compilers.  */
8966
8967 #ifdef __STDC__
8968 # include <limits.h>
8969 #else
8970 # include <assert.h>
8971 #endif
8972
8973 #undef shmat
8974
8975 /* Override any gcc2 internal prototype to avoid an error.  */
8976 #ifdef __cplusplus
8977 extern "C"
8978 {
8979 #endif
8980 /* We use char because int might match the return type of a gcc2
8981    builtin and then its argument prototype would still apply.  */
8982 char shmat ();
8983 /* The GNU C library defines this for functions which it implements
8984     to always fail with ENOSYS.  Some functions are actually named
8985     something starting with __ and the normal name is an alias.  */
8986 #if defined (__stub_shmat) || defined (__stub___shmat)
8987 choke me
8988 #else
8989 char (*f) () = shmat;
8990 #endif
8991 #ifdef __cplusplus
8992 }
8993 #endif
8994
8995 int
8996 main ()
8997 {
8998 return f != shmat;
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005   (eval $ac_link) 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -z "$ac_c_werror_flag"
9013                          || test ! -s conftest.err'
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); }; } &&
9019          { ac_try='test -s conftest$ac_exeext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_func_shmat=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 ac_cv_func_shmat=no
9031 fi
9032 rm -f conftest.err conftest.$ac_objext \
9033       conftest$ac_exeext conftest.$ac_ext
9034 fi
9035 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9036 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9037
9038     if test $ac_cv_func_shmat = no; then
9039       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9040 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9041 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9042   echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044   ac_check_lib_save_LIBS=$LIBS
9045 LIBS="-lipc  $LIBS"
9046 if test x$gcc_no_link = xyes; then
9047   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9049    { (exit 1); exit 1; }; }
9050 fi
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057
9058 /* Override any gcc2 internal prototype to avoid an error.  */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 /* We use char because int might match the return type of a gcc2
9063    builtin and then its argument prototype would still apply.  */
9064 char shmat ();
9065 int
9066 main ()
9067 {
9068 shmat ();
9069   ;
9070   return 0;
9071 }
9072 _ACEOF
9073 rm -f conftest.$ac_objext conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075   (eval $ac_link) 2>conftest.er1
9076   ac_status=$?
9077   grep -v '^ *+' conftest.er1 >conftest.err
9078   rm -f conftest.er1
9079   cat conftest.err >&5
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); } &&
9082          { ac_try='test -z "$ac_c_werror_flag"
9083                          || test ! -s conftest.err'
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); }; } &&
9089          { ac_try='test -s conftest$ac_exeext'
9090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091   (eval $ac_try) 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; }; then
9095   ac_cv_lib_ipc_shmat=yes
9096 else
9097   echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 ac_cv_lib_ipc_shmat=no
9101 fi
9102 rm -f conftest.err conftest.$ac_objext \
9103       conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9105 fi
9106 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9107 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9108 if test $ac_cv_lib_ipc_shmat = yes; then
9109   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9110 fi
9111
9112     fi
9113   fi
9114
9115   # Check for libraries that X11R6 Xt/Xaw programs need.
9116   ac_save_LDFLAGS=$LDFLAGS
9117   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9118   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9119   # check for ICE first), but we must link in the order -lSM -lICE or
9120   # we get undefined symbols.  So assume we have SM if we have ICE.
9121   # These have to be linked with before -lX11, unlike the other
9122   # libraries we check for below, so use a different variable.
9123   # John Interrante, Karl Berry
9124   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9125 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9126 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   ac_check_lib_save_LIBS=$LIBS
9130 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9131 if test x$gcc_no_link = xyes; then
9132   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9134    { (exit 1); exit 1; }; }
9135 fi
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142
9143 /* Override any gcc2 internal prototype to avoid an error.  */
9144 #ifdef __cplusplus
9145 extern "C"
9146 #endif
9147 /* We use char because int might match the return type of a gcc2
9148    builtin and then its argument prototype would still apply.  */
9149 char IceConnectionNumber ();
9150 int
9151 main ()
9152 {
9153 IceConnectionNumber ();
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9160   (eval $ac_link) 2>conftest.er1
9161   ac_status=$?
9162   grep -v '^ *+' conftest.er1 >conftest.err
9163   rm -f conftest.er1
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } &&
9167          { ac_try='test -z "$ac_c_werror_flag"
9168                          || test ! -s conftest.err'
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); }; } &&
9174          { ac_try='test -s conftest$ac_exeext'
9175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176   (eval $ac_try) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   ac_cv_lib_ICE_IceConnectionNumber=yes
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_cv_lib_ICE_IceConnectionNumber=no
9186 fi
9187 rm -f conftest.err conftest.$ac_objext \
9188       conftest$ac_exeext conftest.$ac_ext
9189 LIBS=$ac_check_lib_save_LIBS
9190 fi
9191 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9192 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9193 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9194   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9195 fi
9196
9197   LDFLAGS=$ac_save_LDFLAGS
9198
9199 fi
9200
9201
9202 # FIXME: this should be _libs on some hosts.
9203 libsubdir=.libs
9204
9205 # extra LD Flags which are required for targets
9206 case "${host}" in
9207 *-*-darwin[0-7].*)
9208     # For now we have to disable it on darwin[8-9] because it slows down
9209     # the linking phase. A possible bug in ld?
9210     # on Darwin -single_module speeds up loading of the dynamic libraries.
9211     extra_ldflags_libjava=-Wl,-single_module
9212     ;;
9213 esac
9214
9215
9216 # Allow the GC to be disabled.  Can be useful when debugging.
9217 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9218 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9219 # Check whether --enable-java-gc or --disable-java-gc was given.
9220 if test "${enable_java_gc+set}" = set; then
9221   enableval="$enable_java_gc"
9222   GC=$enableval
9223 else
9224   GC=boehm
9225 fi;
9226 GCLIBS=
9227 GCINCS=
9228 GCDEPS=
9229 GCSPEC=
9230 JC1GCSPEC=
9231 GCTESTSPEC=
9232 case "$GC" in
9233  boehm)
9234     echo "$as_me:$LINENO: result: boehm" >&5
9235 echo "${ECHO_T}boehm" >&6
9236     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9237     JC1GCSPEC='-fuse-boehm-gc'
9238     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9239     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9240     GCOBJS=boehm.lo
9241     GCHDR=boehm-gc.h
9242     # The POSIX thread support needs to know this.
9243
9244 cat >>confdefs.h <<\_ACEOF
9245 #define HAVE_BOEHM_GC 1
9246 _ACEOF
9247
9248     ;;
9249  no)
9250     echo "$as_me:$LINENO: result: none" >&5
9251 echo "${ECHO_T}none" >&6
9252     GCHDR=no-gc.h
9253     ;;
9254  *)
9255     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9256 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9257    { (exit 1); exit 1; }; }
9258     ;;
9259 esac
9260
9261
9262
9263
9264
9265
9266           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9267
9268
9269
9270 if test "$GC" = boehm; then
9271   USING_BOEHMGC_TRUE=
9272   USING_BOEHMGC_FALSE='#'
9273 else
9274   USING_BOEHMGC_TRUE='#'
9275   USING_BOEHMGC_FALSE=
9276 fi
9277
9278
9279
9280 if test "$GC" = no; then
9281   USING_NOGC_TRUE=
9282   USING_NOGC_FALSE='#'
9283 else
9284   USING_NOGC_TRUE='#'
9285   USING_NOGC_FALSE=
9286 fi
9287
9288
9289
9290 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9291 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9292 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9293 echo "$as_me:$LINENO: result: $THREADS" >&5
9294 echo "${ECHO_T}$THREADS" >&6
9295
9296 case "$THREADS" in
9297  no | none | single)
9298     THREADS=none
9299     ;;
9300  posix | posix95 | pthreads)
9301     THREADS=posix
9302     case "$host" in
9303      *-*-linux*)
9304
9305 cat >>confdefs.h <<\_ACEOF
9306 #define LINUX_THREADS 1
9307 _ACEOF
9308
9309         ;;
9310     esac
9311     ;;
9312  win32)
9313     ;;
9314  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9315     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9316 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9317    { (exit 1); exit 1; }; }
9318     ;;
9319  *)
9320     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9321 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9322    { (exit 1); exit 1; }; }
9323     ;;
9324 esac
9325
9326 THREADCXXFLAGS=
9327 THREADLDFLAGS=
9328 THREADLIBS=
9329 THREADINCS=
9330 THREADDEPS=
9331 THREADH=
9332 THREADSPEC=
9333 THREADSTARTFILESPEC=
9334 case "$THREADS" in
9335  posix)
9336     case "$host" in
9337      *-*-cygwin*)
9338         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9339         ;;
9340      *-*-freebsd[1234]*)
9341         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9342         # merely adds pthread_* functions) but it does have a -pthread switch
9343         # which is required at link-time to select -lc_r *instead* of -lc.
9344         THREADLDFLAGS=-pthread
9345         # Don't set THREADSPEC here as might be expected since -pthread is
9346         # not processed when found within a spec file, it must come from
9347         # the command line.  For now, the user must provide the -pthread
9348         # switch to link code compiled with gcj.  In future, consider adding
9349         # support for weak references to pthread_* functions ala gthr.h API.
9350         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9351         ;;
9352      *-*-freebsd*)
9353         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9354         # systems which support threads and -lpthread.
9355         THREADLDFLAGS=-pthread
9356         THREADSPEC=-lpthread
9357         ;;
9358      alpha*-dec-osf* | hppa*-hp-hpux*)
9359         THREADCXXFLAGS=-pthread
9360         # boehm-gc needs some functions from librt, so link that too.
9361         THREADLIBS='-lpthread -lrt'
9362         THREADSPEC='-lpthread -lrt'
9363         ;;
9364      *)
9365         THREADLIBS=-lpthread
9366         THREADSPEC=-lpthread
9367         ;;
9368     esac
9369     THREADH=posix-threads.h
9370     # MIT pthreads doesn't seem to have the mutexattr functions.
9371     # But for now we don't check for it.  We just assume you aren't
9372     # using MIT pthreads.
9373
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9376 _ACEOF
9377
9378
9379     # If we're using the Boehm GC, then we happen to know that it
9380     # defines _REENTRANT, so we don't bother.  Eww.
9381     if test "$GC" != boehm; then
9382
9383 cat >>confdefs.h <<\_ACEOF
9384 #define _REENTRANT 1
9385 _ACEOF
9386
9387     fi
9388
9389 cat >>confdefs.h <<\_ACEOF
9390 #define _POSIX_PTHREAD_SEMANTICS 1
9391 _ACEOF
9392
9393     ;;
9394
9395  win32)
9396     THREADH=win32-threads.h
9397     THREADCXXFLAGS=-mthreads
9398     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9399     # But we do not want the executables created to be dependent on
9400     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9401     # exception handling contexts.  The following kludge achieves this effect
9402     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9403     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9404     # A workaround is to explicitly use -mthreads while linking Java programs.
9405     # See PR libgcj/28263.
9406     #
9407     # FIXME: In Java we are able to detect thread death at the end of
9408     # Thread.run() so we should be able to clean up the exception handling
9409     # contexts ourselves.
9410     THREADSTARTFILESPEC='crtmt%O%s'
9411     ;;
9412
9413  none)
9414     THREADH=no-threads.h
9415     ;;
9416 esac
9417           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 if test "$THREADS" = posix; then
9429   USING_POSIX_THREADS_TRUE=
9430   USING_POSIX_THREADS_FALSE='#'
9431 else
9432   USING_POSIX_THREADS_TRUE='#'
9433   USING_POSIX_THREADS_FALSE=
9434 fi
9435
9436
9437
9438 if test "$THREADS" = win32; then
9439   USING_WIN32_THREADS_TRUE=
9440   USING_WIN32_THREADS_FALSE='#'
9441 else
9442   USING_WIN32_THREADS_TRUE='#'
9443   USING_WIN32_THREADS_FALSE=
9444 fi
9445
9446
9447
9448 if test "$THREADS" = none; then
9449   USING_NO_THREADS_TRUE=
9450   USING_NO_THREADS_FALSE='#'
9451 else
9452   USING_NO_THREADS_TRUE='#'
9453   USING_NO_THREADS_FALSE=
9454 fi
9455
9456
9457
9458 if test "$use_libgcj_bc" = yes; then
9459   USE_LIBGCJ_BC_TRUE=
9460   USE_LIBGCJ_BC_FALSE='#'
9461 else
9462   USE_LIBGCJ_BC_TRUE='#'
9463   USE_LIBGCJ_BC_FALSE=
9464 fi
9465
9466
9467 if test -d sysdep; then true; else mkdir sysdep; fi
9468           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9469
9470           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9471
9472           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9473
9474
9475 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9476 if test "$use_libgcj_bc" = yes; then
9477   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9478 fi
9479
9480
9481 HASH_SYNC_SPEC=
9482 # Hash synchronization is only useful with posix threads right now.
9483 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9484    HASH_SYNC_SPEC=-fhash-synchronization
9485
9486 cat >>confdefs.h <<\_ACEOF
9487 #define JV_HASH_SYNCHRONIZATION 1
9488 _ACEOF
9489
9490 fi
9491
9492
9493
9494
9495 if test "$GCC" = yes; then
9496   USING_GCC_TRUE=
9497   USING_GCC_FALSE='#'
9498 else
9499   USING_GCC_TRUE='#'
9500   USING_GCC_FALSE=
9501 fi
9502
9503
9504 # We're in the tree with gcc, and need to include some of its headers.
9505 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9506
9507 if test "x${with_newlib}" = "xyes"; then
9508    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9509    # may not work correctly, because the compiler may not be able to
9510    # link executables.
9511
9512    # We assume newlib.  This lets us hard-code the functions we know
9513    # we'll have.
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_MEMMOVE 1
9517 _ACEOF
9518
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_MEMCPY 1
9522 _ACEOF
9523
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_STRERROR 1
9527 _ACEOF
9528
9529
9530 cat >>confdefs.h <<\_ACEOF
9531 #define HAVE_TIME 1
9532 _ACEOF
9533
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_GMTIME_R 1
9537 _ACEOF
9538
9539
9540 cat >>confdefs.h <<\_ACEOF
9541 #define HAVE_LOCALTIME_R 1
9542 _ACEOF
9543
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_USLEEP_DECL 1
9547 _ACEOF
9548
9549    # This is only for POSIX threads.
9550
9551 cat >>confdefs.h <<\_ACEOF
9552 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9553 _ACEOF
9554
9555    # We also assume we are using gcc, which provides alloca.
9556    cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_ALLOCA 1
9558 _ACEOF
9559
9560
9561    # Assume we do not have getuid and friends.
9562
9563 cat >>confdefs.h <<\_ACEOF
9564 #define NO_GETUID 1
9565 _ACEOF
9566
9567    PLATFORMNET=NoNet
9568 else
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
9599
9600
9601
9602
9603
9604 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9605                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9606                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9607                    nl_langinfo setlocale \
9608                    inet_pton uname inet_ntoa \
9609                    fork execvp pipe sigaction ftruncate mmap \
9610                    getifaddrs
9611 do
9612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9613 echo "$as_me:$LINENO: checking for $ac_func" >&5
9614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9615 if eval "test \"\${$as_ac_var+set}\" = set"; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   if test x$gcc_no_link = xyes; then
9619   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9621    { (exit 1); exit 1; }; }
9622 fi
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h.  */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h.  */
9629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9631 #define $ac_func innocuous_$ac_func
9632
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char $ac_func (); below.
9635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636     <limits.h> exists even on freestanding compilers.  */
9637
9638 #ifdef __STDC__
9639 # include <limits.h>
9640 #else
9641 # include <assert.h>
9642 #endif
9643
9644 #undef $ac_func
9645
9646 /* Override any gcc2 internal prototype to avoid an error.  */
9647 #ifdef __cplusplus
9648 extern "C"
9649 {
9650 #endif
9651 /* We use char because int might match the return type of a gcc2
9652    builtin and then its argument prototype would still apply.  */
9653 char $ac_func ();
9654 /* The GNU C library defines this for functions which it implements
9655     to always fail with ENOSYS.  Some functions are actually named
9656     something starting with __ and the normal name is an alias.  */
9657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9658 choke me
9659 #else
9660 char (*f) () = $ac_func;
9661 #endif
9662 #ifdef __cplusplus
9663 }
9664 #endif
9665
9666 int
9667 main ()
9668 {
9669 return f != $ac_func;
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   eval "$as_ac_var=yes"
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 eval "$as_ac_var=no"
9702 fi
9703 rm -f conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 fi
9706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9708 if test `eval echo '${'$as_ac_var'}'` = yes; then
9709   cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9711 _ACEOF
9712
9713 fi
9714 done
9715
9716
9717
9718 for ac_func in inet_aton inet_addr
9719 do
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   if test x$gcc_no_link = xyes; then
9727   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9729    { (exit 1); exit 1; }; }
9730 fi
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9739 #define $ac_func innocuous_$ac_func
9740
9741 /* System header to define __stub macros and hopefully few prototypes,
9742     which can conflict with char $ac_func (); below.
9743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9744     <limits.h> exists even on freestanding compilers.  */
9745
9746 #ifdef __STDC__
9747 # include <limits.h>
9748 #else
9749 # include <assert.h>
9750 #endif
9751
9752 #undef $ac_func
9753
9754 /* Override any gcc2 internal prototype to avoid an error.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 {
9758 #endif
9759 /* We use char because int might match the return type of a gcc2
9760    builtin and then its argument prototype would still apply.  */
9761 char $ac_func ();
9762 /* The GNU C library defines this for functions which it implements
9763     to always fail with ENOSYS.  Some functions are actually named
9764     something starting with __ and the normal name is an alias.  */
9765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9766 choke me
9767 #else
9768 char (*f) () = $ac_func;
9769 #endif
9770 #ifdef __cplusplus
9771 }
9772 #endif
9773
9774 int
9775 main ()
9776 {
9777 return f != $ac_func;
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784   (eval $ac_link) 2>conftest.er1
9785   ac_status=$?
9786   grep -v '^ *+' conftest.er1 >conftest.err
9787   rm -f conftest.er1
9788   cat conftest.err >&5
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } &&
9791          { ac_try='test -z "$ac_c_werror_flag"
9792                          || test ! -s conftest.err'
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); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   eval "$as_ac_var=yes"
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 eval "$as_ac_var=no"
9810 fi
9811 rm -f conftest.err conftest.$ac_objext \
9812       conftest$ac_exeext conftest.$ac_ext
9813 fi
9814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9816 if test `eval echo '${'$as_ac_var'}'` = yes; then
9817   cat >>confdefs.h <<_ACEOF
9818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9819 _ACEOF
9820  break
9821 fi
9822 done
9823
9824    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9826 if test "${ac_cv_header_stdc+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835 #include <stdlib.h>
9836 #include <stdarg.h>
9837 #include <string.h>
9838 #include <float.h>
9839
9840 int
9841 main ()
9842 {
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
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); }; } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_header_stdc=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_cv_header_stdc=no
9876 fi
9877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878
9879 if test $ac_cv_header_stdc = yes; then
9880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9881   cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887 #include <string.h>
9888
9889 _ACEOF
9890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9891   $EGREP "memchr" >/dev/null 2>&1; then
9892   :
9893 else
9894   ac_cv_header_stdc=no
9895 fi
9896 rm -f conftest*
9897
9898 fi
9899
9900 if test $ac_cv_header_stdc = yes; then
9901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9902   cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908 #include <stdlib.h>
9909
9910 _ACEOF
9911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9912   $EGREP "free" >/dev/null 2>&1; then
9913   :
9914 else
9915   ac_cv_header_stdc=no
9916 fi
9917 rm -f conftest*
9918
9919 fi
9920
9921 if test $ac_cv_header_stdc = yes; then
9922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9923   if test "$cross_compiling" = yes; then
9924   :
9925 else
9926   cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932 #include <ctype.h>
9933 #if ((' ' & 0x0FF) == 0x020)
9934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9936 #else
9937 # define ISLOWER(c) \
9938                    (('a' <= (c) && (c) <= 'i') \
9939                      || ('j' <= (c) && (c) <= 'r') \
9940                      || ('s' <= (c) && (c) <= 'z'))
9941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9942 #endif
9943
9944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9945 int
9946 main ()
9947 {
9948   int i;
9949   for (i = 0; i < 256; i++)
9950     if (XOR (islower (i), ISLOWER (i))
9951         || toupper (i) != TOUPPER (i))
9952       exit(2);
9953   exit (0);
9954 }
9955 _ACEOF
9956 rm -f conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   :
9968 else
9969   echo "$as_me: program exited with status $ac_status" >&5
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ( exit $ac_status )
9974 ac_cv_header_stdc=no
9975 fi
9976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9977 fi
9978 fi
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9981 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9982 if test $ac_cv_header_stdc = yes; then
9983
9984 cat >>confdefs.h <<\_ACEOF
9985 #define STDC_HEADERS 1
9986 _ACEOF
9987
9988 fi
9989
9990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10001                   inttypes.h stdint.h unistd.h
10002 do
10003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10004 echo "$as_me:$LINENO: checking for $ac_header" >&5
10005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10007   echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 $ac_includes_default
10016
10017 #include <$ac_header>
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10021   (eval $ac_compile) 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag"
10029                          || test ! -s conftest.err'
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); }; } &&
10035          { ac_try='test -s conftest.$ac_objext'
10036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037   (eval $ac_try) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; }; then
10041   eval "$as_ac_Header=yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 eval "$as_ac_Header=no"
10047 fi
10048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 fi
10050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10053   cat >>confdefs.h <<_ACEOF
10054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10055 _ACEOF
10056
10057 fi
10058
10059 done
10060
10061
10062
10063
10064
10065 for ac_header in execinfo.h unistd.h dlfcn.h
10066 do
10067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10069   echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 fi
10074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10076 else
10077   # Is the header compilable?
10078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086 $ac_includes_default
10087 #include <$ac_header>
10088 _ACEOF
10089 rm -f conftest.$ac_objext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10091   (eval $ac_compile) 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag"
10099                          || test ! -s conftest.err'
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); }; } &&
10105          { ac_try='test -s conftest.$ac_objext'
10106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107   (eval $ac_try) 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; }; then
10111   ac_header_compiler=yes
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_header_compiler=no
10117 fi
10118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10120 echo "${ECHO_T}$ac_header_compiler" >&6
10121
10122 # Is the header present?
10123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 #include <$ac_header>
10132 _ACEOF
10133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } >/dev/null; then
10141   if test -s conftest.err; then
10142     ac_cpp_err=$ac_c_preproc_warn_flag
10143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10144   else
10145     ac_cpp_err=
10146   fi
10147 else
10148   ac_cpp_err=yes
10149 fi
10150 if test -z "$ac_cpp_err"; then
10151   ac_header_preproc=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156   ac_header_preproc=no
10157 fi
10158 rm -f conftest.err conftest.$ac_ext
10159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10160 echo "${ECHO_T}$ac_header_preproc" >&6
10161
10162 # So?  What about this header?
10163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10164   yes:no: )
10165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10169     ac_header_preproc=yes
10170     ;;
10171   no:yes:* )
10172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10184     (
10185       cat <<\_ASBOX
10186 ## ---------------------------------- ##
10187 ## Report this to the libjava lists.  ##
10188 ## ---------------------------------- ##
10189 _ASBOX
10190     ) |
10191       sed "s/^/$as_me: WARNING:     /" >&2
10192     ;;
10193 esac
10194 echo "$as_me:$LINENO: checking for $ac_header" >&5
10195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   eval "$as_ac_Header=\$ac_header_preproc"
10200 fi
10201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10203
10204 fi
10205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10206   cat >>confdefs.h <<_ACEOF
10207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10208 _ACEOF
10209
10210 fi
10211
10212 done
10213
10214    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10215    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10216 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10217 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-ldl  $LIBS"
10222 if test x$gcc_no_link = xyes; then
10223   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10225    { (exit 1); exit 1; }; }
10226 fi
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h.  */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h.  */
10233
10234 /* Override any gcc2 internal prototype to avoid an error.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 /* We use char because int might match the return type of a gcc2
10239    builtin and then its argument prototype would still apply.  */
10240 char dladdr ();
10241 int
10242 main ()
10243 {
10244 dladdr ();
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } &&
10258          { ac_try='test -z "$ac_c_werror_flag"
10259                          || test ! -s conftest.err'
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); }; } &&
10265          { ac_try='test -s conftest$ac_exeext'
10266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267   (eval $ac_try) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271   ac_cv_lib_dl_dladdr=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_cv_lib_dl_dladdr=no
10277 fi
10278 rm -f conftest.err conftest.$ac_objext \
10279       conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10281 fi
10282 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10283 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10284 if test $ac_cv_lib_dl_dladdr = yes; then
10285
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_DLADDR 1
10289 _ACEOF
10290
10291 else
10292
10293        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10294 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10295 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-ldld  $LIBS"
10300 if test x$gcc_no_link = xyes; then
10301   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10303    { (exit 1); exit 1; }; }
10304 fi
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311
10312 /* Override any gcc2 internal prototype to avoid an error.  */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 /* We use char because int might match the return type of a gcc2
10317    builtin and then its argument prototype would still apply.  */
10318 char dladdr ();
10319 int
10320 main ()
10321 {
10322 dladdr ();
10323   ;
10324   return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329   (eval $ac_link) 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } &&
10336          { ac_try='test -z "$ac_c_werror_flag"
10337                          || test ! -s conftest.err'
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); }; } &&
10343          { ac_try='test -s conftest$ac_exeext'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; }; then
10349   ac_cv_lib_dld_dladdr=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 ac_cv_lib_dld_dladdr=no
10355 fi
10356 rm -f conftest.err conftest.$ac_objext \
10357       conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10359 fi
10360 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10361 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10362 if test $ac_cv_lib_dld_dladdr = yes; then
10363
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_DLADDR 1
10367 _ACEOF
10368
10369 fi
10370
10371 fi
10372
10373
10374    if test x"$cross_compiling" = x"no"; then
10375      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10376 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10377 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   test "$cross_compiling" = yes &&
10381   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10382 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10383    { (exit 1); exit 1; }; }
10384 if test -r "/proc/self/exe"; then
10385   ac_cv_file__proc_self_exe=yes
10386 else
10387   ac_cv_file__proc_self_exe=no
10388 fi
10389 fi
10390 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10391 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10392 if test $ac_cv_file__proc_self_exe = yes; then
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE__PROC_SELF_EXE 1
10396 _ACEOF
10397
10398
10399
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_PROC_SELF_EXE 1
10402 _ACEOF
10403
10404 fi
10405
10406      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
10407 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
10408 if test "${ac_cv_file__proc_self_maps+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   test "$cross_compiling" = yes &&
10412   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10413 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10414    { (exit 1); exit 1; }; }
10415 if test -r "/proc/self/maps"; then
10416   ac_cv_file__proc_self_maps=yes
10417 else
10418   ac_cv_file__proc_self_maps=no
10419 fi
10420 fi
10421 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
10422 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
10423 if test $ac_cv_file__proc_self_maps = yes; then
10424
10425 cat >>confdefs.h <<_ACEOF
10426 #define HAVE__PROC_SELF_MAPS 1
10427 _ACEOF
10428
10429
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_PROC_SELF_MAPS 1
10433 _ACEOF
10434
10435 fi
10436
10437    else
10438      case $host in
10439      *-linux*)
10440
10441 cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_PROC_SELF_EXE 1
10443 _ACEOF
10444
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_PROC_SELF_MAPS 1
10448 _ACEOF
10449
10450        ;;
10451      esac
10452    fi
10453
10454
10455       if test "X$prefix" = "XNONE"; then
10456     acl_final_prefix="$ac_default_prefix"
10457   else
10458     acl_final_prefix="$prefix"
10459   fi
10460   if test "X$exec_prefix" = "XNONE"; then
10461     acl_final_exec_prefix='${prefix}'
10462   else
10463     acl_final_exec_prefix="$exec_prefix"
10464   fi
10465   acl_save_prefix="$prefix"
10466   prefix="$acl_final_prefix"
10467   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10468   prefix="$acl_save_prefix"
10469
10470
10471 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10472 if test "${with_gnu_ld+set}" = set; then
10473   withval="$with_gnu_ld"
10474   test "$withval" = no || with_gnu_ld=yes
10475 else
10476   with_gnu_ld=no
10477 fi;
10478 # Prepare PATH_SEPARATOR.
10479 # The user is always right.
10480 if test "${PATH_SEPARATOR+set}" != set; then
10481   echo "#! /bin/sh" >conf$$.sh
10482   echo  "exit 0"   >>conf$$.sh
10483   chmod +x conf$$.sh
10484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10485     PATH_SEPARATOR=';'
10486   else
10487     PATH_SEPARATOR=:
10488   fi
10489   rm -f conf$$.sh
10490 fi
10491 ac_prog=ld
10492 if test "$GCC" = yes; then
10493   # Check if gcc -print-prog-name=ld gives a path.
10494   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10495 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10496   case $host in
10497   *-*-mingw*)
10498     # gcc leaves a trailing carriage return which upsets mingw
10499     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10500   *)
10501     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10502   esac
10503   case $ac_prog in
10504     # Accept absolute paths.
10505     [\\/]* | [A-Za-z]:[\\/]*)
10506       re_direlt='/[^/][^/]*/\.\./'
10507       # Canonicalize the path of ld
10508       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10509       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10510         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10511       done
10512       test -z "$LD" && LD="$ac_prog"
10513       ;;
10514   "")
10515     # If it fails, then pretend we aren't using GCC.
10516     ac_prog=ld
10517     ;;
10518   *)
10519     # If it is relative, then search for the first ld in PATH.
10520     with_gnu_ld=unknown
10521     ;;
10522   esac
10523 elif test "$with_gnu_ld" = yes; then
10524   echo "$as_me:$LINENO: checking for GNU ld" >&5
10525 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10526 else
10527   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10528 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10529 fi
10530 if test "${acl_cv_path_LD+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   if test -z "$LD"; then
10534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10535   for ac_dir in $PATH; do
10536     test -z "$ac_dir" && ac_dir=.
10537     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10538       acl_cv_path_LD="$ac_dir/$ac_prog"
10539       # Check to see if the program is GNU ld.  I'd rather use --version,
10540       # but apparently some GNU ld's only accept -v.
10541       # Break only if it was the GNU/non-GNU ld that we prefer.
10542       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10543         test "$with_gnu_ld" != no && break
10544       else
10545         test "$with_gnu_ld" != yes && break
10546       fi
10547     fi
10548   done
10549   IFS="$ac_save_ifs"
10550 else
10551   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10552 fi
10553 fi
10554
10555 LD="$acl_cv_path_LD"
10556 if test -n "$LD"; then
10557   echo "$as_me:$LINENO: result: $LD" >&5
10558 echo "${ECHO_T}$LD" >&6
10559 else
10560   echo "$as_me:$LINENO: result: no" >&5
10561 echo "${ECHO_T}no" >&6
10562 fi
10563 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10564 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10565    { (exit 1); exit 1; }; }
10566 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10567 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10568 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10572 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10573   acl_cv_prog_gnu_ld=yes
10574 else
10575   acl_cv_prog_gnu_ld=no
10576 fi
10577 fi
10578 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10579 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10580 with_gnu_ld=$acl_cv_prog_gnu_ld
10581
10582
10583
10584                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10585 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10586 if test "${acl_cv_rpath+set}" = set; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589
10590     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10591     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10592     . ./conftest.sh
10593     rm -f ./conftest.sh
10594     acl_cv_rpath=done
10595
10596 fi
10597 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10598 echo "${ECHO_T}$acl_cv_rpath" >&6
10599   wl="$acl_cv_wl"
10600   libext="$acl_cv_libext"
10601   shlibext="$acl_cv_shlibext"
10602   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10603   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10604   hardcode_direct="$acl_cv_hardcode_direct"
10605   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10606     # Check whether --enable-rpath or --disable-rpath was given.
10607 if test "${enable_rpath+set}" = set; then
10608   enableval="$enable_rpath"
10609   :
10610 else
10611   enable_rpath=yes
10612 fi;
10613
10614
10615
10616
10617
10618
10619
10620     use_additional=yes
10621
10622   acl_save_prefix="$prefix"
10623   prefix="$acl_final_prefix"
10624   acl_save_exec_prefix="$exec_prefix"
10625   exec_prefix="$acl_final_exec_prefix"
10626
10627     eval additional_includedir=\"$includedir\"
10628     eval additional_libdir=\"$libdir\"
10629
10630   exec_prefix="$acl_save_exec_prefix"
10631   prefix="$acl_save_prefix"
10632
10633
10634 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10635 if test "${with_libiconv_prefix+set}" = set; then
10636   withval="$with_libiconv_prefix"
10637
10638     if test "X$withval" = "Xno"; then
10639       use_additional=no
10640     else
10641       if test "X$withval" = "X"; then
10642
10643   acl_save_prefix="$prefix"
10644   prefix="$acl_final_prefix"
10645   acl_save_exec_prefix="$exec_prefix"
10646   exec_prefix="$acl_final_exec_prefix"
10647
10648           eval additional_includedir=\"$includedir\"
10649           eval additional_libdir=\"$libdir\"
10650
10651   exec_prefix="$acl_save_exec_prefix"
10652   prefix="$acl_save_prefix"
10653
10654       else
10655         additional_includedir="$withval/include"
10656         additional_libdir="$withval/lib"
10657       fi
10658     fi
10659
10660 fi;
10661       LIBICONV=
10662   LTLIBICONV=
10663   INCICONV=
10664   rpathdirs=
10665   ltrpathdirs=
10666   names_already_handled=
10667   names_next_round='iconv '
10668   while test -n "$names_next_round"; do
10669     names_this_round="$names_next_round"
10670     names_next_round=
10671     for name in $names_this_round; do
10672       already_handled=
10673       for n in $names_already_handled; do
10674         if test "$n" = "$name"; then
10675           already_handled=yes
10676           break
10677         fi
10678       done
10679       if test -z "$already_handled"; then
10680         names_already_handled="$names_already_handled $name"
10681                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10682         eval value=\"\$HAVE_LIB$uppername\"
10683         if test -n "$value"; then
10684           if test "$value" = yes; then
10685             eval value=\"\$LIB$uppername\"
10686             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10687             eval value=\"\$LTLIB$uppername\"
10688             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10689           else
10690                                     :
10691           fi
10692         else
10693                               found_dir=
10694           found_la=
10695           found_so=
10696           found_a=
10697           if test $use_additional = yes; then
10698             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10699               found_dir="$additional_libdir"
10700               found_so="$additional_libdir/lib$name.$shlibext"
10701               if test -f "$additional_libdir/lib$name.la"; then
10702                 found_la="$additional_libdir/lib$name.la"
10703               fi
10704             else
10705               if test -f "$additional_libdir/lib$name.$libext"; then
10706                 found_dir="$additional_libdir"
10707                 found_a="$additional_libdir/lib$name.$libext"
10708                 if test -f "$additional_libdir/lib$name.la"; then
10709                   found_la="$additional_libdir/lib$name.la"
10710                 fi
10711               fi
10712             fi
10713           fi
10714           if test "X$found_dir" = "X"; then
10715             for x in $LDFLAGS $LTLIBICONV; do
10716
10717   acl_save_prefix="$prefix"
10718   prefix="$acl_final_prefix"
10719   acl_save_exec_prefix="$exec_prefix"
10720   exec_prefix="$acl_final_exec_prefix"
10721   eval x=\"$x\"
10722   exec_prefix="$acl_save_exec_prefix"
10723   prefix="$acl_save_prefix"
10724
10725               case "$x" in
10726                 -L*)
10727                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10728                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10729                     found_dir="$dir"
10730                     found_so="$dir/lib$name.$shlibext"
10731                     if test -f "$dir/lib$name.la"; then
10732                       found_la="$dir/lib$name.la"
10733                     fi
10734                   else
10735                     if test -f "$dir/lib$name.$libext"; then
10736                       found_dir="$dir"
10737                       found_a="$dir/lib$name.$libext"
10738                       if test -f "$dir/lib$name.la"; then
10739                         found_la="$dir/lib$name.la"
10740                       fi
10741                     fi
10742                   fi
10743                   ;;
10744               esac
10745               if test "X$found_dir" != "X"; then
10746                 break
10747               fi
10748             done
10749           fi
10750           if test "X$found_dir" != "X"; then
10751                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10752             if test "X$found_so" != "X"; then
10753                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10754                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10755               else
10756                                                                                 haveit=
10757                 for x in $ltrpathdirs; do
10758                   if test "X$x" = "X$found_dir"; then
10759                     haveit=yes
10760                     break
10761                   fi
10762                 done
10763                 if test -z "$haveit"; then
10764                   ltrpathdirs="$ltrpathdirs $found_dir"
10765                 fi
10766                                 if test "$hardcode_direct" = yes; then
10767                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10768                 else
10769                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10770                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10771                                                             haveit=
10772                     for x in $rpathdirs; do
10773                       if test "X$x" = "X$found_dir"; then
10774                         haveit=yes
10775                         break
10776                       fi
10777                     done
10778                     if test -z "$haveit"; then
10779                       rpathdirs="$rpathdirs $found_dir"
10780                     fi
10781                   else
10782                                                                                 haveit=
10783                     for x in $LDFLAGS $LIBICONV; do
10784
10785   acl_save_prefix="$prefix"
10786   prefix="$acl_final_prefix"
10787   acl_save_exec_prefix="$exec_prefix"
10788   exec_prefix="$acl_final_exec_prefix"
10789   eval x=\"$x\"
10790   exec_prefix="$acl_save_exec_prefix"
10791   prefix="$acl_save_prefix"
10792
10793                       if test "X$x" = "X-L$found_dir"; then
10794                         haveit=yes
10795                         break
10796                       fi
10797                     done
10798                     if test -z "$haveit"; then
10799                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10800                     fi
10801                     if test "$hardcode_minus_L" != no; then
10802                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10803                     else
10804                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10805                     fi
10806                   fi
10807                 fi
10808               fi
10809             else
10810               if test "X$found_a" != "X"; then
10811                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10812               else
10813                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10814               fi
10815             fi
10816                         additional_includedir=
10817             case "$found_dir" in
10818               */lib | */lib/)
10819                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10820                 additional_includedir="$basedir/include"
10821                 ;;
10822             esac
10823             if test "X$additional_includedir" != "X"; then
10824                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10825                 haveit=
10826                 if test "X$additional_includedir" = "X/usr/local/include"; then
10827                   if test -n "$GCC"; then
10828                     case $host_os in
10829                       linux*) haveit=yes;;
10830                     esac
10831                   fi
10832                 fi
10833                 if test -z "$haveit"; then
10834                   for x in $CPPFLAGS $INCICONV; do
10835
10836   acl_save_prefix="$prefix"
10837   prefix="$acl_final_prefix"
10838   acl_save_exec_prefix="$exec_prefix"
10839   exec_prefix="$acl_final_exec_prefix"
10840   eval x=\"$x\"
10841   exec_prefix="$acl_save_exec_prefix"
10842   prefix="$acl_save_prefix"
10843
10844                     if test "X$x" = "X-I$additional_includedir"; then
10845                       haveit=yes
10846                       break
10847                     fi
10848                   done
10849                   if test -z "$haveit"; then
10850                     if test -d "$additional_includedir"; then
10851                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10852                     fi
10853                   fi
10854                 fi
10855               fi
10856             fi
10857                         if test -n "$found_la"; then
10858                                                         save_libdir="$libdir"
10859               case "$found_la" in
10860                 */* | *\\*) . "$found_la" ;;
10861                 *) . "./$found_la" ;;
10862               esac
10863               libdir="$save_libdir"
10864                             for dep in $dependency_libs; do
10865                 case "$dep" in
10866                   -L*)
10867                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10868                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10869                       haveit=
10870                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10871                         if test -n "$GCC"; then
10872                           case $host_os in
10873                             linux*) haveit=yes;;
10874                           esac
10875                         fi
10876                       fi
10877                       if test -z "$haveit"; then
10878                         haveit=
10879                         for x in $LDFLAGS $LIBICONV; do
10880
10881   acl_save_prefix="$prefix"
10882   prefix="$acl_final_prefix"
10883   acl_save_exec_prefix="$exec_prefix"
10884   exec_prefix="$acl_final_exec_prefix"
10885   eval x=\"$x\"
10886   exec_prefix="$acl_save_exec_prefix"
10887   prefix="$acl_save_prefix"
10888
10889                           if test "X$x" = "X-L$additional_libdir"; then
10890                             haveit=yes
10891                             break
10892                           fi
10893                         done
10894                         if test -z "$haveit"; then
10895                           if test -d "$additional_libdir"; then
10896                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10897                           fi
10898                         fi
10899                         haveit=
10900                         for x in $LDFLAGS $LTLIBICONV; do
10901
10902   acl_save_prefix="$prefix"
10903   prefix="$acl_final_prefix"
10904   acl_save_exec_prefix="$exec_prefix"
10905   exec_prefix="$acl_final_exec_prefix"
10906   eval x=\"$x\"
10907   exec_prefix="$acl_save_exec_prefix"
10908   prefix="$acl_save_prefix"
10909
10910                           if test "X$x" = "X-L$additional_libdir"; then
10911                             haveit=yes
10912                             break
10913                           fi
10914                         done
10915                         if test -z "$haveit"; then
10916                           if test -d "$additional_libdir"; then
10917                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10918                           fi
10919                         fi
10920                       fi
10921                     fi
10922                     ;;
10923                   -R*)
10924                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10925                     if test "$enable_rpath" != no; then
10926                                                                   haveit=
10927                       for x in $rpathdirs; do
10928                         if test "X$x" = "X$dir"; then
10929                           haveit=yes
10930                           break
10931                         fi
10932                       done
10933                       if test -z "$haveit"; then
10934                         rpathdirs="$rpathdirs $dir"
10935                       fi
10936                                                                   haveit=
10937                       for x in $ltrpathdirs; do
10938                         if test "X$x" = "X$dir"; then
10939                           haveit=yes
10940                           break
10941                         fi
10942                       done
10943                       if test -z "$haveit"; then
10944                         ltrpathdirs="$ltrpathdirs $dir"
10945                       fi
10946                     fi
10947                     ;;
10948                   -l*)
10949                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10950                     ;;
10951                   *.la)
10952                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10953                     ;;
10954                   *)
10955                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10956                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10957                     ;;
10958                 esac
10959               done
10960             fi
10961           else
10962                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10963             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10964           fi
10965         fi
10966       fi
10967     done
10968   done
10969   if test "X$rpathdirs" != "X"; then
10970     if test -n "$hardcode_libdir_separator"; then
10971                         alldirs=
10972       for found_dir in $rpathdirs; do
10973         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10974       done
10975             acl_save_libdir="$libdir"
10976       libdir="$alldirs"
10977       eval flag=\"$hardcode_libdir_flag_spec\"
10978       libdir="$acl_save_libdir"
10979       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10980     else
10981             for found_dir in $rpathdirs; do
10982         acl_save_libdir="$libdir"
10983         libdir="$found_dir"
10984         eval flag=\"$hardcode_libdir_flag_spec\"
10985         libdir="$acl_save_libdir"
10986         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10987       done
10988     fi
10989   fi
10990   if test "X$ltrpathdirs" != "X"; then
10991             for found_dir in $ltrpathdirs; do
10992       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10993     done
10994   fi
10995
10996
10997
10998
10999
11000
11001
11002           am_save_CPPFLAGS="$CPPFLAGS"
11003
11004   for element in $INCICONV; do
11005     haveit=
11006     for x in $CPPFLAGS; do
11007
11008   acl_save_prefix="$prefix"
11009   prefix="$acl_final_prefix"
11010   acl_save_exec_prefix="$exec_prefix"
11011   exec_prefix="$acl_final_exec_prefix"
11012   eval x=\"$x\"
11013   exec_prefix="$acl_save_exec_prefix"
11014   prefix="$acl_save_prefix"
11015
11016       if test "X$x" = "X$element"; then
11017         haveit=yes
11018         break
11019       fi
11020     done
11021     if test -z "$haveit"; then
11022       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11023     fi
11024   done
11025
11026
11027   echo "$as_me:$LINENO: checking for iconv" >&5
11028 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11029 if test "${am_cv_func_iconv+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032
11033     am_cv_func_iconv="no, consider installing GNU libiconv"
11034     am_cv_lib_iconv=no
11035     if test x$gcc_no_link = xyes; then
11036   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11038    { (exit 1); exit 1; }; }
11039 fi
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 #include <stdlib.h>
11047 #include <iconv.h>
11048 int
11049 main ()
11050 {
11051 iconv_t cd = iconv_open("","");
11052        iconv(cd,NULL,NULL,NULL,NULL);
11053        iconv_close(cd);
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11060   (eval $ac_link) 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -z "$ac_c_werror_flag"
11068                          || test ! -s conftest.err'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest$ac_exeext'
11075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076   (eval $ac_try) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   am_cv_func_iconv=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 fi
11086 rm -f conftest.err conftest.$ac_objext \
11087       conftest$ac_exeext conftest.$ac_ext
11088     if test "$am_cv_func_iconv" != yes; then
11089       am_save_LIBS="$LIBS"
11090       LIBS="$LIBS $LIBICONV"
11091       if test x$gcc_no_link = xyes; then
11092   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11094    { (exit 1); exit 1; }; }
11095 fi
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 #include <stdlib.h>
11103 #include <iconv.h>
11104 int
11105 main ()
11106 {
11107 iconv_t cd = iconv_open("","");
11108          iconv(cd,NULL,NULL,NULL,NULL);
11109          iconv_close(cd);
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116   (eval $ac_link) 2>conftest.er1
11117   ac_status=$?
11118   grep -v '^ *+' conftest.er1 >conftest.err
11119   rm -f conftest.er1
11120   cat conftest.err >&5
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -z "$ac_c_werror_flag"
11124                          || test ! -s conftest.err'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest$ac_exeext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   am_cv_lib_iconv=yes
11137         am_cv_func_iconv=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 fi
11143 rm -f conftest.err conftest.$ac_objext \
11144       conftest$ac_exeext conftest.$ac_ext
11145       LIBS="$am_save_LIBS"
11146     fi
11147
11148 fi
11149 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11150 echo "${ECHO_T}$am_cv_func_iconv" >&6
11151   if test "$am_cv_func_iconv" = yes; then
11152
11153 cat >>confdefs.h <<\_ACEOF
11154 #define HAVE_ICONV 1
11155 _ACEOF
11156
11157   fi
11158   if test "$am_cv_lib_iconv" = yes; then
11159     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11160 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11161     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11162 echo "${ECHO_T}$LIBICONV" >&6
11163   else
11164             CPPFLAGS="$am_save_CPPFLAGS"
11165     LIBICONV=
11166     LTLIBICONV=
11167   fi
11168
11169
11170
11171   if test "$am_cv_func_iconv" = yes; then
11172     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11173 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11174     if test "${am_cv_proto_iconv+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177
11178       cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h.  */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h.  */
11184
11185 #include <stdlib.h>
11186 #include <iconv.h>
11187 extern
11188 #ifdef __cplusplus
11189 "C"
11190 #endif
11191 #if defined(__STDC__) || defined(__cplusplus)
11192 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11193 #else
11194 size_t iconv();
11195 #endif
11196
11197 int
11198 main ()
11199 {
11200
11201   ;
11202   return 0;
11203 }
11204 _ACEOF
11205 rm -f conftest.$ac_objext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207   (eval $ac_compile) 2>conftest.er1
11208   ac_status=$?
11209   grep -v '^ *+' conftest.er1 >conftest.err
11210   rm -f conftest.er1
11211   cat conftest.err >&5
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } &&
11214          { ac_try='test -z "$ac_c_werror_flag"
11215                          || test ! -s conftest.err'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; } &&
11221          { ac_try='test -s conftest.$ac_objext'
11222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223   (eval $ac_try) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; }; then
11227   am_cv_proto_iconv_arg1=""
11228 else
11229   echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 am_cv_proto_iconv_arg1="const"
11233 fi
11234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11235       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);"
11236 fi
11237
11238     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11239     echo "$as_me:$LINENO: result: ${ac_t:-
11240          }$am_cv_proto_iconv" >&5
11241 echo "${ECHO_T}${ac_t:-
11242          }$am_cv_proto_iconv" >&6
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define ICONV_CONST $am_cv_proto_iconv_arg1
11246 _ACEOF
11247
11248   fi
11249
11250
11251   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11252 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11253 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   if test x$gcc_no_link = xyes; then
11257   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11259    { (exit 1); exit 1; }; }
11260 fi
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 #include <locale.h>
11268 int
11269 main ()
11270 {
11271 return LC_MESSAGES
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } &&
11285          { ac_try='test -z "$ac_c_werror_flag"
11286                          || test ! -s conftest.err'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; } &&
11292          { ac_try='test -s conftest$ac_exeext'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   am_cv_val_LC_MESSAGES=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303 am_cv_val_LC_MESSAGES=no
11304 fi
11305 rm -f conftest.err conftest.$ac_objext \
11306       conftest$ac_exeext conftest.$ac_ext
11307 fi
11308 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11309 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11310   if test $am_cv_val_LC_MESSAGES = yes; then
11311
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_LC_MESSAGES 1
11314 _ACEOF
11315
11316   fi
11317
11318    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11319 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11320 if test "${ac_cv_struct_tm+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329 #include <sys/types.h>
11330 #include <time.h>
11331
11332 int
11333 main ()
11334 {
11335 struct tm *tp; tp->tm_sec;
11336   ;
11337   return 0;
11338 }
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342   (eval $ac_compile) 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } &&
11349          { ac_try='test -z "$ac_c_werror_flag"
11350                          || test ! -s conftest.err'
11351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; } &&
11356          { ac_try='test -s conftest.$ac_objext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   ac_cv_struct_tm=time.h
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_cv_struct_tm=sys/time.h
11368 fi
11369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11370 fi
11371 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11372 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11373 if test $ac_cv_struct_tm = sys/time.h; then
11374
11375 cat >>confdefs.h <<\_ACEOF
11376 #define TM_IN_SYS_TIME 1
11377 _ACEOF
11378
11379 fi
11380
11381 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11382 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11383 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 #include <sys/types.h>
11393 #include <$ac_cv_struct_tm>
11394
11395
11396 int
11397 main ()
11398 {
11399 static struct tm ac_aggr;
11400 if (ac_aggr.tm_zone)
11401 return 0;
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408   (eval $ac_compile) 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -z "$ac_c_werror_flag"
11416                          || test ! -s conftest.err'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; } &&
11422          { ac_try='test -s conftest.$ac_objext'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   ac_cv_member_struct_tm_tm_zone=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 #include <sys/types.h>
11440 #include <$ac_cv_struct_tm>
11441
11442
11443 int
11444 main ()
11445 {
11446 static struct tm ac_aggr;
11447 if (sizeof ac_aggr.tm_zone)
11448 return 0;
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455   (eval $ac_compile) 2>conftest.er1
11456   ac_status=$?
11457   grep -v '^ *+' conftest.er1 >conftest.err
11458   rm -f conftest.er1
11459   cat conftest.err >&5
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); } &&
11462          { ac_try='test -z "$ac_c_werror_flag"
11463                          || test ! -s conftest.err'
11464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465   (eval $ac_try) 2>&5
11466   ac_status=$?
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); }; } &&
11469          { ac_try='test -s conftest.$ac_objext'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   ac_cv_member_struct_tm_tm_zone=yes
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 ac_cv_member_struct_tm_tm_zone=no
11481 fi
11482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483 fi
11484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11485 fi
11486 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11487 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11488 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11489
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_STRUCT_TM_TM_ZONE 1
11492 _ACEOF
11493
11494
11495 fi
11496
11497 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11498
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_TM_ZONE 1
11501 _ACEOF
11502
11503 else
11504   echo "$as_me:$LINENO: checking for tzname" >&5
11505 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11506 if test "${ac_cv_var_tzname+set}" = set; then
11507   echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509   if test x$gcc_no_link = xyes; then
11510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11512    { (exit 1); exit 1; }; }
11513 fi
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 #include <time.h>
11521 #ifndef tzname /* For SGI.  */
11522 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11523 #endif
11524
11525 int
11526 main ()
11527 {
11528 atoi(*tzname);
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535   (eval $ac_link) 2>conftest.er1
11536   ac_status=$?
11537   grep -v '^ *+' conftest.er1 >conftest.err
11538   rm -f conftest.er1
11539   cat conftest.err >&5
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); } &&
11542          { ac_try='test -z "$ac_c_werror_flag"
11543                          || test ! -s conftest.err'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_cv_var_tzname=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_var_tzname=no
11561 fi
11562 rm -f conftest.err conftest.$ac_objext \
11563       conftest$ac_exeext conftest.$ac_ext
11564 fi
11565 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11566 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11567   if test $ac_cv_var_tzname = yes; then
11568
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_TZNAME 1
11571 _ACEOF
11572
11573   fi
11574 fi
11575
11576
11577
11578
11579 for ac_func in gethostbyname_r
11580 do
11581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 echo "$as_me:$LINENO: checking for $ac_func" >&5
11583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_var+set}\" = set"; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   if test x$gcc_no_link = xyes; then
11588   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11590    { (exit 1); exit 1; }; }
11591 fi
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600 #define $ac_func innocuous_$ac_func
11601
11602 /* System header to define __stub macros and hopefully few prototypes,
11603     which can conflict with char $ac_func (); below.
11604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605     <limits.h> exists even on freestanding compilers.  */
11606
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612
11613 #undef $ac_func
11614
11615 /* Override any gcc2 internal prototype to avoid an error.  */
11616 #ifdef __cplusplus
11617 extern "C"
11618 {
11619 #endif
11620 /* We use char because int might match the return type of a gcc2
11621    builtin and then its argument prototype would still apply.  */
11622 char $ac_func ();
11623 /* The GNU C library defines this for functions which it implements
11624     to always fail with ENOSYS.  Some functions are actually named
11625     something starting with __ and the normal name is an alias.  */
11626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11627 choke me
11628 #else
11629 char (*f) () = $ac_func;
11630 #endif
11631 #ifdef __cplusplus
11632 }
11633 #endif
11634
11635 int
11636 main ()
11637 {
11638 return f != $ac_func;
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645   (eval $ac_link) 2>conftest.er1
11646   ac_status=$?
11647   grep -v '^ *+' conftest.er1 >conftest.err
11648   rm -f conftest.er1
11649   cat conftest.err >&5
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } &&
11652          { ac_try='test -z "$ac_c_werror_flag"
11653                          || test ! -s conftest.err'
11654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655   (eval $ac_try) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; } &&
11659          { ac_try='test -s conftest$ac_exeext'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }; then
11665   eval "$as_ac_var=yes"
11666 else
11667   echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 eval "$as_ac_var=no"
11671 fi
11672 rm -f conftest.err conftest.$ac_objext \
11673       conftest$ac_exeext conftest.$ac_ext
11674 fi
11675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678   cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11680 _ACEOF
11681
11682
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_GETHOSTBYNAME_R 1
11685 _ACEOF
11686
11687      # There are two different kinds of gethostbyname_r.
11688      # We look for the one that returns `int'.
11689      # Hopefully this check is robust enough.
11690      cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 #include <netdb.h>
11697
11698 _ACEOF
11699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11700   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11701
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define GETHOSTBYNAME_R_RETURNS_INT 1
11705 _ACEOF
11706
11707 fi
11708 rm -f conftest*
11709
11710
11711      case " $GCINCS " in
11712      *" -D_REENTRANT "*) ;;
11713      *)
11714                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11715 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11716 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719    ac_ext=cc
11720 ac_cpp='$CXXCPP $CPPFLAGS'
11721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11724
11725           cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731 #include <netdb.h>
11732 int
11733 main ()
11734 {
11735 gethostbyname_r("", 0, 0);
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742   (eval $ac_compile) 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_cxx_werror_flag"
11750                          || test ! -s conftest.err'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; } &&
11756          { ac_try='test -s conftest.$ac_objext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   libjava_cv_gethostbyname_r_needs_reentrant=no
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767                 CPPFLAGS_SAVE="$CPPFLAGS"
11768                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11769                 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <netdb.h>
11776 int
11777 main ()
11778 {
11779 gethostbyname_r("", 0, 0);
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786   (eval $ac_compile) 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -z "$ac_cxx_werror_flag"
11794                          || test ! -s conftest.err'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; } &&
11800          { ac_try='test -s conftest.$ac_objext'
11801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802   (eval $ac_try) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; }; then
11806   libjava_cv_gethostbyname_r_needs_reentrant=yes
11807 else
11808   echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11810
11811 libjava_cv_gethostbyname_r_needs_reentrant=fail
11812 fi
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814                 CPPFLAGS="$CPPFLAGS_SAVE"
11815
11816 fi
11817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11818           ac_ext=c
11819 ac_cpp='$CPP $CPPFLAGS'
11820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823
11824
11825 fi
11826 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11827 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11828         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11829
11830 cat >>confdefs.h <<\_ACEOF
11831 #define _REENTRANT 1
11832 _ACEOF
11833
11834         fi
11835      ;;
11836      esac
11837
11838      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11839 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11840 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843         cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11851 # define _REENTRANT 1
11852 #endif
11853 #include <netdb.h>
11854 int
11855 main ()
11856 {
11857 struct hostent_data data;
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864   (eval $ac_compile) 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -z "$ac_c_werror_flag"
11872                          || test ! -s conftest.err'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; } &&
11878          { ac_try='test -s conftest.$ac_objext'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; }; then
11884   libjava_cv_struct_hostent_data=yes
11885 else
11886   echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 libjava_cv_struct_hostent_data=no
11890 fi
11891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11894 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11895      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11896
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_STRUCT_HOSTENT_DATA 1
11899 _ACEOF
11900
11901      fi
11902
11903 fi
11904 done
11905
11906
11907    # FIXME: libjava source code expects to find a prototype for
11908    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11909    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11910    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11911    # linkage check is enough, yet C++ code requires proper prototypes.)
11912    cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918 #include <netdb.h>
11919
11920 _ACEOF
11921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11922   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11923
11924
11925 for ac_func in gethostbyaddr_r
11926 do
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11930 if eval "test \"\${$as_ac_var+set}\" = set"; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   if test x$gcc_no_link = xyes; then
11934   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11936    { (exit 1); exit 1; }; }
11937 fi
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11946 #define $ac_func innocuous_$ac_func
11947
11948 /* System header to define __stub macros and hopefully few prototypes,
11949     which can conflict with char $ac_func (); below.
11950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951     <limits.h> exists even on freestanding compilers.  */
11952
11953 #ifdef __STDC__
11954 # include <limits.h>
11955 #else
11956 # include <assert.h>
11957 #endif
11958
11959 #undef $ac_func
11960
11961 /* Override any gcc2 internal prototype to avoid an error.  */
11962 #ifdef __cplusplus
11963 extern "C"
11964 {
11965 #endif
11966 /* We use char because int might match the return type of a gcc2
11967    builtin and then its argument prototype would still apply.  */
11968 char $ac_func ();
11969 /* The GNU C library defines this for functions which it implements
11970     to always fail with ENOSYS.  Some functions are actually named
11971     something starting with __ and the normal name is an alias.  */
11972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11973 choke me
11974 #else
11975 char (*f) () = $ac_func;
11976 #endif
11977 #ifdef __cplusplus
11978 }
11979 #endif
11980
11981 int
11982 main ()
11983 {
11984 return f != $ac_func;
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11991   (eval $ac_link) 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -z "$ac_c_werror_flag"
11999                          || test ! -s conftest.err'
12000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001   (eval $ac_try) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; } &&
12005          { ac_try='test -s conftest$ac_exeext'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   eval "$as_ac_var=yes"
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017 fi
12018 rm -f conftest.err conftest.$ac_objext \
12019       conftest$ac_exeext conftest.$ac_ext
12020 fi
12021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12023 if test `eval echo '${'$as_ac_var'}'` = yes; then
12024   cat >>confdefs.h <<_ACEOF
12025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12026 _ACEOF
12027
12028
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_GETHOSTBYADDR_R 1
12031 _ACEOF
12032
12033      # There are two different kinds of gethostbyaddr_r.
12034      # We look for the one that returns `int'.
12035      # Hopefully this check is robust enough.
12036      cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 #include <netdb.h>
12043
12044 _ACEOF
12045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12046   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12047
12048
12049 cat >>confdefs.h <<\_ACEOF
12050 #define GETHOSTBYADDR_R_RETURNS_INT 1
12051 _ACEOF
12052
12053 fi
12054 rm -f conftest*
12055
12056 fi
12057 done
12058
12059 fi
12060 rm -f conftest*
12061
12062
12063
12064 for ac_func in gethostname
12065 do
12066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12067 echo "$as_me:$LINENO: checking for $ac_func" >&5
12068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12069 if eval "test \"\${$as_ac_var+set}\" = set"; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072   if test x$gcc_no_link = xyes; then
12073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12075    { (exit 1); exit 1; }; }
12076 fi
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12085 #define $ac_func innocuous_$ac_func
12086
12087 /* System header to define __stub macros and hopefully few prototypes,
12088     which can conflict with char $ac_func (); below.
12089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090     <limits.h> exists even on freestanding compilers.  */
12091
12092 #ifdef __STDC__
12093 # include <limits.h>
12094 #else
12095 # include <assert.h>
12096 #endif
12097
12098 #undef $ac_func
12099
12100 /* Override any gcc2 internal prototype to avoid an error.  */
12101 #ifdef __cplusplus
12102 extern "C"
12103 {
12104 #endif
12105 /* We use char because int might match the return type of a gcc2
12106    builtin and then its argument prototype would still apply.  */
12107 char $ac_func ();
12108 /* The GNU C library defines this for functions which it implements
12109     to always fail with ENOSYS.  Some functions are actually named
12110     something starting with __ and the normal name is an alias.  */
12111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12112 choke me
12113 #else
12114 char (*f) () = $ac_func;
12115 #endif
12116 #ifdef __cplusplus
12117 }
12118 #endif
12119
12120 int
12121 main ()
12122 {
12123 return f != $ac_func;
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130   (eval $ac_link) 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -z "$ac_c_werror_flag"
12138                          || test ! -s conftest.err'
12139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140   (eval $ac_try) 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; } &&
12144          { ac_try='test -s conftest$ac_exeext'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; }; then
12150   eval "$as_ac_var=yes"
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 eval "$as_ac_var=no"
12156 fi
12157 rm -f conftest.err conftest.$ac_objext \
12158       conftest$ac_exeext conftest.$ac_ext
12159 fi
12160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12162 if test `eval echo '${'$as_ac_var'}'` = yes; then
12163   cat >>confdefs.h <<_ACEOF
12164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12165 _ACEOF
12166
12167
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_GETHOSTNAME 1
12170 _ACEOF
12171
12172      cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 #include <unistd.h>
12179
12180 _ACEOF
12181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12182   $EGREP "gethostname" >/dev/null 2>&1; then
12183
12184
12185 cat >>confdefs.h <<\_ACEOF
12186 #define HAVE_GETHOSTNAME_DECL 1
12187 _ACEOF
12188
12189 fi
12190 rm -f conftest*
12191
12192 fi
12193 done
12194
12195
12196
12197 for ac_func in usleep
12198 do
12199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200 echo "$as_me:$LINENO: checking for $ac_func" >&5
12201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12202 if eval "test \"\${$as_ac_var+set}\" = set"; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   if test x$gcc_no_link = xyes; then
12206   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12208    { (exit 1); exit 1; }; }
12209 fi
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12218 #define $ac_func innocuous_$ac_func
12219
12220 /* System header to define __stub macros and hopefully few prototypes,
12221     which can conflict with char $ac_func (); below.
12222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223     <limits.h> exists even on freestanding compilers.  */
12224
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12230
12231 #undef $ac_func
12232
12233 /* Override any gcc2 internal prototype to avoid an error.  */
12234 #ifdef __cplusplus
12235 extern "C"
12236 {
12237 #endif
12238 /* We use char because int might match the return type of a gcc2
12239    builtin and then its argument prototype would still apply.  */
12240 char $ac_func ();
12241 /* The GNU C library defines this for functions which it implements
12242     to always fail with ENOSYS.  Some functions are actually named
12243     something starting with __ and the normal name is an alias.  */
12244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12245 choke me
12246 #else
12247 char (*f) () = $ac_func;
12248 #endif
12249 #ifdef __cplusplus
12250 }
12251 #endif
12252
12253 int
12254 main ()
12255 {
12256 return f != $ac_func;
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263   (eval $ac_link) 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_c_werror_flag"
12271                          || test ! -s conftest.err'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; } &&
12277          { ac_try='test -s conftest$ac_exeext'
12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279   (eval $ac_try) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283   eval "$as_ac_var=yes"
12284 else
12285   echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 eval "$as_ac_var=no"
12289 fi
12290 rm -f conftest.err conftest.$ac_objext \
12291       conftest$ac_exeext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296   cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 _ACEOF
12299
12300      cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 #include <unistd.h>
12307
12308 _ACEOF
12309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310   $EGREP "usleep" >/dev/null 2>&1; then
12311
12312
12313 cat >>confdefs.h <<\_ACEOF
12314 #define HAVE_USLEEP_DECL 1
12315 _ACEOF
12316
12317 fi
12318 rm -f conftest*
12319
12320 fi
12321 done
12322
12323
12324    # Look for these functions in the thread library, but only bother
12325    # if using POSIX threads.
12326    if test "$THREADS" = posix; then
12327       save_LIBS="$LIBS"
12328       LIBS="$LIBS $THREADLIBS"
12329       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12330       # E.g., Solaris.
12331
12332
12333 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12334 do
12335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336 echo "$as_me:$LINENO: checking for $ac_func" >&5
12337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12338 if eval "test \"\${$as_ac_var+set}\" = set"; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   if test x$gcc_no_link = xyes; then
12342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12344    { (exit 1); exit 1; }; }
12345 fi
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12354 #define $ac_func innocuous_$ac_func
12355
12356 /* System header to define __stub macros and hopefully few prototypes,
12357     which can conflict with char $ac_func (); below.
12358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12359     <limits.h> exists even on freestanding compilers.  */
12360
12361 #ifdef __STDC__
12362 # include <limits.h>
12363 #else
12364 # include <assert.h>
12365 #endif
12366
12367 #undef $ac_func
12368
12369 /* Override any gcc2 internal prototype to avoid an error.  */
12370 #ifdef __cplusplus
12371 extern "C"
12372 {
12373 #endif
12374 /* We use char because int might match the return type of a gcc2
12375    builtin and then its argument prototype would still apply.  */
12376 char $ac_func ();
12377 /* The GNU C library defines this for functions which it implements
12378     to always fail with ENOSYS.  Some functions are actually named
12379     something starting with __ and the normal name is an alias.  */
12380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12381 choke me
12382 #else
12383 char (*f) () = $ac_func;
12384 #endif
12385 #ifdef __cplusplus
12386 }
12387 #endif
12388
12389 int
12390 main ()
12391 {
12392 return f != $ac_func;
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399   (eval $ac_link) 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } &&
12406          { ac_try='test -z "$ac_c_werror_flag"
12407                          || test ! -s conftest.err'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; } &&
12413          { ac_try='test -s conftest$ac_exeext'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; }; then
12419   eval "$as_ac_var=yes"
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 eval "$as_ac_var=no"
12425 fi
12426 rm -f conftest.err conftest.$ac_objext \
12427       conftest$ac_exeext conftest.$ac_ext
12428 fi
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432   cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 _ACEOF
12435
12436 fi
12437 done
12438
12439
12440       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12441       # Solaris 7 the name librt is preferred.
12442
12443 for ac_func in sched_yield
12444 do
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_var+set}\" = set"; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   if test x$gcc_no_link = xyes; then
12452   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12453 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12454    { (exit 1); exit 1; }; }
12455 fi
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12464 #define $ac_func innocuous_$ac_func
12465
12466 /* System header to define __stub macros and hopefully few prototypes,
12467     which can conflict with char $ac_func (); below.
12468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12469     <limits.h> exists even on freestanding compilers.  */
12470
12471 #ifdef __STDC__
12472 # include <limits.h>
12473 #else
12474 # include <assert.h>
12475 #endif
12476
12477 #undef $ac_func
12478
12479 /* Override any gcc2 internal prototype to avoid an error.  */
12480 #ifdef __cplusplus
12481 extern "C"
12482 {
12483 #endif
12484 /* We use char because int might match the return type of a gcc2
12485    builtin and then its argument prototype would still apply.  */
12486 char $ac_func ();
12487 /* The GNU C library defines this for functions which it implements
12488     to always fail with ENOSYS.  Some functions are actually named
12489     something starting with __ and the normal name is an alias.  */
12490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12491 choke me
12492 #else
12493 char (*f) () = $ac_func;
12494 #endif
12495 #ifdef __cplusplus
12496 }
12497 #endif
12498
12499 int
12500 main ()
12501 {
12502 return f != $ac_func;
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509   (eval $ac_link) 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -z "$ac_c_werror_flag"
12517                          || test ! -s conftest.err'
12518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; } &&
12523          { ac_try='test -s conftest$ac_exeext'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; }; then
12529   eval "$as_ac_var=yes"
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 eval "$as_ac_var=no"
12535 fi
12536 rm -f conftest.err conftest.$ac_objext \
12537       conftest$ac_exeext conftest.$ac_ext
12538 fi
12539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12541 if test `eval echo '${'$as_ac_var'}'` = yes; then
12542   cat >>confdefs.h <<_ACEOF
12543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12544 _ACEOF
12545
12546 else
12547
12548         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12549 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12550 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12551   echo $ECHO_N "(cached) $ECHO_C" >&6
12552 else
12553   ac_check_lib_save_LIBS=$LIBS
12554 LIBS="-lrt  $LIBS"
12555 if test x$gcc_no_link = xyes; then
12556   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12558    { (exit 1); exit 1; }; }
12559 fi
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566
12567 /* Override any gcc2 internal prototype to avoid an error.  */
12568 #ifdef __cplusplus
12569 extern "C"
12570 #endif
12571 /* We use char because int might match the return type of a gcc2
12572    builtin and then its argument prototype would still apply.  */
12573 char sched_yield ();
12574 int
12575 main ()
12576 {
12577 sched_yield ();
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584   (eval $ac_link) 2>conftest.er1
12585   ac_status=$?
12586   grep -v '^ *+' conftest.er1 >conftest.err
12587   rm -f conftest.er1
12588   cat conftest.err >&5
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); } &&
12591          { ac_try='test -z "$ac_c_werror_flag"
12592                          || test ! -s conftest.err'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; } &&
12598          { ac_try='test -s conftest$ac_exeext'
12599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600   (eval $ac_try) 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; }; then
12604   ac_cv_lib_rt_sched_yield=yes
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609 ac_cv_lib_rt_sched_yield=no
12610 fi
12611 rm -f conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12614 fi
12615 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12616 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12617 if test $ac_cv_lib_rt_sched_yield = yes; then
12618
12619           cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_SCHED_YIELD 1
12621 _ACEOF
12622
12623           THREADLIBS="$THREADLIBS -lrt"
12624           THREADSPEC="$THREADSPEC -lrt"
12625 else
12626
12627           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12628 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12629 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12630   echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632   ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-lposix4  $LIBS"
12634 if test x$gcc_no_link = xyes; then
12635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12637    { (exit 1); exit 1; }; }
12638 fi
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645
12646 /* Override any gcc2 internal prototype to avoid an error.  */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 /* We use char because int might match the return type of a gcc2
12651    builtin and then its argument prototype would still apply.  */
12652 char sched_yield ();
12653 int
12654 main ()
12655 {
12656 sched_yield ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12663   (eval $ac_link) 2>conftest.er1
12664   ac_status=$?
12665   grep -v '^ *+' conftest.er1 >conftest.err
12666   rm -f conftest.er1
12667   cat conftest.err >&5
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -z "$ac_c_werror_flag"
12671                          || test ! -s conftest.err'
12672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673   (eval $ac_try) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; } &&
12677          { ac_try='test -s conftest$ac_exeext'
12678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679   (eval $ac_try) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683   ac_cv_lib_posix4_sched_yield=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_cv_lib_posix4_sched_yield=no
12689 fi
12690 rm -f conftest.err conftest.$ac_objext \
12691       conftest$ac_exeext conftest.$ac_ext
12692 LIBS=$ac_check_lib_save_LIBS
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12695 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12696 if test $ac_cv_lib_posix4_sched_yield = yes; then
12697
12698             cat >>confdefs.h <<\_ACEOF
12699 #define HAVE_SCHED_YIELD 1
12700 _ACEOF
12701
12702             THREADLIBS="$THREADLIBS -lposix4"
12703             THREADSPEC="$THREADSPEC -lposix4"
12704 fi
12705
12706 fi
12707
12708 fi
12709 done
12710
12711
12712       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12713 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12714 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-lrt  $LIBS"
12719 if test x$gcc_no_link = xyes; then
12720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12722    { (exit 1); exit 1; }; }
12723 fi
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730
12731 /* Override any gcc2 internal prototype to avoid an error.  */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 /* We use char because int might match the return type of a gcc2
12736    builtin and then its argument prototype would still apply.  */
12737 char clock_gettime ();
12738 int
12739 main ()
12740 {
12741 clock_gettime ();
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -z "$ac_c_werror_flag"
12756                          || test ! -s conftest.err'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; } &&
12762          { ac_try='test -s conftest$ac_exeext'
12763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764   (eval $ac_try) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); }; }; then
12768   ac_cv_lib_rt_clock_gettime=yes
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 ac_cv_lib_rt_clock_gettime=no
12774 fi
12775 rm -f conftest.err conftest.$ac_objext \
12776       conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12778 fi
12779 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12780 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12781 if test $ac_cv_lib_rt_clock_gettime = yes; then
12782
12783
12784 cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_CLOCK_GETTIME 1
12786 _ACEOF
12787
12788          case "$THREADSPEC" in
12789            *-lrt*) ;;
12790            *)
12791              THREADSPEC="$THREADSPEC -lrt"
12792              THREADLIBS="$THREADLIBS -lrt"
12793              ;;
12794          esac
12795 fi
12796
12797
12798       LIBS="$save_LIBS"
12799
12800       # We can save a little space at runtime if the mutex has m_count
12801       # or __m_count.  This is a nice hack for Linux.
12802       cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h.  */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h.  */
12808 #include <pthread.h>
12809 int
12810 main ()
12811 {
12812
12813           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12814
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821   (eval $ac_compile) 2>conftest.er1
12822   ac_status=$?
12823   grep -v '^ *+' conftest.er1 >conftest.err
12824   rm -f conftest.er1
12825   cat conftest.err >&5
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -z "$ac_c_werror_flag"
12829                          || test ! -s conftest.err'
12830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831   (eval $ac_try) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; } &&
12835          { ac_try='test -s conftest.$ac_objext'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; }; then
12841
12842 cat >>confdefs.h <<\_ACEOF
12843 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12844 _ACEOF
12845
12846 else
12847   echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12849
12850
12851         cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 #include <pthread.h>
12858 int
12859 main ()
12860 {
12861
12862             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12863
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870   (eval $ac_compile) 2>conftest.er1
12871   ac_status=$?
12872   grep -v '^ *+' conftest.er1 >conftest.err
12873   rm -f conftest.er1
12874   cat conftest.err >&5
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -z "$ac_c_werror_flag"
12878                          || test ! -s conftest.err'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; } &&
12884          { ac_try='test -s conftest.$ac_objext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890
12891 cat >>confdefs.h <<\_ACEOF
12892 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12893 _ACEOF
12894
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 fi
12900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12901 fi
12902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12903    fi
12904
12905    # We require a way to get the time.
12906    time_found=no
12907
12908
12909
12910 for ac_func in gettimeofday time ftime
12911 do
12912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12913 echo "$as_me:$LINENO: checking for $ac_func" >&5
12914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12915 if eval "test \"\${$as_ac_var+set}\" = set"; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   if test x$gcc_no_link = xyes; then
12919   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12921    { (exit 1); exit 1; }; }
12922 fi
12923 cat >conftest.$ac_ext <<_ACEOF
12924 /* confdefs.h.  */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h.  */
12929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12931 #define $ac_func innocuous_$ac_func
12932
12933 /* System header to define __stub macros and hopefully few prototypes,
12934     which can conflict with char $ac_func (); below.
12935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936     <limits.h> exists even on freestanding compilers.  */
12937
12938 #ifdef __STDC__
12939 # include <limits.h>
12940 #else
12941 # include <assert.h>
12942 #endif
12943
12944 #undef $ac_func
12945
12946 /* Override any gcc2 internal prototype to avoid an error.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 {
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952    builtin and then its argument prototype would still apply.  */
12953 char $ac_func ();
12954 /* The GNU C library defines this for functions which it implements
12955     to always fail with ENOSYS.  Some functions are actually named
12956     something starting with __ and the normal name is an alias.  */
12957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12958 choke me
12959 #else
12960 char (*f) () = $ac_func;
12961 #endif
12962 #ifdef __cplusplus
12963 }
12964 #endif
12965
12966 int
12967 main ()
12968 {
12969 return f != $ac_func;
12970   ;
12971   return 0;
12972 }
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976   (eval $ac_link) 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -z "$ac_c_werror_flag"
12984                          || test ! -s conftest.err'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } &&
12990          { ac_try='test -s conftest$ac_exeext'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   eval "$as_ac_var=yes"
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 eval "$as_ac_var=no"
13002 fi
13003 rm -f conftest.err conftest.$ac_objext \
13004       conftest$ac_exeext conftest.$ac_ext
13005 fi
13006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13008 if test `eval echo '${'$as_ac_var'}'` = yes; then
13009   cat >>confdefs.h <<_ACEOF
13010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13011 _ACEOF
13012  time_found=yes
13013 fi
13014 done
13015
13016    if test "$time_found" = no; then
13017       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
13018 echo "$as_me: error: no function found to get the time" >&2;}
13019    { (exit 1); exit 1; }; }
13020    fi
13021
13022
13023 for ac_func in memmove
13024 do
13025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13026 echo "$as_me:$LINENO: checking for $ac_func" >&5
13027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13028 if eval "test \"\${$as_ac_var+set}\" = set"; then
13029   echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031   if test x$gcc_no_link = xyes; then
13032   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13034    { (exit 1); exit 1; }; }
13035 fi
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13044 #define $ac_func innocuous_$ac_func
13045
13046 /* System header to define __stub macros and hopefully few prototypes,
13047     which can conflict with char $ac_func (); below.
13048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13049     <limits.h> exists even on freestanding compilers.  */
13050
13051 #ifdef __STDC__
13052 # include <limits.h>
13053 #else
13054 # include <assert.h>
13055 #endif
13056
13057 #undef $ac_func
13058
13059 /* Override any gcc2 internal prototype to avoid an error.  */
13060 #ifdef __cplusplus
13061 extern "C"
13062 {
13063 #endif
13064 /* We use char because int might match the return type of a gcc2
13065    builtin and then its argument prototype would still apply.  */
13066 char $ac_func ();
13067 /* The GNU C library defines this for functions which it implements
13068     to always fail with ENOSYS.  Some functions are actually named
13069     something starting with __ and the normal name is an alias.  */
13070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13071 choke me
13072 #else
13073 char (*f) () = $ac_func;
13074 #endif
13075 #ifdef __cplusplus
13076 }
13077 #endif
13078
13079 int
13080 main ()
13081 {
13082 return f != $ac_func;
13083   ;
13084   return 0;
13085 }
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089   (eval $ac_link) 2>conftest.er1
13090   ac_status=$?
13091   grep -v '^ *+' conftest.er1 >conftest.err
13092   rm -f conftest.er1
13093   cat conftest.err >&5
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); } &&
13096          { ac_try='test -z "$ac_c_werror_flag"
13097                          || test ! -s conftest.err'
13098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099   (eval $ac_try) 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; } &&
13103          { ac_try='test -s conftest$ac_exeext'
13104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105   (eval $ac_try) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; }; then
13109   eval "$as_ac_var=yes"
13110 else
13111   echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 eval "$as_ac_var=no"
13115 fi
13116 rm -f conftest.err conftest.$ac_objext \
13117       conftest$ac_exeext conftest.$ac_ext
13118 fi
13119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13121 if test `eval echo '${'$as_ac_var'}'` = yes; then
13122   cat >>confdefs.h <<_ACEOF
13123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13124 _ACEOF
13125
13126 fi
13127 done
13128
13129
13130    # We require memcpy.
13131    memcpy_found=no
13132
13133 for ac_func in memcpy
13134 do
13135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13136 echo "$as_me:$LINENO: checking for $ac_func" >&5
13137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13138 if eval "test \"\${$as_ac_var+set}\" = set"; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   if test x$gcc_no_link = xyes; then
13142   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13144    { (exit 1); exit 1; }; }
13145 fi
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13154 #define $ac_func innocuous_$ac_func
13155
13156 /* System header to define __stub macros and hopefully few prototypes,
13157     which can conflict with char $ac_func (); below.
13158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159     <limits.h> exists even on freestanding compilers.  */
13160
13161 #ifdef __STDC__
13162 # include <limits.h>
13163 #else
13164 # include <assert.h>
13165 #endif
13166
13167 #undef $ac_func
13168
13169 /* Override any gcc2 internal prototype to avoid an error.  */
13170 #ifdef __cplusplus
13171 extern "C"
13172 {
13173 #endif
13174 /* We use char because int might match the return type of a gcc2
13175    builtin and then its argument prototype would still apply.  */
13176 char $ac_func ();
13177 /* The GNU C library defines this for functions which it implements
13178     to always fail with ENOSYS.  Some functions are actually named
13179     something starting with __ and the normal name is an alias.  */
13180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13181 choke me
13182 #else
13183 char (*f) () = $ac_func;
13184 #endif
13185 #ifdef __cplusplus
13186 }
13187 #endif
13188
13189 int
13190 main ()
13191 {
13192 return f != $ac_func;
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199   (eval $ac_link) 2>conftest.er1
13200   ac_status=$?
13201   grep -v '^ *+' conftest.er1 >conftest.err
13202   rm -f conftest.er1
13203   cat conftest.err >&5
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } &&
13206          { ac_try='test -z "$ac_c_werror_flag"
13207                          || test ! -s conftest.err'
13208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209   (eval $ac_try) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }; } &&
13213          { ac_try='test -s conftest$ac_exeext'
13214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215   (eval $ac_try) 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; }; then
13219   eval "$as_ac_var=yes"
13220 else
13221   echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224 eval "$as_ac_var=no"
13225 fi
13226 rm -f conftest.err conftest.$ac_objext \
13227       conftest$ac_exeext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13231 if test `eval echo '${'$as_ac_var'}'` = yes; then
13232   cat >>confdefs.h <<_ACEOF
13233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13234 _ACEOF
13235  memcpy_found=yes
13236 fi
13237 done
13238
13239    if test "$memcpy_found" = no; then
13240       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13241 echo "$as_me: error: memcpy is required" >&2;}
13242    { (exit 1); exit 1; }; }
13243    fi
13244    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13245    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-ldl  $LIBS"
13252 if test x$gcc_no_link = xyes; then
13253   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13255    { (exit 1); exit 1; }; }
13256 fi
13257 cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263
13264 /* Override any gcc2 internal prototype to avoid an error.  */
13265 #ifdef __cplusplus
13266 extern "C"
13267 #endif
13268 /* We use char because int might match the return type of a gcc2
13269    builtin and then its argument prototype would still apply.  */
13270 char dlopen ();
13271 int
13272 main ()
13273 {
13274 dlopen ();
13275   ;
13276   return 0;
13277 }
13278 _ACEOF
13279 rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281   (eval $ac_link) 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } &&
13288          { ac_try='test -z "$ac_c_werror_flag"
13289                          || test ! -s conftest.err'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest$ac_exeext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_cv_lib_dl_dlopen=yes
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 ac_cv_lib_dl_dlopen=no
13307 fi
13308 rm -f conftest.err conftest.$ac_objext \
13309       conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13311 fi
13312 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13313 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13314 if test $ac_cv_lib_dl_dlopen = yes; then
13315
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_DLOPEN 1
13319 _ACEOF
13320
13321 else
13322
13323        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13324 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13325 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13326   echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328   ac_check_lib_save_LIBS=$LIBS
13329 LIBS="-ldld  $LIBS"
13330 if test x$gcc_no_link = xyes; then
13331   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13333    { (exit 1); exit 1; }; }
13334 fi
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341
13342 /* Override any gcc2 internal prototype to avoid an error.  */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 /* We use char because int might match the return type of a gcc2
13347    builtin and then its argument prototype would still apply.  */
13348 char dlopen ();
13349 int
13350 main ()
13351 {
13352 dlopen ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359   (eval $ac_link) 2>conftest.er1
13360   ac_status=$?
13361   grep -v '^ *+' conftest.er1 >conftest.err
13362   rm -f conftest.er1
13363   cat conftest.err >&5
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -z "$ac_c_werror_flag"
13367                          || test ! -s conftest.err'
13368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369   (eval $ac_try) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; } &&
13373          { ac_try='test -s conftest$ac_exeext'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; }; then
13379   ac_cv_lib_dld_dlopen=yes
13380 else
13381   echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 ac_cv_lib_dld_dlopen=no
13385 fi
13386 rm -f conftest.err conftest.$ac_objext \
13387       conftest$ac_exeext conftest.$ac_ext
13388 LIBS=$ac_check_lib_save_LIBS
13389 fi
13390 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13391 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13392 if test $ac_cv_lib_dld_dlopen = yes; then
13393
13394
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_DLOPEN 1
13397 _ACEOF
13398
13399 fi
13400
13401 fi
13402
13403
13404    # Some library-finding code we stole from Tcl.
13405    #--------------------------------------------------------------------
13406    #    Check for the existence of the -lsocket and -lnsl libraries.
13407    #    The order here is important, so that they end up in the right
13408    #    order in the command line generated by make.  Here are some
13409    #    special considerations:
13410    #    1. Use "connect" and "accept" to check for -lsocket, and
13411    #       "gethostbyname" to check for -lnsl.
13412    #    2. Use each function name only once:  can't redo a check because
13413    #       autoconf caches the results of the last check and won't redo it.
13414    #    3. Use -lnsl and -lsocket only if they supply procedures that
13415    #       aren't already present in the normal libraries.  This is because
13416    #       IRIX 5.2 has libraries, but they aren't needed and they're
13417    #       bogus:  they goof up name resolution if used.
13418    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13419    #       To get around this problem, check for both libraries together
13420    #       if -lsocket doesn't work by itself.
13421    #--------------------------------------------------------------------
13422
13423    echo "$as_me:$LINENO: checking for socket libraries" >&5
13424 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13425 if test "${gcj_cv_lib_sockets+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428   gcj_cv_lib_sockets=
13429      gcj_checkBoth=0
13430      unset ac_cv_func_connect
13431      echo "$as_me:$LINENO: checking for connect" >&5
13432 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13433 if test "${ac_cv_func_connect+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   if test x$gcc_no_link = xyes; then
13437   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13439    { (exit 1); exit 1; }; }
13440 fi
13441 cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13449 #define connect innocuous_connect
13450
13451 /* System header to define __stub macros and hopefully few prototypes,
13452     which can conflict with char connect (); below.
13453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13454     <limits.h> exists even on freestanding compilers.  */
13455
13456 #ifdef __STDC__
13457 # include <limits.h>
13458 #else
13459 # include <assert.h>
13460 #endif
13461
13462 #undef connect
13463
13464 /* Override any gcc2 internal prototype to avoid an error.  */
13465 #ifdef __cplusplus
13466 extern "C"
13467 {
13468 #endif
13469 /* We use char because int might match the return type of a gcc2
13470    builtin and then its argument prototype would still apply.  */
13471 char connect ();
13472 /* The GNU C library defines this for functions which it implements
13473     to always fail with ENOSYS.  Some functions are actually named
13474     something starting with __ and the normal name is an alias.  */
13475 #if defined (__stub_connect) || defined (__stub___connect)
13476 choke me
13477 #else
13478 char (*f) () = connect;
13479 #endif
13480 #ifdef __cplusplus
13481 }
13482 #endif
13483
13484 int
13485 main ()
13486 {
13487 return f != connect;
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13494   (eval $ac_link) 2>conftest.er1
13495   ac_status=$?
13496   grep -v '^ *+' conftest.er1 >conftest.err
13497   rm -f conftest.er1
13498   cat conftest.err >&5
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); } &&
13501          { ac_try='test -z "$ac_c_werror_flag"
13502                          || test ! -s conftest.err'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; } &&
13508          { ac_try='test -s conftest$ac_exeext'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; }; then
13514   ac_cv_func_connect=yes
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 ac_cv_func_connect=no
13520 fi
13521 rm -f conftest.err conftest.$ac_objext \
13522       conftest$ac_exeext conftest.$ac_ext
13523 fi
13524 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13525 echo "${ECHO_T}$ac_cv_func_connect" >&6
13526 if test $ac_cv_func_connect = yes; then
13527   gcj_checkSocket=0
13528 else
13529   gcj_checkSocket=1
13530 fi
13531
13532      if test "$gcj_checkSocket" = 1; then
13533          unset ac_cv_func_connect
13534          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13535 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13536 if test "${ac_cv_lib_socket_main+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lsocket  $LIBS"
13541 if test x$gcc_no_link = xyes; then
13542   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13544    { (exit 1); exit 1; }; }
13545 fi
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552
13553
13554 int
13555 main ()
13556 {
13557 main ();
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564   (eval $ac_link) 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag"
13572                          || test ! -s conftest.err'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest$ac_exeext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_lib_socket_main=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_lib_socket_main=no
13590 fi
13591 rm -f conftest.err conftest.$ac_objext \
13592       conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13594 fi
13595 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13596 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13597 if test $ac_cv_lib_socket_main = yes; then
13598   gcj_cv_lib_sockets="-lsocket"
13599 else
13600   gcj_checkBoth=1
13601 fi
13602
13603      fi
13604      if test "$gcj_checkBoth" = 1; then
13605          gcj_oldLibs=$LIBS
13606          LIBS="$LIBS -lsocket -lnsl"
13607          unset ac_cv_func_accept
13608          echo "$as_me:$LINENO: checking for accept" >&5
13609 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13610 if test "${ac_cv_func_accept+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   if test x$gcc_no_link = xyes; then
13614   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13616    { (exit 1); exit 1; }; }
13617 fi
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13626 #define accept innocuous_accept
13627
13628 /* System header to define __stub macros and hopefully few prototypes,
13629     which can conflict with char accept (); below.
13630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13631     <limits.h> exists even on freestanding compilers.  */
13632
13633 #ifdef __STDC__
13634 # include <limits.h>
13635 #else
13636 # include <assert.h>
13637 #endif
13638
13639 #undef accept
13640
13641 /* Override any gcc2 internal prototype to avoid an error.  */
13642 #ifdef __cplusplus
13643 extern "C"
13644 {
13645 #endif
13646 /* We use char because int might match the return type of a gcc2
13647    builtin and then its argument prototype would still apply.  */
13648 char accept ();
13649 /* The GNU C library defines this for functions which it implements
13650     to always fail with ENOSYS.  Some functions are actually named
13651     something starting with __ and the normal name is an alias.  */
13652 #if defined (__stub_accept) || defined (__stub___accept)
13653 choke me
13654 #else
13655 char (*f) () = accept;
13656 #endif
13657 #ifdef __cplusplus
13658 }
13659 #endif
13660
13661 int
13662 main ()
13663 {
13664 return f != accept;
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13671   (eval $ac_link) 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag"
13679                          || test ! -s conftest.err'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; } &&
13685          { ac_try='test -s conftest$ac_exeext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_cv_func_accept=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 ac_cv_func_accept=no
13697 fi
13698 rm -f conftest.err conftest.$ac_objext \
13699       conftest$ac_exeext conftest.$ac_ext
13700 fi
13701 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13702 echo "${ECHO_T}$ac_cv_func_accept" >&6
13703 if test $ac_cv_func_accept = yes; then
13704   gcj_checkNsl=0
13705                         gcj_cv_lib_sockets="-lsocket -lnsl"
13706 fi
13707
13708          unset ac_cv_func_accept
13709          LIBS=$gcj_oldLibs
13710      fi
13711      unset ac_cv_func_gethostbyname
13712      gcj_oldLibs=$LIBS
13713      LIBS="$LIBS $gcj_cv_lib_sockets"
13714      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13715 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13716 if test "${ac_cv_func_gethostbyname+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   if test x$gcc_no_link = xyes; then
13720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13722    { (exit 1); exit 1; }; }
13723 fi
13724 cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13732 #define gethostbyname innocuous_gethostbyname
13733
13734 /* System header to define __stub macros and hopefully few prototypes,
13735     which can conflict with char gethostbyname (); below.
13736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13737     <limits.h> exists even on freestanding compilers.  */
13738
13739 #ifdef __STDC__
13740 # include <limits.h>
13741 #else
13742 # include <assert.h>
13743 #endif
13744
13745 #undef gethostbyname
13746
13747 /* Override any gcc2 internal prototype to avoid an error.  */
13748 #ifdef __cplusplus
13749 extern "C"
13750 {
13751 #endif
13752 /* We use char because int might match the return type of a gcc2
13753    builtin and then its argument prototype would still apply.  */
13754 char gethostbyname ();
13755 /* The GNU C library defines this for functions which it implements
13756     to always fail with ENOSYS.  Some functions are actually named
13757     something starting with __ and the normal name is an alias.  */
13758 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13759 choke me
13760 #else
13761 char (*f) () = gethostbyname;
13762 #endif
13763 #ifdef __cplusplus
13764 }
13765 #endif
13766
13767 int
13768 main ()
13769 {
13770 return f != gethostbyname;
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 rm -f conftest.$ac_objext conftest$ac_exeext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13777   (eval $ac_link) 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -z "$ac_c_werror_flag"
13785                          || test ! -s conftest.err'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; } &&
13791          { ac_try='test -s conftest$ac_exeext'
13792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793   (eval $ac_try) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_cv_func_gethostbyname=yes
13798 else
13799   echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802 ac_cv_func_gethostbyname=no
13803 fi
13804 rm -f conftest.err conftest.$ac_objext \
13805       conftest$ac_exeext conftest.$ac_ext
13806 fi
13807 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13808 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13809 if test $ac_cv_func_gethostbyname = yes; then
13810   :
13811 else
13812   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13813 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13814 if test "${ac_cv_lib_nsl_main+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-lnsl  $LIBS"
13819 if test x$gcc_no_link = xyes; then
13820   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13822    { (exit 1); exit 1; }; }
13823 fi
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830
13831
13832 int
13833 main ()
13834 {
13835 main ();
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842   (eval $ac_link) 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_c_werror_flag"
13850                          || test ! -s conftest.err'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; } &&
13856          { ac_try='test -s conftest$ac_exeext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_lib_nsl_main=yes
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 ac_cv_lib_nsl_main=no
13868 fi
13869 rm -f conftest.err conftest.$ac_objext \
13870       conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13872 fi
13873 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13874 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13875 if test $ac_cv_lib_nsl_main = yes; then
13876   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13877 fi
13878
13879 fi
13880
13881      unset ac_cv_func_gethostbyname
13882      LIBS=$gcj_oldLIBS
13883
13884 fi
13885 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13886 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13887    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13888
13889    if test "$with_system_zlib" = yes; then
13890       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13891 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13892 if test "${ac_cv_lib_z_deflate+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895   ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-lz  $LIBS"
13897 if test x$gcc_no_link = xyes; then
13898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13900    { (exit 1); exit 1; }; }
13901 fi
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908
13909 /* Override any gcc2 internal prototype to avoid an error.  */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 /* We use char because int might match the return type of a gcc2
13914    builtin and then its argument prototype would still apply.  */
13915 char deflate ();
13916 int
13917 main ()
13918 {
13919 deflate ();
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926   (eval $ac_link) 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -z "$ac_c_werror_flag"
13934                          || test ! -s conftest.err'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; } &&
13940          { ac_try='test -s conftest$ac_exeext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_cv_lib_z_deflate=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_cv_lib_z_deflate=no
13952 fi
13953 rm -f conftest.err conftest.$ac_objext \
13954       conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13956 fi
13957 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13958 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13959 if test $ac_cv_lib_z_deflate = yes; then
13960   ZLIBSPEC=-lz
13961 else
13962   ZLIBSPEC=
13963 fi
13964
13965    fi
13966
13967    # Test for Gtk stuff, if asked for.
13968    if test "$use_gtk_awt" = yes; then
13969
13970   succeeded=no
13971
13972   if test -z "$PKG_CONFIG"; then
13973     # Extract the first word of "pkg-config", so it can be a program name with args.
13974 set dummy pkg-config; ac_word=$2
13975 echo "$as_me:$LINENO: checking for $ac_word" >&5
13976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   case $PKG_CONFIG in
13981   [\\/]* | ?:[\\/]*)
13982   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13983   ;;
13984   *)
13985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988   IFS=$as_save_IFS
13989   test -z "$as_dir" && as_dir=.
13990   for ac_exec_ext in '' $ac_executable_extensions; do
13991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13994     break 2
13995   fi
13996 done
13997 done
13998
13999   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14000   ;;
14001 esac
14002 fi
14003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14004
14005 if test -n "$PKG_CONFIG"; then
14006   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14007 echo "${ECHO_T}$PKG_CONFIG" >&6
14008 else
14009   echo "$as_me:$LINENO: result: no" >&5
14010 echo "${ECHO_T}no" >&6
14011 fi
14012
14013   fi
14014
14015   if test "$PKG_CONFIG" = "no" ; then
14016      echo "*** The pkg-config script could not be found. Make sure it is"
14017      echo "*** in your path, or set the PKG_CONFIG environment variable"
14018      echo "*** to the full path to pkg-config."
14019      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14020   else
14021      PKG_CONFIG_MIN_VERSION=0.9.0
14022      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14023         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14024 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
14025
14026         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14027             echo "$as_me:$LINENO: result: yes" >&5
14028 echo "${ECHO_T}yes" >&6
14029             succeeded=yes
14030
14031             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14032 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14033             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14034             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14035 echo "${ECHO_T}$GTK_CFLAGS" >&6
14036
14037             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14038 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14039             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14040             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14041 echo "${ECHO_T}$GTK_LIBS" >&6
14042         else
14043             GTK_CFLAGS=""
14044             GTK_LIBS=""
14045             ## If we have a custom action on failure, don't print errors, but
14046             ## do set a variable so people can do so.
14047             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14048             echo $GTK_PKG_ERRORS
14049         fi
14050
14051
14052
14053      else
14054         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14055         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14056      fi
14057   fi
14058
14059   if test $succeeded = yes; then
14060      :
14061   else
14062      { { 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
14063 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;}
14064    { (exit 1); exit 1; }; }
14065   fi
14066
14067
14068
14069
14070
14071   succeeded=no
14072
14073   if test -z "$PKG_CONFIG"; then
14074     # Extract the first word of "pkg-config", so it can be a program name with args.
14075 set dummy pkg-config; ac_word=$2
14076 echo "$as_me:$LINENO: checking for $ac_word" >&5
14077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   case $PKG_CONFIG in
14082   [\\/]* | ?:[\\/]*)
14083   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14084   ;;
14085   *)
14086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091   for ac_exec_ext in '' $ac_executable_extensions; do
14092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14093     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095     break 2
14096   fi
14097 done
14098 done
14099
14100   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14101   ;;
14102 esac
14103 fi
14104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14105
14106 if test -n "$PKG_CONFIG"; then
14107   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14108 echo "${ECHO_T}$PKG_CONFIG" >&6
14109 else
14110   echo "$as_me:$LINENO: result: no" >&5
14111 echo "${ECHO_T}no" >&6
14112 fi
14113
14114   fi
14115
14116   if test "$PKG_CONFIG" = "no" ; then
14117      echo "*** The pkg-config script could not be found. Make sure it is"
14118      echo "*** in your path, or set the PKG_CONFIG environment variable"
14119      echo "*** to the full path to pkg-config."
14120      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14121   else
14122      PKG_CONFIG_MIN_VERSION=0.9.0
14123      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14124         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14125 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14126
14127         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14128             echo "$as_me:$LINENO: result: yes" >&5
14129 echo "${ECHO_T}yes" >&6
14130             succeeded=yes
14131
14132             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14133 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14134             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14135             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14136 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14137
14138             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14139 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14140             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14141             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14142 echo "${ECHO_T}$GLIB_LIBS" >&6
14143         else
14144             GLIB_CFLAGS=""
14145             GLIB_LIBS=""
14146             ## If we have a custom action on failure, don't print errors, but
14147             ## do set a variable so people can do so.
14148             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14149             echo $GLIB_PKG_ERRORS
14150         fi
14151
14152
14153
14154      else
14155         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14156         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14157      fi
14158   fi
14159
14160   if test $succeeded = yes; then
14161      :
14162   else
14163      { { 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
14164 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;}
14165    { (exit 1); exit 1; }; }
14166   fi
14167
14168
14169
14170
14171
14172   succeeded=no
14173
14174   if test -z "$PKG_CONFIG"; then
14175     # Extract the first word of "pkg-config", so it can be a program name with args.
14176 set dummy pkg-config; ac_word=$2
14177 echo "$as_me:$LINENO: checking for $ac_word" >&5
14178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   case $PKG_CONFIG in
14183   [\\/]* | ?:[\\/]*)
14184   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14185   ;;
14186   *)
14187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14189 do
14190   IFS=$as_save_IFS
14191   test -z "$as_dir" && as_dir=.
14192   for ac_exec_ext in '' $ac_executable_extensions; do
14193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14194     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14196     break 2
14197   fi
14198 done
14199 done
14200
14201   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14202   ;;
14203 esac
14204 fi
14205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14206
14207 if test -n "$PKG_CONFIG"; then
14208   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14209 echo "${ECHO_T}$PKG_CONFIG" >&6
14210 else
14211   echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6
14213 fi
14214
14215   fi
14216
14217   if test "$PKG_CONFIG" = "no" ; then
14218      echo "*** The pkg-config script could not be found. Make sure it is"
14219      echo "*** in your path, or set the PKG_CONFIG environment variable"
14220      echo "*** to the full path to pkg-config."
14221      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14222   else
14223      PKG_CONFIG_MIN_VERSION=0.9.0
14224      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14225         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14226 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14227
14228         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14229             echo "$as_me:$LINENO: result: yes" >&5
14230 echo "${ECHO_T}yes" >&6
14231             succeeded=yes
14232
14233             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14234 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14235             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14236             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14237 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14238
14239             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14240 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14241             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14242             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14243 echo "${ECHO_T}$LIBART_LIBS" >&6
14244         else
14245             LIBART_CFLAGS=""
14246             LIBART_LIBS=""
14247             ## If we have a custom action on failure, don't print errors, but
14248             ## do set a variable so people can do so.
14249             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14250             echo $LIBART_PKG_ERRORS
14251         fi
14252
14253
14254
14255      else
14256         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14257         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14258      fi
14259   fi
14260
14261   if test $succeeded = yes; then
14262      :
14263   else
14264      { { 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
14265 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;}
14266    { (exit 1); exit 1; }; }
14267   fi
14268
14269
14270
14271
14272       # We require the XTest Extension to support java.awt.Robot.
14273       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14274 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14275 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-lXtst ${X_LIBS} $LIBS"
14280 if test x$gcc_no_link = xyes; then
14281   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14283    { (exit 1); exit 1; }; }
14284 fi
14285 cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h.  */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h.  */
14291
14292 /* Override any gcc2 internal prototype to avoid an error.  */
14293 #ifdef __cplusplus
14294 extern "C"
14295 #endif
14296 /* We use char because int might match the return type of a gcc2
14297    builtin and then its argument prototype would still apply.  */
14298 char XTestQueryExtension ();
14299 int
14300 main ()
14301 {
14302 XTestQueryExtension ();
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14309   (eval $ac_link) 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -z "$ac_c_werror_flag"
14317                          || test ! -s conftest.err'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; } &&
14323          { ac_try='test -s conftest$ac_exeext'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; }; then
14329   ac_cv_lib_Xtst_XTestQueryExtension=yes
14330 else
14331   echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 ac_cv_lib_Xtst_XTestQueryExtension=no
14335 fi
14336 rm -f conftest.err conftest.$ac_objext \
14337       conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14339 fi
14340 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14341 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14342 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14343   true
14344 else
14345   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14346 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14347    { (exit 1); exit 1; }; }
14348 fi
14349
14350    fi
14351
14352    # On Solaris, and maybe other architectures, the Boehm collector
14353    # requires -ldl.
14354    if test "$GC" = boehm; then
14355       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14356 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14357 if test "${ac_cv_lib_dl_main+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-ldl  $LIBS"
14362 if test x$gcc_no_link = xyes; then
14363   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14365    { (exit 1); exit 1; }; }
14366 fi
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373
14374
14375 int
14376 main ()
14377 {
14378 main ();
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14385   (eval $ac_link) 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } &&
14392          { ac_try='test -z "$ac_c_werror_flag"
14393                          || test ! -s conftest.err'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; } &&
14399          { ac_try='test -s conftest$ac_exeext'
14400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401   (eval $ac_try) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_cv_lib_dl_main=yes
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 ac_cv_lib_dl_main=no
14411 fi
14412 rm -f conftest.err conftest.$ac_objext \
14413       conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS
14415 fi
14416 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14417 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14418 if test $ac_cv_lib_dl_main = yes; then
14419   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14420 fi
14421
14422    fi
14423 fi
14424
14425 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14426 case $build in
14427     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14428     *)         CLASSPATH_SEPARATOR=':' ;;
14429 esac
14430
14431
14432 # We must search the source tree for java.lang, since we still don't
14433 # have libgcj.jar nor java/lang/*.class
14434 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14435 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14436
14437 # Since some classes depend on this one, we need its source available
14438 # before we can do any GCJ compilation test :-(
14439 if test ! -f gnu/classpath/Configuration.java; then
14440   test -d gnu || mkdir gnu
14441   test -d gnu/classpath || mkdir gnu/classpath
14442   # Note that it is not crucial that all the values here be correct.
14443   sed -e "s,@prefix@,$prefix," \
14444       -e "s,@VERSION@,$VERSION," \
14445       -e "s,@LIBDEBUG@,false," \
14446       -e "s,@INIT_LOAD_LIBRARY@,false," \
14447       -e "s,@@,$LIBGCJDEBUG," \
14448       -e "s,@default_toolkit@,$TOOLKIT," \
14449       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14450       -e "s,@GTK_CAIRO_ENABLED@,false," \
14451         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14452         > gnu/classpath/Configuration.java
14453   # We do not want to redirect the output of the grep below to /dev/null,
14454   # but we add /dev/null to the input list so that grep will print the
14455   # filename of Configuration.java in case it finds any matches.
14456   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14457     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14458 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14459    { (exit 1); exit 1; }; }
14460   fi
14461 fi
14462
14463 if test -n "$ac_tool_prefix"; then
14464   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14465 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14466 echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14468 if test "${ac_cv_prog_GCJ+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   if test -n "$GCJ"; then
14472   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14476 do
14477   IFS=$as_save_IFS
14478   test -z "$as_dir" && as_dir=.
14479   for ac_exec_ext in '' $ac_executable_extensions; do
14480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14481     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483     break 2
14484   fi
14485 done
14486 done
14487
14488 fi
14489 fi
14490 GCJ=$ac_cv_prog_GCJ
14491 if test -n "$GCJ"; then
14492   echo "$as_me:$LINENO: result: $GCJ" >&5
14493 echo "${ECHO_T}$GCJ" >&6
14494 else
14495   echo "$as_me:$LINENO: result: no" >&5
14496 echo "${ECHO_T}no" >&6
14497 fi
14498
14499 fi
14500 if test -z "$ac_cv_prog_GCJ"; then
14501   ac_ct_GCJ=$GCJ
14502   # Extract the first word of "gcj", so it can be a program name with args.
14503 set dummy gcj; ac_word=$2
14504 echo "$as_me:$LINENO: checking for $ac_word" >&5
14505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14506 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   if test -n "$ac_ct_GCJ"; then
14510   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14511 else
14512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513 for as_dir in $PATH
14514 do
14515   IFS=$as_save_IFS
14516   test -z "$as_dir" && as_dir=.
14517   for ac_exec_ext in '' $ac_executable_extensions; do
14518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14519     ac_cv_prog_ac_ct_GCJ="gcj"
14520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14521     break 2
14522   fi
14523 done
14524 done
14525
14526   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14527 fi
14528 fi
14529 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14530 if test -n "$ac_ct_GCJ"; then
14531   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14532 echo "${ECHO_T}$ac_ct_GCJ" >&6
14533 else
14534   echo "$as_me:$LINENO: result: no" >&5
14535 echo "${ECHO_T}no" >&6
14536 fi
14537
14538   GCJ=$ac_ct_GCJ
14539 else
14540   GCJ="$ac_cv_prog_GCJ"
14541 fi
14542
14543   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14544
14545
14546
14547
14548 # Now remove it.
14549 rm -f gnu/classpath/Configuration.java
14550
14551 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14552
14553 echo "$as_me:$LINENO: checking for void *" >&5
14554 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14555 if test "${ac_cv_type_void_p+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 $ac_includes_default
14565 int
14566 main ()
14567 {
14568 if ((void * *) 0)
14569   return 0;
14570 if (sizeof (void *))
14571   return 0;
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578   (eval $ac_compile) 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -z "$ac_c_werror_flag"
14586                          || test ! -s conftest.err'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; } &&
14592          { ac_try='test -s conftest.$ac_objext'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   ac_cv_type_void_p=yes
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 ac_cv_type_void_p=no
14604 fi
14605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14606 fi
14607 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14608 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14609
14610 echo "$as_me:$LINENO: checking size of void *" >&5
14611 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14612 if test "${ac_cv_sizeof_void_p+set}" = set; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   if test "$ac_cv_type_void_p" = yes; then
14616   # The cast to unsigned long works around a bug in the HP C Compiler
14617   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14618   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14619   # This bug is HP SR number 8606223364.
14620   if test "$cross_compiling" = yes; then
14621   # Depending upon the size, compute the lo and hi bounds.
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 $ac_includes_default
14629 int
14630 main ()
14631 {
14632 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14633 test_array [0] = 0
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641   (eval $ac_compile) 2>conftest.er1
14642   ac_status=$?
14643   grep -v '^ *+' conftest.er1 >conftest.err
14644   rm -f conftest.er1
14645   cat conftest.err >&5
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } &&
14648          { ac_try='test -z "$ac_c_werror_flag"
14649                          || test ! -s conftest.err'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; } &&
14655          { ac_try='test -s conftest.$ac_objext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   ac_lo=0 ac_mid=0
14662   while :; do
14663     cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h.  */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h.  */
14669 $ac_includes_default
14670 int
14671 main ()
14672 {
14673 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14674 test_array [0] = 0
14675
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext
14681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14682   (eval $ac_compile) 2>conftest.er1
14683   ac_status=$?
14684   grep -v '^ *+' conftest.er1 >conftest.err
14685   rm -f conftest.er1
14686   cat conftest.err >&5
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } &&
14689          { ac_try='test -z "$ac_c_werror_flag"
14690                          || test ! -s conftest.err'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; } &&
14696          { ac_try='test -s conftest.$ac_objext'
14697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698   (eval $ac_try) 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; }; then
14702   ac_hi=$ac_mid; break
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_lo=`expr $ac_mid + 1`
14708                     if test $ac_lo -le $ac_mid; then
14709                       ac_lo= ac_hi=
14710                       break
14711                     fi
14712                     ac_mid=`expr 2 '*' $ac_mid + 1`
14713 fi
14714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14715   done
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726 $ac_includes_default
14727 int
14728 main ()
14729 {
14730 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14731 test_array [0] = 0
14732
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739   (eval $ac_compile) 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_c_werror_flag"
14747                          || test ! -s conftest.err'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; } &&
14753          { ac_try='test -s conftest.$ac_objext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759   ac_hi=-1 ac_mid=-1
14760   while :; do
14761     cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 $ac_includes_default
14768 int
14769 main ()
14770 {
14771 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14772 test_array [0] = 0
14773
14774   ;
14775   return 0;
14776 }
14777 _ACEOF
14778 rm -f conftest.$ac_objext
14779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14780   (eval $ac_compile) 2>conftest.er1
14781   ac_status=$?
14782   grep -v '^ *+' conftest.er1 >conftest.err
14783   rm -f conftest.er1
14784   cat conftest.err >&5
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } &&
14787          { ac_try='test -z "$ac_c_werror_flag"
14788                          || test ! -s conftest.err'
14789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790   (eval $ac_try) 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; } &&
14794          { ac_try='test -s conftest.$ac_objext'
14795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796   (eval $ac_try) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); }; }; then
14800   ac_lo=$ac_mid; break
14801 else
14802   echo "$as_me: failed program was:" >&5
14803 sed 's/^/| /' conftest.$ac_ext >&5
14804
14805 ac_hi=`expr '(' $ac_mid ')' - 1`
14806                        if test $ac_mid -le $ac_hi; then
14807                          ac_lo= ac_hi=
14808                          break
14809                        fi
14810                        ac_mid=`expr 2 '*' $ac_mid`
14811 fi
14812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14813   done
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_lo= ac_hi=
14819 fi
14820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 # Binary search between lo and hi bounds.
14824 while test "x$ac_lo" != "x$ac_hi"; do
14825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14826   cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 $ac_includes_default
14833 int
14834 main ()
14835 {
14836 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14837 test_array [0] = 0
14838
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845   (eval $ac_compile) 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } &&
14852          { ac_try='test -z "$ac_c_werror_flag"
14853                          || test ! -s conftest.err'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; } &&
14859          { ac_try='test -s conftest.$ac_objext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865   ac_hi=$ac_mid
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_lo=`expr '(' $ac_mid ')' + 1`
14871 fi
14872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873 done
14874 case $ac_lo in
14875 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14876 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14877 See \`config.log' for more details." >&5
14878 echo "$as_me: error: cannot compute sizeof (void *), 77
14879 See \`config.log' for more details." >&2;}
14880    { (exit 1); exit 1; }; } ;;
14881 esac
14882 else
14883   if test "$cross_compiling" = yes; then
14884   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14885 See \`config.log' for more details." >&5
14886 echo "$as_me: error: cannot run test program while cross compiling
14887 See \`config.log' for more details." >&2;}
14888    { (exit 1); exit 1; }; }
14889 else
14890   cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h.  */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h.  */
14896 $ac_includes_default
14897 long longval () { return (long) (sizeof (void *)); }
14898 unsigned long ulongval () { return (long) (sizeof (void *)); }
14899 #include <stdio.h>
14900 #include <stdlib.h>
14901 int
14902 main ()
14903 {
14904
14905   FILE *f = fopen ("conftest.val", "w");
14906   if (! f)
14907     exit (1);
14908   if (((long) (sizeof (void *))) < 0)
14909     {
14910       long i = longval ();
14911       if (i != ((long) (sizeof (void *))))
14912         exit (1);
14913       fprintf (f, "%ld\n", i);
14914     }
14915   else
14916     {
14917       unsigned long i = ulongval ();
14918       if (i != ((long) (sizeof (void *))))
14919         exit (1);
14920       fprintf (f, "%lu\n", i);
14921     }
14922   exit (ferror (f) || fclose (f) != 0);
14923
14924   ;
14925   return 0;
14926 }
14927 _ACEOF
14928 rm -f conftest$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930   (eval $ac_link) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_cv_sizeof_void_p=`cat conftest.val`
14940 else
14941   echo "$as_me: program exited with status $ac_status" >&5
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ( exit $ac_status )
14946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14947 See \`config.log' for more details." >&5
14948 echo "$as_me: error: cannot compute sizeof (void *), 77
14949 See \`config.log' for more details." >&2;}
14950    { (exit 1); exit 1; }; }
14951 fi
14952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14953 fi
14954 fi
14955 rm -f conftest.val
14956 else
14957   ac_cv_sizeof_void_p=0
14958 fi
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14961 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14962 cat >>confdefs.h <<_ACEOF
14963 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14964 _ACEOF
14965
14966
14967
14968 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14969 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14970 if test "${ac_cv_c_bigendian+set}" = set; then
14971   echo $ECHO_N "(cached) $ECHO_C" >&6
14972 else
14973   # See if sys/param.h defines the BYTE_ORDER macro.
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h.  */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h.  */
14980 #include <sys/types.h>
14981 #include <sys/param.h>
14982
14983 int
14984 main ()
14985 {
14986 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14987  bogus endian macros
14988 #endif
14989
14990   ;
14991   return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996   (eval $ac_compile) 2>conftest.er1
14997   ac_status=$?
14998   grep -v '^ *+' conftest.er1 >conftest.err
14999   rm -f conftest.er1
15000   cat conftest.err >&5
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); } &&
15003          { ac_try='test -z "$ac_c_werror_flag"
15004                          || test ! -s conftest.err'
15005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006   (eval $ac_try) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   # It does; now see whether it defined to BIG_ENDIAN or not.
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 #include <sys/types.h>
15024 #include <sys/param.h>
15025
15026 int
15027 main ()
15028 {
15029 #if BYTE_ORDER != BIG_ENDIAN
15030  not big endian
15031 #endif
15032
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15039   (eval $ac_compile) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest.$ac_objext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_c_bigendian=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_cv_c_bigendian=no
15065 fi
15066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 # It does not; compile a test program.
15072 if test "$cross_compiling" = yes; then
15073   # try to guess the endianness by grepping values into an object file
15074   ac_cv_c_bigendian=unknown
15075   cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15082 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15083 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15084 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15085 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15086 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15087 int
15088 main ()
15089 {
15090  _ascii (); _ebcdic ();
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15097   (eval $ac_compile) 2>conftest.er1
15098   ac_status=$?
15099   grep -v '^ *+' conftest.er1 >conftest.err
15100   rm -f conftest.er1
15101   cat conftest.err >&5
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } &&
15104          { ac_try='test -z "$ac_c_werror_flag"
15105                          || test ! -s conftest.err'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; } &&
15111          { ac_try='test -s conftest.$ac_objext'
15112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113   (eval $ac_try) 2>&5
15114   ac_status=$?
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); }; }; then
15117   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15118   ac_cv_c_bigendian=yes
15119 fi
15120 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15121   if test "$ac_cv_c_bigendian" = unknown; then
15122     ac_cv_c_bigendian=no
15123   else
15124     # finding both strings is unlikely to happen, but who knows?
15125     ac_cv_c_bigendian=unknown
15126   fi
15127 fi
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 fi
15133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15134 else
15135   cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h.  */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h.  */
15141 int
15142 main ()
15143 {
15144   /* Are we little or big endian?  From Harbison&Steele.  */
15145   union
15146   {
15147     long l;
15148     char c[sizeof (long)];
15149   } u;
15150   u.l = 1;
15151   exit (u.c[sizeof (long) - 1] == 1);
15152 }
15153 _ACEOF
15154 rm -f conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156   (eval $ac_link) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_cv_c_bigendian=no
15166 else
15167   echo "$as_me: program exited with status $ac_status" >&5
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ( exit $ac_status )
15172 ac_cv_c_bigendian=yes
15173 fi
15174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15175 fi
15176 fi
15177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15181 case $ac_cv_c_bigendian in
15182   yes)
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define WORDS_BIGENDIAN 1
15186 _ACEOF
15187  ;;
15188   no)
15189      ;;
15190   *)
15191     { { echo "$as_me:$LINENO: error: unknown endianness
15192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15193 echo "$as_me: error: unknown endianness
15194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15195    { (exit 1); exit 1; }; } ;;
15196 esac
15197
15198
15199 ZLIBS=
15200 SYS_ZLIBS=
15201 ZINCS=
15202
15203 if test -z "$ZLIBSPEC"; then
15204    # Use zlib from the GCC tree.
15205    ZINCS='-I$(top_srcdir)/../zlib'
15206    ZLIBS=../zlib/libzgcj_convenience.la
15207 else
15208    # System's zlib.
15209    SYS_ZLIBS="$ZLIBSPEC"
15210 fi
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222 if test "$NATIVE" = yes; then
15223   NATIVE_TRUE=
15224   NATIVE_FALSE='#'
15225 else
15226   NATIVE_TRUE='#'
15227   NATIVE_FALSE=
15228 fi
15229
15230
15231
15232 if test "$enable_shared" = yes; then
15233   ENABLE_SHARED_TRUE=
15234   ENABLE_SHARED_FALSE='#'
15235 else
15236   ENABLE_SHARED_TRUE='#'
15237   ENABLE_SHARED_FALSE=
15238 fi
15239
15240
15241
15242 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15243   NEEDS_DATA_START_TRUE=
15244   NEEDS_DATA_START_FALSE='#'
15245 else
15246   NEEDS_DATA_START_TRUE='#'
15247   NEEDS_DATA_START_FALSE=
15248 fi
15249
15250
15251
15252 # Process the option "--enable-version-specific-runtime-libs"
15253 # Calculate toolexeclibdir
15254 case ${version_specific_libs} in
15255   yes)
15256     # Need the gcc compiler version to know where to install libraries
15257     # and header files if --enable-version-specific-runtime-libs option
15258     # is selected.
15259     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15260     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15261     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15262     toolexeclibdir=$toolexecmainlibdir
15263     ;;
15264   no)
15265     if test -n "$with_cross_host" &&
15266        test x"$with_cross_host" != x"no"; then
15267       # Install a library built with a cross compiler in tooldir, not libdir.
15268       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15269       toolexecmainlibdir='$(toolexecdir)/lib'
15270     else
15271       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15272       toolexecmainlibdir='$(libdir)'
15273     fi
15274     multi_os_directory=`$CC -print-multi-os-directory`
15275     case $multi_os_directory in
15276       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15277       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15278     esac
15279     ;;
15280 esac
15281
15282
15283
15284
15285 # Determine where the standard .db file and GNU Classpath JNI
15286 # libraries are found.
15287 multi_os_directory=`$CC -print-multi-os-directory`
15288 case $multi_os_directory in
15289   .)
15290    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15291    ;;
15292   *)
15293    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15294    ;;
15295 esac
15296
15297
15298 # Determine gcj version number.
15299 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15300 GCJVERSION=$gcjversion
15301
15302
15303 cat >>confdefs.h <<_ACEOF
15304 #define GCJVERSION "$GCJVERSION"
15305 _ACEOF
15306
15307
15308
15309 cat >>confdefs.h <<\_ACEOF
15310 #define JV_VERSION "1.5.0"
15311 _ACEOF
15312
15313
15314 cat >>confdefs.h <<\_ACEOF
15315 #define JV_API_VERSION "1.5"
15316 _ACEOF
15317
15318
15319
15320 case "${with_gxx_include_dir}" in
15321   yes)
15322     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15323 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15324    { (exit 1); exit 1; }; }
15325     ;;
15326   no | "")
15327     case "${enable_version_specific_runtime_libs}" in
15328       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15329       *)
15330         libstdcxx_incdir='c++/$(gcc_version)'
15331         gxx_include_dir='include/$(libstdcxx_incdir)'
15332         if test -n "$with_cross_host" &&
15333            test x"$with_cross_host" != x"no"; then
15334           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15335         else
15336           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15337         fi;;
15338     esac ;;
15339   *) gxx_include_dir=${with_gxx_include_dir} ;;
15340 esac
15341
15342
15343
15344
15345 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15346 # On that system, sys/ioctl.h will not include sys/filio.h unless
15347 # BSD_COMP is defined; just including sys/filio.h is simpler.
15348 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15349 # for now.  If you change this, you also must update natFile.cc.
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15374                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15375                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15376                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15377                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15378 do
15379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15381   echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384   echo $ECHO_N "(cached) $ECHO_C" >&6
15385 fi
15386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15388 else
15389   # Is the header compilable?
15390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h.  */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h.  */
15398 $ac_includes_default
15399 #include <$ac_header>
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15403   (eval $ac_compile) 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } &&
15410          { ac_try='test -z "$ac_c_werror_flag"
15411                          || test ! -s conftest.err'
15412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413   (eval $ac_try) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); }; } &&
15417          { ac_try='test -s conftest.$ac_objext'
15418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419   (eval $ac_try) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423   ac_header_compiler=yes
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428 ac_header_compiler=no
15429 fi
15430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15432 echo "${ECHO_T}$ac_header_compiler" >&6
15433
15434 # Is the header present?
15435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15437 cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443 #include <$ac_header>
15444 _ACEOF
15445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } >/dev/null; then
15453   if test -s conftest.err; then
15454     ac_cpp_err=$ac_c_preproc_warn_flag
15455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15456   else
15457     ac_cpp_err=
15458   fi
15459 else
15460   ac_cpp_err=yes
15461 fi
15462 if test -z "$ac_cpp_err"; then
15463   ac_header_preproc=yes
15464 else
15465   echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468   ac_header_preproc=no
15469 fi
15470 rm -f conftest.err conftest.$ac_ext
15471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15472 echo "${ECHO_T}$ac_header_preproc" >&6
15473
15474 # So?  What about this header?
15475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15476   yes:no: )
15477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15481     ac_header_preproc=yes
15482     ;;
15483   no:yes:* )
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15496     (
15497       cat <<\_ASBOX
15498 ## ---------------------------------- ##
15499 ## Report this to the libjava lists.  ##
15500 ## ---------------------------------- ##
15501 _ASBOX
15502     ) |
15503       sed "s/^/$as_me: WARNING:     /" >&2
15504     ;;
15505 esac
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509   echo $ECHO_N "(cached) $ECHO_C" >&6
15510 else
15511   eval "$as_ac_Header=\$ac_header_preproc"
15512 fi
15513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15515
15516 fi
15517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15518   cat >>confdefs.h <<_ACEOF
15519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15520 _ACEOF
15521
15522 fi
15523
15524 done
15525
15526
15527 for ac_header in inttypes.h
15528 do
15529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15531   echo "$as_me:$LINENO: checking for $ac_header" >&5
15532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 fi
15536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15538 else
15539   # Is the header compilable?
15540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 $ac_includes_default
15549 #include <$ac_header>
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553   (eval $ac_compile) 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } &&
15560          { ac_try='test -z "$ac_c_werror_flag"
15561                          || test ! -s conftest.err'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest.$ac_objext'
15568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569   (eval $ac_try) 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; }; then
15573   ac_header_compiler=yes
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_header_compiler=no
15579 fi
15580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6
15583
15584 # Is the header present?
15585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593 #include <$ac_header>
15594 _ACEOF
15595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } >/dev/null; then
15603   if test -s conftest.err; then
15604     ac_cpp_err=$ac_c_preproc_warn_flag
15605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15606   else
15607     ac_cpp_err=
15608   fi
15609 else
15610   ac_cpp_err=yes
15611 fi
15612 if test -z "$ac_cpp_err"; then
15613   ac_header_preproc=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618   ac_header_preproc=no
15619 fi
15620 rm -f conftest.err conftest.$ac_ext
15621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15622 echo "${ECHO_T}$ac_header_preproc" >&6
15623
15624 # So?  What about this header?
15625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15626   yes:no: )
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15631     ac_header_preproc=yes
15632     ;;
15633   no:yes:* )
15634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15646     (
15647       cat <<\_ASBOX
15648 ## ---------------------------------- ##
15649 ## Report this to the libjava lists.  ##
15650 ## ---------------------------------- ##
15651 _ASBOX
15652     ) |
15653       sed "s/^/$as_me: WARNING:     /" >&2
15654     ;;
15655 esac
15656 echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15659   echo $ECHO_N "(cached) $ECHO_C" >&6
15660 else
15661   eval "$as_ac_Header=\$ac_header_preproc"
15662 fi
15663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15665
15666 fi
15667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15668   cat >>confdefs.h <<_ACEOF
15669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670 _ACEOF
15671
15672
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_INTTYPES_H 1
15675 _ACEOF
15676
15677
15678 cat >>confdefs.h <<\_ACEOF
15679 #define JV_HAVE_INTTYPES_H 1
15680 _ACEOF
15681
15682
15683 fi
15684
15685 done
15686
15687 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15688 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15689 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15690   echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692   cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 #include <sys/types.h>
15699 #include <sys/wait.h>
15700 #ifndef WEXITSTATUS
15701 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15702 #endif
15703 #ifndef WIFEXITED
15704 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15705 #endif
15706
15707 int
15708 main ()
15709 {
15710   int s;
15711   wait (&s);
15712   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719   (eval $ac_compile) 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } &&
15726          { ac_try='test -z "$ac_c_werror_flag"
15727                          || test ! -s conftest.err'
15728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729   (eval $ac_try) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); }; } &&
15733          { ac_try='test -s conftest.$ac_objext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_cv_header_sys_wait_h=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ac_cv_header_sys_wait_h=no
15745 fi
15746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15747 fi
15748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15749 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15750 if test $ac_cv_header_sys_wait_h = yes; then
15751
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_SYS_WAIT_H 1
15754 _ACEOF
15755
15756 fi
15757
15758
15759 echo "$as_me:$LINENO: checking for ssize_t" >&5
15760 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15761 if test "${ac_cv_type_ssize_t+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764   cat >conftest.$ac_ext <<_ACEOF
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770 $ac_includes_default
15771 int
15772 main ()
15773 {
15774 if ((ssize_t *) 0)
15775   return 0;
15776 if (sizeof (ssize_t))
15777   return 0;
15778   ;
15779   return 0;
15780 }
15781 _ACEOF
15782 rm -f conftest.$ac_objext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15784   (eval $ac_compile) 2>conftest.er1
15785   ac_status=$?
15786   grep -v '^ *+' conftest.er1 >conftest.err
15787   rm -f conftest.er1
15788   cat conftest.err >&5
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } &&
15791          { ac_try='test -z "$ac_c_werror_flag"
15792                          || test ! -s conftest.err'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; } &&
15798          { ac_try='test -s conftest.$ac_objext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   ac_cv_type_ssize_t=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_type_ssize_t=no
15810 fi
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 fi
15813 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15814 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15815 if test $ac_cv_type_ssize_t = yes; then
15816   :
15817 else
15818
15819 cat >>confdefs.h <<_ACEOF
15820 #define ssize_t int
15821 _ACEOF
15822
15823 fi
15824
15825 echo "$as_me:$LINENO: checking for magic_t" >&5
15826 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
15827 if test "${ac_cv_type_magic_t+set}" = set; then
15828   echo $ECHO_N "(cached) $ECHO_C" >&6
15829 else
15830   cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h.  */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h.  */
15836
15837 #ifdef HAVE_MAGIC_H
15838 #include <magic.h>
15839 #endif
15840
15841 int
15842 main ()
15843 {
15844 if ((magic_t *) 0)
15845   return 0;
15846 if (sizeof (magic_t))
15847   return 0;
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854   (eval $ac_compile) 2>conftest.er1
15855   ac_status=$?
15856   grep -v '^ *+' conftest.er1 >conftest.err
15857   rm -f conftest.er1
15858   cat conftest.err >&5
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } &&
15861          { ac_try='test -z "$ac_c_werror_flag"
15862                          || test ! -s conftest.err'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; } &&
15868          { ac_try='test -s conftest.$ac_objext'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_cv_type_magic_t=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 ac_cv_type_magic_t=no
15880 fi
15881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15882 fi
15883 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
15884 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
15885 if test $ac_cv_type_magic_t = yes; then
15886
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_MAGIC_T 1
15890 _ACEOF
15891
15892 fi
15893
15894
15895 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15896 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903 #include <sys/types.h>
15904 #if STDC_HEADERS
15905 #include <stdlib.h>
15906 #include <stddef.h>
15907 #endif
15908 #if HAVE_NETINET_IN_H
15909 #include <netinet/in.h>
15910 #endif
15911 int
15912 main ()
15913 {
15914 in_addr_t foo;
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921   (eval $ac_compile) 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } &&
15928          { ac_try='test -z "$ac_c_werror_flag"
15929                          || test ! -s conftest.err'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; } &&
15935          { ac_try='test -s conftest.$ac_objext'
15936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937   (eval $ac_try) 2>&5
15938   ac_status=$?
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); }; }; then
15941
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_IN_ADDR_T 1
15944 _ACEOF
15945
15946    echo "$as_me:$LINENO: result: yes" >&5
15947 echo "${ECHO_T}yes" >&6
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15954 fi
15955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15956
15957 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15958 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965 #include <netinet/in.h>
15966 int
15967 main ()
15968 {
15969 struct ip_mreq mreq;
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15976   (eval $ac_compile) 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -z "$ac_c_werror_flag"
15984                          || test ! -s conftest.err'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_STRUCT_IP_MREQ 1
15999 _ACEOF
16000
16001    echo "$as_me:$LINENO: result: yes" >&5
16002 echo "${ECHO_T}yes" >&6
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 echo "$as_me:$LINENO: result: no" >&5
16008 echo "${ECHO_T}no" >&6
16009 fi
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011
16012 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
16013 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
16014 cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h.  */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h.  */
16020 #include <netinet/in.h>
16021 int
16022 main ()
16023 {
16024 struct ipv6_mreq mreq6;
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031   (eval $ac_compile) 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -z "$ac_c_werror_flag"
16039                          || test ! -s conftest.err'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; } &&
16045          { ac_try='test -s conftest.$ac_objext'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_STRUCT_IPV6_MREQ 1
16054 _ACEOF
16055
16056    echo "$as_me:$LINENO: result: yes" >&5
16057 echo "${ECHO_T}yes" >&6
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 echo "$as_me:$LINENO: result: no" >&5
16063 echo "${ECHO_T}no" >&6
16064 fi
16065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16066
16067 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16068 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h.  */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h.  */
16075 #include <netinet/in.h>
16076 int
16077 main ()
16078 {
16079 struct sockaddr_in6 addr6;
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16086   (eval $ac_compile) 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag"
16094                          || test ! -s conftest.err'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; } &&
16100          { ac_try='test -s conftest.$ac_objext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106
16107 cat >>confdefs.h <<\_ACEOF
16108 #define HAVE_INET6 1
16109 _ACEOF
16110
16111    echo "$as_me:$LINENO: result: yes" >&5
16112 echo "${ECHO_T}yes" >&6
16113 else
16114   echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 echo "$as_me:$LINENO: result: no" >&5
16118 echo "${ECHO_T}no" >&6
16119 fi
16120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16121
16122 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16123 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130 #define _POSIX_PII_SOCKET
16131 #include <sys/types.h>
16132 #include <sys/socket.h>
16133 int
16134 main ()
16135 {
16136 socklen_t x = 5;
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16143   (eval $ac_compile) 2>conftest.er1
16144   ac_status=$?
16145   grep -v '^ *+' conftest.er1 >conftest.err
16146   rm -f conftest.er1
16147   cat conftest.err >&5
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); } &&
16150          { ac_try='test -z "$ac_c_werror_flag"
16151                          || test ! -s conftest.err'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; } &&
16157          { ac_try='test -s conftest.$ac_objext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163
16164 cat >>confdefs.h <<\_ACEOF
16165 #define HAVE_SOCKLEN_T 1
16166 _ACEOF
16167
16168    echo "$as_me:$LINENO: result: yes" >&5
16169 echo "${ECHO_T}yes" >&6
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 echo "$as_me:$LINENO: result: no" >&5
16175 echo "${ECHO_T}no" >&6
16176 fi
16177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16178
16179 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16180 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 #include <time.h>
16188 int
16189 main ()
16190 {
16191 struct tm tim; tim.tm_gmtoff = 0;
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16198   (eval $ac_compile) 2>conftest.er1
16199   ac_status=$?
16200   grep -v '^ *+' conftest.er1 >conftest.err
16201   rm -f conftest.er1
16202   cat conftest.err >&5
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } &&
16205          { ac_try='test -z "$ac_c_werror_flag"
16206                          || test ! -s conftest.err'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; } &&
16212          { ac_try='test -s conftest.$ac_objext'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218
16219 cat >>confdefs.h <<\_ACEOF
16220 #define STRUCT_TM_HAS_GMTOFF 1
16221 _ACEOF
16222
16223    echo "$as_me:$LINENO: result: yes" >&5
16224 echo "${ECHO_T}yes" >&6
16225 else
16226   echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 echo "$as_me:$LINENO: result: no" >&5
16230 echo "${ECHO_T}no" >&6
16231    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16232 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16233                cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h.  */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h.  */
16239 #include <time.h>
16240 int
16241 main ()
16242 {
16243 void i(){long z2 = 2*timezone;}
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250   (eval $ac_compile) 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } &&
16257          { ac_try='test -z "$ac_c_werror_flag"
16258                          || test ! -s conftest.err'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; } &&
16264          { ac_try='test -s conftest.$ac_objext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270
16271 cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_TIMEZONE 1
16273 _ACEOF
16274
16275       echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6
16283        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16284 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16285               cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h.  */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h.  */
16291 #include <time.h>
16292 int
16293 main ()
16294 {
16295 long z2 = _timezone;
16296   ;
16297   return 0;
16298 }
16299 _ACEOF
16300 rm -f conftest.$ac_objext
16301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16302   (eval $ac_compile) 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag"
16310                          || test ! -s conftest.err'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; } &&
16316          { ac_try='test -s conftest.$ac_objext'
16317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318   (eval $ac_try) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; }; then
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_UNDERSCORE_TIMEZONE 1
16325 _ACEOF
16326
16327           echo "$as_me:$LINENO: result: yes" >&5
16328 echo "${ECHO_T}yes" >&6
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 echo "$as_me:$LINENO: result: no" >&5
16334 echo "${ECHO_T}no" >&6
16335 fi
16336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16337 fi
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16341
16342 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16343 # for constant arguments.  Useless!
16344 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16345 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16346 if test "${ac_cv_working_alloca_h+set}" = set; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349   if test x$gcc_no_link = xyes; then
16350   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16352    { (exit 1); exit 1; }; }
16353 fi
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h.  */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h.  */
16360 #include <alloca.h>
16361 int
16362 main ()
16363 {
16364 char *p = (char *) alloca (2 * sizeof (int));
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371   (eval $ac_link) 2>conftest.er1
16372   ac_status=$?
16373   grep -v '^ *+' conftest.er1 >conftest.err
16374   rm -f conftest.er1
16375   cat conftest.err >&5
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -z "$ac_c_werror_flag"
16379                          || test ! -s conftest.err'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_cv_working_alloca_h=yes
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 ac_cv_working_alloca_h=no
16397 fi
16398 rm -f conftest.err conftest.$ac_objext \
16399       conftest$ac_exeext conftest.$ac_ext
16400 fi
16401 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16402 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16403 if test $ac_cv_working_alloca_h = yes; then
16404
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE_ALLOCA_H 1
16407 _ACEOF
16408
16409 fi
16410
16411 echo "$as_me:$LINENO: checking for alloca" >&5
16412 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16413 if test "${ac_cv_func_alloca_works+set}" = set; then
16414   echo $ECHO_N "(cached) $ECHO_C" >&6
16415 else
16416   if test x$gcc_no_link = xyes; then
16417   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16419    { (exit 1); exit 1; }; }
16420 fi
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 #ifdef __GNUC__
16428 # define alloca __builtin_alloca
16429 #else
16430 # ifdef _MSC_VER
16431 #  include <malloc.h>
16432 #  define alloca _alloca
16433 # else
16434 #  if HAVE_ALLOCA_H
16435 #   include <alloca.h>
16436 #  else
16437 #   ifdef _AIX
16438  #pragma alloca
16439 #   else
16440 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16441 char *alloca ();
16442 #    endif
16443 #   endif
16444 #  endif
16445 # endif
16446 #endif
16447
16448 int
16449 main ()
16450 {
16451 char *p = (char *) alloca (1);
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16458   (eval $ac_link) 2>conftest.er1
16459   ac_status=$?
16460   grep -v '^ *+' conftest.er1 >conftest.err
16461   rm -f conftest.er1
16462   cat conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } &&
16465          { ac_try='test -z "$ac_c_werror_flag"
16466                          || test ! -s conftest.err'
16467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468   (eval $ac_try) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; } &&
16472          { ac_try='test -s conftest$ac_exeext'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   ac_cv_func_alloca_works=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ac_cv_func_alloca_works=no
16484 fi
16485 rm -f conftest.err conftest.$ac_objext \
16486       conftest$ac_exeext conftest.$ac_ext
16487 fi
16488 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16489 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16490
16491 if test $ac_cv_func_alloca_works = yes; then
16492
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_ALLOCA 1
16495 _ACEOF
16496
16497 else
16498   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16499 # that cause trouble.  Some versions do not even contain alloca or
16500 # contain a buggy version.  If you still want to use their alloca,
16501 # use ar to extract alloca.o from them instead of compiling alloca.c.
16502
16503 ALLOCA=alloca.$ac_objext
16504
16505 cat >>confdefs.h <<\_ACEOF
16506 #define C_ALLOCA 1
16507 _ACEOF
16508
16509
16510 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16511 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16512 if test "${ac_cv_os_cray+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 #if defined(CRAY) && ! defined(CRAY2)
16522 webecray
16523 #else
16524 wenotbecray
16525 #endif
16526
16527 _ACEOF
16528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16529   $EGREP "webecray" >/dev/null 2>&1; then
16530   ac_cv_os_cray=yes
16531 else
16532   ac_cv_os_cray=no
16533 fi
16534 rm -f conftest*
16535
16536 fi
16537 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16538 echo "${ECHO_T}$ac_cv_os_cray" >&6
16539 if test $ac_cv_os_cray = yes; then
16540   for ac_func in _getb67 GETB67 getb67; do
16541     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542 echo "$as_me:$LINENO: checking for $ac_func" >&5
16543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16544 if eval "test \"\${$as_ac_var+set}\" = set"; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   if test x$gcc_no_link = xyes; then
16548   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16550    { (exit 1); exit 1; }; }
16551 fi
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16560 #define $ac_func innocuous_$ac_func
16561
16562 /* System header to define __stub macros and hopefully few prototypes,
16563     which can conflict with char $ac_func (); below.
16564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16565     <limits.h> exists even on freestanding compilers.  */
16566
16567 #ifdef __STDC__
16568 # include <limits.h>
16569 #else
16570 # include <assert.h>
16571 #endif
16572
16573 #undef $ac_func
16574
16575 /* Override any gcc2 internal prototype to avoid an error.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 {
16579 #endif
16580 /* We use char because int might match the return type of a gcc2
16581    builtin and then its argument prototype would still apply.  */
16582 char $ac_func ();
16583 /* The GNU C library defines this for functions which it implements
16584     to always fail with ENOSYS.  Some functions are actually named
16585     something starting with __ and the normal name is an alias.  */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 choke me
16588 #else
16589 char (*f) () = $ac_func;
16590 #endif
16591 #ifdef __cplusplus
16592 }
16593 #endif
16594
16595 int
16596 main ()
16597 {
16598 return f != $ac_func;
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605   (eval $ac_link) 2>conftest.er1
16606   ac_status=$?
16607   grep -v '^ *+' conftest.er1 >conftest.err
16608   rm -f conftest.er1
16609   cat conftest.err >&5
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); } &&
16612          { ac_try='test -z "$ac_c_werror_flag"
16613                          || test ! -s conftest.err'
16614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615   (eval $ac_try) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); }; } &&
16619          { ac_try='test -s conftest$ac_exeext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   eval "$as_ac_var=yes"
16626 else
16627   echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 eval "$as_ac_var=no"
16631 fi
16632 rm -f conftest.err conftest.$ac_objext \
16633       conftest$ac_exeext conftest.$ac_ext
16634 fi
16635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16637 if test `eval echo '${'$as_ac_var'}'` = yes; then
16638
16639 cat >>confdefs.h <<_ACEOF
16640 #define CRAY_STACKSEG_END $ac_func
16641 _ACEOF
16642
16643     break
16644 fi
16645
16646   done
16647 fi
16648
16649 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16650 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16651 if test "${ac_cv_c_stack_direction+set}" = set; then
16652   echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654   if test "$cross_compiling" = yes; then
16655   ac_cv_c_stack_direction=0
16656 else
16657   cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 int
16664 find_stack_direction ()
16665 {
16666   static char *addr = 0;
16667   auto char dummy;
16668   if (addr == 0)
16669     {
16670       addr = &dummy;
16671       return find_stack_direction ();
16672     }
16673   else
16674     return (&dummy > addr) ? 1 : -1;
16675 }
16676
16677 int
16678 main ()
16679 {
16680   exit (find_stack_direction () < 0);
16681 }
16682 _ACEOF
16683 rm -f conftest$ac_exeext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16685   (eval $ac_link) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690   (eval $ac_try) 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; }; then
16694   ac_cv_c_stack_direction=1
16695 else
16696   echo "$as_me: program exited with status $ac_status" >&5
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ( exit $ac_status )
16701 ac_cv_c_stack_direction=-1
16702 fi
16703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16704 fi
16705 fi
16706 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16707 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16708
16709 cat >>confdefs.h <<_ACEOF
16710 #define STACK_DIRECTION $ac_cv_c_stack_direction
16711 _ACEOF
16712
16713
16714 fi
16715
16716
16717 for ac_prog in perl
16718 do
16719   # Extract the first word of "$ac_prog", so it can be a program name with args.
16720 set dummy $ac_prog; ac_word=$2
16721 echo "$as_me:$LINENO: checking for $ac_word" >&5
16722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16723 if test "${ac_cv_prog_PERL+set}" = set; then
16724   echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726   if test -n "$PERL"; then
16727   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16728 else
16729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16730 for as_dir in $PATH
16731 do
16732   IFS=$as_save_IFS
16733   test -z "$as_dir" && as_dir=.
16734   for ac_exec_ext in '' $ac_executable_extensions; do
16735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16736     ac_cv_prog_PERL="$ac_prog"
16737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16738     break 2
16739   fi
16740 done
16741 done
16742
16743 fi
16744 fi
16745 PERL=$ac_cv_prog_PERL
16746 if test -n "$PERL"; then
16747   echo "$as_me:$LINENO: result: $PERL" >&5
16748 echo "${ECHO_T}$PERL" >&6
16749 else
16750   echo "$as_me:$LINENO: result: no" >&5
16751 echo "${ECHO_T}no" >&6
16752 fi
16753
16754   test -n "$PERL" && break
16755 done
16756 test -n "$PERL" || PERL="false"
16757
16758
16759 SYSDEP_SOURCES=
16760 SIGNAL_HANDLER_AUX=
16761
16762 case "${host}" in
16763  i?86-*-linux*)
16764     SIGNAL_HANDLER=include/i386-signal.h
16765     ;;
16766  sparc*-sun-solaris*)
16767     SIGNAL_HANDLER=include/sparc-signal.h
16768     ;;
16769 # ia64-*)
16770 #    SYSDEP_SOURCES=sysdep/ia64.c
16771 #    test -d sysdep || mkdir sysdep
16772 #    ;;
16773  hppa*-*-linux*)
16774     SIGNAL_HANDLER=include/pa-signal.h
16775     ;;
16776  hppa*-hp-hpux*)
16777     SIGNAL_HANDLER=include/hppa-signal.h
16778     ;;
16779  ia64-*-linux*)
16780     SIGNAL_HANDLER=include/dwarf2-signal.h
16781     ;;
16782  powerpc*-*-linux*)
16783     SIGNAL_HANDLER=include/powerpc-signal.h
16784     ;;
16785  alpha*-*-linux*)
16786     SIGNAL_HANDLER=include/dwarf2-signal.h
16787     ;;
16788  s390*-*-linux*)
16789     SIGNAL_HANDLER=include/s390-signal.h
16790     ;;
16791  x86_64*-*-linux*)
16792     SIGNAL_HANDLER=include/x86_64-signal.h
16793     SIGNAL_HANDLER_AUX=include/i386-signal.h
16794     ;;
16795  sparc*-*-linux*)
16796     SIGNAL_HANDLER=include/dwarf2-signal.h
16797     ;;
16798  sh*-*-linux*)
16799     SIGNAL_HANDLER=include/sh-signal.h
16800     ;;
16801  *mingw*)
16802     SIGNAL_HANDLER=include/win32-signal.h
16803     ;;
16804  mips*-*-linux*)
16805     SIGNAL_HANDLER=include/mips-signal.h
16806     ;;
16807  powerpc*-*-darwin*)
16808     SIGNAL_HANDLER=include/darwin-signal.h
16809     ;;
16810  *)
16811     SIGNAL_HANDLER=include/default-signal.h
16812     ;;
16813 esac
16814
16815 # If we're using sjlj exceptions, forget what we just learned.
16816 if test "$enable_sjlj_exceptions" = yes; then
16817    SIGNAL_HANDLER=include/default-signal.h
16818    SIGNAL_HANDLER_AUX=
16819 fi
16820
16821
16822
16823 if test -z "$SIGNAL_HANDLER_AUX"; then
16824   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16825 fi
16826
16827                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16828
16829
16830 if test "${multilib}" = "yes"; then
16831   multilib_arg="--enable-multilib"
16832 else
16833   multilib_arg=
16834 fi
16835
16836 # See if we support thread-local storage.
16837
16838    # Check whether --enable-tls or --disable-tls was given.
16839 if test "${enable_tls+set}" = set; then
16840   enableval="$enable_tls"
16841
16842       case "$enableval" in
16843        yes|no) ;;
16844        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16845 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16846    { (exit 1); exit 1; }; } ;;
16847       esac
16848
16849 else
16850   enable_tls=yes
16851 fi;
16852
16853   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16854 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16855 if test "${have_tls+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858
16859     if test "$cross_compiling" = yes; then
16860                 if test x$gcc_no_link = xyes; then
16861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16863    { (exit 1); exit 1; }; }
16864 fi
16865 cat >conftest.$ac_ext <<_ACEOF
16866 __thread int a; int b; int main() { return a = b; }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870   (eval $ac_link) 2>conftest.er1
16871   ac_status=$?
16872   grep -v '^ *+' conftest.er1 >conftest.err
16873   rm -f conftest.er1
16874   cat conftest.err >&5
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -z "$ac_c_werror_flag"
16878                          || test ! -s conftest.err'
16879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880   (eval $ac_try) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; } &&
16884          { ac_try='test -s conftest$ac_exeext'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   have_tls=yes
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 have_tls=no
16896 fi
16897 rm -f conftest.err conftest.$ac_objext \
16898       conftest$ac_exeext conftest.$ac_ext
16899
16900
16901 else
16902   cat >conftest.$ac_ext <<_ACEOF
16903 __thread int a; int b; int main() { return a = b; }
16904 _ACEOF
16905 rm -f conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907   (eval $ac_link) 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912   (eval $ac_try) 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; }; then
16916                       chktls_save_LDFLAGS="$LDFLAGS"
16917       LDFLAGS="-static $LDFLAGS"
16918       if test x$gcc_no_link = xyes; then
16919   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16921    { (exit 1); exit 1; }; }
16922 fi
16923 cat >conftest.$ac_ext <<_ACEOF
16924 int main() { return 0; }
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16928   (eval $ac_link) 2>conftest.er1
16929   ac_status=$?
16930   grep -v '^ *+' conftest.er1 >conftest.err
16931   rm -f conftest.er1
16932   cat conftest.err >&5
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); } &&
16935          { ac_try='test -z "$ac_c_werror_flag"
16936                          || test ! -s conftest.err'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest$ac_exeext'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948   if test "$cross_compiling" = yes; then
16949   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16950 See \`config.log' for more details." >&5
16951 echo "$as_me: error: cannot run test program while cross compiling
16952 See \`config.log' for more details." >&2;}
16953    { (exit 1); exit 1; }; }
16954 else
16955   cat >conftest.$ac_ext <<_ACEOF
16956 __thread int a; int b; int main() { return a = b; }
16957 _ACEOF
16958 rm -f conftest$ac_exeext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16960   (eval $ac_link) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; }; then
16969   have_tls=yes
16970 else
16971   echo "$as_me: program exited with status $ac_status" >&5
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 ( exit $ac_status )
16976 have_tls=no
16977 fi
16978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16979 fi
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 have_tls=yes
16985 fi
16986 rm -f conftest.err conftest.$ac_objext \
16987       conftest$ac_exeext conftest.$ac_ext
16988       LDFLAGS="$chktls_save_LDFLAGS"
16989       if test $have_tls = yes; then
16990                                                 chktls_save_CFLAGS="$CFLAGS"
16991         thread_CFLAGS=failed
16992         for flag in '' '-pthread' '-lpthread'; do
16993           CFLAGS="$flag $chktls_save_CFLAGS"
16994           if test x$gcc_no_link = xyes; then
16995   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16997    { (exit 1); exit 1; }; }
16998 fi
16999 cat >conftest.$ac_ext <<_ACEOF
17000 /* confdefs.h.  */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h.  */
17005 #include <pthread.h>
17006                 void *g(void *d) { return NULL; }
17007 int
17008 main ()
17009 {
17010 pthread_t t; pthread_create(&t,NULL,g,NULL);
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017   (eval $ac_link) 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag"
17025                          || test ! -s conftest.err'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } &&
17031          { ac_try='test -s conftest$ac_exeext'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   thread_CFLAGS="$flag"
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 fi
17043 rm -f conftest.err conftest.$ac_objext \
17044       conftest$ac_exeext conftest.$ac_ext
17045           if test "X$thread_CFLAGS" != Xfailed; then
17046             break
17047           fi
17048         done
17049         CFLAGS="$chktls_save_CFLAGS"
17050         if test "X$thread_CFLAGS" != Xfailed; then
17051           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17052           if test "$cross_compiling" = yes; then
17053   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17054 See \`config.log' for more details." >&5
17055 echo "$as_me: error: cannot run test program while cross compiling
17056 See \`config.log' for more details." >&2;}
17057    { (exit 1); exit 1; }; }
17058 else
17059   cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 #include <pthread.h>
17066                 __thread int a;
17067                 static int *a_in_other_thread;
17068                 static void *
17069                 thread_func (void *arg)
17070                 {
17071                   a_in_other_thread = &a;
17072                   return (void *)0;
17073                 }
17074 int
17075 main ()
17076 {
17077 pthread_t thread;
17078                 void *thread_retval;
17079                 int *a_in_main_thread;
17080                 if (pthread_create (&thread, (pthread_attr_t *)0,
17081                                     thread_func, (void *)0))
17082                   return 0;
17083                 a_in_main_thread = &a;
17084                 if (pthread_join (thread, &thread_retval))
17085                   return 0;
17086                 return (a_in_other_thread == a_in_main_thread);
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093   (eval $ac_link) 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102   have_tls=yes
17103 else
17104   echo "$as_me: program exited with status $ac_status" >&5
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 ( exit $ac_status )
17109 have_tls=no
17110 fi
17111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17112 fi
17113           CFLAGS="$chktls_save_CFLAGS"
17114         fi
17115       fi
17116 else
17117   echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ( exit $ac_status )
17122 have_tls=no
17123 fi
17124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17125 fi
17126 fi
17127 echo "$as_me:$LINENO: result: $have_tls" >&5
17128 echo "${ECHO_T}$have_tls" >&6
17129   if test "$enable_tls $have_tls" = "yes yes"; then
17130
17131 cat >>confdefs.h <<\_ACEOF
17132 #define HAVE_TLS 1
17133 _ACEOF
17134
17135   fi
17136
17137 # For _Unwind_GetIPInfo.
17138
17139
17140
17141   ac_ext=cc
17142 ac_cpp='$CXXCPP $CPPFLAGS'
17143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17146
17147   ac_save_CXXFLAGS="$CXXFLAGS"
17148   CXXFLAGS="$CXXFLAGS -fno-exceptions"
17149   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
17150 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
17151   if test "${gcc_cv_getipinfo+set}" = set; then
17152   echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154
17155   if test x$gcc_no_link = xyes; then
17156   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17158    { (exit 1); exit 1; }; }
17159 fi
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166 extern "C" { extern void _Unwind_GetIPInfo(); }
17167 int
17168 main ()
17169 {
17170 _Unwind_GetIPInfo();
17171   ;
17172   return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177   (eval $ac_link) 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -z "$ac_cxx_werror_flag"
17185                          || test ! -s conftest.err'
17186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187   (eval $ac_try) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; } &&
17191          { ac_try='test -s conftest$ac_exeext'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; }; then
17197   gcc_cv_getipinfo=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 gcc_cv_getipinfo=no
17203 fi
17204 rm -f conftest.err conftest.$ac_objext \
17205       conftest$ac_exeext conftest.$ac_ext
17206
17207 fi
17208
17209   if test $gcc_cv_getipinfo = yes; then
17210
17211 cat >>confdefs.h <<\_ACEOF
17212 #define HAVE_GETIPINFO 1
17213 _ACEOF
17214
17215   fi
17216   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17217 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17218   CXXFLAGS="$ac_save_CXXFLAGS"
17219   ac_ext=c
17220 ac_cpp='$CPP $CPPFLAGS'
17221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17224
17225
17226
17227 # See if linker supports anonymous version scripts.
17228 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
17229 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
17230 if test "${libjava_cv_anon_version_script+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
17234    libjava_cv_anon_version_script=no
17235    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
17236    echo '{ global: globalsymb*; local: *; };' > conftest.map
17237    if test x$gcc_no_link = xyes; then
17238   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17239 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17240    { (exit 1); exit 1; }; }
17241 fi
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248 void globalsymbol (void) {} void localsymbol (void) {}
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259   (eval $ac_link) 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag"
17267                          || test ! -s conftest.err'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest$ac_exeext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   libjava_cv_anon_version_script=yes
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 fi
17285 rm -f conftest.err conftest.$ac_objext \
17286       conftest$ac_exeext conftest.$ac_ext
17287    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
17288
17289 fi
17290 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
17291 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
17292
17293
17294 if test "$libjava_cv_anon_version_script" = yes; then
17295   ANONVERSCRIPT_TRUE=
17296   ANONVERSCRIPT_FALSE='#'
17297 else
17298   ANONVERSCRIPT_TRUE='#'
17299   ANONVERSCRIPT_FALSE=
17300 fi
17301
17302
17303 # Check if linker supports static linking on a per library basis
17304 LD_START_STATIC_SPEC=
17305 LD_FINISH_STATIC_SPEC=
17306 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17307   if $LD --help 2>&1 | grep -q -e -non_shared ; then
17308     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17309     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17310   fi
17311 fi
17312
17313
17314
17315 here=`${PWDCMD-pwd}`
17316
17317
17318 # We get this from the environment.
17319
17320
17321                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17322
17323
17324           ac_config_files="$ac_config_files scripts/jar"
17325
17326
17327           ac_config_commands="$ac_config_commands default"
17328
17329
17330 cat >confcache <<\_ACEOF
17331 # This file is a shell script that caches the results of configure
17332 # tests run on this system so they can be shared between configure
17333 # scripts and configure runs, see configure's option --config-cache.
17334 # It is not useful on other systems.  If it contains results you don't
17335 # want to keep, you may remove or edit it.
17336 #
17337 # config.status only pays attention to the cache file if you give it
17338 # the --recheck option to rerun configure.
17339 #
17340 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17341 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17342 # following values.
17343
17344 _ACEOF
17345
17346 # The following way of writing the cache mishandles newlines in values,
17347 # but we know of no workaround that is simple, portable, and efficient.
17348 # So, don't put newlines in cache variables' values.
17349 # Ultrix sh set writes to stderr and can't be redirected directly,
17350 # and sets the high bit in the cache file unless we assign to the vars.
17351 {
17352   (set) 2>&1 |
17353     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17354     *ac_space=\ *)
17355       # `set' does not quote correctly, so add quotes (double-quote
17356       # substitution turns \\\\ into \\, and sed turns \\ into \).
17357       sed -n \
17358         "s/'/'\\\\''/g;
17359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17360       ;;
17361     *)
17362       # `set' quotes correctly as required by POSIX, so do not add quotes.
17363       sed -n \
17364         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17365       ;;
17366     esac;
17367 } |
17368   sed '
17369      t clear
17370      : clear
17371      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17372      t end
17373      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17374      : end' >>confcache
17375 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17376   if test -w $cache_file; then
17377     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17378     cat confcache >$cache_file
17379   else
17380     echo "not updating unwritable cache $cache_file"
17381   fi
17382 fi
17383 rm -f confcache
17384
17385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17386 # Let make expand exec_prefix.
17387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17388
17389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17391 # trailing colons and then remove the whole line if VPATH becomes empty
17392 # (actually we leave an empty line to preserve line numbers).
17393 if test "x$srcdir" = x.; then
17394   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17395 s/:*\$(srcdir):*/:/;
17396 s/:*\${srcdir}:*/:/;
17397 s/:*@srcdir@:*/:/;
17398 s/^\([^=]*=[     ]*\):*/\1/;
17399 s/:*$//;
17400 s/^[^=]*=[       ]*$//;
17401 }'
17402 fi
17403
17404 DEFS=-DHAVE_CONFIG_H
17405
17406 ac_libobjs=
17407 ac_ltlibobjs=
17408 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17409   # 1. Remove the extension, and $U if already installed.
17410   ac_i=`echo "$ac_i" |
17411          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17412   # 2. Add them.
17413   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17414   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17415 done
17416 LIBOBJS=$ac_libobjs
17417
17418 LTLIBOBJS=$ac_ltlibobjs
17419
17420
17421 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17422   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17423 Usually this means the macro was only invoked conditionally." >&5
17424 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17425 Usually this means the macro was only invoked conditionally." >&2;}
17426    { (exit 1); exit 1; }; }
17427 fi
17428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17429   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17430 Usually this means the macro was only invoked conditionally." >&5
17431 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17432 Usually this means the macro was only invoked conditionally." >&2;}
17433    { (exit 1); exit 1; }; }
17434 fi
17435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17436   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17437 Usually this means the macro was only invoked conditionally." >&5
17438 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17439 Usually this means the macro was only invoked conditionally." >&2;}
17440    { (exit 1); exit 1; }; }
17441 fi
17442 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17443   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17444 Usually this means the macro was only invoked conditionally." >&5
17445 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17446 Usually this means the macro was only invoked conditionally." >&2;}
17447    { (exit 1); exit 1; }; }
17448 fi
17449 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17450   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17451 Usually this means the macro was only invoked conditionally." >&5
17452 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17453 Usually this means the macro was only invoked conditionally." >&2;}
17454    { (exit 1); exit 1; }; }
17455 fi
17456 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17457   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17458 Usually this means the macro was only invoked conditionally." >&5
17459 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17460 Usually this means the macro was only invoked conditionally." >&2;}
17461    { (exit 1); exit 1; }; }
17462 fi
17463 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17464   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17465 Usually this means the macro was only invoked conditionally." >&5
17466 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17467 Usually this means the macro was only invoked conditionally." >&2;}
17468    { (exit 1); exit 1; }; }
17469 fi
17470 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17471   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17472 Usually this means the macro was only invoked conditionally." >&5
17473 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17474 Usually this means the macro was only invoked conditionally." >&2;}
17475    { (exit 1); exit 1; }; }
17476 fi
17477 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17478   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17479 Usually this means the macro was only invoked conditionally." >&5
17480 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17481 Usually this means the macro was only invoked conditionally." >&2;}
17482    { (exit 1); exit 1; }; }
17483 fi
17484 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17485   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17486 Usually this means the macro was only invoked conditionally." >&5
17487 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17488 Usually this means the macro was only invoked conditionally." >&2;}
17489    { (exit 1); exit 1; }; }
17490 fi
17491 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17492   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17493 Usually this means the macro was only invoked conditionally." >&5
17494 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17495 Usually this means the macro was only invoked conditionally." >&2;}
17496    { (exit 1); exit 1; }; }
17497 fi
17498 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17499   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17500 Usually this means the macro was only invoked conditionally." >&5
17501 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17502 Usually this means the macro was only invoked conditionally." >&2;}
17503    { (exit 1); exit 1; }; }
17504 fi
17505 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17506   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17507 Usually this means the macro was only invoked conditionally." >&5
17508 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17509 Usually this means the macro was only invoked conditionally." >&2;}
17510    { (exit 1); exit 1; }; }
17511 fi
17512 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17513   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17514 Usually this means the macro was only invoked conditionally." >&5
17515 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17516 Usually this means the macro was only invoked conditionally." >&2;}
17517    { (exit 1); exit 1; }; }
17518 fi
17519 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17520   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17521 Usually this means the macro was only invoked conditionally." >&5
17522 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17523 Usually this means the macro was only invoked conditionally." >&2;}
17524    { (exit 1); exit 1; }; }
17525 fi
17526 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17527   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17528 Usually this means the macro was only invoked conditionally." >&5
17529 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17530 Usually this means the macro was only invoked conditionally." >&2;}
17531    { (exit 1); exit 1; }; }
17532 fi
17533 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17534   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17535 Usually this means the macro was only invoked conditionally." >&5
17536 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17537 Usually this means the macro was only invoked conditionally." >&2;}
17538    { (exit 1); exit 1; }; }
17539 fi
17540 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17541   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17542 Usually this means the macro was only invoked conditionally." >&5
17543 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17544 Usually this means the macro was only invoked conditionally." >&2;}
17545    { (exit 1); exit 1; }; }
17546 fi
17547 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17548   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17549 Usually this means the macro was only invoked conditionally." >&5
17550 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17551 Usually this means the macro was only invoked conditionally." >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17555   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17556 Usually this means the macro was only invoked conditionally." >&5
17557 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17558 Usually this means the macro was only invoked conditionally." >&2;}
17559    { (exit 1); exit 1; }; }
17560 fi
17561 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17562   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17563 Usually this means the macro was only invoked conditionally." >&5
17564 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17565 Usually this means the macro was only invoked conditionally." >&2;}
17566    { (exit 1); exit 1; }; }
17567 fi
17568 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17569   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17570 Usually this means the macro was only invoked conditionally." >&5
17571 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17572 Usually this means the macro was only invoked conditionally." >&2;}
17573    { (exit 1); exit 1; }; }
17574 fi
17575 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17576   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17577 Usually this means the macro was only invoked conditionally." >&5
17578 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17579 Usually this means the macro was only invoked conditionally." >&2;}
17580    { (exit 1); exit 1; }; }
17581 fi
17582 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17583   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17584 Usually this means the macro was only invoked conditionally." >&5
17585 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17586 Usually this means the macro was only invoked conditionally." >&2;}
17587    { (exit 1); exit 1; }; }
17588 fi
17589 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17590   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17591 Usually this means the macro was only invoked conditionally." >&5
17592 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17593 Usually this means the macro was only invoked conditionally." >&2;}
17594    { (exit 1); exit 1; }; }
17595 fi
17596 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
17597   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
17598 Usually this means the macro was only invoked conditionally." >&5
17599 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
17600 Usually this means the macro was only invoked conditionally." >&2;}
17601    { (exit 1); exit 1; }; }
17602 fi
17603
17604 : ${CONFIG_STATUS=./config.status}
17605 ac_clean_files_save=$ac_clean_files
17606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17607 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17608 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17609 cat >$CONFIG_STATUS <<_ACEOF
17610 #! $SHELL
17611 # Generated by $as_me.
17612 # Run this file to recreate the current configuration.
17613 # Compiler output produced by configure, useful for debugging
17614 # configure, is in config.log if it exists.
17615
17616 debug=false
17617 ac_cs_recheck=false
17618 ac_cs_silent=false
17619 SHELL=\${CONFIG_SHELL-$SHELL}
17620 _ACEOF
17621
17622 cat >>$CONFIG_STATUS <<\_ACEOF
17623 ## --------------------- ##
17624 ## M4sh Initialization.  ##
17625 ## --------------------- ##
17626
17627 # Be Bourne compatible
17628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17629   emulate sh
17630   NULLCMD=:
17631   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17632   # is contrary to our usage.  Disable this feature.
17633   alias -g '${1+"$@"}'='"$@"'
17634 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17635   set -o posix
17636 fi
17637 DUALCASE=1; export DUALCASE # for MKS sh
17638
17639 # Support unset when possible.
17640 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17641   as_unset=unset
17642 else
17643   as_unset=false
17644 fi
17645
17646
17647 # Work around bugs in pre-3.0 UWIN ksh.
17648 $as_unset ENV MAIL MAILPATH
17649 PS1='$ '
17650 PS2='> '
17651 PS4='+ '
17652
17653 # NLS nuisances.
17654 for as_var in \
17655   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17656   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17657   LC_TELEPHONE LC_TIME
17658 do
17659   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17660     eval $as_var=C; export $as_var
17661   else
17662     $as_unset $as_var
17663   fi
17664 done
17665
17666 # Required to use basename.
17667 if expr a : '\(a\)' >/dev/null 2>&1; then
17668   as_expr=expr
17669 else
17670   as_expr=false
17671 fi
17672
17673 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17674   as_basename=basename
17675 else
17676   as_basename=false
17677 fi
17678
17679
17680 # Name of the executable.
17681 as_me=`$as_basename "$0" ||
17682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17683          X"$0" : 'X\(//\)$' \| \
17684          X"$0" : 'X\(/\)$' \| \
17685          .     : '\(.\)' 2>/dev/null ||
17686 echo X/"$0" |
17687     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17688           /^X\/\(\/\/\)$/{ s//\1/; q; }
17689           /^X\/\(\/\).*/{ s//\1/; q; }
17690           s/.*/./; q'`
17691
17692
17693 # PATH needs CR, and LINENO needs CR and PATH.
17694 # Avoid depending upon Character Ranges.
17695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17698 as_cr_digits='0123456789'
17699 as_cr_alnum=$as_cr_Letters$as_cr_digits
17700
17701 # The user is always right.
17702 if test "${PATH_SEPARATOR+set}" != set; then
17703   echo "#! /bin/sh" >conf$$.sh
17704   echo  "exit 0"   >>conf$$.sh
17705   chmod +x conf$$.sh
17706   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17707     PATH_SEPARATOR=';'
17708   else
17709     PATH_SEPARATOR=:
17710   fi
17711   rm -f conf$$.sh
17712 fi
17713
17714
17715   as_lineno_1=$LINENO
17716   as_lineno_2=$LINENO
17717   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17718   test "x$as_lineno_1" != "x$as_lineno_2" &&
17719   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17720   # Find who we are.  Look in the path if we contain no path at all
17721   # relative or not.
17722   case $0 in
17723     *[\\/]* ) as_myself=$0 ;;
17724     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725 for as_dir in $PATH
17726 do
17727   IFS=$as_save_IFS
17728   test -z "$as_dir" && as_dir=.
17729   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17730 done
17731
17732        ;;
17733   esac
17734   # We did not find ourselves, most probably we were run as `sh COMMAND'
17735   # in which case we are not to be found in the path.
17736   if test "x$as_myself" = x; then
17737     as_myself=$0
17738   fi
17739   if test ! -f "$as_myself"; then
17740     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17741 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17742    { (exit 1); exit 1; }; }
17743   fi
17744   case $CONFIG_SHELL in
17745   '')
17746     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17747 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17748 do
17749   IFS=$as_save_IFS
17750   test -z "$as_dir" && as_dir=.
17751   for as_base in sh bash ksh sh5; do
17752          case $as_dir in
17753          /*)
17754            if ("$as_dir/$as_base" -c '
17755   as_lineno_1=$LINENO
17756   as_lineno_2=$LINENO
17757   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17758   test "x$as_lineno_1" != "x$as_lineno_2" &&
17759   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17760              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17761              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17762              CONFIG_SHELL=$as_dir/$as_base
17763              export CONFIG_SHELL
17764              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17765            fi;;
17766          esac
17767        done
17768 done
17769 ;;
17770   esac
17771
17772   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17773   # uniformly replaced by the line number.  The first 'sed' inserts a
17774   # line-number line before each line; the second 'sed' does the real
17775   # work.  The second script uses 'N' to pair each line-number line
17776   # with the numbered line, and appends trailing '-' during
17777   # substitution so that $LINENO is not a special case at line end.
17778   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17779   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17780   sed '=' <$as_myself |
17781     sed '
17782       N
17783       s,$,-,
17784       : loop
17785       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17786       t loop
17787       s,-$,,
17788       s,^['$as_cr_digits']*\n,,
17789     ' >$as_me.lineno &&
17790   chmod +x $as_me.lineno ||
17791     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17792 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17793    { (exit 1); exit 1; }; }
17794
17795   # Don't try to exec as it changes $[0], causing all sort of problems
17796   # (the dirname of $[0] is not the place where we might find the
17797   # original and so on.  Autoconf is especially sensible to this).
17798   . ./$as_me.lineno
17799   # Exit status is that of the last command.
17800   exit
17801 }
17802
17803
17804 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17805   *c*,-n*) ECHO_N= ECHO_C='
17806 ' ECHO_T='      ' ;;
17807   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17808   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17809 esac
17810
17811 if expr a : '\(a\)' >/dev/null 2>&1; then
17812   as_expr=expr
17813 else
17814   as_expr=false
17815 fi
17816
17817 rm -f conf$$ conf$$.exe conf$$.file
17818 echo >conf$$.file
17819 if ln -s conf$$.file conf$$ 2>/dev/null; then
17820   # We could just check for DJGPP; but this test a) works b) is more generic
17821   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17822   if test -f conf$$.exe; then
17823     # Don't use ln at all; we don't have any links
17824     as_ln_s='cp -p'
17825   else
17826     as_ln_s='ln -s'
17827   fi
17828 elif ln conf$$.file conf$$ 2>/dev/null; then
17829   as_ln_s=ln
17830 else
17831   as_ln_s='cp -p'
17832 fi
17833 rm -f conf$$ conf$$.exe conf$$.file
17834
17835 if mkdir -p . 2>/dev/null; then
17836   as_mkdir_p=:
17837 else
17838   test -d ./-p && rmdir ./-p
17839   as_mkdir_p=false
17840 fi
17841
17842 as_executable_p="test -f"
17843
17844 # Sed expression to map a string onto a valid CPP name.
17845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17846
17847 # Sed expression to map a string onto a valid variable name.
17848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17849
17850
17851 # IFS
17852 # We need space, tab and new line, in precisely that order.
17853 as_nl='
17854 '
17855 IFS="   $as_nl"
17856
17857 # CDPATH.
17858 $as_unset CDPATH
17859
17860 exec 6>&1
17861
17862 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17863 # report actual input values of CONFIG_FILES etc. instead of their
17864 # values after options handling.  Logging --version etc. is OK.
17865 exec 5>>config.log
17866 {
17867   echo
17868   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17869 ## Running $as_me. ##
17870 _ASBOX
17871 } >&5
17872 cat >&5 <<_CSEOF
17873
17874 This file was extended by libjava $as_me version-unused, which was
17875 generated by GNU Autoconf 2.59.  Invocation command line was
17876
17877   CONFIG_FILES    = $CONFIG_FILES
17878   CONFIG_HEADERS  = $CONFIG_HEADERS
17879   CONFIG_LINKS    = $CONFIG_LINKS
17880   CONFIG_COMMANDS = $CONFIG_COMMANDS
17881   $ $0 $@
17882
17883 _CSEOF
17884 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17885 echo >&5
17886 _ACEOF
17887
17888 # Files that config.status was made for.
17889 if test -n "$ac_config_files"; then
17890   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17891 fi
17892
17893 if test -n "$ac_config_headers"; then
17894   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17895 fi
17896
17897 if test -n "$ac_config_links"; then
17898   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17899 fi
17900
17901 if test -n "$ac_config_commands"; then
17902   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17903 fi
17904
17905 cat >>$CONFIG_STATUS <<\_ACEOF
17906
17907 ac_cs_usage="\
17908 \`$as_me' instantiates files from templates according to the
17909 current configuration.
17910
17911 Usage: $0 [OPTIONS] [FILE]...
17912
17913   -h, --help       print this help, then exit
17914   -V, --version    print version number, then exit
17915   -q, --quiet      do not print progress messages
17916   -d, --debug      don't remove temporary files
17917       --recheck    update $as_me by reconfiguring in the same conditions
17918   --file=FILE[:TEMPLATE]
17919                    instantiate the configuration file FILE
17920   --header=FILE[:TEMPLATE]
17921                    instantiate the configuration header FILE
17922
17923 Configuration files:
17924 $config_files
17925
17926 Configuration headers:
17927 $config_headers
17928
17929 Configuration links:
17930 $config_links
17931
17932 Configuration commands:
17933 $config_commands
17934
17935 Report bugs to <bug-autoconf@gnu.org>."
17936 _ACEOF
17937
17938 cat >>$CONFIG_STATUS <<_ACEOF
17939 ac_cs_version="\\
17940 libjava config.status version-unused
17941 configured by $0, generated by GNU Autoconf 2.59,
17942   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17943
17944 Copyright (C) 2003 Free Software Foundation, Inc.
17945 This config.status script is free software; the Free Software Foundation
17946 gives unlimited permission to copy, distribute and modify it."
17947 srcdir=$srcdir
17948 INSTALL="$INSTALL"
17949 _ACEOF
17950
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17952 # If no file are specified by the user, then we need to provide default
17953 # value.  By we need to know if files were specified by the user.
17954 ac_need_defaults=:
17955 while test $# != 0
17956 do
17957   case $1 in
17958   --*=*)
17959     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17960     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17961     ac_shift=:
17962     ;;
17963   -*)
17964     ac_option=$1
17965     ac_optarg=$2
17966     ac_shift=shift
17967     ;;
17968   *) # This is not an option, so the user has probably given explicit
17969      # arguments.
17970      ac_option=$1
17971      ac_need_defaults=false;;
17972   esac
17973
17974   case $ac_option in
17975   # Handling of the options.
17976 _ACEOF
17977 cat >>$CONFIG_STATUS <<\_ACEOF
17978   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17979     ac_cs_recheck=: ;;
17980   --version | --vers* | -V )
17981     echo "$ac_cs_version"; exit 0 ;;
17982   --he | --h)
17983     # Conflict between --help and --header
17984     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17985 Try \`$0 --help' for more information." >&5
17986 echo "$as_me: error: ambiguous option: $1
17987 Try \`$0 --help' for more information." >&2;}
17988    { (exit 1); exit 1; }; };;
17989   --help | --hel | -h )
17990     echo "$ac_cs_usage"; exit 0 ;;
17991   --debug | --d* | -d )
17992     debug=: ;;
17993   --file | --fil | --fi | --f )
17994     $ac_shift
17995     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17996     ac_need_defaults=false;;
17997   --header | --heade | --head | --hea )
17998     $ac_shift
17999     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18000     ac_need_defaults=false;;
18001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18002   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18003     ac_cs_silent=: ;;
18004
18005   # This is an error.
18006   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18007 Try \`$0 --help' for more information." >&5
18008 echo "$as_me: error: unrecognized option: $1
18009 Try \`$0 --help' for more information." >&2;}
18010    { (exit 1); exit 1; }; } ;;
18011
18012   *) ac_config_targets="$ac_config_targets $1" ;;
18013
18014   esac
18015   shift
18016 done
18017
18018 ac_configure_extra_args=
18019
18020 if $ac_cs_silent; then
18021   exec 6>/dev/null
18022   ac_configure_extra_args="$ac_configure_extra_args --silent"
18023 fi
18024
18025 _ACEOF
18026 cat >>$CONFIG_STATUS <<_ACEOF
18027 if \$ac_cs_recheck; then
18028   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18029   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18030 fi
18031
18032 _ACEOF
18033
18034 cat >>$CONFIG_STATUS <<_ACEOF
18035 #
18036 # INIT-COMMANDS section.
18037 #
18038
18039
18040 srcdir="$srcdir"
18041 host="$host"
18042 target="$target"
18043 with_multisubdir="$with_multisubdir"
18044 with_multisrctop="$with_multisrctop"
18045 with_target_subdir="$with_target_subdir"
18046 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18047 multi_basedir="$multi_basedir"
18048 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18049 CC="$CC"
18050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18051 srcdir=${srcdir}
18052 host=${host}
18053 target=${target}
18054 with_multisubdir=${with_multisubdir}
18055 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18056 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18057 multi_basedir=${multi_basedir}
18058 CC="${CC}"
18059 CXX="${CXX}"
18060 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
18061
18062
18063 _ACEOF
18064
18065
18066
18067 cat >>$CONFIG_STATUS <<\_ACEOF
18068 for ac_config_target in $ac_config_targets
18069 do
18070   case "$ac_config_target" in
18071   # Handling of arguments.
18072   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18073   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
18074   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
18075   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
18076   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
18077   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18078   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18079   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
18080   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
18081   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
18082   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
18083   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
18084   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
18085   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
18086   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
18087   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
18088   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
18089   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
18090   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
18091   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
18092   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
18093   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
18094   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
18095   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
18096   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
18097   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18098   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18099   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18100   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18101   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
18102   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18104    { (exit 1); exit 1; }; };;
18105   esac
18106 done
18107
18108 # If the user did not use the arguments to specify the items to instantiate,
18109 # then the envvar interface is used.  Set only those that are not.
18110 # We use the long form for the default assignment because of an extremely
18111 # bizarre bug on SunOS 4.1.3.
18112 if $ac_need_defaults; then
18113   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18114   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18115   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18116   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18117 fi
18118
18119 # Have a temporary directory for convenience.  Make it in the build tree
18120 # simply because there is no reason to put it here, and in addition,
18121 # creating and moving files from /tmp can sometimes cause problems.
18122 # Create a temporary directory, and hook for its removal unless debugging.
18123 $debug ||
18124 {
18125   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18126   trap '{ (exit 1); exit 1; }' 1 2 13 15
18127 }
18128
18129 # Create a (secure) tmp directory for tmp files.
18130
18131 {
18132   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18133   test -n "$tmp" && test -d "$tmp"
18134 }  ||
18135 {
18136   tmp=./confstat$$-$RANDOM
18137   (umask 077 && mkdir $tmp)
18138 } ||
18139 {
18140    echo "$me: cannot create a temporary directory in ." >&2
18141    { (exit 1); exit 1; }
18142 }
18143
18144 _ACEOF
18145
18146 cat >>$CONFIG_STATUS <<_ACEOF
18147
18148 #
18149 # CONFIG_FILES section.
18150 #
18151
18152 # No need to generate the scripts if there are no CONFIG_FILES.
18153 # This happens for instance when ./config.status config.h
18154 if test -n "\$CONFIG_FILES"; then
18155   # Protect against being on the right side of a sed subst in config.status.
18156   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18157    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18158 s,@SHELL@,$SHELL,;t t
18159 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18160 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18161 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18162 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18163 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18164 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18165 s,@exec_prefix@,$exec_prefix,;t t
18166 s,@prefix@,$prefix,;t t
18167 s,@program_transform_name@,$program_transform_name,;t t
18168 s,@bindir@,$bindir,;t t
18169 s,@sbindir@,$sbindir,;t t
18170 s,@libexecdir@,$libexecdir,;t t
18171 s,@datadir@,$datadir,;t t
18172 s,@sysconfdir@,$sysconfdir,;t t
18173 s,@sharedstatedir@,$sharedstatedir,;t t
18174 s,@localstatedir@,$localstatedir,;t t
18175 s,@libdir@,$libdir,;t t
18176 s,@includedir@,$includedir,;t t
18177 s,@oldincludedir@,$oldincludedir,;t t
18178 s,@infodir@,$infodir,;t t
18179 s,@mandir@,$mandir,;t t
18180 s,@build_alias@,$build_alias,;t t
18181 s,@host_alias@,$host_alias,;t t
18182 s,@target_alias@,$target_alias,;t t
18183 s,@DEFS@,$DEFS,;t t
18184 s,@ECHO_C@,$ECHO_C,;t t
18185 s,@ECHO_N@,$ECHO_N,;t t
18186 s,@ECHO_T@,$ECHO_T,;t t
18187 s,@LIBS@,$LIBS,;t t
18188 s,@build@,$build,;t t
18189 s,@build_cpu@,$build_cpu,;t t
18190 s,@build_vendor@,$build_vendor,;t t
18191 s,@build_os@,$build_os,;t t
18192 s,@build_libsubdir@,$build_libsubdir,;t t
18193 s,@build_subdir@,$build_subdir,;t t
18194 s,@host_subdir@,$host_subdir,;t t
18195 s,@target_subdir@,$target_subdir,;t t
18196 s,@multi_basedir@,$multi_basedir,;t t
18197 s,@host@,$host,;t t
18198 s,@host_cpu@,$host_cpu,;t t
18199 s,@host_vendor@,$host_vendor,;t t
18200 s,@host_os@,$host_os,;t t
18201 s,@target@,$target,;t t
18202 s,@target_cpu@,$target_cpu,;t t
18203 s,@target_vendor@,$target_vendor,;t t
18204 s,@target_os@,$target_os,;t t
18205 s,@target_noncanonical@,$target_noncanonical,;t t
18206 s,@LN_S@,$LN_S,;t t
18207 s,@mkinstalldirs@,$mkinstalldirs,;t t
18208 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
18209 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
18210 s,@CC@,$CC,;t t
18211 s,@ac_ct_CC@,$ac_ct_CC,;t t
18212 s,@EXEEXT@,$EXEEXT,;t t
18213 s,@OBJEXT@,$OBJEXT,;t t
18214 s,@CXX@,$CXX,;t t
18215 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18216 s,@CFLAGS@,$CFLAGS,;t t
18217 s,@CXXFLAGS@,$CXXFLAGS,;t t
18218 s,@LDFLAGS@,$LDFLAGS,;t t
18219 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18220 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18221 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18222 s,@CYGPATH_W@,$CYGPATH_W,;t t
18223 s,@PACKAGE@,$PACKAGE,;t t
18224 s,@VERSION@,$VERSION,;t t
18225 s,@ACLOCAL@,$ACLOCAL,;t t
18226 s,@AUTOCONF@,$AUTOCONF,;t t
18227 s,@AUTOMAKE@,$AUTOMAKE,;t t
18228 s,@AUTOHEADER@,$AUTOHEADER,;t t
18229 s,@MAKEINFO@,$MAKEINFO,;t t
18230 s,@install_sh@,$install_sh,;t t
18231 s,@STRIP@,$STRIP,;t t
18232 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18233 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18234 s,@mkdir_p@,$mkdir_p,;t t
18235 s,@AWK@,$AWK,;t t
18236 s,@SET_MAKE@,$SET_MAKE,;t t
18237 s,@am__leading_dot@,$am__leading_dot,;t t
18238 s,@AMTAR@,$AMTAR,;t t
18239 s,@am__tar@,$am__tar,;t t
18240 s,@am__untar@,$am__untar,;t t
18241 s,@DEPDIR@,$DEPDIR,;t t
18242 s,@am__include@,$am__include,;t t
18243 s,@am__quote@,$am__quote,;t t
18244 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18245 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18246 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18247 s,@CCDEPMODE@,$CCDEPMODE,;t t
18248 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18249 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18250 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18251 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18252 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18253 s,@AS@,$AS,;t t
18254 s,@ac_ct_AS@,$ac_ct_AS,;t t
18255 s,@LD@,$LD,;t t
18256 s,@ac_ct_LD@,$ac_ct_LD,;t t
18257 s,@AR@,$AR,;t t
18258 s,@ac_ct_AR@,$ac_ct_AR,;t t
18259 s,@RANLIB@,$RANLIB,;t t
18260 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18261 s,@JAR@,$JAR,;t t
18262 s,@ZIP@,$ZIP,;t t
18263 s,@UNZIP@,$UNZIP,;t t
18264 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18265 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18266 s,@MAINT@,$MAINT,;t t
18267 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18268 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18269 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18270 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18271 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18272 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18273 s,@TOOLKIT@,$TOOLKIT,;t t
18274 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18275 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18276 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18277 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18278 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18279 s,@GCJH@,$GCJH,;t t
18280 s,@host_exeext@,$host_exeext,;t t
18281 s,@INCLTDL@,$INCLTDL,;t t
18282 s,@LIBLTDL@,$LIBLTDL,;t t
18283 s,@DIRLTDL@,$DIRLTDL,;t t
18284 s,@LIBTOOL@,$LIBTOOL,;t t
18285 s,@CXXCPP@,$CXXCPP,;t t
18286 s,@CPPFLAGS@,$CPPFLAGS,;t t
18287 s,@GCJ@,$GCJ,;t t
18288 s,@GCJFLAGS@,$GCJFLAGS,;t t
18289 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18290 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18291 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18292 s,@subdirs@,$subdirs,;t t
18293 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18294 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18295 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18296 s,@ECJ_JAR@,$ECJ_JAR,;t t
18297 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18298 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18299 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18300 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18301 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18302 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18303 s,@JAVA_HOME@,$JAVA_HOME,;t t
18304 s,@INTERPRETER@,$INTERPRETER,;t t
18305 s,@LIBFFI@,$LIBFFI,;t t
18306 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18307 s,@PLATFORM@,$PLATFORM,;t t
18308 s,@CPP@,$CPP,;t t
18309 s,@EGREP@,$EGREP,;t t
18310 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18311 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18312 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18313 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18314 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18315 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18316 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18317 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18318 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18319 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18320 s,@X_CFLAGS@,$X_CFLAGS,;t t
18321 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18322 s,@X_LIBS@,$X_LIBS,;t t
18323 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18324 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18325 s,@GCLIBS@,$GCLIBS,;t t
18326 s,@GCINCS@,$GCINCS,;t t
18327 s,@GCDEPS@,$GCDEPS,;t t
18328 s,@GCSPEC@,$GCSPEC,;t t
18329 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18330 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18331 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18332 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18333 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18334 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18335 s,@THREADLIBS@,$THREADLIBS,;t t
18336 s,@THREADINCS@,$THREADINCS,;t t
18337 s,@THREADDEPS@,$THREADDEPS,;t t
18338 s,@THREADSPEC@,$THREADSPEC,;t t
18339 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18340 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18341 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18342 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18343 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18344 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18345 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18346 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18347 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18348 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18349 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18350 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18351 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18352 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18353 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18354 s,@LIBICONV@,$LIBICONV,;t t
18355 s,@LTLIBICONV@,$LTLIBICONV,;t t
18356 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18357 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18358 s,@GTK_LIBS@,$GTK_LIBS,;t t
18359 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18360 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18361 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18362 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18363 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18364 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18365 s,@ZLIBS@,$ZLIBS,;t t
18366 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18367 s,@ZINCS@,$ZINCS,;t t
18368 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18369 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18370 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18371 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18372 s,@IEEESPEC@,$IEEESPEC,;t t
18373 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18374 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18375 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18376 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18377 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18378 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18379 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18380 s,@toolexecdir@,$toolexecdir,;t t
18381 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18382 s,@toolexeclibdir@,$toolexeclibdir,;t t
18383 s,@dbexecdir@,$dbexecdir,;t t
18384 s,@GCJVERSION@,$GCJVERSION,;t t
18385 s,@gxx_include_dir@,$gxx_include_dir,;t t
18386 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18387 s,@ALLOCA@,$ALLOCA,;t t
18388 s,@PERL@,$PERL,;t t
18389 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18390 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
18391 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
18392 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18393 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18394 s,@here@,$here,;t t
18395 s,@LIBOBJS@,$LIBOBJS,;t t
18396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18397 CEOF
18398
18399 _ACEOF
18400
18401   cat >>$CONFIG_STATUS <<\_ACEOF
18402   # Split the substitutions into bite-sized pieces for seds with
18403   # small command number limits, like on Digital OSF/1 and HP-UX.
18404   ac_max_sed_lines=48
18405   ac_sed_frag=1 # Number of current file.
18406   ac_beg=1 # First line for current file.
18407   ac_end=$ac_max_sed_lines # Line after last line for current file.
18408   ac_more_lines=:
18409   ac_sed_cmds=
18410   while $ac_more_lines; do
18411     if test $ac_beg -gt 1; then
18412       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18413     else
18414       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18415     fi
18416     if test ! -s $tmp/subs.frag; then
18417       ac_more_lines=false
18418     else
18419       # The purpose of the label and of the branching condition is to
18420       # speed up the sed processing (if there are no `@' at all, there
18421       # is no need to browse any of the substitutions).
18422       # These are the two extra sed commands mentioned above.
18423       (echo ':t
18424   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18425       if test -z "$ac_sed_cmds"; then
18426         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18427       else
18428         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18429       fi
18430       ac_sed_frag=`expr $ac_sed_frag + 1`
18431       ac_beg=$ac_end
18432       ac_end=`expr $ac_end + $ac_max_sed_lines`
18433     fi
18434   done
18435   if test -z "$ac_sed_cmds"; then
18436     ac_sed_cmds=cat
18437   fi
18438 fi # test -n "$CONFIG_FILES"
18439
18440 _ACEOF
18441 cat >>$CONFIG_STATUS <<\_ACEOF
18442 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18443   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18444   case $ac_file in
18445   - | *:- | *:-:* ) # input from stdin
18446         cat >$tmp/stdin
18447         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18448         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18449   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18451   * )   ac_file_in=$ac_file.in ;;
18452   esac
18453
18454   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18455   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18457          X"$ac_file" : 'X\(//\)[^/]' \| \
18458          X"$ac_file" : 'X\(//\)$' \| \
18459          X"$ac_file" : 'X\(/\)' \| \
18460          .     : '\(.\)' 2>/dev/null ||
18461 echo X"$ac_file" |
18462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18463           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18464           /^X\(\/\/\)$/{ s//\1/; q; }
18465           /^X\(\/\).*/{ s//\1/; q; }
18466           s/.*/./; q'`
18467   { if $as_mkdir_p; then
18468     mkdir -p "$ac_dir"
18469   else
18470     as_dir="$ac_dir"
18471     as_dirs=
18472     while test ! -d "$as_dir"; do
18473       as_dirs="$as_dir $as_dirs"
18474       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18476          X"$as_dir" : 'X\(//\)[^/]' \| \
18477          X"$as_dir" : 'X\(//\)$' \| \
18478          X"$as_dir" : 'X\(/\)' \| \
18479          .     : '\(.\)' 2>/dev/null ||
18480 echo X"$as_dir" |
18481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18483           /^X\(\/\/\)$/{ s//\1/; q; }
18484           /^X\(\/\).*/{ s//\1/; q; }
18485           s/.*/./; q'`
18486     done
18487     test ! -n "$as_dirs" || mkdir $as_dirs
18488   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18490    { (exit 1); exit 1; }; }; }
18491
18492   ac_builddir=.
18493
18494 if test "$ac_dir" != .; then
18495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18496   # A "../" for each directory in $ac_dir_suffix.
18497   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18498 else
18499   ac_dir_suffix= ac_top_builddir=
18500 fi
18501
18502 case $srcdir in
18503   .)  # No --srcdir option.  We are building in place.
18504     ac_srcdir=.
18505     if test -z "$ac_top_builddir"; then
18506        ac_top_srcdir=.
18507     else
18508        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18509     fi ;;
18510   [\\/]* | ?:[\\/]* )  # Absolute path.
18511     ac_srcdir=$srcdir$ac_dir_suffix;
18512     ac_top_srcdir=$srcdir ;;
18513   *) # Relative path.
18514     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18515     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18516 esac
18517
18518 # Do not use `cd foo && pwd` to compute absolute paths, because
18519 # the directories may not exist.
18520 case `pwd` in
18521 .) ac_abs_builddir="$ac_dir";;
18522 *)
18523   case "$ac_dir" in
18524   .) ac_abs_builddir=`pwd`;;
18525   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18526   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18527   esac;;
18528 esac
18529 case $ac_abs_builddir in
18530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18531 *)
18532   case ${ac_top_builddir}. in
18533   .) ac_abs_top_builddir=$ac_abs_builddir;;
18534   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18535   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18536   esac;;
18537 esac
18538 case $ac_abs_builddir in
18539 .) ac_abs_srcdir=$ac_srcdir;;
18540 *)
18541   case $ac_srcdir in
18542   .) ac_abs_srcdir=$ac_abs_builddir;;
18543   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18544   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18545   esac;;
18546 esac
18547 case $ac_abs_builddir in
18548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18549 *)
18550   case $ac_top_srcdir in
18551   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18552   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18553   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18554   esac;;
18555 esac
18556
18557
18558   case $INSTALL in
18559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18560   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18561   esac
18562
18563   if test x"$ac_file" != x-; then
18564     { echo "$as_me:$LINENO: creating $ac_file" >&5
18565 echo "$as_me: creating $ac_file" >&6;}
18566     rm -f "$ac_file"
18567   fi
18568   # Let's still pretend it is `configure' which instantiates (i.e., don't
18569   # use $as_me), people would be surprised to read:
18570   #    /* config.h.  Generated by config.status.  */
18571   if test x"$ac_file" = x-; then
18572     configure_input=
18573   else
18574     configure_input="$ac_file.  "
18575   fi
18576   configure_input=$configure_input"Generated from `echo $ac_file_in |
18577                                      sed 's,.*/,,'` by configure."
18578
18579   # First look for the input files in the build tree, otherwise in the
18580   # src tree.
18581   ac_file_inputs=`IFS=:
18582     for f in $ac_file_in; do
18583       case $f in
18584       -) echo $tmp/stdin ;;
18585       [\\/$]*)
18586          # Absolute (can't be DOS-style, as IFS=:)
18587          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18588 echo "$as_me: error: cannot find input file: $f" >&2;}
18589    { (exit 1); exit 1; }; }
18590          echo "$f";;
18591       *) # Relative
18592          if test -f "$f"; then
18593            # Build tree
18594            echo "$f"
18595          elif test -f "$srcdir/$f"; then
18596            # Source tree
18597            echo "$srcdir/$f"
18598          else
18599            # /dev/null tree
18600            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18601 echo "$as_me: error: cannot find input file: $f" >&2;}
18602    { (exit 1); exit 1; }; }
18603          fi;;
18604       esac
18605     done` || { (exit 1); exit 1; }
18606 _ACEOF
18607 cat >>$CONFIG_STATUS <<_ACEOF
18608   sed "$ac_vpsub
18609 $extrasub
18610 _ACEOF
18611 cat >>$CONFIG_STATUS <<\_ACEOF
18612 :t
18613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18614 s,@configure_input@,$configure_input,;t t
18615 s,@srcdir@,$ac_srcdir,;t t
18616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18617 s,@top_srcdir@,$ac_top_srcdir,;t t
18618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18619 s,@builddir@,$ac_builddir,;t t
18620 s,@abs_builddir@,$ac_abs_builddir,;t t
18621 s,@top_builddir@,$ac_top_builddir,;t t
18622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18623 s,@INSTALL@,$ac_INSTALL,;t t
18624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18625   rm -f $tmp/stdin
18626   if test x"$ac_file" != x-; then
18627     mv $tmp/out $ac_file
18628   else
18629     cat $tmp/out
18630     rm -f $tmp/out
18631   fi
18632
18633   # Run the commands associated with the file.
18634   case $ac_file in
18635     scripts/jar ) chmod +x scripts/jar ;;
18636   esac
18637 done
18638 _ACEOF
18639 cat >>$CONFIG_STATUS <<\_ACEOF
18640
18641 #
18642 # CONFIG_HEADER section.
18643 #
18644
18645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18647 #
18648 # ac_d sets the value in "#define NAME VALUE" lines.
18649 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18650 ac_dB='[         ].*$,\1#\2'
18651 ac_dC=' '
18652 ac_dD=',;t'
18653 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18654 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18655 ac_uB='$,\1#\2define\3'
18656 ac_uC=' '
18657 ac_uD=',;t'
18658
18659 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18661   case $ac_file in
18662   - | *:- | *:-:* ) # input from stdin
18663         cat >$tmp/stdin
18664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18668   * )   ac_file_in=$ac_file.in ;;
18669   esac
18670
18671   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18672 echo "$as_me: creating $ac_file" >&6;}
18673
18674   # First look for the input files in the build tree, otherwise in the
18675   # src tree.
18676   ac_file_inputs=`IFS=:
18677     for f in $ac_file_in; do
18678       case $f in
18679       -) echo $tmp/stdin ;;
18680       [\\/$]*)
18681          # Absolute (can't be DOS-style, as IFS=:)
18682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18683 echo "$as_me: error: cannot find input file: $f" >&2;}
18684    { (exit 1); exit 1; }; }
18685          # Do quote $f, to prevent DOS paths from being IFS'd.
18686          echo "$f";;
18687       *) # Relative
18688          if test -f "$f"; then
18689            # Build tree
18690            echo "$f"
18691          elif test -f "$srcdir/$f"; then
18692            # Source tree
18693            echo "$srcdir/$f"
18694          else
18695            # /dev/null tree
18696            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18697 echo "$as_me: error: cannot find input file: $f" >&2;}
18698    { (exit 1); exit 1; }; }
18699          fi;;
18700       esac
18701     done` || { (exit 1); exit 1; }
18702   # Remove the trailing spaces.
18703   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18704
18705 _ACEOF
18706
18707 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18708 # `conftest.undefs', that substitutes the proper values into
18709 # config.h.in to produce config.h.  The first handles `#define'
18710 # templates, and the second `#undef' templates.
18711 # And first: Protect against being on the right side of a sed subst in
18712 # config.status.  Protect against being in an unquoted here document
18713 # in config.status.
18714 rm -f conftest.defines conftest.undefs
18715 # Using a here document instead of a string reduces the quoting nightmare.
18716 # Putting comments in sed scripts is not portable.
18717 #
18718 # `end' is used to avoid that the second main sed command (meant for
18719 # 0-ary CPP macros) applies to n-ary macro definitions.
18720 # See the Autoconf documentation for `clear'.
18721 cat >confdef2sed.sed <<\_ACEOF
18722 s/[\\&,]/\\&/g
18723 s,[\\$`],\\&,g
18724 t clear
18725 : clear
18726 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18727 t end
18728 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18729 : end
18730 _ACEOF
18731 # If some macros were called several times there might be several times
18732 # the same #defines, which is useless.  Nevertheless, we may not want to
18733 # sort them, since we want the *last* AC-DEFINE to be honored.
18734 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18735 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18736 rm -f confdef2sed.sed
18737
18738 # This sed command replaces #undef with comments.  This is necessary, for
18739 # example, in the case of _POSIX_SOURCE, which is predefined and required
18740 # on some systems where configure will not decide to define it.
18741 cat >>conftest.undefs <<\_ACEOF
18742 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18743 _ACEOF
18744
18745 # Break up conftest.defines because some shells have a limit on the size
18746 # of here documents, and old seds have small limits too (100 cmds).
18747 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18748 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18749 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18750 echo '  :' >>$CONFIG_STATUS
18751 rm -f conftest.tail
18752 while grep . conftest.defines >/dev/null
18753 do
18754   # Write a limited-size here document to $tmp/defines.sed.
18755   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18756   # Speed up: don't consider the non `#define' lines.
18757   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18758   # Work around the forget-to-reset-the-flag bug.
18759   echo 't clr' >>$CONFIG_STATUS
18760   echo ': clr' >>$CONFIG_STATUS
18761   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18762   echo 'CEOF
18763   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18764   rm -f $tmp/in
18765   mv $tmp/out $tmp/in
18766 ' >>$CONFIG_STATUS
18767   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18768   rm -f conftest.defines
18769   mv conftest.tail conftest.defines
18770 done
18771 rm -f conftest.defines
18772 echo '  fi # grep' >>$CONFIG_STATUS
18773 echo >>$CONFIG_STATUS
18774
18775 # Break up conftest.undefs because some shells have a limit on the size
18776 # of here documents, and old seds have small limits too (100 cmds).
18777 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18778 rm -f conftest.tail
18779 while grep . conftest.undefs >/dev/null
18780 do
18781   # Write a limited-size here document to $tmp/undefs.sed.
18782   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18783   # Speed up: don't consider the non `#undef'
18784   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18785   # Work around the forget-to-reset-the-flag bug.
18786   echo 't clr' >>$CONFIG_STATUS
18787   echo ': clr' >>$CONFIG_STATUS
18788   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18789   echo 'CEOF
18790   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18791   rm -f $tmp/in
18792   mv $tmp/out $tmp/in
18793 ' >>$CONFIG_STATUS
18794   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18795   rm -f conftest.undefs
18796   mv conftest.tail conftest.undefs
18797 done
18798 rm -f conftest.undefs
18799
18800 cat >>$CONFIG_STATUS <<\_ACEOF
18801   # Let's still pretend it is `configure' which instantiates (i.e., don't
18802   # use $as_me), people would be surprised to read:
18803   #    /* config.h.  Generated by config.status.  */
18804   if test x"$ac_file" = x-; then
18805     echo "/* Generated by configure.  */" >$tmp/config.h
18806   else
18807     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18808   fi
18809   cat $tmp/in >>$tmp/config.h
18810   rm -f $tmp/in
18811   if test x"$ac_file" != x-; then
18812     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18813       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18814 echo "$as_me: $ac_file is unchanged" >&6;}
18815     else
18816       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18818          X"$ac_file" : 'X\(//\)[^/]' \| \
18819          X"$ac_file" : 'X\(//\)$' \| \
18820          X"$ac_file" : 'X\(/\)' \| \
18821          .     : '\(.\)' 2>/dev/null ||
18822 echo X"$ac_file" |
18823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18825           /^X\(\/\/\)$/{ s//\1/; q; }
18826           /^X\(\/\).*/{ s//\1/; q; }
18827           s/.*/./; q'`
18828       { if $as_mkdir_p; then
18829     mkdir -p "$ac_dir"
18830   else
18831     as_dir="$ac_dir"
18832     as_dirs=
18833     while test ! -d "$as_dir"; do
18834       as_dirs="$as_dir $as_dirs"
18835       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837          X"$as_dir" : 'X\(//\)[^/]' \| \
18838          X"$as_dir" : 'X\(//\)$' \| \
18839          X"$as_dir" : 'X\(/\)' \| \
18840          .     : '\(.\)' 2>/dev/null ||
18841 echo X"$as_dir" |
18842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18844           /^X\(\/\/\)$/{ s//\1/; q; }
18845           /^X\(\/\).*/{ s//\1/; q; }
18846           s/.*/./; q'`
18847     done
18848     test ! -n "$as_dirs" || mkdir $as_dirs
18849   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18851    { (exit 1); exit 1; }; }; }
18852
18853       rm -f $ac_file
18854       mv $tmp/config.h $ac_file
18855     fi
18856   else
18857     cat $tmp/config.h
18858     rm -f $tmp/config.h
18859   fi
18860 # Compute $ac_file's index in $config_headers.
18861 _am_stamp_count=1
18862 for _am_header in $config_headers :; do
18863   case $_am_header in
18864     $ac_file | $ac_file:* )
18865       break ;;
18866     * )
18867       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18868   esac
18869 done
18870 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18871 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872          X$ac_file : 'X\(//\)[^/]' \| \
18873          X$ac_file : 'X\(//\)$' \| \
18874          X$ac_file : 'X\(/\)' \| \
18875          .     : '\(.\)' 2>/dev/null ||
18876 echo X$ac_file |
18877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18879           /^X\(\/\/\)$/{ s//\1/; q; }
18880           /^X\(\/\).*/{ s//\1/; q; }
18881           s/.*/./; q'`/stamp-h$_am_stamp_count
18882 done
18883 _ACEOF
18884 cat >>$CONFIG_STATUS <<\_ACEOF
18885
18886 #
18887 # CONFIG_LINKS section.
18888 #
18889
18890 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18891   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18892   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18893
18894   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18895 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18896
18897   if test ! -r $srcdir/$ac_source; then
18898     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18899 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18900    { (exit 1); exit 1; }; }
18901   fi
18902   rm -f $ac_dest
18903
18904   # Make relative symlinks.
18905   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18907          X"$ac_dest" : 'X\(//\)[^/]' \| \
18908          X"$ac_dest" : 'X\(//\)$' \| \
18909          X"$ac_dest" : 'X\(/\)' \| \
18910          .     : '\(.\)' 2>/dev/null ||
18911 echo X"$ac_dest" |
18912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18913           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18914           /^X\(\/\/\)$/{ s//\1/; q; }
18915           /^X\(\/\).*/{ s//\1/; q; }
18916           s/.*/./; q'`
18917   { if $as_mkdir_p; then
18918     mkdir -p "$ac_dest_dir"
18919   else
18920     as_dir="$ac_dest_dir"
18921     as_dirs=
18922     while test ! -d "$as_dir"; do
18923       as_dirs="$as_dir $as_dirs"
18924       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18926          X"$as_dir" : 'X\(//\)[^/]' \| \
18927          X"$as_dir" : 'X\(//\)$' \| \
18928          X"$as_dir" : 'X\(/\)' \| \
18929          .     : '\(.\)' 2>/dev/null ||
18930 echo X"$as_dir" |
18931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18933           /^X\(\/\/\)$/{ s//\1/; q; }
18934           /^X\(\/\).*/{ s//\1/; q; }
18935           s/.*/./; q'`
18936     done
18937     test ! -n "$as_dirs" || mkdir $as_dirs
18938   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18939 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18940    { (exit 1); exit 1; }; }; }
18941
18942   ac_builddir=.
18943
18944 if test "$ac_dest_dir" != .; then
18945   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18946   # A "../" for each directory in $ac_dir_suffix.
18947   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18948 else
18949   ac_dir_suffix= ac_top_builddir=
18950 fi
18951
18952 case $srcdir in
18953   .)  # No --srcdir option.  We are building in place.
18954     ac_srcdir=.
18955     if test -z "$ac_top_builddir"; then
18956        ac_top_srcdir=.
18957     else
18958        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18959     fi ;;
18960   [\\/]* | ?:[\\/]* )  # Absolute path.
18961     ac_srcdir=$srcdir$ac_dir_suffix;
18962     ac_top_srcdir=$srcdir ;;
18963   *) # Relative path.
18964     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18965     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18966 esac
18967
18968 # Do not use `cd foo && pwd` to compute absolute paths, because
18969 # the directories may not exist.
18970 case `pwd` in
18971 .) ac_abs_builddir="$ac_dest_dir";;
18972 *)
18973   case "$ac_dest_dir" in
18974   .) ac_abs_builddir=`pwd`;;
18975   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18976   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18977   esac;;
18978 esac
18979 case $ac_abs_builddir in
18980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18981 *)
18982   case ${ac_top_builddir}. in
18983   .) ac_abs_top_builddir=$ac_abs_builddir;;
18984   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18985   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18986   esac;;
18987 esac
18988 case $ac_abs_builddir in
18989 .) ac_abs_srcdir=$ac_srcdir;;
18990 *)
18991   case $ac_srcdir in
18992   .) ac_abs_srcdir=$ac_abs_builddir;;
18993   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18994   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18995   esac;;
18996 esac
18997 case $ac_abs_builddir in
18998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18999 *)
19000   case $ac_top_srcdir in
19001   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19002   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19003   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19004   esac;;
19005 esac
19006
19007
19008   case $srcdir in
19009   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19010       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19011   esac
19012
19013   # Try a symlink, then a hard link, then a copy.
19014   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19015     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
19016     cp -p $srcdir/$ac_source $ac_dest ||
19017     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
19018 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
19019    { (exit 1); exit 1; }; }
19020 done
19021 _ACEOF
19022 cat >>$CONFIG_STATUS <<\_ACEOF
19023
19024 #
19025 # CONFIG_COMMANDS section.
19026 #
19027 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19028   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19029   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19030   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19031 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19032          X"$ac_dest" : 'X\(//\)[^/]' \| \
19033          X"$ac_dest" : 'X\(//\)$' \| \
19034          X"$ac_dest" : 'X\(/\)' \| \
19035          .     : '\(.\)' 2>/dev/null ||
19036 echo X"$ac_dest" |
19037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19039           /^X\(\/\/\)$/{ s//\1/; q; }
19040           /^X\(\/\).*/{ s//\1/; q; }
19041           s/.*/./; q'`
19042   { if $as_mkdir_p; then
19043     mkdir -p "$ac_dir"
19044   else
19045     as_dir="$ac_dir"
19046     as_dirs=
19047     while test ! -d "$as_dir"; do
19048       as_dirs="$as_dir $as_dirs"
19049       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051          X"$as_dir" : 'X\(//\)[^/]' \| \
19052          X"$as_dir" : 'X\(//\)$' \| \
19053          X"$as_dir" : 'X\(/\)' \| \
19054          .     : '\(.\)' 2>/dev/null ||
19055 echo X"$as_dir" |
19056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19058           /^X\(\/\/\)$/{ s//\1/; q; }
19059           /^X\(\/\).*/{ s//\1/; q; }
19060           s/.*/./; q'`
19061     done
19062     test ! -n "$as_dirs" || mkdir $as_dirs
19063   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19065    { (exit 1); exit 1; }; }; }
19066
19067   ac_builddir=.
19068
19069 if test "$ac_dir" != .; then
19070   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19071   # A "../" for each directory in $ac_dir_suffix.
19072   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19073 else
19074   ac_dir_suffix= ac_top_builddir=
19075 fi
19076
19077 case $srcdir in
19078   .)  # No --srcdir option.  We are building in place.
19079     ac_srcdir=.
19080     if test -z "$ac_top_builddir"; then
19081        ac_top_srcdir=.
19082     else
19083        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19084     fi ;;
19085   [\\/]* | ?:[\\/]* )  # Absolute path.
19086     ac_srcdir=$srcdir$ac_dir_suffix;
19087     ac_top_srcdir=$srcdir ;;
19088   *) # Relative path.
19089     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19090     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19091 esac
19092
19093 # Do not use `cd foo && pwd` to compute absolute paths, because
19094 # the directories may not exist.
19095 case `pwd` in
19096 .) ac_abs_builddir="$ac_dir";;
19097 *)
19098   case "$ac_dir" in
19099   .) ac_abs_builddir=`pwd`;;
19100   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19101   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19102   esac;;
19103 esac
19104 case $ac_abs_builddir in
19105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19106 *)
19107   case ${ac_top_builddir}. in
19108   .) ac_abs_top_builddir=$ac_abs_builddir;;
19109   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19110   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19111   esac;;
19112 esac
19113 case $ac_abs_builddir in
19114 .) ac_abs_srcdir=$ac_srcdir;;
19115 *)
19116   case $ac_srcdir in
19117   .) ac_abs_srcdir=$ac_abs_builddir;;
19118   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19119   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19120   esac;;
19121 esac
19122 case $ac_abs_builddir in
19123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19124 *)
19125   case $ac_top_srcdir in
19126   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19127   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19128   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19129   esac;;
19130 esac
19131
19132
19133   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19134 echo "$as_me: executing $ac_dest commands" >&6;}
19135   case $ac_dest in
19136     default-1 )
19137 # Only add multilib support code if we just rebuilt the top-level
19138 # Makefile.
19139 case " $CONFIG_FILES " in
19140  *" Makefile "*)
19141    ac_file=Makefile . ${multi_basedir}/config-ml.in
19142    ;;
19143 esac ;;
19144     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19145   # Strip MF so we end up with the name of the file.
19146   mf=`echo "$mf" | sed -e 's/:.*$//'`
19147   # Check whether this is an Automake generated Makefile or not.
19148   # We used to match only the files named `Makefile.in', but
19149   # some people rename them; so instead we look at the file content.
19150   # Grep'ing the first line is not enough: some people post-process
19151   # each Makefile.in and add a new line on top of each file to say so.
19152   # So let's grep whole file.
19153   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19154     dirpart=`(dirname "$mf") 2>/dev/null ||
19155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19156          X"$mf" : 'X\(//\)[^/]' \| \
19157          X"$mf" : 'X\(//\)$' \| \
19158          X"$mf" : 'X\(/\)' \| \
19159          .     : '\(.\)' 2>/dev/null ||
19160 echo X"$mf" |
19161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19163           /^X\(\/\/\)$/{ s//\1/; q; }
19164           /^X\(\/\).*/{ s//\1/; q; }
19165           s/.*/./; q'`
19166   else
19167     continue
19168   fi
19169   # Extract the definition of DEPDIR, am__include, and am__quote
19170   # from the Makefile without running `make'.
19171   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19172   test -z "$DEPDIR" && continue
19173   am__include=`sed -n 's/^am__include = //p' < "$mf"`
19174   test -z "am__include" && continue
19175   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19176   # When using ansi2knr, U may be empty or an underscore; expand it
19177   U=`sed -n 's/^U = //p' < "$mf"`
19178   # Find all dependency output files, they are included files with
19179   # $(DEPDIR) in their names.  We invoke sed twice because it is the
19180   # simplest approach to changing $(DEPDIR) to its actual value in the
19181   # expansion.
19182   for file in `sed -n "
19183     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19184        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19185     # Make sure the directory exists.
19186     test -f "$dirpart/$file" && continue
19187     fdir=`(dirname "$file") 2>/dev/null ||
19188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19189          X"$file" : 'X\(//\)[^/]' \| \
19190          X"$file" : 'X\(//\)$' \| \
19191          X"$file" : 'X\(/\)' \| \
19192          .     : '\(.\)' 2>/dev/null ||
19193 echo X"$file" |
19194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19196           /^X\(\/\/\)$/{ s//\1/; q; }
19197           /^X\(\/\).*/{ s//\1/; q; }
19198           s/.*/./; q'`
19199     { if $as_mkdir_p; then
19200     mkdir -p $dirpart/$fdir
19201   else
19202     as_dir=$dirpart/$fdir
19203     as_dirs=
19204     while test ! -d "$as_dir"; do
19205       as_dirs="$as_dir $as_dirs"
19206       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208          X"$as_dir" : 'X\(//\)[^/]' \| \
19209          X"$as_dir" : 'X\(//\)$' \| \
19210          X"$as_dir" : 'X\(/\)' \| \
19211          .     : '\(.\)' 2>/dev/null ||
19212 echo X"$as_dir" |
19213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19215           /^X\(\/\/\)$/{ s//\1/; q; }
19216           /^X\(\/\).*/{ s//\1/; q; }
19217           s/.*/./; q'`
19218     done
19219     test ! -n "$as_dirs" || mkdir $as_dirs
19220   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19221 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19222    { (exit 1); exit 1; }; }; }
19223
19224     # echo "creating $dirpart/$file"
19225     echo '# dummy' > "$dirpart/$file"
19226   done
19227 done
19228  ;;
19229     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
19230 case " $CONFIG_FILES " in
19231  *" Makefile "*)
19232    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
19233    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
19234    ;;
19235 esac
19236 for ac_multi_file in $CONFIG_FILES; do
19237   case $ac_multi_file in
19238   */Makefile)
19239     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19240   esac
19241 done
19242  ;;
19243   esac
19244 done
19245 _ACEOF
19246
19247 cat >>$CONFIG_STATUS <<\_ACEOF
19248
19249 { (exit 0); exit 0; }
19250 _ACEOF
19251 chmod +x $CONFIG_STATUS
19252 ac_clean_files=$ac_clean_files_save
19253
19254
19255 # configure is writing to config.log, and then calls config.status.
19256 # config.status does its own redirection, appending to config.log.
19257 # Unfortunately, on DOS this fails, as config.log is still kept open
19258 # by configure, so config.status won't be able to write to it; its
19259 # output is simply discarded.  So we exec the FD to /dev/null,
19260 # effectively closing config.log, so it can be properly (re)opened and
19261 # appended to by config.status.  When coming back to configure, we
19262 # need to make the FD available again.
19263 if test "$no_create" != yes; then
19264   ac_cs_success=:
19265   ac_config_status_args=
19266   test "$silent" = yes &&
19267     ac_config_status_args="$ac_config_status_args --quiet"
19268   exec 5>/dev/null
19269   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19270   exec 5>>config.log
19271   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19272   # would make configure fail if this is the last instruction.
19273   $ac_cs_success || { (exit 1); exit 1; }
19274 fi
19275
19276 #
19277 # CONFIG_SUBDIRS section.
19278 #
19279 if test "$no_recursion" != yes; then
19280
19281   # Remove --cache-file and --srcdir arguments so they do not pile up.
19282   ac_sub_configure_args=
19283   ac_prev=
19284   for ac_arg in $ac_configure_args; do
19285     if test -n "$ac_prev"; then
19286       ac_prev=
19287       continue
19288     fi
19289     case $ac_arg in
19290     -cache-file | --cache-file | --cache-fil | --cache-fi \
19291     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19292       ac_prev=cache_file ;;
19293     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19294     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19295     | --c=*)
19296       ;;
19297     --config-cache | -C)
19298       ;;
19299     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19300       ac_prev=srcdir ;;
19301     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19302       ;;
19303     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19304       ac_prev=prefix ;;
19305     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19306       ;;
19307     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19308     esac
19309   done
19310
19311   # Always prepend --prefix to ensure using the same prefix
19312   # in subdir configurations.
19313   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19314
19315   ac_popdir=`pwd`
19316   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19317
19318     # Do not complain, so a configure script can configure whichever
19319     # parts of a large source tree are present.
19320     test -d $srcdir/$ac_dir || continue
19321
19322     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19323 echo "$as_me: configuring in $ac_dir" >&6;}
19324     { if $as_mkdir_p; then
19325     mkdir -p "$ac_dir"
19326   else
19327     as_dir="$ac_dir"
19328     as_dirs=
19329     while test ! -d "$as_dir"; do
19330       as_dirs="$as_dir $as_dirs"
19331       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333          X"$as_dir" : 'X\(//\)[^/]' \| \
19334          X"$as_dir" : 'X\(//\)$' \| \
19335          X"$as_dir" : 'X\(/\)' \| \
19336          .     : '\(.\)' 2>/dev/null ||
19337 echo X"$as_dir" |
19338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19339           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19340           /^X\(\/\/\)$/{ s//\1/; q; }
19341           /^X\(\/\).*/{ s//\1/; q; }
19342           s/.*/./; q'`
19343     done
19344     test ! -n "$as_dirs" || mkdir $as_dirs
19345   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19347    { (exit 1); exit 1; }; }; }
19348
19349     ac_builddir=.
19350
19351 if test "$ac_dir" != .; then
19352   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19353   # A "../" for each directory in $ac_dir_suffix.
19354   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19355 else
19356   ac_dir_suffix= ac_top_builddir=
19357 fi
19358
19359 case $srcdir in
19360   .)  # No --srcdir option.  We are building in place.
19361     ac_srcdir=.
19362     if test -z "$ac_top_builddir"; then
19363        ac_top_srcdir=.
19364     else
19365        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19366     fi ;;
19367   [\\/]* | ?:[\\/]* )  # Absolute path.
19368     ac_srcdir=$srcdir$ac_dir_suffix;
19369     ac_top_srcdir=$srcdir ;;
19370   *) # Relative path.
19371     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19372     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19373 esac
19374
19375 # Do not use `cd foo && pwd` to compute absolute paths, because
19376 # the directories may not exist.
19377 case `pwd` in
19378 .) ac_abs_builddir="$ac_dir";;
19379 *)
19380   case "$ac_dir" in
19381   .) ac_abs_builddir=`pwd`;;
19382   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19383   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19384   esac;;
19385 esac
19386 case $ac_abs_builddir in
19387 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19388 *)
19389   case ${ac_top_builddir}. in
19390   .) ac_abs_top_builddir=$ac_abs_builddir;;
19391   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19392   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19393   esac;;
19394 esac
19395 case $ac_abs_builddir in
19396 .) ac_abs_srcdir=$ac_srcdir;;
19397 *)
19398   case $ac_srcdir in
19399   .) ac_abs_srcdir=$ac_abs_builddir;;
19400   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19401   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19402   esac;;
19403 esac
19404 case $ac_abs_builddir in
19405 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19406 *)
19407   case $ac_top_srcdir in
19408   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19409   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19410   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19411   esac;;
19412 esac
19413
19414
19415     cd $ac_dir
19416
19417     # Check for guested configure; otherwise get Cygnus style configure.
19418     if test -f $ac_srcdir/configure.gnu; then
19419       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19420     elif test -f $ac_srcdir/configure; then
19421       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19422     elif test -f $ac_srcdir/configure.in; then
19423       ac_sub_configure=$ac_configure
19424     else
19425       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19427       ac_sub_configure=
19428     fi
19429
19430     # The recursion is here.
19431     if test -n "$ac_sub_configure"; then
19432       # Make the cache file name correct relative to the subdirectory.
19433       case $cache_file in
19434       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19435       *) # Relative path.
19436         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19437       esac
19438
19439       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19440 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19441       # The eval makes quoting arguments work.
19442       eval $ac_sub_configure $ac_sub_configure_args \
19443            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19444         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19445 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19446    { (exit 1); exit 1; }; }
19447     fi
19448
19449     cd $ac_popdir
19450   done
19451 fi
19452