OSDN Git Service

2004-09-10 Michael Koch <konqueror@gmx.de>
[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 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 libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES 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-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking  speeds up one-time build
857   --enable-dependency-tracking   do not reject slow dependency extractors
858   --enable-maintainer-mode  enable make rules and dependencies not useful
859                           (and sometimes confusing) to the casual installer
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864   --disable-getenv-properties
865                           don't set system properties from GCJ_PROPERTIES
866   --enable-hash-synchronization
867                           use global hash table for monitor locks
868   --enable-libgcj-multifile
869                  allow compilation of several files at once
870
871   --enable-libgcj-debug   enable runtime debugging code
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-awt       list of AWT peer implementations to be built
879   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881
882 Optional Packages:
883   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885   --with-target-subdir=SUBDIR
886                           configure in a subdirectory
887   --with-cross-host=HOST  configure with a cross compiler from HOST
888   --with-newlib           configure with newlib
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890   --with-pic              try to use only PIC/non-PIC objects default=use both
891   --with-win32-nlsapi=ansi or unicows or unicode
892                           native MinGW libgcj Win32 OS API (default is ansi)
893   --without-libffi        don't use libffi
894   --with-ecos             enable runtime eCos target support
895   --with-system-zlib      use installed libz
896   --with-x                use the X Window System
897   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
898
899 Some influential environment variables:
900   CC          C compiler command
901   CFLAGS      C compiler flags
902   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903               nonstandard directory <lib dir>
904   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905               headers in a nonstandard directory <include dir>
906   CXX         C++ compiler command
907   CXXFLAGS    C++ compiler flags
908   CXXCPP      C++ preprocessor
909   CPP         C preprocessor
910
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
913
914 _ACEOF
915 fi
916
917 if test "$ac_init_help" = "recursive"; then
918   # If there are subdirs, report their specific --help.
919   ac_popdir=`pwd`
920   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921     test -d $ac_dir || continue
922     ac_builddir=.
923
924 if test "$ac_dir" != .; then
925   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926   # A "../" for each directory in $ac_dir_suffix.
927   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929   ac_dir_suffix= ac_top_builddir=
930 fi
931
932 case $srcdir in
933   .)  # No --srcdir option.  We are building in place.
934     ac_srcdir=.
935     if test -z "$ac_top_builddir"; then
936        ac_top_srcdir=.
937     else
938        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939     fi ;;
940   [\\/]* | ?:[\\/]* )  # Absolute path.
941     ac_srcdir=$srcdir$ac_dir_suffix;
942     ac_top_srcdir=$srcdir ;;
943   *) # Relative path.
944     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945     ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
947
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
950 case `pwd` in
951 .) ac_abs_builddir="$ac_dir";;
952 *)
953   case "$ac_dir" in
954   .) ac_abs_builddir=`pwd`;;
955   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956   *) ac_abs_builddir=`pwd`/"$ac_dir";;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *)
962   case ${ac_top_builddir}. in
963   .) ac_abs_top_builddir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966   esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
970 *)
971   case $ac_srcdir in
972   .) ac_abs_srcdir=$ac_abs_builddir;;
973   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975   esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *)
980   case $ac_top_srcdir in
981   .) ac_abs_top_srcdir=$ac_abs_builddir;;
982   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984   esac;;
985 esac
986
987     cd $ac_dir
988     # Check for guested configure; otherwise get Cygnus style configure.
989     if test -f $ac_srcdir/configure.gnu; then
990       echo
991       $SHELL $ac_srcdir/configure.gnu  --help=recursive
992     elif test -f $ac_srcdir/configure; then
993       echo
994       $SHELL $ac_srcdir/configure  --help=recursive
995     elif test -f $ac_srcdir/configure.ac ||
996            test -f $ac_srcdir/configure.in; then
997       echo
998       $ac_configure --help
999     else
1000       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001     fi
1002     cd "$ac_popdir"
1003   done
1004 fi
1005
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1008   cat <<\_ACEOF
1009 libjava configure version-unused
1010 generated by GNU Autoconf 2.59
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016   exit 0
1017 fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1022
1023 It was created by libjava $as_me version-unused, which was
1024 generated by GNU Autoconf 2.59.  Invocation command line was
1025
1026   $ $0 $@
1027
1028 _ACEOF
1029 {
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1034
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1043
1044 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1045 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1048 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1049 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1050 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1051
1052 _ASUNAME
1053
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1056 do
1057   IFS=$as_save_IFS
1058   test -z "$as_dir" && as_dir=.
1059   echo "PATH: $as_dir"
1060 done
1061
1062 } >&5
1063
1064 cat >&5 <<_ACEOF
1065
1066
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1070
1071 _ACEOF
1072
1073
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1085 do
1086   for ac_arg
1087   do
1088     case $ac_arg in
1089     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091     | -silent | --silent | --silen | --sile | --sil)
1092       continue ;;
1093     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095     esac
1096     case $ac_pass in
1097     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098     2)
1099       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100       if test $ac_must_keep_next = true; then
1101         ac_must_keep_next=false # Got value, back to normal.
1102       else
1103         case $ac_arg in
1104           *=* | --config-cache | -C | -disable-* | --disable-* \
1105           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107           | -with-* | --with-* | -without-* | --without-* | --x)
1108             case "$ac_configure_args0 " in
1109               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110             esac
1111             ;;
1112           -* ) ac_must_keep_next=true ;;
1113         esac
1114       fi
1115       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116       # Get rid of the leading space.
1117       ac_sep=" "
1118       ;;
1119     esac
1120   done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log.  We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131   # Save into config.log some information that might help in debugging.
1132   {
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140     echo
1141     # The following way of writing the cache mishandles newlines in values,
1142 {
1143   (set) 2>&1 |
1144     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145     *ac_space=\ *)
1146       sed -n \
1147         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149       ;;
1150     *)
1151       sed -n \
1152         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153       ;;
1154     esac;
1155 }
1156     echo
1157
1158     cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163     echo
1164     for ac_var in $ac_subst_vars
1165     do
1166       eval ac_val=$`echo $ac_var`
1167       echo "$ac_var='"'"'$ac_val'"'"'"
1168     done | sort
1169     echo
1170
1171     if test -n "$ac_subst_files"; then
1172       cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177       echo
1178       for ac_var in $ac_subst_files
1179       do
1180         eval ac_val=$`echo $ac_var`
1181         echo "$ac_var='"'"'$ac_val'"'"'"
1182       done | sort
1183       echo
1184     fi
1185
1186     if test -s confdefs.h; then
1187       cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192       echo
1193       sed "/^$/d" confdefs.h | sort
1194       echo
1195     fi
1196     test "$ac_signal" != 0 &&
1197       echo "$as_me: caught signal $ac_signal"
1198     echo "$as_me: exit $exit_status"
1199   } >&5
1200   rm -f core *.core &&
1201   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202     exit $exit_status
1203      ' 0
1204 for ac_signal in 1 2 13 15; do
1205   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1208
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1213
1214 # Predefined preprocessor variables.
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1239
1240
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244   if test "x$prefix" != xNONE; then
1245     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246   else
1247     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248   fi
1249 fi
1250 for ac_site_file in $CONFIG_SITE; do
1251   if test -r "$ac_site_file"; then
1252     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254     sed 's/^/| /' "$ac_site_file" >&5
1255     . "$ac_site_file"
1256   fi
1257 done
1258
1259 if test -r "$cache_file"; then
1260   # Some versions of bash will fail to source /dev/null (special
1261   # files actually), so we avoid doing that.
1262   if test -f "$cache_file"; then
1263     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1265     case $cache_file in
1266       [\\/]* | ?:[\\/]* ) . $cache_file;;
1267       *)                      . ./$cache_file;;
1268     esac
1269   fi
1270 else
1271   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1273   >$cache_file
1274 fi
1275
1276 # Check that the precious variables saved in the cache have kept the same
1277 # value.
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282   eval ac_new_set=\$ac_env_${ac_var}_set
1283   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284   eval ac_new_val="\$ac_env_${ac_var}_value"
1285   case $ac_old_set,$ac_new_set in
1286     set,)
1287       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289       ac_cache_corrupted=: ;;
1290     ,set)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,);;
1295     *)
1296       if test "x$ac_old_val" != "x$ac_new_val"; then
1297         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1300 echo "$as_me:   former value:  $ac_old_val" >&2;}
1301         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1302 echo "$as_me:   current value: $ac_new_val" >&2;}
1303         ac_cache_corrupted=:
1304       fi;;
1305   esac
1306   # Pass precious variables to config.status.
1307   if test "$ac_new_set" = set; then
1308     case $ac_new_val in
1309     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311     *) ac_arg=$ac_var=$ac_new_val ;;
1312     esac
1313     case " $ac_configure_args " in
1314       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1315       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316     esac
1317   fi
1318 done
1319 if $ac_cache_corrupted; then
1320   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324    { (exit 1); exit 1; }; }
1325 fi
1326
1327 ac_ext=c
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362 # We use these options to decide which functions to include.
1363
1364 # Check whether --with-target-subdir or --without-target-subdir was given.
1365 if test "${with_target_subdir+set}" = set; then
1366   withval="$with_target_subdir"
1367
1368 fi;
1369
1370 # We may get other options which we don't document:
1371 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1372
1373 # When building with srcdir == objdir, links to the source files will
1374 # be created in directories within the target_subdir.  We have to
1375 # adjust toplevel_srcdir accordingly, so that configure finds
1376 # install-sh and other auxiliary files that live in the top-level
1377 # source directory.
1378 if test "${srcdir}" = "."; then
1379   if test -z "${with_target_subdir}"; then
1380     toprel=".."
1381   else
1382     if test "${with_target_subdir}" != "."; then
1383       toprel="${with_multisrctop}../.."
1384     else
1385       toprel="${with_multisrctop}.."
1386     fi
1387   fi
1388 else
1389   toprel=".."
1390 fi
1391
1392 libgcj_basedir=$srcdir/$toprel/./libjava
1393
1394
1395 ac_aux_dir=
1396 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397   if test -f $ac_dir/install-sh; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/install-sh -c"
1400     break
1401   elif test -f $ac_dir/install.sh; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/install.sh -c"
1404     break
1405   elif test -f $ac_dir/shtool; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/shtool install -c"
1408     break
1409   fi
1410 done
1411 if test -z "$ac_aux_dir"; then
1412   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414    { (exit 1); exit 1; }; }
1415 fi
1416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1419
1420 # Make sure we can run config.sub.
1421 $ac_config_sub sun4 >/dev/null 2>&1 ||
1422   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1423 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1424    { (exit 1); exit 1; }; }
1425
1426 echo "$as_me:$LINENO: checking build system type" >&5
1427 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1428 if test "${ac_cv_build+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   ac_cv_build_alias=$build_alias
1432 test -z "$ac_cv_build_alias" &&
1433   ac_cv_build_alias=`$ac_config_guess`
1434 test -z "$ac_cv_build_alias" &&
1435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1437    { (exit 1); exit 1; }; }
1438 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1445 echo "${ECHO_T}$ac_cv_build" >&6
1446 build=$ac_cv_build
1447 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452 echo "$as_me:$LINENO: checking host system type" >&5
1453 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1454 if test "${ac_cv_host+set}" = set; then
1455   echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457   ac_cv_host_alias=$host_alias
1458 test -z "$ac_cv_host_alias" &&
1459   ac_cv_host_alias=$ac_cv_build_alias
1460 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1461   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1463    { (exit 1); exit 1; }; }
1464
1465 fi
1466 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1467 echo "${ECHO_T}$ac_cv_host" >&6
1468 host=$ac_cv_host
1469 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
1473
1474 echo "$as_me:$LINENO: checking target system type" >&5
1475 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1476 if test "${ac_cv_target+set}" = set; then
1477   echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479   ac_cv_target_alias=$target_alias
1480 test "x$ac_cv_target_alias" = "x" &&
1481   ac_cv_target_alias=$ac_cv_host_alias
1482 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1483   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1485    { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1489 echo "${ECHO_T}$ac_cv_target" >&6
1490 target=$ac_cv_target
1491 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496 # The aliases save the names the user supplied, while $host etc.
1497 # will get canonicalized.
1498 test -n "$target_alias" &&
1499   test "$program_prefix$program_suffix$program_transform_name" = \
1500     NONENONEs,x,x, &&
1501   program_prefix=${target_alias}-
1502  case ${build_alias} in
1503   "") build_noncanonical=${build} ;;
1504   *) build_noncanonical=${build_alias} ;;
1505 esac
1506
1507  case ${host_alias} in
1508   "") host_noncanonical=${build_noncanonical} ;;
1509   *) host_noncanonical=${host_alias} ;;
1510 esac
1511
1512  case ${target_alias} in
1513   "") target_noncanonical=${host_noncanonical} ;;
1514   *) target_noncanonical=${target_alias} ;;
1515 esac
1516
1517
1518
1519
1520 # This works around the fact that libtool configuration may change LD
1521 # for this particular configuration, but some shells, instead of
1522 # keeping the changes in LD private, export them just because LD is
1523 # exported.
1524 ORIGINAL_LD_FOR_MULTILIBS=$LD
1525
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1528 LN_S=$as_ln_s
1529 if test "$LN_S" = "ln -s"; then
1530   echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1535 fi
1536
1537
1538 # This works around an automake problem.
1539 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1540
1541
1542
1543 # Check whether --with-cross-host or --without-cross-host was given.
1544 if test "${with_cross_host+set}" = set; then
1545   withval="$with_cross_host"
1546
1547 fi;
1548
1549
1550 # Check whether --with-newlib or --without-newlib was given.
1551 if test "${with_newlib+set}" = set; then
1552   withval="$with_newlib"
1553
1554 fi;
1555
1556 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1557 if test "${enable_version_specific_runtime_libs+set}" = set; then
1558   enableval="$enable_version_specific_runtime_libs"
1559   case "$enableval" in
1560       yes) version_specific_libs=yes ;;
1561       no)  version_specific_libs=no ;;
1562       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1563 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1564    { (exit 1); exit 1; }; };;
1565      esac
1566 else
1567   version_specific_libs=no
1568
1569 fi;
1570
1571 # Default to --enable-multilib
1572 # Check whether --enable-multilib or --disable-multilib was given.
1573 if test "${enable_multilib+set}" = set; then
1574   enableval="$enable_multilib"
1575   case "${enableval}" in
1576   yes) multilib=yes ;;
1577   no)  multilib=no ;;
1578   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1579 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1580    { (exit 1); exit 1; }; } ;;
1581  esac
1582 else
1583   multilib=yes
1584 fi;
1585 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1586
1587
1588 # (1) We use an abnormal CXX (without library references), so we
1589 # must cache it under a different name.
1590 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1591 # the non-multilib-adjusted value will be used in multilibs.
1592 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1593 # (4) As another side effect, automake doesn't automatically include them
1594 # in Makefile.in.
1595 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1596 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1597 # used in later tests.  This may not be necessary in libjava; I don't know.
1598
1599
1600
1601 save_CXXFLAGS="$CXXFLAGS"
1602 CXXFLAGS="$CXXFLAGS -fno-builtin"
1603 ac_ext=c
1604 ac_cpp='$CPP $CPPFLAGS'
1605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1608 if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="gcc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_CC="${ac_tool_prefix}cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 CC=$ac_cv_prog_CC
1716 if test -n "$CC"; then
1717   echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$ac_cv_prog_CC"; then
1726   ac_ct_CC=$CC
1727   # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$ac_ct_CC"; then
1735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740   IFS=$as_save_IFS
1741   test -z "$as_dir" && as_dir=.
1742   for ac_exec_ext in '' $ac_executable_extensions; do
1743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744     ac_cv_prog_ac_ct_CC="cc"
1745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746     break 2
1747   fi
1748 done
1749 done
1750
1751 fi
1752 fi
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1757 else
1758   echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1761
1762   CC=$ac_ct_CC
1763 else
1764   CC="$ac_cv_prog_CC"
1765 fi
1766
1767 fi
1768 if test -z "$CC"; then
1769   # Extract the first word of "cc", so it can be a program name with args.
1770 set dummy cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779   ac_prog_rejected=no
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783   IFS=$as_save_IFS
1784   test -z "$as_dir" && as_dir=.
1785   for ac_exec_ext in '' $ac_executable_extensions; do
1786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1788        ac_prog_rejected=yes
1789        continue
1790      fi
1791     ac_cv_prog_CC="cc"
1792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793     break 2
1794   fi
1795 done
1796 done
1797
1798 if test $ac_prog_rejected = yes; then
1799   # We found a bogon in the path, so make sure we never use it.
1800   set dummy $ac_cv_prog_CC
1801   shift
1802   if test $# != 0; then
1803     # We chose a different compiler from the bogus one.
1804     # However, it has the same basename, so the bogon will be chosen
1805     # first if we set CC to just the basename; use the full file name.
1806     shift
1807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1808   fi
1809 fi
1810 fi
1811 fi
1812 CC=$ac_cv_prog_CC
1813 if test -n "$CC"; then
1814   echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821 fi
1822 if test -z "$CC"; then
1823   if test -n "$ac_tool_prefix"; then
1824   for ac_prog in cl
1825   do
1826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861     test -n "$CC" && break
1862   done
1863 fi
1864 if test -z "$CC"; then
1865   ac_ct_CC=$CC
1866   for ac_prog in cl
1867 do
1868   # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="$ac_prog"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   test -n "$ac_ct_CC" && break
1904 done
1905
1906   CC=$ac_ct_CC
1907 fi
1908
1909 fi
1910
1911
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916    { (exit 1); exit 1; }; }
1917
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920      "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923   (eval $ac_compiler --version </dev/null >&5) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928   (eval $ac_compiler -v </dev/null >&5) 2>&5
1929   ac_status=$?
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933   (eval $ac_compiler -V </dev/null >&5) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }
1937
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h.  */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h.  */
1944
1945 int
1946 main ()
1947 {
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 # FIXME: Cleanup?
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955   (eval $ac_link) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }; then
1959   gcc_no_link=no
1960 else
1961   gcc_no_link=yes
1962 fi
1963
1964 if test x$gcc_no_link = xyes; then
1965   # Setting cross_compile will disable run tests; it will
1966   # also disable AC_CHECK_FILE but that's generally
1967   # correct if we can't link.
1968   cross_compiling=yes
1969   EXEEXT=
1970 else
1971   cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h.  */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h.  */
1977
1978 int
1979 main ()
1980 {
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 ac_clean_files_save=$ac_clean_files
1987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988 # Try to create an executable without -o first, disregard a.out.
1989 # It will help us diagnose broken compilers, and finding out an intuition
1990 # of exeext.
1991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995   (eval $ac_link_default) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); }; then
1999   # Find the output, starting from the most likely.  This scheme is
2000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001 # resort.
2002
2003 # Be careful to initialize this variable, since it used to be cached.
2004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2005 ac_cv_exeext=
2006 # b.out is created by i960 compilers.
2007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2008 do
2009   test -f "$ac_file" || continue
2010   case $ac_file in
2011     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012         ;;
2013     conftest.$ac_ext )
2014         # This is the source file.
2015         ;;
2016     [ab].out )
2017         # We found the default executable, but exeext='' is most
2018         # certainly right.
2019         break;;
2020     *.* )
2021         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022         # FIXME: I believe we export ac_cv_exeext for Libtool,
2023         # but it would be cool to find out if it's true.  Does anybody
2024         # maintain Libtool? --akim.
2025         export ac_cv_exeext
2026         break;;
2027     * )
2028         break;;
2029   esac
2030 done
2031 else
2032   echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&2;}
2039    { (exit 77); exit 77; }; }
2040 fi
2041
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2045
2046 # Check the compiler produces executables we can run.  If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053   if { ac_try='./$ac_file'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059     cross_compiling=no
2060   else
2061     if test "$cross_compiling" = maybe; then
2062         cross_compiling=yes
2063     else
2064         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'.
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'.
2069 See \`config.log' for more details." >&2;}
2070    { (exit 1); exit 1; }; }
2071     fi
2072   fi
2073 fi
2074 echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6
2076
2077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078 ac_clean_files=$ac_clean_files_save
2079 # Check the compiler produces executables we can run.  If not, either
2080 # the compiler is broken, or we cross compile.
2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084 echo "${ECHO_T}$cross_compiling" >&6
2085
2086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089   (eval $ac_link) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; then
2093   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2095 # work properly (i.e., refer to `conftest.exe'), while it won't with
2096 # `rm'.
2097 for ac_file in conftest.exe conftest conftest.*; do
2098   test -f "$ac_file" || continue
2099   case $ac_file in
2100     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102           export ac_cv_exeext
2103           break;;
2104     * ) break;;
2105   esac
2106 done
2107 else
2108   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 rm -f conftest$ac_cv_exeext
2116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117 echo "${ECHO_T}$ac_cv_exeext" >&6
2118
2119 rm -f conftest.$ac_ext
2120 EXEEXT=$ac_cv_exeext
2121 ac_exeext=$EXEEXT
2122 fi
2123 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2124 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2125 if test "${ac_cv_objext+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h.  */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h.  */
2134
2135 int
2136 main ()
2137 {
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2150   case $ac_file in
2151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2152     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2153        break;;
2154   esac
2155 done
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&2;}
2164    { (exit 1); exit 1; }; }
2165 fi
2166
2167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2168 fi
2169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2170 echo "${ECHO_T}$ac_cv_objext" >&6
2171 OBJEXT=$ac_cv_objext
2172 ac_objext=$OBJEXT
2173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184
2185 int
2186 main ()
2187 {
2188 #ifndef __GNUC__
2189        choke me
2190 #endif
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198   (eval $ac_compile) 2>conftest.er1
2199   ac_status=$?
2200   grep -v '^ *+' conftest.er1 >conftest.err
2201   rm -f conftest.er1
2202   cat conftest.err >&5
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); } &&
2205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207   (eval $ac_try) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; } &&
2211          { ac_try='test -s conftest.$ac_objext'
2212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213   (eval $ac_try) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; }; then
2217   ac_compiler_gnu=yes
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 ac_compiler_gnu=no
2223 fi
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2226
2227 fi
2228 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2229 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2230 GCC=`test $ac_compiler_gnu = yes && echo yes`
2231 ac_test_CFLAGS=${CFLAGS+set}
2232 ac_save_CFLAGS=$CFLAGS
2233 CFLAGS="-g"
2234 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2235 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2236 if test "${ac_cv_prog_cc_g+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   cat >conftest.$ac_ext <<_ACEOF
2240 /* confdefs.h.  */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h.  */
2245
2246 int
2247 main ()
2248 {
2249
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   ac_cv_prog_cc_g=yes
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_cv_prog_cc_g=no
2281 fi
2282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2283 fi
2284 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2286 if test "$ac_test_CFLAGS" = set; then
2287   CFLAGS=$ac_save_CFLAGS
2288 elif test $ac_cv_prog_cc_g = yes; then
2289   if test "$GCC" = yes; then
2290     CFLAGS="-g -O2"
2291   else
2292     CFLAGS="-g"
2293   fi
2294 else
2295   if test "$GCC" = yes; then
2296     CFLAGS="-O2"
2297   else
2298     CFLAGS=
2299   fi
2300 fi
2301 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2302 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2303 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   ac_cv_prog_cc_stdc=no
2307 ac_save_CC=$CC
2308 cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314 #include <stdarg.h>
2315 #include <stdio.h>
2316 #include <sys/types.h>
2317 #include <sys/stat.h>
2318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2319 struct buf { int x; };
2320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2321 static char *e (p, i)
2322      char **p;
2323      int i;
2324 {
2325   return p[i];
2326 }
2327 static char *f (char * (*g) (char **, int), char **p, ...)
2328 {
2329   char *s;
2330   va_list v;
2331   va_start (v,p);
2332   s = g (p, va_arg (v,int));
2333   va_end (v);
2334   return s;
2335 }
2336
2337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2338    function prototypes and stuff, but not '\xHH' hex character constants.
2339    These don't provoke an error unfortunately, instead are silently treated
2340    as 'x'.  The following induces an error, until -std1 is added to get
2341    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2342    array size at least.  It's necessary to write '\x00'==0 to get something
2343    that's true only with -std1.  */
2344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2345
2346 int test (int i, double x);
2347 struct s1 {int (*f) (int a);};
2348 struct s2 {int (*f) (double a);};
2349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2350 int argc;
2351 char **argv;
2352 int
2353 main ()
2354 {
2355 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 # Don't try gcc -ansi; that turns off useful extensions and
2361 # breaks some systems' header files.
2362 # AIX                   -qlanglvl=ansi
2363 # Ultrix and OSF/1      -std1
2364 # HP-UX 10.20 and later -Ae
2365 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2366 # SVR4                  -Xc -D__EXTENSIONS__
2367 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2368 do
2369   CC="$ac_save_CC $ac_arg"
2370   rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_cv_prog_cc_stdc=$ac_arg
2392 break
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 fi
2398 rm -f conftest.err conftest.$ac_objext
2399 done
2400 rm -f conftest.$ac_ext conftest.$ac_objext
2401 CC=$ac_save_CC
2402
2403 fi
2404
2405 case "x$ac_cv_prog_cc_stdc" in
2406   x|xno)
2407     echo "$as_me:$LINENO: result: none needed" >&5
2408 echo "${ECHO_T}none needed" >&6 ;;
2409   *)
2410     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2412     CC="$CC $ac_cv_prog_cc_stdc" ;;
2413 esac
2414
2415 # Some people use a C++ compiler to compile C.  Since we use `exit',
2416 # in C++ we need to declare it.  In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #ifndef __cplusplus
2421   choke me
2422 #endif
2423 _ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426   (eval $ac_compile) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   for ac_declaration in \
2446    '' \
2447    'extern "C" void std::exit (int) throw (); using std::exit;' \
2448    'extern "C" void std::exit (int); using std::exit;' \
2449    'extern "C" void exit (int) throw ();' \
2450    'extern "C" void exit (int);' \
2451    'void exit (int);'
2452 do
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459 $ac_declaration
2460 #include <stdlib.h>
2461 int
2462 main ()
2463 {
2464 exit (42);
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471   (eval $ac_compile) 2>conftest.er1
2472   ac_status=$?
2473   grep -v '^ *+' conftest.er1 >conftest.err
2474   rm -f conftest.er1
2475   cat conftest.err >&5
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); } &&
2478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486   (eval $ac_try) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   :
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 continue
2496 fi
2497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504 $ac_declaration
2505 int
2506 main ()
2507 {
2508 exit (42);
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   break
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 fi
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 done
2542 rm -f conftest*
2543 if test -n "$ac_declaration"; then
2544   echo '#ifdef __cplusplus' >>confdefs.h
2545   echo $ac_declaration      >>confdefs.h
2546   echo '#endif'             >>confdefs.h
2547 fi
2548
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 fi
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561 ac_ext=cc
2562 ac_cpp='$CXXCPP $CPPFLAGS'
2563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2568   do
2569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2571 echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2573 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   if test -n "$CXX"; then
2577   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591 done
2592
2593 fi
2594 fi
2595 CXX=$glibcxx_cv_prog_CXX
2596 if test -n "$CXX"; then
2597   echo "$as_me:$LINENO: result: $CXX" >&5
2598 echo "${ECHO_T}$CXX" >&6
2599 else
2600   echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2602 fi
2603
2604     test -n "$CXX" && break
2605   done
2606 fi
2607 if test -z "$CXX"; then
2608   ac_ct_CXX=$CXX
2609   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2610 do
2611   # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$ac_ct_CXX"; then
2619   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628     ac_cv_prog_ac_ct_CXX="$ac_prog"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634
2635 fi
2636 fi
2637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2638 if test -n "$ac_ct_CXX"; then
2639   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2640 echo "${ECHO_T}$ac_ct_CXX" >&6
2641 else
2642   echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2644 fi
2645
2646   test -n "$ac_ct_CXX" && break
2647 done
2648 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2649
2650   CXX=$ac_ct_CXX
2651 fi
2652
2653
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO:" \
2656      "checking for C++ compiler version" >&5
2657 ac_compiler=`set X $ac_compile; echo $2`
2658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2659   (eval $ac_compiler --version </dev/null >&5) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }
2663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2664   (eval $ac_compiler -v </dev/null >&5) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }
2668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2669   (eval $ac_compiler -V </dev/null >&5) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }
2673
2674 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689 #ifndef __GNUC__
2690        choke me
2691 #endif
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   ac_compiler_gnu=yes
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 ac_compiler_gnu=no
2724 fi
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 ac_save_CXXFLAGS=$CXXFLAGS
2734 CXXFLAGS="-g"
2735 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 if test "${ac_cv_prog_cxx_g+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747 int
2748 main ()
2749 {
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; } &&
2770          { ac_try='test -s conftest.$ac_objext'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776   ac_cv_prog_cxx_g=yes
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 ac_cv_prog_cxx_g=no
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2786 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2787 if test "$ac_test_CXXFLAGS" = set; then
2788   CXXFLAGS=$ac_save_CXXFLAGS
2789 elif test $ac_cv_prog_cxx_g = yes; then
2790   if test "$GXX" = yes; then
2791     CXXFLAGS="-g -O2"
2792   else
2793     CXXFLAGS="-g"
2794   fi
2795 else
2796   if test "$GXX" = yes; then
2797     CXXFLAGS="-O2"
2798   else
2799     CXXFLAGS=
2800   fi
2801 fi
2802 for ac_declaration in \
2803    '' \
2804    'extern "C" void std::exit (int) throw (); using std::exit;' \
2805    'extern "C" void std::exit (int); using std::exit;' \
2806    'extern "C" void exit (int) throw ();' \
2807    'extern "C" void exit (int);' \
2808    'void exit (int);'
2809 do
2810   cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816 $ac_declaration
2817 #include <stdlib.h>
2818 int
2819 main ()
2820 {
2821 exit (42);
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828   (eval $ac_compile) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } &&
2835          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; } &&
2841          { ac_try='test -s conftest.$ac_objext'
2842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }; }; then
2847   :
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 continue
2853 fi
2854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855   cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861 $ac_declaration
2862 int
2863 main ()
2864 {
2865 exit (42);
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } &&
2879          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881   (eval $ac_try) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   break
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896 fi
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 done
2899 rm -f conftest*
2900 if test -n "$ac_declaration"; then
2901   echo '#ifdef __cplusplus' >>confdefs.h
2902   echo $ac_declaration      >>confdefs.h
2903   echo '#endif'             >>confdefs.h
2904 fi
2905
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911
2912 CXXFLAGS="$save_CXXFLAGS"
2913
2914
2915
2916
2917
2918 am__api_version="1.9"
2919 # Find a good install program.  We prefer a C program (faster),
2920 # so one script is as good as another.  But avoid the broken or
2921 # incompatible versions:
2922 # SysV /etc/install, /usr/sbin/install
2923 # SunOS /usr/etc/install
2924 # IRIX /sbin/install
2925 # AIX /bin/install
2926 # AmigaOS /C/install, which installs bootblocks on floppy discs
2927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2930 # OS/2's system install, which has a completely different semantic
2931 # ./install, which can be erroneously created by make from ./install.sh.
2932 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2933 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2934 if test -z "$INSTALL"; then
2935 if test "${ac_cv_path_install+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   # Account for people who put trailing slashes in PATH elements.
2944 case $as_dir/ in
2945   ./ | .// | /cC/* | \
2946   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2947   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2948   /usr/ucb/* ) ;;
2949   *)
2950     # OSF1 and SCO ODT 3.0 have their own names for install.
2951     # Don't use installbsd from OSF since it installs stuff as root
2952     # by default.
2953     for ac_prog in ginstall scoinst install; do
2954       for ac_exec_ext in '' $ac_executable_extensions; do
2955         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2956           if test $ac_prog = install &&
2957             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2958             # AIX install.  It has an incompatible calling convention.
2959             :
2960           elif test $ac_prog = install &&
2961             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962             # program-specific install script used by HP pwplus--don't use.
2963             :
2964           else
2965             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2966             break 3
2967           fi
2968         fi
2969       done
2970     done
2971     ;;
2972 esac
2973 done
2974
2975
2976 fi
2977   if test "${ac_cv_path_install+set}" = set; then
2978     INSTALL=$ac_cv_path_install
2979   else
2980     # As a last resort, use the slow shell script.  We don't cache a
2981     # path for INSTALL within a source directory, because that will
2982     # break other packages using the cache if that directory is
2983     # removed, or if the path is relative.
2984     INSTALL=$ac_install_sh
2985   fi
2986 fi
2987 echo "$as_me:$LINENO: result: $INSTALL" >&5
2988 echo "${ECHO_T}$INSTALL" >&6
2989
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2993
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2995
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2997
2998 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2999 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3000 # Just in case
3001 sleep 1
3002 echo timestamp > conftest.file
3003 # Do `set' in a subshell so we don't clobber the current shell's
3004 # arguments.  Must try -L first in case configure is actually a
3005 # symlink; some systems play weird games with the mod time of symlinks
3006 # (eg FreeBSD returns the mod time of the symlink's containing
3007 # directory).
3008 if (
3009    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3010    if test "$*" = "X"; then
3011       # -L didn't work.
3012       set X `ls -t $srcdir/configure conftest.file`
3013    fi
3014    rm -f conftest.file
3015    if test "$*" != "X $srcdir/configure conftest.file" \
3016       && test "$*" != "X conftest.file $srcdir/configure"; then
3017
3018       # If neither matched, then we have a broken ls.  This can happen
3019       # if, for instance, CONFIG_SHELL is bash and it inherits a
3020       # broken ls alias from the environment.  This has actually
3021       # happened.  Such a system could not be considered "sane".
3022       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3023 alias in your environment" >&5
3024 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3025 alias in your environment" >&2;}
3026    { (exit 1); exit 1; }; }
3027    fi
3028
3029    test "$2" = conftest.file
3030    )
3031 then
3032    # Ok.
3033    :
3034 else
3035    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3036 Check your system clock" >&5
3037 echo "$as_me: error: newly created file is older than distributed files!
3038 Check your system clock" >&2;}
3039    { (exit 1); exit 1; }; }
3040 fi
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3043 test "$program_prefix" != NONE &&
3044   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE &&
3047   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3048 # Double any \ or $.  echo might interpret backslashes.
3049 # By default was `s,x,x', remove it if useless.
3050 cat <<\_ACEOF >conftest.sed
3051 s/[\\$]/&&/g;s/;s,x,x,$//
3052 _ACEOF
3053 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3054 rm conftest.sed
3055
3056 # expand $ac_aux_dir to an absolute path
3057 am_aux_dir=`cd $ac_aux_dir && pwd`
3058
3059 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3060 # Use eval to expand $SHELL
3061 if eval "$MISSING --run true"; then
3062   am_missing_run="$MISSING --run "
3063 else
3064   am_missing_run=
3065   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3066 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3067 fi
3068
3069 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3070   # We used to keeping the `.' as first argument, in order to
3071   # allow $(mkdir_p) to be used without argument.  As in
3072   #   $(mkdir_p) $(somedir)
3073   # where $(somedir) is conditionally defined.  However this is wrong
3074   # for two reasons:
3075   #  1. if the package is installed by a user who cannot write `.'
3076   #     make install will fail,
3077   #  2. the above comment should most certainly read
3078   #     $(mkdir_p) $(DESTDIR)$(somedir)
3079   #     so it does not work when $(somedir) is undefined and
3080   #     $(DESTDIR) is not.
3081   #  To support the latter case, we have to write
3082   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3083   #  so the `.' trick is pointless.
3084   mkdir_p='mkdir -p --'
3085 else
3086   # On NextStep and OpenStep, the `mkdir' command does not
3087   # recognize any option.  It will interpret all options as
3088   # directories to create, and then abort because `.' already
3089   # exists.
3090   for d in ./-p ./--version;
3091   do
3092     test -d $d && rmdir $d
3093   done
3094   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3095   if test -f "$ac_aux_dir/mkinstalldirs"; then
3096     mkdir_p='$(mkinstalldirs)'
3097   else
3098     mkdir_p='$(install_sh) -d'
3099   fi
3100 fi
3101
3102 for ac_prog in gawk mawk nawk awk
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_AWK+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$AWK"; then
3112   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121     ac_cv_prog_AWK="$ac_prog"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127
3128 fi
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132   echo "$as_me:$LINENO: result: $AWK" >&5
3133 echo "${ECHO_T}$AWK" >&6
3134 else
3135   echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 fi
3138
3139   test -n "$AWK" && break
3140 done
3141
3142 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3144 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3145 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   cat >conftest.make <<\_ACEOF
3149 all:
3150         @echo 'ac_maketemp="$(MAKE)"'
3151 _ACEOF
3152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3153 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3154 if test -n "$ac_maketemp"; then
3155   eval ac_cv_prog_make_${ac_make}_set=yes
3156 else
3157   eval ac_cv_prog_make_${ac_make}_set=no
3158 fi
3159 rm -f conftest.make
3160 fi
3161 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3162   echo "$as_me:$LINENO: result: yes" >&5
3163 echo "${ECHO_T}yes" >&6
3164   SET_MAKE=
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168   SET_MAKE="MAKE=${MAKE-make}"
3169 fi
3170
3171 rm -rf .tst 2>/dev/null
3172 mkdir .tst 2>/dev/null
3173 if test -d .tst; then
3174   am__leading_dot=.
3175 else
3176   am__leading_dot=_
3177 fi
3178 rmdir .tst 2>/dev/null
3179
3180 DEPDIR="${am__leading_dot}deps"
3181
3182           ac_config_commands="$ac_config_commands depfiles"
3183
3184
3185 am_make=${MAKE-make}
3186 cat > confinc << 'END'
3187 am__doit:
3188         @echo done
3189 .PHONY: am__doit
3190 END
3191 # If we don't find an include directive, just comment out the code.
3192 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3193 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3194 am__include="#"
3195 am__quote=
3196 _am_result=none
3197 # First try GNU make style include.
3198 echo "include confinc" > confmf
3199 # We grep out `Entering directory' and `Leaving directory'
3200 # messages which can occur if `w' ends up in MAKEFLAGS.
3201 # In particular we don't look at `^make:' because GNU make might
3202 # be invoked under some other name (usually "gmake"), in which
3203 # case it prints its new name instead of `make'.
3204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3205    am__include=include
3206    am__quote=
3207    _am_result=GNU
3208 fi
3209 # Now try BSD make style include.
3210 if test "$am__include" = "#"; then
3211    echo '.include "confinc"' > confmf
3212    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3213       am__include=.include
3214       am__quote="\""
3215       _am_result=BSD
3216    fi
3217 fi
3218
3219
3220 echo "$as_me:$LINENO: result: $_am_result" >&5
3221 echo "${ECHO_T}$_am_result" >&6
3222 rm -f confinc confmf
3223
3224 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3225 if test "${enable_dependency_tracking+set}" = set; then
3226   enableval="$enable_dependency_tracking"
3227
3228 fi;
3229 if test "x$enable_dependency_tracking" != xno; then
3230   am_depcomp="$ac_aux_dir/depcomp"
3231   AMDEPBACKSLASH='\'
3232 fi
3233
3234
3235 if test "x$enable_dependency_tracking" != xno; then
3236   AMDEP_TRUE=
3237   AMDEP_FALSE='#'
3238 else
3239   AMDEP_TRUE='#'
3240   AMDEP_FALSE=
3241 fi
3242
3243
3244
3245 # test to see if srcdir already configured
3246 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3247    test -f $srcdir/config.status; then
3248   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3250    { (exit 1); exit 1; }; }
3251 fi
3252
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255   if (cygpath --version) >/dev/null 2>/dev/null; then
3256     CYGPATH_W='cygpath -w'
3257   else
3258     CYGPATH_W=echo
3259   fi
3260 fi
3261
3262
3263 # Define the identity of the package.
3264  PACKAGE='libjava'
3265  VERSION='version-unused'
3266
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3270 _ACEOF
3271
3272
3273 cat >>confdefs.h <<_ACEOF
3274 #define VERSION "$VERSION"
3275 _ACEOF
3276
3277 # Some tools Automake needs.
3278
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3294
3295 # Installed binaries are usually stripped using `strip' when the user
3296 # run `make install-strip'.  However `strip' might not be the right
3297 # tool to use in cross-compilation environments, therefore Automake
3298 # will honor the `STRIP' environment variable to overrule this program.
3299 if test "$cross_compiling" != no; then
3300   if test -n "$ac_tool_prefix"; then
3301   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}strip; ac_word=$2
3303 echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_STRIP+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   if test -n "$STRIP"; then
3309   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316   for ac_exec_ext in '' $ac_executable_extensions; do
3317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323 done
3324
3325 fi
3326 fi
3327 STRIP=$ac_cv_prog_STRIP
3328 if test -n "$STRIP"; then
3329   echo "$as_me:$LINENO: result: $STRIP" >&5
3330 echo "${ECHO_T}$STRIP" >&6
3331 else
3332   echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3334 fi
3335
3336 fi
3337 if test -z "$ac_cv_prog_STRIP"; then
3338   ac_ct_STRIP=$STRIP
3339   # Extract the first word of "strip", so it can be a program name with args.
3340 set dummy strip; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$ac_ct_STRIP"; then
3347   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_ac_ct_STRIP="strip"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3364 fi
3365 fi
3366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3367 if test -n "$ac_ct_STRIP"; then
3368   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3369 echo "${ECHO_T}$ac_ct_STRIP" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375   STRIP=$ac_ct_STRIP
3376 else
3377   STRIP="$ac_cv_prog_STRIP"
3378 fi
3379
3380 fi
3381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3382
3383 # We need awk for the "check" target.  The system "awk" is bad on
3384 # some platforms.
3385 # Always define AMTAR for backward compatibility.
3386
3387 AMTAR=${AMTAR-"${am_missing_run}tar"}
3388
3389 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3390
3391
3392
3393
3394 depcc="$CC"   am_compiler_list=
3395
3396 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3398 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402   # We make a subdir and do the tests there.  Otherwise we can end up
3403   # making bogus files that we don't know about and never remove.  For
3404   # instance it was reported that on HP-UX the gcc test will end up
3405   # making a dummy file named `D' -- because `-MD' means `put the output
3406   # in D'.
3407   mkdir conftest.dir
3408   # Copy depcomp to subdir because otherwise we won't find it if we're
3409   # using a relative directory.
3410   cp "$am_depcomp" conftest.dir
3411   cd conftest.dir
3412   # We will build objects and dependencies in a subdirectory because
3413   # it helps to detect inapplicable dependency modes.  For instance
3414   # both Tru64's cc and ICC support -MD to output dependencies as a
3415   # side effect of compilation, but ICC will put the dependencies in
3416   # the current directory while Tru64 will put them in the object
3417   # directory.
3418   mkdir sub
3419
3420   am_cv_CC_dependencies_compiler_type=none
3421   if test "$am_compiler_list" = ""; then
3422      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3423   fi
3424   for depmode in $am_compiler_list; do
3425     # Setup a source with many dependencies, because some compilers
3426     # like to wrap large dependency lists on column 80 (with \), and
3427     # we should not choose a depcomp mode which is confused by this.
3428     #
3429     # We need to recreate these files for each test, as the compiler may
3430     # overwrite some of them when testing with obscure command lines.
3431     # This happens at least with the AIX C compiler.
3432     : > sub/conftest.c
3433     for i in 1 2 3 4 5 6; do
3434       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436       # Solaris 8's {/usr,}/bin/sh.
3437       touch sub/conftst$i.h
3438     done
3439     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3440
3441     case $depmode in
3442     nosideeffect)
3443       # after this tag, mechanisms are not by side-effect, so they'll
3444       # only be used when explicitly requested
3445       if test "x$enable_dependency_tracking" = xyes; then
3446         continue
3447       else
3448         break
3449       fi
3450       ;;
3451     none) break ;;
3452     esac
3453     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454     # mode.  It turns out that the SunPro C++ compiler does not properly
3455     # handle `-M -o', and we need to detect this.
3456     if depmode=$depmode \
3457        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460          >/dev/null 2>conftest.err &&
3461        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3462        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3463        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3464       # icc doesn't choke on unknown options, it will just issue warnings
3465       # or remarks (even with -Werror).  So we grep stderr for any message
3466       # that says an option was ignored or not supported.
3467       # When given -MP, icc 7.0 and 7.1 complain thusly:
3468       #   icc: Command line warning: ignoring option '-M'; no argument required
3469       # The diagnosis changed in icc 8.0:
3470       #   icc: Command line remark: option '-MP' not supported
3471       if (grep 'ignoring option' conftest.err ||
3472           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3473         am_cv_CC_dependencies_compiler_type=$depmode
3474         break
3475       fi
3476     fi
3477   done
3478
3479   cd ..
3480   rm -rf conftest.dir
3481 else
3482   am_cv_CC_dependencies_compiler_type=none
3483 fi
3484
3485 fi
3486 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3487 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3489
3490
3491
3492 if
3493   test "x$enable_dependency_tracking" != xno \
3494   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3495   am__fastdepCC_TRUE=
3496   am__fastdepCC_FALSE='#'
3497 else
3498   am__fastdepCC_TRUE='#'
3499   am__fastdepCC_FALSE=
3500 fi
3501
3502
3503 depcc="$CXX"  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_CXX_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_CXX_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_CXX_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_CXX_dependencies_compiler_type=none
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3597 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3598
3599
3600
3601 if
3602   test "x$enable_dependency_tracking" != xno \
3603   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3604   am__fastdepCXX_TRUE=
3605   am__fastdepCXX_FALSE='#'
3606 else
3607   am__fastdepCXX_TRUE='#'
3608   am__fastdepCXX_FALSE=
3609 fi
3610
3611
3612
3613
3614 if test -n "$ac_tool_prefix"; then
3615   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}as; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_AS+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   if test -n "$AS"; then
3623   ac_cv_prog_AS="$AS" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630   for ac_exec_ext in '' $ac_executable_extensions; do
3631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632     ac_cv_prog_AS="${ac_tool_prefix}as"
3633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637 done
3638
3639 fi
3640 fi
3641 AS=$ac_cv_prog_AS
3642 if test -n "$AS"; then
3643   echo "$as_me:$LINENO: result: $AS" >&5
3644 echo "${ECHO_T}$AS" >&6
3645 else
3646   echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650 fi
3651 if test -z "$ac_cv_prog_AS"; then
3652   ac_ct_AS=$AS
3653   # Extract the first word of "as", so it can be a program name with args.
3654 set dummy as; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$ac_ct_AS"; then
3661   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_ac_ct_AS="as"
3671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3680 if test -n "$ac_ct_AS"; then
3681   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3682 echo "${ECHO_T}$ac_ct_AS" >&6
3683 else
3684   echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688   AS=$ac_ct_AS
3689 else
3690   AS="$ac_cv_prog_AS"
3691 fi
3692
3693 if test -n "$ac_tool_prefix"; then
3694   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}ar; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_prog_AR+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   if test -n "$AR"; then
3702   ac_cv_prog_AR="$AR" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709   for ac_exec_ext in '' $ac_executable_extensions; do
3710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711     ac_cv_prog_AR="${ac_tool_prefix}ar"
3712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716 done
3717
3718 fi
3719 fi
3720 AR=$ac_cv_prog_AR
3721 if test -n "$AR"; then
3722   echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3724 else
3725   echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727 fi
3728
3729 fi
3730 if test -z "$ac_cv_prog_AR"; then
3731   ac_ct_AR=$AR
3732   # Extract the first word of "ar", so it can be a program name with args.
3733 set dummy ar; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$ac_ct_AR"; then
3740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749     ac_cv_prog_ac_ct_AR="ar"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755
3756 fi
3757 fi
3758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3759 if test -n "$ac_ct_AR"; then
3760   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3761 echo "${ECHO_T}$ac_ct_AR" >&6
3762 else
3763   echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766
3767   AR=$ac_ct_AR
3768 else
3769   AR="$ac_cv_prog_AR"
3770 fi
3771
3772 if test -n "$ac_tool_prefix"; then
3773   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3775 echo "$as_me:$LINENO: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777 if test "${ac_cv_prog_RANLIB+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   if test -n "$RANLIB"; then
3781   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788   for ac_exec_ext in '' $ac_executable_extensions; do
3789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792     break 2
3793   fi
3794 done
3795 done
3796
3797 fi
3798 fi
3799 RANLIB=$ac_cv_prog_RANLIB
3800 if test -n "$RANLIB"; then
3801   echo "$as_me:$LINENO: result: $RANLIB" >&5
3802 echo "${ECHO_T}$RANLIB" >&6
3803 else
3804   echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 fi
3807
3808 fi
3809 if test -z "$ac_cv_prog_RANLIB"; then
3810   ac_ct_RANLIB=$RANLIB
3811   # Extract the first word of "ranlib", so it can be a program name with args.
3812 set dummy ranlib; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   if test -n "$ac_ct_RANLIB"; then
3819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826   for ac_exec_ext in '' $ac_executable_extensions; do
3827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_prog_ac_ct_RANLIB="ranlib"
3829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833 done
3834
3835   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3836 fi
3837 fi
3838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3839 if test -n "$ac_ct_RANLIB"; then
3840   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3841 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847   RANLIB=$ac_ct_RANLIB
3848 else
3849   RANLIB="$ac_cv_prog_RANLIB"
3850 fi
3851
3852
3853 # Find a good install program.  We prefer a C program (faster),
3854 # so one script is as good as another.  But avoid the broken or
3855 # incompatible versions:
3856 # SysV /etc/install, /usr/sbin/install
3857 # SunOS /usr/etc/install
3858 # IRIX /sbin/install
3859 # AIX /bin/install
3860 # AmigaOS /C/install, which installs bootblocks on floppy discs
3861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3864 # OS/2's system install, which has a completely different semantic
3865 # ./install, which can be erroneously created by make from ./install.sh.
3866 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3868 if test -z "$INSTALL"; then
3869 if test "${ac_cv_path_install+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   # Account for people who put trailing slashes in PATH elements.
3878 case $as_dir/ in
3879   ./ | .// | /cC/* | \
3880   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3881   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3882   /usr/ucb/* ) ;;
3883   *)
3884     # OSF1 and SCO ODT 3.0 have their own names for install.
3885     # Don't use installbsd from OSF since it installs stuff as root
3886     # by default.
3887     for ac_prog in ginstall scoinst install; do
3888       for ac_exec_ext in '' $ac_executable_extensions; do
3889         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3890           if test $ac_prog = install &&
3891             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3892             # AIX install.  It has an incompatible calling convention.
3893             :
3894           elif test $ac_prog = install &&
3895             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3896             # program-specific install script used by HP pwplus--don't use.
3897             :
3898           else
3899             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3900             break 3
3901           fi
3902         fi
3903       done
3904     done
3905     ;;
3906 esac
3907 done
3908
3909
3910 fi
3911   if test "${ac_cv_path_install+set}" = set; then
3912     INSTALL=$ac_cv_path_install
3913   else
3914     # As a last resort, use the slow shell script.  We don't cache a
3915     # path for INSTALL within a source directory, because that will
3916     # break other packages using the cache if that directory is
3917     # removed, or if the path is relative.
3918     INSTALL=$ac_install_sh
3919   fi
3920 fi
3921 echo "$as_me:$LINENO: result: $INSTALL" >&5
3922 echo "${ECHO_T}$INSTALL" >&6
3923
3924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3925 # It thinks the first close brace ends the variable substitution.
3926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3927
3928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3929
3930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3931
3932
3933 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3934 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3935     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3936 if test "${enable_maintainer_mode+set}" = set; then
3937   enableval="$enable_maintainer_mode"
3938   USE_MAINTAINER_MODE=$enableval
3939 else
3940   USE_MAINTAINER_MODE=no
3941 fi;
3942   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3943 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3944
3945
3946 if test $USE_MAINTAINER_MODE = yes; then
3947   MAINTAINER_MODE_TRUE=
3948   MAINTAINER_MODE_FALSE='#'
3949 else
3950   MAINTAINER_MODE_TRUE='#'
3951   MAINTAINER_MODE_FALSE=
3952 fi
3953
3954   MAINT=$MAINTAINER_MODE_TRUE
3955
3956
3957
3958
3959
3960 # configure.host sets the following important variables
3961 #       libgcj_cflags    - host specific C compiler flags
3962 #       libgcj_cxxflags  - host specific C++ compiler flags
3963 #       libgcj_javaflags - host specific Java compiler flags
3964
3965 libgcj_cflags=
3966 libgcj_cxxflags=
3967 libgcj_javaflags=
3968
3969 . ${srcdir}/configure.host
3970
3971 LIBGCJ_CFLAGS="${libgcj_cflags}"
3972 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3973 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3974
3975
3976
3977
3978                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3979
3980
3981 # Only use libltdl for non-newlib builds.
3982 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3983      case $enable_ltdl_convenience in
3984   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3985 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3986    { (exit 1); exit 1; }; } ;;
3987   "") enable_ltdl_convenience=yes
3988       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3989   esac
3990   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3991   INCLTDL='-I${top_srcdir}/''libltdl'
3992
3993
3994    DIRLTDL=libltdl
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define USE_LTDL 1
3998 _ACEOF
3999
4000    # Sigh.  Libtool's macro doesn't do the right thing.
4001    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4002    # FIXME: this is a hack.
4003    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4004    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4005 fi
4006
4007
4008
4009 # Check whether --enable-shared or --disable-shared was given.
4010 if test "${enable_shared+set}" = set; then
4011   enableval="$enable_shared"
4012   p=${PACKAGE-default}
4013 case $enableval in
4014 yes) enable_shared=yes ;;
4015 no) enable_shared=no ;;
4016 *)
4017   enable_shared=no
4018   # Look at the argument we got.  We use all the common list separators.
4019   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4020   for pkg in $enableval; do
4021     if test "X$pkg" = "X$p"; then
4022       enable_shared=yes
4023     fi
4024   done
4025   IFS="$ac_save_ifs"
4026   ;;
4027 esac
4028 else
4029   enable_shared=yes
4030 fi;
4031 # Check whether --enable-static or --disable-static was given.
4032 if test "${enable_static+set}" = set; then
4033   enableval="$enable_static"
4034   p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_static=yes ;;
4037 no) enable_static=no ;;
4038 *)
4039   enable_static=no
4040   # Look at the argument we got.  We use all the common list separators.
4041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4042   for pkg in $enableval; do
4043     if test "X$pkg" = "X$p"; then
4044       enable_static=yes
4045     fi
4046   done
4047   IFS="$ac_save_ifs"
4048   ;;
4049 esac
4050 else
4051   enable_static=yes
4052 fi;
4053 # Check whether --enable-fast-install or --disable-fast-install was given.
4054 if test "${enable_fast_install+set}" = set; then
4055   enableval="$enable_fast_install"
4056   p=${PACKAGE-default}
4057 case $enableval in
4058 yes) enable_fast_install=yes ;;
4059 no) enable_fast_install=no ;;
4060 *)
4061   enable_fast_install=no
4062   # Look at the argument we got.  We use all the common list separators.
4063   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4064   for pkg in $enableval; do
4065     if test "X$pkg" = "X$p"; then
4066       enable_fast_install=yes
4067     fi
4068   done
4069   IFS="$ac_save_ifs"
4070   ;;
4071 esac
4072 else
4073   enable_fast_install=yes
4074 fi;
4075
4076 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4077 if test "${with_gnu_ld+set}" = set; then
4078   withval="$with_gnu_ld"
4079   test "$withval" = no || with_gnu_ld=yes
4080 else
4081   with_gnu_ld=no
4082 fi;
4083 ac_prog=ld
4084 if test "$GCC" = yes; then
4085   # Check if gcc -print-prog-name=ld gives a path.
4086   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4087 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4088   case $host in
4089   *-*-mingw*)
4090     # gcc leaves a trailing carriage return which upsets mingw
4091     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4092   *)
4093     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4094   esac
4095   case $ac_prog in
4096     # Accept absolute paths.
4097     [\\/]* | [A-Za-z]:[\\/]*)
4098       re_direlt='/[^/][^/]*/\.\./'
4099       # Canonicalize the path of ld
4100       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4101       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4102         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4103       done
4104       test -z "$LD" && LD="$ac_prog"
4105       ;;
4106   "")
4107     # If it fails, then pretend we aren't using GCC.
4108     ac_prog=ld
4109     ;;
4110   *)
4111     # If it is relative, then search for the first ld in PATH.
4112     with_gnu_ld=unknown
4113     ;;
4114   esac
4115 elif test "$with_gnu_ld" = yes; then
4116   echo "$as_me:$LINENO: checking for GNU ld" >&5
4117 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4118 else
4119   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4120 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4121 fi
4122 if test "${lt_cv_path_LD+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   if test -z "$LD"; then
4126   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4127   for ac_dir in $PATH; do
4128     test -z "$ac_dir" && ac_dir=.
4129     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4130       lt_cv_path_LD="$ac_dir/$ac_prog"
4131       # Check to see if the program is GNU ld.  I'd rather use --version,
4132       # but apparently some GNU ld's only accept -v.
4133       # Break only if it was the GNU/non-GNU ld that we prefer.
4134       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4135         test "$with_gnu_ld" != no && break
4136       else
4137         test "$with_gnu_ld" != yes && break
4138       fi
4139     fi
4140   done
4141   IFS="$ac_save_ifs"
4142 else
4143   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4144 fi
4145 fi
4146
4147 LD="$lt_cv_path_LD"
4148 if test -n "$LD"; then
4149   echo "$as_me:$LINENO: result: $LD" >&5
4150 echo "${ECHO_T}$LD" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4156 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4157    { (exit 1); exit 1; }; }
4158 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4159 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4160 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4164 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4165   lt_cv_prog_gnu_ld=yes
4166 else
4167   lt_cv_prog_gnu_ld=no
4168 fi
4169 fi
4170 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4173
4174
4175 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4176 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4177 if test "${lt_cv_ld_reload_flag+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   lt_cv_ld_reload_flag='-r'
4181 fi
4182 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4183 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4184 reload_flag=$lt_cv_ld_reload_flag
4185 test -n "$reload_flag" && reload_flag=" $reload_flag"
4186
4187 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4188 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4189 if test "${lt_cv_path_NM+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   if test -n "$NM"; then
4193   # Let the user override the test.
4194   lt_cv_path_NM="$NM"
4195 else
4196   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4197   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4198     test -z "$ac_dir" && ac_dir=.
4199     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4200     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4201       # Check to see if the nm accepts a BSD-compat flag.
4202       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4203       #   nm: unknown option "B" ignored
4204       # Tru64's nm complains that /dev/null is an invalid object file
4205       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4206         lt_cv_path_NM="$tmp_nm -B"
4207         break
4208       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4209         lt_cv_path_NM="$tmp_nm -p"
4210         break
4211       else
4212         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4213         continue # so that we can try to find one that supports BSD flags
4214       fi
4215     fi
4216   done
4217   IFS="$ac_save_ifs"
4218   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4219 fi
4220 fi
4221
4222 NM="$lt_cv_path_NM"
4223 echo "$as_me:$LINENO: result: $NM" >&5
4224 echo "${ECHO_T}$NM" >&6
4225
4226 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4227 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4228 if test "${lt_cv_deplibs_check_method+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   lt_cv_file_magic_cmd='$MAGIC_CMD'
4232 lt_cv_file_magic_test_file=
4233 lt_cv_deplibs_check_method='unknown'
4234 # Need to set the preceding variable on all platforms that support
4235 # interlibrary dependencies.
4236 # 'none' -- dependencies not supported.
4237 # `unknown' -- same as none, but documents that we really don't know.
4238 # 'pass_all' -- all dependencies passed with no checks.
4239 # 'test_compile' -- check by making test program.
4240 # 'file_magic [regex]' -- check by looking for files in library path
4241 # which responds to the $file_magic_cmd with a given egrep regex.
4242 # If you have `file' or equivalent on your system and you're not sure
4243 # whether `pass_all' will *always* work, you probably want this one.
4244
4245 case $host_os in
4246 aix*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 beos*)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 bsdi4*)
4255   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4256   lt_cv_file_magic_cmd='/usr/bin/file -L'
4257   lt_cv_file_magic_test_file=/shlib/libc.so
4258   ;;
4259
4260 cygwin* | mingw* |pw32*)
4261   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4262   lt_cv_file_magic_cmd='$OBJDUMP -f'
4263   ;;
4264
4265 darwin* | rhapsody*)
4266   # this will be overwritten by pass_all, but leave it in just in case
4267   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4268   lt_cv_file_magic_cmd='/usr/bin/file -L'
4269   case "$host_os" in
4270   rhapsody* | darwin1.012)
4271     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4272     ;;
4273   *) # Darwin 1.3 on
4274     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4275     ;;
4276   esac
4277   lt_cv_deplibs_check_method=pass_all
4278   ;;
4279
4280 freebsd* | kfreebsd*-gnu)
4281   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4282     case $host_cpu in
4283     i*86 )
4284       # Not sure whether the presence of OpenBSD here was a mistake.
4285       # Let's accept both of them until this is cleared up.
4286       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4287       lt_cv_file_magic_cmd=/usr/bin/file
4288       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4289       ;;
4290     esac
4291   else
4292     lt_cv_deplibs_check_method=pass_all
4293   fi
4294   ;;
4295
4296 gnu*)
4297   lt_cv_deplibs_check_method=pass_all
4298   ;;
4299
4300 hpux10.20*|hpux11*)
4301   case $host_cpu in
4302   hppa*)
4303     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4304     lt_cv_file_magic_cmd=/usr/bin/file
4305     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4306     ;;
4307   ia64*)
4308     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4309     lt_cv_file_magic_cmd=/usr/bin/file
4310     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4311     ;;
4312   esac
4313   ;;
4314
4315 irix5* | irix6*)
4316   case $host_os in
4317   irix5*)
4318     # this will be overridden with pass_all, but let us keep it just in case
4319     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4320     ;;
4321   *)
4322     case $LD in
4323     *-32|*"-32 ") libmagic=32-bit;;
4324     *-n32|*"-n32 ") libmagic=N32;;
4325     *-64|*"-64 ") libmagic=64-bit;;
4326     *) libmagic=never-match;;
4327     esac
4328     # this will be overridden with pass_all, but let us keep it just in case
4329     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4330     ;;
4331   esac
4332   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4333   lt_cv_deplibs_check_method=pass_all
4334   ;;
4335
4336 # This must be Linux ELF.
4337 linux-gnu*)
4338   case $host_cpu in
4339   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4340     lt_cv_deplibs_check_method=pass_all ;;
4341   *)
4342     # glibc up to 2.1.1 does not perform some relocations on ARM
4343     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4344   esac
4345   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4346   ;;
4347
4348 netbsd* | knetbsd*-gnu)
4349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4351   else
4352     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4353   fi
4354   ;;
4355
4356 newsos6)
4357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358   lt_cv_file_magic_cmd=/usr/bin/file
4359   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360   ;;
4361
4362 osf3* | osf4* | osf5*)
4363   # this will be overridden with pass_all, but let us keep it just in case
4364   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4365   lt_cv_file_magic_test_file=/shlib/libc.so
4366   lt_cv_deplibs_check_method=pass_all
4367   ;;
4368
4369 sco3.2v5*)
4370   lt_cv_deplibs_check_method=pass_all
4371   ;;
4372
4373 solaris*)
4374   lt_cv_deplibs_check_method=pass_all
4375   lt_cv_file_magic_test_file=/lib/libc.so
4376   ;;
4377
4378 sysv5uw[78]* | sysv4*uw2*)
4379   lt_cv_deplibs_check_method=pass_all
4380   ;;
4381
4382 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4383   case $host_vendor in
4384   ncr)
4385     lt_cv_deplibs_check_method=pass_all
4386     ;;
4387   motorola)
4388     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]'
4389     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4390     ;;
4391   esac
4392   ;;
4393 esac
4394
4395 fi
4396 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4397 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4398 file_magic_cmd=$lt_cv_file_magic_cmd
4399 deplibs_check_method=$lt_cv_deplibs_check_method
4400
4401
4402
4403
4404 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4405
4406 # Only perform the check for file, if the check method requires it
4407 case $deplibs_check_method in
4408 file_magic*)
4409   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4410     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   case $MAGIC_CMD in
4416   /*)
4417   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4418   ;;
4419   ?:/*)
4420   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4421   ;;
4422   *)
4423   ac_save_MAGIC_CMD="$MAGIC_CMD"
4424   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4425   ac_dummy="/usr/bin:$PATH"
4426   for ac_dir in $ac_dummy; do
4427     test -z "$ac_dir" && ac_dir=.
4428     if test -f $ac_dir/${ac_tool_prefix}file; then
4429       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4430       if test -n "$file_magic_test_file"; then
4431         case $deplibs_check_method in
4432         "file_magic "*)
4433           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4434           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4435           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4436             egrep "$file_magic_regex" > /dev/null; then
4437             :
4438           else
4439             cat <<EOF 1>&2
4440
4441 *** Warning: the command libtool uses to detect shared libraries,
4442 *** $file_magic_cmd, produces output that libtool cannot recognize.
4443 *** The result is that libtool may fail to recognize shared libraries
4444 *** as such.  This will affect the creation of libtool libraries that
4445 *** depend on shared libraries, but programs linked with such libtool
4446 *** libraries will work regardless of this problem.  Nevertheless, you
4447 *** may want to report the problem to your system manager and/or to
4448 *** bug-libtool@gnu.org
4449
4450 EOF
4451           fi ;;
4452         esac
4453       fi
4454       break
4455     fi
4456   done
4457   IFS="$ac_save_ifs"
4458   MAGIC_CMD="$ac_save_MAGIC_CMD"
4459   ;;
4460 esac
4461 fi
4462
4463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4464 if test -n "$MAGIC_CMD"; then
4465   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4466 echo "${ECHO_T}$MAGIC_CMD" >&6
4467 else
4468   echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470 fi
4471
4472 if test -z "$lt_cv_path_MAGIC_CMD"; then
4473   if test -n "$ac_tool_prefix"; then
4474     echo "$as_me:$LINENO: checking for file" >&5
4475 echo $ECHO_N "checking for file... $ECHO_C" >&6
4476 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $MAGIC_CMD in
4480   /*)
4481   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4482   ;;
4483   ?:/*)
4484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4485   ;;
4486   *)
4487   ac_save_MAGIC_CMD="$MAGIC_CMD"
4488   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4489   ac_dummy="/usr/bin:$PATH"
4490   for ac_dir in $ac_dummy; do
4491     test -z "$ac_dir" && ac_dir=.
4492     if test -f $ac_dir/file; then
4493       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4494       if test -n "$file_magic_test_file"; then
4495         case $deplibs_check_method in
4496         "file_magic "*)
4497           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4498           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4499           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4500             egrep "$file_magic_regex" > /dev/null; then
4501             :
4502           else
4503             cat <<EOF 1>&2
4504
4505 *** Warning: the command libtool uses to detect shared libraries,
4506 *** $file_magic_cmd, produces output that libtool cannot recognize.
4507 *** The result is that libtool may fail to recognize shared libraries
4508 *** as such.  This will affect the creation of libtool libraries that
4509 *** depend on shared libraries, but programs linked with such libtool
4510 *** libraries will work regardless of this problem.  Nevertheless, you
4511 *** may want to report the problem to your system manager and/or to
4512 *** bug-libtool@gnu.org
4513
4514 EOF
4515           fi ;;
4516         esac
4517       fi
4518       break
4519     fi
4520   done
4521   IFS="$ac_save_ifs"
4522   MAGIC_CMD="$ac_save_MAGIC_CMD"
4523   ;;
4524 esac
4525 fi
4526
4527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4528 if test -n "$MAGIC_CMD"; then
4529   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4530 echo "${ECHO_T}$MAGIC_CMD" >&6
4531 else
4532   echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536   else
4537     MAGIC_CMD=:
4538   fi
4539 fi
4540
4541   fi
4542   ;;
4543 esac
4544
4545 if test -n "$ac_tool_prefix"; then
4546   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_RANLIB+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$RANLIB"; then
4554   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_exec_ext in '' $ac_executable_extensions; do
4562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568 done
4569
4570 fi
4571 fi
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574   echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 echo "${ECHO_T}$RANLIB" >&6
4576 else
4577   echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581 fi
4582 if test -z "$ac_cv_prog_RANLIB"; then
4583   ac_ct_RANLIB=$RANLIB
4584   # Extract the first word of "ranlib", so it can be a program name with args.
4585 set dummy ranlib; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   if test -n "$ac_ct_RANLIB"; then
4592   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599   for ac_exec_ext in '' $ac_executable_extensions; do
4600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601     ac_cv_prog_ac_ct_RANLIB="ranlib"
4602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603     break 2
4604   fi
4605 done
4606 done
4607
4608   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4609 fi
4610 fi
4611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4612 if test -n "$ac_ct_RANLIB"; then
4613   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4614 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4615 else
4616   echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 fi
4619
4620   RANLIB=$ac_ct_RANLIB
4621 else
4622   RANLIB="$ac_cv_prog_RANLIB"
4623 fi
4624
4625 if test -n "$ac_tool_prefix"; then
4626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4627 set dummy ${ac_tool_prefix}strip; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_STRIP+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$STRIP"; then
4634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649
4650 fi
4651 fi
4652 STRIP=$ac_cv_prog_STRIP
4653 if test -n "$STRIP"; then
4654   echo "$as_me:$LINENO: result: $STRIP" >&5
4655 echo "${ECHO_T}$STRIP" >&6
4656 else
4657   echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4659 fi
4660
4661 fi
4662 if test -z "$ac_cv_prog_STRIP"; then
4663   ac_ct_STRIP=$STRIP
4664   # Extract the first word of "strip", so it can be a program name with args.
4665 set dummy strip; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$ac_ct_STRIP"; then
4672   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681     ac_cv_prog_ac_ct_STRIP="strip"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687
4688   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4689 fi
4690 fi
4691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4692 if test -n "$ac_ct_STRIP"; then
4693   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4694 echo "${ECHO_T}$ac_ct_STRIP" >&6
4695 else
4696   echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698 fi
4699
4700   STRIP=$ac_ct_STRIP
4701 else
4702   STRIP="$ac_cv_prog_STRIP"
4703 fi
4704
4705
4706 # Check for any special flags to pass to ltconfig.
4707 libtool_flags="--cache-file=$cache_file"
4708 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4709 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4710 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4711 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4712 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4713
4714
4715 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4716 if test "${enable_libtool_lock+set}" = set; then
4717   enableval="$enable_libtool_lock"
4718
4719 fi;
4720 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4721 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4722
4723
4724 # Check whether --with-pic or --without-pic was given.
4725 if test "${with_pic+set}" = set; then
4726   withval="$with_pic"
4727   pic_mode="$withval"
4728 else
4729   pic_mode=default
4730 fi;
4731 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4732 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4733
4734 # Some flags need to be propagated to the compiler or linker for good
4735 # libtool support.
4736 case $host in
4737 *-*-irix6*)
4738   # Find out which ABI we are using.
4739   echo '#line 4739 "configure"' > conftest.$ac_ext
4740   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741   (eval $ac_compile) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; then
4745    if test "$lt_cv_prog_gnu_ld" = yes; then
4746     case `/usr/bin/file conftest.$ac_objext` in
4747     *32-bit*)
4748       LD="${LD-ld} -melf32bsmip"
4749       ;;
4750     *N32*)
4751       LD="${LD-ld} -melf32bmipn32"
4752       ;;
4753     *64-bit*)
4754       LD="${LD-ld} -melf64bmip"
4755       ;;
4756     esac
4757    else
4758     case `/usr/bin/file conftest.$ac_objext` in
4759     *32-bit*)
4760       LD="${LD-ld} -32"
4761       ;;
4762     *N32*)
4763       LD="${LD-ld} -n32"
4764       ;;
4765     *64-bit*)
4766       LD="${LD-ld} -64"
4767       ;;
4768     esac
4769    fi
4770   fi
4771   rm -rf conftest*
4772   ;;
4773
4774 ia64-*-hpux*)
4775   # Find out which ABI we are using.
4776   echo 'int i;' > conftest.$ac_ext
4777   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778   (eval $ac_compile) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; then
4782     case "`/usr/bin/file conftest.o`" in
4783     *ELF-32*)
4784       HPUX_IA64_MODE="32"
4785       ;;
4786     *ELF-64*)
4787       HPUX_IA64_MODE="64"
4788       ;;
4789     esac
4790   fi
4791   rm -rf conftest*
4792   ;;
4793
4794 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4795   # Find out which ABI we are using.
4796   echo 'int i;' > conftest.$ac_ext
4797   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; then
4802     case "`/usr/bin/file conftest.o`" in
4803     *32-bit*)
4804       case $host in
4805         x86_64-*linux*)
4806           LD="${LD-ld} -m elf_i386"
4807           ;;
4808         ppc64-*linux*|powerpc64-*linux*)
4809           LD="${LD-ld} -m elf32ppclinux"
4810           ;;
4811         s390x-*linux*)
4812           LD="${LD-ld} -m elf_s390"
4813           ;;
4814         sparc64-*linux*)
4815           LD="${LD-ld} -m elf32_sparc"
4816           ;;
4817       esac
4818       ;;
4819     *64-bit*)
4820       case $host in
4821         x86_64-*linux*)
4822           LD="${LD-ld} -m elf_x86_64"
4823           ;;
4824         ppc*-*linux*|powerpc*-*linux*)
4825           LD="${LD-ld} -m elf64ppc"
4826           ;;
4827         s390*-*linux*)
4828           LD="${LD-ld} -m elf64_s390"
4829           ;;
4830         sparc*-*linux*)
4831           LD="${LD-ld} -m elf64_sparc"
4832           ;;
4833       esac
4834       ;;
4835     esac
4836   fi
4837   rm -rf conftest*
4838   ;;
4839
4840 *-*-sco3.2v5*)
4841   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4842   SAVE_CFLAGS="$CFLAGS"
4843   CFLAGS="$CFLAGS -belf"
4844   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4845 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4846 if test "${lt_cv_cc_needs_belf+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849
4850
4851      ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857      if test x$gcc_no_link = xyes; then
4858   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4860    { (exit 1); exit 1; }; }
4861 fi
4862 cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 int
4870 main ()
4871 {
4872
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4879   (eval $ac_link) 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } &&
4886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888   (eval $ac_try) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; } &&
4892          { ac_try='test -s conftest$ac_exeext'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }; then
4898   lt_cv_cc_needs_belf=yes
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 lt_cv_cc_needs_belf=no
4904 fi
4905 rm -f conftest.err conftest.$ac_objext \
4906       conftest$ac_exeext conftest.$ac_ext
4907      ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
4913 fi
4914 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4915 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4916   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4917     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4918     CFLAGS="$SAVE_CFLAGS"
4919   fi
4920   ;;
4921
4922
4923 esac
4924
4925
4926 # Save cache, so that ltconfig can load it
4927 cat >confcache <<\_ACEOF
4928 # This file is a shell script that caches the results of configure
4929 # tests run on this system so they can be shared between configure
4930 # scripts and configure runs, see configure's option --config-cache.
4931 # It is not useful on other systems.  If it contains results you don't
4932 # want to keep, you may remove or edit it.
4933 #
4934 # config.status only pays attention to the cache file if you give it
4935 # the --recheck option to rerun configure.
4936 #
4937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4939 # following values.
4940
4941 _ACEOF
4942
4943 # The following way of writing the cache mishandles newlines in values,
4944 # but we know of no workaround that is simple, portable, and efficient.
4945 # So, don't put newlines in cache variables' values.
4946 # Ultrix sh set writes to stderr and can't be redirected directly,
4947 # and sets the high bit in the cache file unless we assign to the vars.
4948 {
4949   (set) 2>&1 |
4950     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4951     *ac_space=\ *)
4952       # `set' does not quote correctly, so add quotes (double-quote
4953       # substitution turns \\\\ into \\, and sed turns \\ into \).
4954       sed -n \
4955         "s/'/'\\\\''/g;
4956           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4957       ;;
4958     *)
4959       # `set' quotes correctly as required by POSIX, so do not add quotes.
4960       sed -n \
4961         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4962       ;;
4963     esac;
4964 } |
4965   sed '
4966      t clear
4967      : clear
4968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4969      t end
4970      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4971      : end' >>confcache
4972 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4973   if test -w $cache_file; then
4974     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4975     cat confcache >$cache_file
4976   else
4977     echo "not updating unwritable cache $cache_file"
4978   fi
4979 fi
4980 rm -f confcache
4981
4982 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4983 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4984 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4985 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4986 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4987 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4988 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4989 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4990 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4991 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4992 echo "$as_me: error: libtool configure failed" >&2;}
4993    { (exit 1); exit 1; }; }
4994
4995 # Reload cache, that may have been modified by ltconfig
4996 if test -r "$cache_file"; then
4997   # Some versions of bash will fail to source /dev/null (special
4998   # files actually), so we avoid doing that.
4999   if test -f "$cache_file"; then
5000     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5001 echo "$as_me: loading cache $cache_file" >&6;}
5002     case $cache_file in
5003       [\\/]* | ?:[\\/]* ) . $cache_file;;
5004       *)                      . ./$cache_file;;
5005     esac
5006   fi
5007 else
5008   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5009 echo "$as_me: creating cache $cache_file" >&6;}
5010   >$cache_file
5011 fi
5012
5013
5014 # This can be used to rebuild libtool when needed
5015 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5016
5017 # Always use our own libtool.
5018 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5019
5020 # Redirect the config.log output again, so that the ltconfig log is not
5021 # clobbered by the next message.
5022 exec 5>>./config.log
5023
5024 ac_ext=cc
5025 ac_cpp='$CXXCPP $CPPFLAGS'
5026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5029 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5030 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5031 if test -z "$CXXCPP"; then
5032   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035       # Double quotes because CXXCPP needs to be expanded
5036     for CXXCPP in "$CXX -E" "/lib/cpp"
5037     do
5038       ac_preproc_ok=false
5039 for ac_cxx_preproc_warn_flag in '' yes
5040 do
5041   # Use a header file that comes with gcc, so configuring glibc
5042   # with a fresh cross-compiler works.
5043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044   # <limits.h> exists even on freestanding compilers.
5045   # On the NeXT, cc -E runs the code through the compiler's parser,
5046   # not just through cpp. "Syntax error" is here to catch this case.
5047   cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h.  */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h.  */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058                      Syntax error
5059 _ACEOF
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062   ac_status=$?
5063   grep -v '^ *+' conftest.er1 >conftest.err
5064   rm -f conftest.er1
5065   cat conftest.err >&5
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } >/dev/null; then
5068   if test -s conftest.err; then
5069     ac_cpp_err=$ac_cxx_preproc_warn_flag
5070     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071   else
5072     ac_cpp_err=
5073   fi
5074 else
5075   ac_cpp_err=yes
5076 fi
5077 if test -z "$ac_cpp_err"; then
5078   :
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083   # Broken: fails on valid input.
5084 continue
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088   # OK, works on sane cases.  Now check whether non-existent headers
5089   # can be detected and how.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 #include <ac_nonexistent.h>
5097 _ACEOF
5098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } >/dev/null; then
5106   if test -s conftest.err; then
5107     ac_cpp_err=$ac_cxx_preproc_warn_flag
5108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5109   else
5110     ac_cpp_err=
5111   fi
5112 else
5113   ac_cpp_err=yes
5114 fi
5115 if test -z "$ac_cpp_err"; then
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122   # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128 done
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then
5132   break
5133 fi
5134
5135     done
5136     ac_cv_prog_CXXCPP=$CXXCPP
5137
5138 fi
5139   CXXCPP=$ac_cv_prog_CXXCPP
5140 else
5141   ac_cv_prog_CXXCPP=$CXXCPP
5142 fi
5143 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5144 echo "${ECHO_T}$CXXCPP" >&6
5145 ac_preproc_ok=false
5146 for ac_cxx_preproc_warn_flag in '' yes
5147 do
5148   # Use a header file that comes with gcc, so configuring glibc
5149   # with a fresh cross-compiler works.
5150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151   # <limits.h> exists even on freestanding compilers.
5152   # On the NeXT, cc -E runs the code through the compiler's parser,
5153   # not just through cpp. "Syntax error" is here to catch this case.
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 #ifdef __STDC__
5161 # include <limits.h>
5162 #else
5163 # include <assert.h>
5164 #endif
5165                      Syntax error
5166 _ACEOF
5167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169   ac_status=$?
5170   grep -v '^ *+' conftest.er1 >conftest.err
5171   rm -f conftest.er1
5172   cat conftest.err >&5
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } >/dev/null; then
5175   if test -s conftest.err; then
5176     ac_cpp_err=$ac_cxx_preproc_warn_flag
5177     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178   else
5179     ac_cpp_err=
5180   fi
5181 else
5182   ac_cpp_err=yes
5183 fi
5184 if test -z "$ac_cpp_err"; then
5185   :
5186 else
5187   echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190   # Broken: fails on valid input.
5191 continue
5192 fi
5193 rm -f conftest.err conftest.$ac_ext
5194
5195   # OK, works on sane cases.  Now check whether non-existent headers
5196   # can be detected and how.
5197   cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 #include <ac_nonexistent.h>
5204 _ACEOF
5205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207   ac_status=$?
5208   grep -v '^ *+' conftest.er1 >conftest.err
5209   rm -f conftest.er1
5210   cat conftest.err >&5
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } >/dev/null; then
5213   if test -s conftest.err; then
5214     ac_cpp_err=$ac_cxx_preproc_warn_flag
5215     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5216   else
5217     ac_cpp_err=
5218   fi
5219 else
5220   ac_cpp_err=yes
5221 fi
5222 if test -z "$ac_cpp_err"; then
5223   # Broken: success on invalid input.
5224 continue
5225 else
5226   echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229   # Passes both tests.
5230 ac_preproc_ok=:
5231 break
5232 fi
5233 rm -f conftest.err conftest.$ac_ext
5234
5235 done
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.$ac_ext
5238 if $ac_preproc_ok; then
5239   :
5240 else
5241   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5242 See \`config.log' for more details." >&5
5243 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5244 See \`config.log' for more details." >&2;}
5245    { (exit 1); exit 1; }; }
5246 fi
5247
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253
5254
5255
5256 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5257 lt_save_CC="$CC"
5258 lt_save_CFLAGS="$CFLAGS"
5259 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5260 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5261 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5262 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5263 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5264 deplibs_check_method="$deplibs_check_method" \
5265 file_magic_cmd="$file_magic_cmd" \
5266 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5267 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5268 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5269 echo "$as_me: error: libtool tag configuration failed" >&2;}
5270    { (exit 1); exit 1; }; }
5271 CC="$lt_save_CC"
5272 CFLAGS="$lt_save_CFLAGS"
5273
5274 # Redirect the config.log output again, so that the ltconfig log is not
5275 # clobbered by the next message.
5276 exec 5>>./config.log
5277
5278
5279
5280
5281
5282
5283
5284 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5285 do
5286   # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_GCJ+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   if test -n "$GCJ"; then
5294   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301   for ac_exec_ext in '' $ac_executable_extensions; do
5302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303     ac_cv_prog_GCJ="$ac_prog"
5304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305     break 2
5306   fi
5307 done
5308 done
5309
5310 fi
5311 fi
5312 GCJ=$ac_cv_prog_GCJ
5313 if test -n "$GCJ"; then
5314   echo "$as_me:$LINENO: result: $GCJ" >&5
5315 echo "${ECHO_T}$GCJ" >&6
5316 else
5317   echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320
5321   test -n "$GCJ" && break
5322 done
5323 test -n "$GCJ" || GCJ="gcj"
5324
5325 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5326 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5327    { (exit 1); exit 1; }; }
5328 if test "x${GCJFLAGS-unset}" = xunset; then
5329    GCJFLAGS="-g -O2"
5330 fi
5331
5332
5333 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5334
5335 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5336 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5337 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5341   # We make a subdir and do the tests there.  Otherwise we can end up
5342   # making bogus files that we don't know about and never remove.  For
5343   # instance it was reported that on HP-UX the gcc test will end up
5344   # making a dummy file named `D' -- because `-MD' means `put the output
5345   # in D'.
5346   mkdir conftest.dir
5347   # Copy depcomp to subdir because otherwise we won't find it if we're
5348   # using a relative directory.
5349   cp "$am_depcomp" conftest.dir
5350   cd conftest.dir
5351   # We will build objects and dependencies in a subdirectory because
5352   # it helps to detect inapplicable dependency modes.  For instance
5353   # both Tru64's cc and ICC support -MD to output dependencies as a
5354   # side effect of compilation, but ICC will put the dependencies in
5355   # the current directory while Tru64 will put them in the object
5356   # directory.
5357   mkdir sub
5358
5359   am_cv_GCJ_dependencies_compiler_type=none
5360   if test "$am_compiler_list" = ""; then
5361      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5362   fi
5363   for depmode in $am_compiler_list; do
5364     # Setup a source with many dependencies, because some compilers
5365     # like to wrap large dependency lists on column 80 (with \), and
5366     # we should not choose a depcomp mode which is confused by this.
5367     #
5368     # We need to recreate these files for each test, as the compiler may
5369     # overwrite some of them when testing with obscure command lines.
5370     # This happens at least with the AIX C compiler.
5371     : > sub/conftest.c
5372     for i in 1 2 3 4 5 6; do
5373       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5374       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5375       # Solaris 8's {/usr,}/bin/sh.
5376       touch sub/conftst$i.h
5377     done
5378     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5379
5380     case $depmode in
5381     nosideeffect)
5382       # after this tag, mechanisms are not by side-effect, so they'll
5383       # only be used when explicitly requested
5384       if test "x$enable_dependency_tracking" = xyes; then
5385         continue
5386       else
5387         break
5388       fi
5389       ;;
5390     none) break ;;
5391     esac
5392     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5393     # mode.  It turns out that the SunPro C++ compiler does not properly
5394     # handle `-M -o', and we need to detect this.
5395     if depmode=$depmode \
5396        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5397        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5398        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5399          >/dev/null 2>conftest.err &&
5400        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5401        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5402        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5403       # icc doesn't choke on unknown options, it will just issue warnings
5404       # or remarks (even with -Werror).  So we grep stderr for any message
5405       # that says an option was ignored or not supported.
5406       # When given -MP, icc 7.0 and 7.1 complain thusly:
5407       #   icc: Command line warning: ignoring option '-M'; no argument required
5408       # The diagnosis changed in icc 8.0:
5409       #   icc: Command line remark: option '-MP' not supported
5410       if (grep 'ignoring option' conftest.err ||
5411           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5412         am_cv_GCJ_dependencies_compiler_type=$depmode
5413         break
5414       fi
5415     fi
5416   done
5417
5418   cd ..
5419   rm -rf conftest.dir
5420 else
5421   am_cv_GCJ_dependencies_compiler_type=none
5422 fi
5423
5424 fi
5425 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5426 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5427 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5428
5429
5430
5431 if
5432   test "x$enable_dependency_tracking" != xno \
5433   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5434   am__fastdepGCJ_TRUE=
5435   am__fastdepGCJ_FALSE='#'
5436 else
5437   am__fastdepGCJ_TRUE='#'
5438   am__fastdepGCJ_FALSE=
5439 fi
5440
5441
5442
5443
5444 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5445 lt_save_CC="$CC"
5446 lt_save_CFLAGS="$CFLAGS"
5447 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5448 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5449 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5450 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5451 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5452 deplibs_check_method="$deplibs_check_method" \
5453 file_magic_cmd="$file_magic_cmd" \
5454 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5455 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5456 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5457 echo "$as_me: error: libtool tag configuration failed" >&2;}
5458    { (exit 1); exit 1; }; }
5459 CC="$lt_save_CC"
5460 CFLAGS="$lt_save_CFLAGS"
5461
5462 # Redirect the config.log output again, so that the ltconfig log is not
5463 # clobbered by the next message.
5464 exec 5>>./config.log
5465
5466
5467
5468 if test "x$CC" != xcc; then
5469   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5470 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5471 else
5472   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5473 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5474 fi
5475 set dummy $CC; ac_cc=`echo $2 |
5476                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5477 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5478   echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480   cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486
5487 int
5488 main ()
5489 {
5490
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 # Make sure it works both with $CC and with simple cc.
5496 # We do the test twice because some compilers refuse to overwrite an
5497 # existing .o file with -o, though they will create one.
5498 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5499 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } &&
5504    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); };
5509 then
5510   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5511   if test "x$CC" != xcc; then
5512     # Test first that cc exists at all.
5513     if { ac_try='cc -c conftest.$ac_ext >&5'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; }; then
5519       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5520       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521   (eval $ac_try) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } &&
5525          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); };
5530       then
5531         # cc works too.
5532         :
5533       else
5534         # cc exists but doesn't like -o.
5535         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5536       fi
5537     fi
5538   fi
5539 else
5540   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5541 fi
5542 rm -f conftest*
5543
5544 fi
5545 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5546   echo "$as_me:$LINENO: result: yes" >&5
5547 echo "${ECHO_T}yes" >&6
5548 else
5549   echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551
5552 cat >>confdefs.h <<\_ACEOF
5553 #define NO_MINUS_C_MINUS_O 1
5554 _ACEOF
5555
5556 fi
5557
5558 # FIXME: we rely on the cache variable name because
5559 # there is no other way.
5560 set dummy $CC
5561 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5562 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5563    # Losing compiler, so override with the script.
5564    # FIXME: It is wrong to rewrite CC.
5565    # But if we don't then we get into trouble of one sort or another.
5566    # A longer-term fix would be to have automake use am__CC in this case,
5567    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5568    CC="$am_aux_dir/compile $CC"
5569 fi
5570
5571
5572
5573 subdirs="$subdirs libltdl"
5574
5575
5576 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5577    COMPPATH=.
5578 else
5579    COMPPATH=..
5580 fi
5581
5582
5583 # The -no-testsuite modules omit the test subdir.
5584
5585
5586 if test -d $srcdir/testsuite; then
5587   TESTSUBDIR_TRUE=
5588   TESTSUBDIR_FALSE='#'
5589 else
5590   TESTSUBDIR_TRUE='#'
5591   TESTSUBDIR_FALSE=
5592 fi
5593
5594
5595 # Should the runtime set system properties by examining the
5596 # environment variable GCJ_PROPERTIES?
5597 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5598 if test "${enable_getenv_properties+set}" = set; then
5599   enableval="$enable_getenv_properties"
5600
5601 fi;
5602
5603 # Whether GCJ_PROPERTIES is used depends on the target.
5604 if test -z "$enable_getenv_properties"; then
5605    enable_getenv_properties=${enable_getenv_properties_default-yes}
5606 fi
5607 if test "$enable_getenv_properties" = no; then
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define DISABLE_GETENV_PROPERTIES 1
5611 _ACEOF
5612
5613 fi
5614
5615 # Whether we should use arguments to main()
5616 if test -z "$enable_main_args"; then
5617    enable_main_args=${enable_main_args_default-yes}
5618 fi
5619 if test "$enable_main_args" = no; then
5620
5621 cat >>confdefs.h <<\_ACEOF
5622 #define DISABLE_MAIN_ARGS 1
5623 _ACEOF
5624
5625 fi
5626
5627
5628 # Should we use hashtable-based synchronization?
5629 # Currently works only for Linux X86/ia64
5630 # Typically faster and more space-efficient
5631 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5632 if test "${enable_hash_synchronization+set}" = set; then
5633   enableval="$enable_hash_synchronization"
5634
5635 fi;
5636
5637 if test -z "$enable_hash_synchronization"; then
5638    enable_hash_synchronization=$enable_hash_synchronization_default
5639 fi
5640
5641 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5642 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5643 if test "${enable_libgcj_multifile+set}" = set; then
5644   enableval="$enable_libgcj_multifile"
5645   case "${enableval}" in
5646   yes) enable_libgcj_multifile=yes ;;
5647   no)  enable_libgcj_multifile=no ;;
5648   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5649 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5650    { (exit 1); exit 1; }; } ;;
5651 esac
5652 else
5653   enable_libgcj_multifile=no
5654 fi;
5655
5656
5657 if test "$enable_libgcj_multifile" = yes; then
5658   ONESTEP_TRUE=
5659   ONESTEP_FALSE='#'
5660 else
5661   ONESTEP_TRUE='#'
5662   ONESTEP_FALSE=
5663 fi
5664
5665
5666 # What is the native OS API for MinGW?
5667
5668 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5669 if test "${with_win32_nlsapi+set}" = set; then
5670   withval="$with_win32_nlsapi"
5671   case "${withval}" in
5672   ansi) with_win32_nlsapi=ansi ;;
5673   unicows) with_win32_nlsapi=unicows ;;
5674   unicode) with_win32_nlsapi=unicode ;;
5675   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5676 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5677    { (exit 1); exit 1; }; } ;;
5678 esac
5679 else
5680   with_win32_nlsapi=ansi
5681 fi;
5682
5683 case "${with_win32_nlsapi}" in
5684   unicows | unicode)
5685
5686 cat >>confdefs.h <<\_ACEOF
5687 #define MINGW_LIBGCJ_UNICODE 1
5688 _ACEOF
5689
5690     ;;
5691 esac
5692
5693 # configure.host sets slow_pthread_self if the synchronization code should
5694 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5695 if test "${slow_pthread_self}" = "yes"; then
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define SLOW_PTHREAD_SELF 1
5699 _ACEOF
5700
5701 fi
5702
5703
5704 # See if the user has requested runtime debugging.
5705 LIBGCJDEBUG="false"
5706
5707 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5708 if test "${enable_libgcj_debug+set}" = set; then
5709   enableval="$enable_libgcj_debug"
5710   if test "$enable_libgcj_debug" = yes; then
5711
5712 cat >>confdefs.h <<\_ACEOF
5713 #define DEBUG 1
5714 _ACEOF
5715
5716     LIBGCJDEBUG="true"
5717   fi
5718 fi;
5719
5720 # Check for gc debugging.  This option is handled both here and in the GC.
5721 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5722 if test "${enable_gc_debug+set}" = set; then
5723   enableval="$enable_gc_debug"
5724    if test "$enable_gc_debug" = "yes"; then
5725
5726 cat >>confdefs.h <<\_ACEOF
5727 #define LIBGCJ_GC_DEBUG 1
5728 _ACEOF
5729
5730   fi
5731 fi;
5732
5733 # See if the user has the interpreter included.
5734 # Check whether --enable-interpreter or --disable-interpreter was given.
5735 if test "${enable_interpreter+set}" = set; then
5736   enableval="$enable_interpreter"
5737   if test "$enable_interpreter" = yes; then
5738     # This can also be set in configure.host.
5739     libgcj_interpreter=yes
5740   elif test "$enable_interpreter" = no; then
5741     libgcj_interpreter=no
5742   fi
5743 fi;
5744
5745 if test "$libgcj_interpreter" = yes; then
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define INTERPRETER 1
5749 _ACEOF
5750
5751 fi
5752 INTERPRETER="$libgcj_interpreter"
5753
5754
5755 echo "$as_me:$LINENO: checking for exception model to use" >&5
5756 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5757 ac_ext=cc
5758 ac_cpp='$CXXCPP $CPPFLAGS'
5759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5762
5763 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5764 if test "${enable_sjlj_exceptions+set}" = set; then
5765   enableval="$enable_sjlj_exceptions"
5766   :
5767 else
5768   cat > conftest.$ac_ext << EOF
5769 #line 5769 "configure"
5770 struct S { ~S(); };
5771 void bar();
5772 void foo()
5773 {
5774   S s;
5775   bar();
5776 }
5777 EOF
5778 old_CXXFLAGS="$CXXFLAGS"
5779 CXXFLAGS=-S
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; then
5785   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5786     enable_sjlj_exceptions=yes
5787   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5788     enable_sjlj_exceptions=no
5789   fi
5790 fi
5791 CXXFLAGS="$old_CXXFLAGS"
5792 rm -f conftest*
5793 fi;
5794 if test x$enable_sjlj_exceptions = xyes; then
5795
5796 cat >>confdefs.h <<\_ACEOF
5797 #define SJLJ_EXCEPTIONS 1
5798 _ACEOF
5799
5800   ac_exception_model_name=sjlj
5801 elif test x$enable_sjlj_exceptions = xno; then
5802   ac_exception_model_name="call frame"
5803 else
5804   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5805 echo "$as_me: error: unable to detect exception model" >&2;}
5806    { (exit 1); exit 1; }; }
5807 fi
5808 ac_ext=c
5809 ac_cpp='$CPP $CPPFLAGS'
5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
5814 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5815 echo "${ECHO_T}$ac_exception_model_name" >&6
5816
5817 # If we are non using SJLJ exceptions, and this host does not have support
5818 # for unwinding from a signal handler, enable checked dereferences and divides.
5819 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5820   CHECKREFSPEC=-fcheck-references
5821   DIVIDESPEC=-fuse-divide-subroutine
5822   EXCEPTIONSPEC=
5823 fi
5824
5825 # See if the user wants to disable java.net.  This is the mildly
5826 # ugly way that we admit that target-side configuration sucks.
5827 # Check whether --enable-java-net or --disable-java-net was given.
5828 if test "${enable_java_net+set}" = set; then
5829   enableval="$enable_java_net"
5830
5831 fi;
5832
5833 # Whether java.net is built by default can depend on the target.
5834 if test -z "$enable_java_net"; then
5835    enable_java_net=${enable_java_net_default-yes}
5836 fi
5837 if test "$enable_java_net" = no; then
5838
5839 cat >>confdefs.h <<\_ACEOF
5840 #define DISABLE_JAVA_NET 1
5841 _ACEOF
5842
5843 fi
5844
5845 # See if the user wants to configure without libffi.  Some
5846 # architectures don't support it, and default values are set in
5847 # configure.host.
5848
5849 # Check whether --with-libffi or --without-libffi was given.
5850 if test "${with_libffi+set}" = set; then
5851   withval="$with_libffi"
5852   :
5853 else
5854   with_libffi=${with_libffi_default-yes}
5855 fi;
5856
5857 LIBFFI=
5858 LIBFFIINCS=
5859 if test "$with_libffi" != no; then
5860
5861 cat >>confdefs.h <<\_ACEOF
5862 #define USE_LIBFFI 1
5863 _ACEOF
5864
5865    LIBFFI=../libffi/libffi_convenience.la
5866    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5867 fi
5868
5869
5870
5871 # See if the user wants to disable JVMPI support.
5872 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5873 if test "${enable_jvmpi+set}" = set; then
5874   enableval="$enable_jvmpi"
5875
5876 fi;
5877
5878 if test "$enable_jvmpi" != no; then
5879
5880 cat >>confdefs.h <<\_ACEOF
5881 #define ENABLE_JVMPI 1
5882 _ACEOF
5883
5884 fi
5885
5886 # If the target is an eCos system, use the appropriate eCos
5887 # I/O routines.
5888 # FIXME: this should not be a local option but a global target
5889 # system; at present there is no eCos target.
5890 TARGET_ECOS=${PROCESS-"no"}
5891
5892 # Check whether --with-ecos or --without-ecos was given.
5893 if test "${with_ecos+set}" = set; then
5894   withval="$with_ecos"
5895   TARGET_ECOS="$with_ecos"
5896
5897 fi;
5898
5899 supply_backtrace=no
5900
5901 PLATFORM_INNER_NAT_HDRS=
5902 case "$TARGET_ECOS" in
5903    no) case "$host" in
5904       *mingw*)
5905             PLATFORM=Win32
5906             PLATFORMNET=Win32
5907             PLATFORMH=win32.h
5908
5909 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5910 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5911 LD_PROG=`$CC --print-prog-name=ld`
5912 LD_VERSION=`$LD_PROG --version`
5913 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5914 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5915 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5916   LD_OK="ok"
5917 else
5918   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5919     LD_OK="ok"
5920   fi
5921 fi
5922 if test "x$LD_OK" != x; then
5923   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5924 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5925 else
5926   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5927 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5928   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5929 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5930
5931 cat >>confdefs.h <<\_ACEOF
5932 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5933 _ACEOF
5934
5935 fi
5936       ;;
5937       *)
5938             PLATFORM=Posix
5939             PLATFORMNET=Posix
5940             PLATFORMH=posix.h
5941             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5942       ;;
5943       esac
5944       ;;
5945    *)
5946       PLATFORM=Ecos
5947       PLATFORMNET=NoNet
5948
5949 cat >>confdefs.h <<\_ACEOF
5950 #define ECOS 1
5951 _ACEOF
5952
5953       PLATFORMH=posix.h
5954       ;;
5955 esac
5956
5957           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5958
5959
5960 ac_ext=c
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5966 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5967 # On Suns, sometimes $CPP names a directory.
5968 if test -n "$CPP" && test -d "$CPP"; then
5969   CPP=
5970 fi
5971 if test -z "$CPP"; then
5972   if test "${ac_cv_prog_CPP+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975       # Double quotes because CPP needs to be expanded
5976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5977     do
5978       ac_preproc_ok=false
5979 for ac_c_preproc_warn_flag in '' yes
5980 do
5981   # Use a header file that comes with gcc, so configuring glibc
5982   # with a fresh cross-compiler works.
5983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984   # <limits.h> exists even on freestanding compilers.
5985   # On the NeXT, cc -E runs the code through the compiler's parser,
5986   # not just through cpp. "Syntax error" is here to catch this case.
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 #ifdef __STDC__
5994 # include <limits.h>
5995 #else
5996 # include <assert.h>
5997 #endif
5998                      Syntax error
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002   ac_status=$?
6003   grep -v '^ *+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } >/dev/null; then
6008   if test -s conftest.err; then
6009     ac_cpp_err=$ac_c_preproc_warn_flag
6010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011   else
6012     ac_cpp_err=
6013   fi
6014 else
6015   ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018   :
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023   # Broken: fails on valid input.
6024 continue
6025 fi
6026 rm -f conftest.err conftest.$ac_ext
6027
6028   # OK, works on sane cases.  Now check whether non-existent headers
6029   # can be detected and how.
6030   cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <ac_nonexistent.h>
6037 _ACEOF
6038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040   ac_status=$?
6041   grep -v '^ *+' conftest.er1 >conftest.err
6042   rm -f conftest.er1
6043   cat conftest.err >&5
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } >/dev/null; then
6046   if test -s conftest.err; then
6047     ac_cpp_err=$ac_c_preproc_warn_flag
6048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049   else
6050     ac_cpp_err=
6051   fi
6052 else
6053   ac_cpp_err=yes
6054 fi
6055 if test -z "$ac_cpp_err"; then
6056   # Broken: success on invalid input.
6057 continue
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062   # Passes both tests.
6063 ac_preproc_ok=:
6064 break
6065 fi
6066 rm -f conftest.err conftest.$ac_ext
6067
6068 done
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6072   break
6073 fi
6074
6075     done
6076     ac_cv_prog_CPP=$CPP
6077
6078 fi
6079   CPP=$ac_cv_prog_CPP
6080 else
6081   ac_cv_prog_CPP=$CPP
6082 fi
6083 echo "$as_me:$LINENO: result: $CPP" >&5
6084 echo "${ECHO_T}$CPP" >&6
6085 ac_preproc_ok=false
6086 for ac_c_preproc_warn_flag in '' yes
6087 do
6088   # Use a header file that comes with gcc, so configuring glibc
6089   # with a fresh cross-compiler works.
6090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091   # <limits.h> exists even on freestanding compilers.
6092   # On the NeXT, cc -E runs the code through the compiler's parser,
6093   # not just through cpp. "Syntax error" is here to catch this case.
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #ifdef __STDC__
6101 # include <limits.h>
6102 #else
6103 # include <assert.h>
6104 #endif
6105                      Syntax error
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_c_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   :
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   # Broken: fails on valid input.
6131 continue
6132 fi
6133 rm -f conftest.err conftest.$ac_ext
6134
6135   # OK, works on sane cases.  Now check whether non-existent headers
6136   # can be detected and how.
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } >/dev/null; then
6153   if test -s conftest.err; then
6154     ac_cpp_err=$ac_c_preproc_warn_flag
6155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156   else
6157     ac_cpp_err=
6158   fi
6159 else
6160   ac_cpp_err=yes
6161 fi
6162 if test -z "$ac_cpp_err"; then
6163   # Broken: success on invalid input.
6164 continue
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6179   :
6180 else
6181   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185    { (exit 1); exit 1; }; }
6186 fi
6187
6188 ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194
6195 echo "$as_me:$LINENO: checking for egrep" >&5
6196 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6197 if test "${ac_cv_prog_egrep+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6201     then ac_cv_prog_egrep='grep -E'
6202     else ac_cv_prog_egrep='egrep'
6203     fi
6204 fi
6205 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6206 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6207  EGREP=$ac_cv_prog_egrep
6208
6209
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 #include <stdint.h>
6217
6218 _ACEOF
6219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220   $EGREP "uint32_t" >/dev/null 2>&1; then
6221
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_INT32_DEFINED 1
6224 _ACEOF
6225
6226 fi
6227 rm -f conftest*
6228
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #include <inttypes.h>
6236
6237 _ACEOF
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239   $EGREP "uint32_t" >/dev/null 2>&1; then
6240
6241 cat >>confdefs.h <<\_ACEOF
6242 #define HAVE_INT32_DEFINED 1
6243 _ACEOF
6244
6245 fi
6246 rm -f conftest*
6247
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h.  */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h.  */
6254 #include <sys/types.h>
6255
6256 _ACEOF
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258   $EGREP "u_int32_t" >/dev/null 2>&1; then
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_BSD_INT32_DEFINED 1
6262 _ACEOF
6263
6264 fi
6265 rm -f conftest*
6266
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h.  */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h.  */
6273 #include <sys/config.h>
6274
6275 _ACEOF
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277   $EGREP "u_int32_t" >/dev/null 2>&1; then
6278
6279 cat >>confdefs.h <<\_ACEOF
6280 #define HAVE_BSD_INT32_DEFINED 1
6281 _ACEOF
6282
6283 fi
6284 rm -f conftest*
6285
6286
6287
6288
6289 if test "$PLATFORM" = Win32; then
6290   USING_WIN32_PLATFORM_TRUE=
6291   USING_WIN32_PLATFORM_FALSE='#'
6292 else
6293   USING_WIN32_PLATFORM_TRUE='#'
6294   USING_WIN32_PLATFORM_FALSE=
6295 fi
6296
6297
6298
6299 if test "$PLATFORM" = Posix; then
6300   USING_POSIX_PLATFORM_TRUE=
6301   USING_POSIX_PLATFORM_FALSE='#'
6302 else
6303   USING_POSIX_PLATFORM_TRUE='#'
6304   USING_POSIX_PLATFORM_FALSE=
6305 fi
6306
6307
6308
6309 if test "$PLATFORM" = Ecos; then
6310   USING_ECOS_PLATFORM_TRUE=
6311   USING_ECOS_PLATFORM_FALSE='#'
6312 else
6313   USING_ECOS_PLATFORM_TRUE='#'
6314   USING_ECOS_PLATFORM_FALSE=
6315 fi
6316
6317
6318 # These may not be defined in a non-ANS conformant embedded system.
6319 # FIXME: Should these case a runtime exception in that case?
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 #include <time.h>
6327
6328 _ACEOF
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330   $EGREP "mktime" >/dev/null 2>&1; then
6331
6332 cat >>confdefs.h <<\_ACEOF
6333 #define HAVE_MKTIME 1
6334 _ACEOF
6335
6336 fi
6337 rm -f conftest*
6338
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345 #include <time.h>
6346
6347 _ACEOF
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6349   $EGREP "localtime" >/dev/null 2>&1; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define HAVE_LOCALTIME 1
6353 _ACEOF
6354
6355 fi
6356 rm -f conftest*
6357
6358
6359 # Create the subdirectory for natFile.cc, or the attempt
6360 # to create the link will fail.
6361 test -d java || mkdir java
6362 test -d java/io || mkdir java/io
6363 test -d gnu || mkdir gnu
6364           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6365
6366
6367 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6368 test -d java/lang || mkdir java/lang
6369           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6370
6371           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6372
6373
6374 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6375 test -d java/net || mkdir java/net
6376           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6377
6378           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6379
6380
6381 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6382 test -d gnu/java || mkdir gnu/java
6383 test -d gnu/java/net || mkdir gnu/java/net
6384           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6385
6386           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6387
6388
6389 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6390 test -d gnu/java/nio || mkdir gnu/java/nio
6391           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6392
6393           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6394
6395 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6396           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6397
6398
6399 case "${host}" in
6400     *mingw*)
6401       SYSTEMSPEC="-lgdi32 -lws2_32"
6402       if test "${with_win32_nlsapi}" = "unicows"; then
6403         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6404       fi
6405     ;;
6406     *)
6407       SYSTEMSPEC=
6408     ;;
6409 esac
6410
6411
6412 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6413
6414
6415
6416 # Check whether --with-system-zlib or --without-system-zlib was given.
6417 if test "${with_system_zlib+set}" = set; then
6418   withval="$with_system_zlib"
6419
6420 fi;
6421 ZLIBSPEC=
6422
6423 ZLIBTESTSPEC=
6424
6425
6426
6427 if test "x$ac_path_x_has_been_run" != xyes; then
6428   echo "$as_me:$LINENO: checking for X" >&5
6429 echo $ECHO_N "checking for X... $ECHO_C" >&6
6430
6431 ac_path_x_has_been_run=yes
6432
6433 # Check whether --with-x or --without-x was given.
6434 if test "${with_x+set}" = set; then
6435   withval="$with_x"
6436
6437 fi;
6438 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6439 if test "x$with_x" = xno; then
6440   # The user explicitly disabled X.
6441   have_x=disabled
6442 else
6443   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6444     # Both variables are already set.
6445     have_x=yes
6446   else
6447     if test "${ac_cv_have_x+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   # One or both of the vars are not set, and there is no cached value.
6451 ac_x_includes=no ac_x_libraries=no
6452 rm -fr conftest.dir
6453 if mkdir conftest.dir; then
6454   cd conftest.dir
6455   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6456   cat >Imakefile <<'_ACEOF'
6457 acfindx:
6458         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6459 _ACEOF
6460   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6461     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6462     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6463     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6464     for ac_extension in a so sl; do
6465       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6466          test -f $ac_im_libdir/libX11.$ac_extension; then
6467         ac_im_usrlibdir=$ac_im_libdir; break
6468       fi
6469     done
6470     # Screen out bogus values from the imake configuration.  They are
6471     # bogus both because they are the default anyway, and because
6472     # using them would break gcc on systems where it needs fixed includes.
6473     case $ac_im_incroot in
6474         /usr/include) ;;
6475         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6476     esac
6477     case $ac_im_usrlibdir in
6478         /usr/lib | /lib) ;;
6479         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6480     esac
6481   fi
6482   cd ..
6483   rm -fr conftest.dir
6484 fi
6485
6486 # Standard set of common directories for X headers.
6487 # Check X11 before X11Rn because it is often a symlink to the current release.
6488 ac_x_header_dirs='
6489 /usr/X11/include
6490 /usr/X11R6/include
6491 /usr/X11R5/include
6492 /usr/X11R4/include
6493
6494 /usr/include/X11
6495 /usr/include/X11R6
6496 /usr/include/X11R5
6497 /usr/include/X11R4
6498
6499 /usr/local/X11/include
6500 /usr/local/X11R6/include
6501 /usr/local/X11R5/include
6502 /usr/local/X11R4/include
6503
6504 /usr/local/include/X11
6505 /usr/local/include/X11R6
6506 /usr/local/include/X11R5
6507 /usr/local/include/X11R4
6508
6509 /usr/X386/include
6510 /usr/x386/include
6511 /usr/XFree86/include/X11
6512
6513 /usr/include
6514 /usr/local/include
6515 /usr/unsupported/include
6516 /usr/athena/include
6517 /usr/local/x11r5/include
6518 /usr/lpp/Xamples/include
6519
6520 /usr/openwin/include
6521 /usr/openwin/share/include'
6522
6523 if test "$ac_x_includes" = no; then
6524   # Guess where to find include files, by looking for a specified header file.
6525   # First, try using that file with no special directory specified.
6526   cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 #include <X11/Intrinsic.h>
6533 _ACEOF
6534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6536   ac_status=$?
6537   grep -v '^ *+' conftest.er1 >conftest.err
6538   rm -f conftest.er1
6539   cat conftest.err >&5
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } >/dev/null; then
6542   if test -s conftest.err; then
6543     ac_cpp_err=$ac_c_preproc_warn_flag
6544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6545   else
6546     ac_cpp_err=
6547   fi
6548 else
6549   ac_cpp_err=yes
6550 fi
6551 if test -z "$ac_cpp_err"; then
6552   # We can compile using X headers with no special include directory.
6553 ac_x_includes=
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558   for ac_dir in $ac_x_header_dirs; do
6559   if test -r "$ac_dir/X11/Intrinsic.h"; then
6560     ac_x_includes=$ac_dir
6561     break
6562   fi
6563 done
6564 fi
6565 rm -f conftest.err conftest.$ac_ext
6566 fi # $ac_x_includes = no
6567
6568 if test "$ac_x_libraries" = no; then
6569   # Check for the libraries.
6570   # See if we find them without any special options.
6571   # Don't add to $LIBS permanently.
6572   ac_save_LIBS=$LIBS
6573   LIBS="-lXt $LIBS"
6574   if test x$gcc_no_link = xyes; then
6575   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6577    { (exit 1); exit 1; }; }
6578 fi
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585 #include <X11/Intrinsic.h>
6586 int
6587 main ()
6588 {
6589 XtMalloc (0)
6590   ;
6591   return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596   (eval $ac_link) 2>conftest.er1
6597   ac_status=$?
6598   grep -v '^ *+' conftest.er1 >conftest.err
6599   rm -f conftest.er1
6600   cat conftest.err >&5
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest$ac_exeext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   LIBS=$ac_save_LIBS
6616 # We can link X programs with no special library path.
6617 ac_x_libraries=
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 LIBS=$ac_save_LIBS
6623 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6624 do
6625   # Don't even attempt the hair of trying to link an X program!
6626   for ac_extension in a so sl; do
6627     if test -r $ac_dir/libXt.$ac_extension; then
6628       ac_x_libraries=$ac_dir
6629       break 2
6630     fi
6631   done
6632 done
6633 fi
6634 rm -f conftest.err conftest.$ac_objext \
6635       conftest$ac_exeext conftest.$ac_ext
6636 fi # $ac_x_libraries = no
6637
6638 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6639   # Didn't find X anywhere.  Cache the known absence of X.
6640   ac_cv_have_x="have_x=no"
6641 else
6642   # Record where we found X for the cache.
6643   ac_cv_have_x="have_x=yes \
6644                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6645 fi
6646 fi
6647
6648   fi
6649   eval "$ac_cv_have_x"
6650 fi # $with_x != no
6651
6652 if test "$have_x" != yes; then
6653   echo "$as_me:$LINENO: result: $have_x" >&5
6654 echo "${ECHO_T}$have_x" >&6
6655   no_x=yes
6656 else
6657   # If each of the values was on the command line, it overrides each guess.
6658   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6659   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6660   # Update the cache value to reflect the command line values.
6661   ac_cv_have_x="have_x=yes \
6662                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6663   # It might be that x_includes is empty (headers are found in the
6664   # standard search path. Then output the corresponding message
6665   ac_out_x_includes=$x_includes
6666   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6667   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6668 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6669 fi
6670
6671 fi
6672 if test "$no_x" = yes; then
6673   # Not all programs may use this symbol, but it does not hurt to define it.
6674
6675 cat >>confdefs.h <<\_ACEOF
6676 #define X_DISPLAY_MISSING 1
6677 _ACEOF
6678
6679   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6680 else
6681   if test -n "$x_includes"; then
6682     X_CFLAGS="$X_CFLAGS -I$x_includes"
6683   fi
6684
6685   # It would also be nice to do this for all -L options, not just this one.
6686   if test -n "$x_libraries"; then
6687     X_LIBS="$X_LIBS -L$x_libraries"
6688     # For Solaris; some versions of Sun CC require a space after -R and
6689     # others require no space.  Words are not sufficient . . . .
6690     case `(uname -sr) 2>/dev/null` in
6691     "SunOS 5"*)
6692       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6693 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6694       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6695       if test x$gcc_no_link = xyes; then
6696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6698    { (exit 1); exit 1; }; }
6699 fi
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706
6707 int
6708 main ()
6709 {
6710
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717   (eval $ac_link) 2>conftest.er1
6718   ac_status=$?
6719   grep -v '^ *+' conftest.er1 >conftest.err
6720   rm -f conftest.er1
6721   cat conftest.err >&5
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); } &&
6724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; } &&
6730          { ac_try='test -s conftest$ac_exeext'
6731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732   (eval $ac_try) 2>&5
6733   ac_status=$?
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); }; }; then
6736   ac_R_nospace=yes
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 ac_R_nospace=no
6742 fi
6743 rm -f conftest.err conftest.$ac_objext \
6744       conftest$ac_exeext conftest.$ac_ext
6745       if test $ac_R_nospace = yes; then
6746         echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6
6748         X_LIBS="$X_LIBS -R$x_libraries"
6749       else
6750         LIBS="$ac_xsave_LIBS -R $x_libraries"
6751         if test x$gcc_no_link = xyes; then
6752   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6754    { (exit 1); exit 1; }; }
6755 fi
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762
6763 int
6764 main ()
6765 {
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773   (eval $ac_link) 2>conftest.er1
6774   ac_status=$?
6775   grep -v '^ *+' conftest.er1 >conftest.err
6776   rm -f conftest.er1
6777   cat conftest.err >&5
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } &&
6780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; } &&
6786          { ac_try='test -s conftest$ac_exeext'
6787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788   (eval $ac_try) 2>&5
6789   ac_status=$?
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); }; }; then
6792   ac_R_space=yes
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 ac_R_space=no
6798 fi
6799 rm -f conftest.err conftest.$ac_objext \
6800       conftest$ac_exeext conftest.$ac_ext
6801         if test $ac_R_space = yes; then
6802           echo "$as_me:$LINENO: result: yes" >&5
6803 echo "${ECHO_T}yes" >&6
6804           X_LIBS="$X_LIBS -R $x_libraries"
6805         else
6806           echo "$as_me:$LINENO: result: neither works" >&5
6807 echo "${ECHO_T}neither works" >&6
6808         fi
6809       fi
6810       LIBS=$ac_xsave_LIBS
6811     esac
6812   fi
6813
6814   # Check for system-dependent libraries X programs must link with.
6815   # Do this before checking for the system-independent R6 libraries
6816   # (-lICE), since we may need -lsocket or whatever for X linking.
6817
6818   if test "$ISC" = yes; then
6819     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6820   else
6821     # Martyn Johnson says this is needed for Ultrix, if the X
6822     # libraries were built with DECnet support.  And Karl Berry says
6823     # the Alpha needs dnet_stub (dnet does not exist).
6824     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6825     if test x$gcc_no_link = xyes; then
6826   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6828    { (exit 1); exit 1; }; }
6829 fi
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h.  */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h.  */
6836
6837 /* Override any gcc2 internal prototype to avoid an error.  */
6838 #ifdef __cplusplus
6839 extern "C"
6840 #endif
6841 /* We use char because int might match the return type of a gcc2
6842    builtin and then its argument prototype would still apply.  */
6843 char XOpenDisplay ();
6844 int
6845 main ()
6846 {
6847 XOpenDisplay ();
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext conftest$ac_exeext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854   (eval $ac_link) 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } &&
6861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863   (eval $ac_try) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); }; } &&
6867          { ac_try='test -s conftest$ac_exeext'
6868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869   (eval $ac_try) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); }; }; then
6873   :
6874 else
6875   echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6879 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6880 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   ac_check_lib_save_LIBS=$LIBS
6884 LIBS="-ldnet  $LIBS"
6885 if test x$gcc_no_link = xyes; then
6886   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6888    { (exit 1); exit 1; }; }
6889 fi
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896
6897 /* Override any gcc2 internal prototype to avoid an error.  */
6898 #ifdef __cplusplus
6899 extern "C"
6900 #endif
6901 /* We use char because int might match the return type of a gcc2
6902    builtin and then its argument prototype would still apply.  */
6903 char dnet_ntoa ();
6904 int
6905 main ()
6906 {
6907 dnet_ntoa ();
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914   (eval $ac_link) 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; } &&
6927          { ac_try='test -s conftest$ac_exeext'
6928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929   (eval $ac_try) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); }; }; then
6933   ac_cv_lib_dnet_dnet_ntoa=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_lib_dnet_dnet_ntoa=no
6939 fi
6940 rm -f conftest.err conftest.$ac_objext \
6941       conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6943 fi
6944 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6945 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6946 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6947   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6948 fi
6949
6950     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6951       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6952 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6953 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   ac_check_lib_save_LIBS=$LIBS
6957 LIBS="-ldnet_stub  $LIBS"
6958 if test x$gcc_no_link = xyes; then
6959   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6961    { (exit 1); exit 1; }; }
6962 fi
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969
6970 /* Override any gcc2 internal prototype to avoid an error.  */
6971 #ifdef __cplusplus
6972 extern "C"
6973 #endif
6974 /* We use char because int might match the return type of a gcc2
6975    builtin and then its argument prototype would still apply.  */
6976 char dnet_ntoa ();
6977 int
6978 main ()
6979 {
6980 dnet_ntoa ();
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987   (eval $ac_link) 2>conftest.er1
6988   ac_status=$?
6989   grep -v '^ *+' conftest.er1 >conftest.err
6990   rm -f conftest.er1
6991   cat conftest.err >&5
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; } &&
7000          { ac_try='test -s conftest$ac_exeext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7007 else
7008   echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 ac_cv_lib_dnet_stub_dnet_ntoa=no
7012 fi
7013 rm -f conftest.err conftest.$ac_objext \
7014       conftest$ac_exeext conftest.$ac_ext
7015 LIBS=$ac_check_lib_save_LIBS
7016 fi
7017 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7018 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7019 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7020   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7021 fi
7022
7023     fi
7024 fi
7025 rm -f conftest.err conftest.$ac_objext \
7026       conftest$ac_exeext conftest.$ac_ext
7027     LIBS="$ac_xsave_LIBS"
7028
7029     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7030     # to get the SysV transport functions.
7031     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7032     # needs -lnsl.
7033     # The nsl library prevents programs from opening the X display
7034     # on Irix 5.2, according to T.E. Dickey.
7035     # The functions gethostbyname, getservbyname, and inet_addr are
7036     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7037     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7038 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7039 if test "${ac_cv_func_gethostbyname+set}" = set; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   if test x$gcc_no_link = xyes; then
7043   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7045    { (exit 1); exit 1; }; }
7046 fi
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7055 #define gethostbyname innocuous_gethostbyname
7056
7057 /* System header to define __stub macros and hopefully few prototypes,
7058     which can conflict with char gethostbyname (); below.
7059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060     <limits.h> exists even on freestanding compilers.  */
7061
7062 #ifdef __STDC__
7063 # include <limits.h>
7064 #else
7065 # include <assert.h>
7066 #endif
7067
7068 #undef gethostbyname
7069
7070 /* Override any gcc2 internal prototype to avoid an error.  */
7071 #ifdef __cplusplus
7072 extern "C"
7073 {
7074 #endif
7075 /* We use char because int might match the return type of a gcc2
7076    builtin and then its argument prototype would still apply.  */
7077 char gethostbyname ();
7078 /* The GNU C library defines this for functions which it implements
7079     to always fail with ENOSYS.  Some functions are actually named
7080     something starting with __ and the normal name is an alias.  */
7081 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7082 choke me
7083 #else
7084 char (*f) () = gethostbyname;
7085 #endif
7086 #ifdef __cplusplus
7087 }
7088 #endif
7089
7090 int
7091 main ()
7092 {
7093 return f != gethostbyname;
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100   (eval $ac_link) 2>conftest.er1
7101   ac_status=$?
7102   grep -v '^ *+' conftest.er1 >conftest.err
7103   rm -f conftest.er1
7104   cat conftest.err >&5
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); } &&
7107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; } &&
7113          { ac_try='test -s conftest$ac_exeext'
7114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115   (eval $ac_try) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); }; }; then
7119   ac_cv_func_gethostbyname=yes
7120 else
7121   echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ac_cv_func_gethostbyname=no
7125 fi
7126 rm -f conftest.err conftest.$ac_objext \
7127       conftest$ac_exeext conftest.$ac_ext
7128 fi
7129 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7130 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7131
7132     if test $ac_cv_func_gethostbyname = no; then
7133       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7134 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7135 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   ac_check_lib_save_LIBS=$LIBS
7139 LIBS="-lnsl  $LIBS"
7140 if test x$gcc_no_link = xyes; then
7141   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7143    { (exit 1); exit 1; }; }
7144 fi
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151
7152 /* Override any gcc2 internal prototype to avoid an error.  */
7153 #ifdef __cplusplus
7154 extern "C"
7155 #endif
7156 /* We use char because int might match the return type of a gcc2
7157    builtin and then its argument prototype would still apply.  */
7158 char gethostbyname ();
7159 int
7160 main ()
7161 {
7162 gethostbyname ();
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169   (eval $ac_link) 2>conftest.er1
7170   ac_status=$?
7171   grep -v '^ *+' conftest.er1 >conftest.err
7172   rm -f conftest.er1
7173   cat conftest.err >&5
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; } &&
7182          { ac_try='test -s conftest$ac_exeext'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   ac_cv_lib_nsl_gethostbyname=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 ac_cv_lib_nsl_gethostbyname=no
7194 fi
7195 rm -f conftest.err conftest.$ac_objext \
7196       conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7198 fi
7199 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7200 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7201 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7202   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7203 fi
7204
7205       if test $ac_cv_lib_nsl_gethostbyname = no; then
7206         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7207 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7208 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   ac_check_lib_save_LIBS=$LIBS
7212 LIBS="-lbsd  $LIBS"
7213 if test x$gcc_no_link = xyes; then
7214   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7216    { (exit 1); exit 1; }; }
7217 fi
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224
7225 /* Override any gcc2 internal prototype to avoid an error.  */
7226 #ifdef __cplusplus
7227 extern "C"
7228 #endif
7229 /* We use char because int might match the return type of a gcc2
7230    builtin and then its argument prototype would still apply.  */
7231 char gethostbyname ();
7232 int
7233 main ()
7234 {
7235 gethostbyname ();
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242   (eval $ac_link) 2>conftest.er1
7243   ac_status=$?
7244   grep -v '^ *+' conftest.er1 >conftest.err
7245   rm -f conftest.er1
7246   cat conftest.err >&5
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } &&
7249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251   (eval $ac_try) 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; } &&
7255          { ac_try='test -s conftest$ac_exeext'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   ac_cv_lib_bsd_gethostbyname=yes
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 ac_cv_lib_bsd_gethostbyname=no
7267 fi
7268 rm -f conftest.err conftest.$ac_objext \
7269       conftest$ac_exeext conftest.$ac_ext
7270 LIBS=$ac_check_lib_save_LIBS
7271 fi
7272 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7273 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7274 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7275   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7276 fi
7277
7278       fi
7279     fi
7280
7281     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7282     # socket/setsockopt and other routines are undefined under SCO ODT
7283     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7284     # on later versions), says Simon Leinen: it contains gethostby*
7285     # variants that don't use the name server (or something).  -lsocket
7286     # must be given before -lnsl if both are needed.  We assume that
7287     # if connect needs -lnsl, so does gethostbyname.
7288     echo "$as_me:$LINENO: checking for connect" >&5
7289 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7290 if test "${ac_cv_func_connect+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   if test x$gcc_no_link = xyes; then
7294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7296    { (exit 1); exit 1; }; }
7297 fi
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7306 #define connect innocuous_connect
7307
7308 /* System header to define __stub macros and hopefully few prototypes,
7309     which can conflict with char connect (); below.
7310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7311     <limits.h> exists even on freestanding compilers.  */
7312
7313 #ifdef __STDC__
7314 # include <limits.h>
7315 #else
7316 # include <assert.h>
7317 #endif
7318
7319 #undef connect
7320
7321 /* Override any gcc2 internal prototype to avoid an error.  */
7322 #ifdef __cplusplus
7323 extern "C"
7324 {
7325 #endif
7326 /* We use char because int might match the return type of a gcc2
7327    builtin and then its argument prototype would still apply.  */
7328 char connect ();
7329 /* The GNU C library defines this for functions which it implements
7330     to always fail with ENOSYS.  Some functions are actually named
7331     something starting with __ and the normal name is an alias.  */
7332 #if defined (__stub_connect) || defined (__stub___connect)
7333 choke me
7334 #else
7335 char (*f) () = connect;
7336 #endif
7337 #ifdef __cplusplus
7338 }
7339 #endif
7340
7341 int
7342 main ()
7343 {
7344 return f != connect;
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351   (eval $ac_link) 2>conftest.er1
7352   ac_status=$?
7353   grep -v '^ *+' conftest.er1 >conftest.err
7354   rm -f conftest.er1
7355   cat conftest.err >&5
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); } &&
7358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360   (eval $ac_try) 2>&5
7361   ac_status=$?
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); }; } &&
7364          { ac_try='test -s conftest$ac_exeext'
7365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366   (eval $ac_try) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); }; }; then
7370   ac_cv_func_connect=yes
7371 else
7372   echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ac_cv_func_connect=no
7376 fi
7377 rm -f conftest.err conftest.$ac_objext \
7378       conftest$ac_exeext conftest.$ac_ext
7379 fi
7380 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7381 echo "${ECHO_T}$ac_cv_func_connect" >&6
7382
7383     if test $ac_cv_func_connect = no; then
7384       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7385 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7386 if test "${ac_cv_lib_socket_connect+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   ac_check_lib_save_LIBS=$LIBS
7390 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7391 if test x$gcc_no_link = xyes; then
7392   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7394    { (exit 1); exit 1; }; }
7395 fi
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
7403 /* Override any gcc2 internal prototype to avoid an error.  */
7404 #ifdef __cplusplus
7405 extern "C"
7406 #endif
7407 /* We use char because int might match the return type of a gcc2
7408    builtin and then its argument prototype would still apply.  */
7409 char connect ();
7410 int
7411 main ()
7412 {
7413 connect ();
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext conftest$ac_exeext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7420   (eval $ac_link) 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; } &&
7433          { ac_try='test -s conftest$ac_exeext'
7434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435   (eval $ac_try) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }; }; then
7439   ac_cv_lib_socket_connect=yes
7440 else
7441   echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444 ac_cv_lib_socket_connect=no
7445 fi
7446 rm -f conftest.err conftest.$ac_objext \
7447       conftest$ac_exeext conftest.$ac_ext
7448 LIBS=$ac_check_lib_save_LIBS
7449 fi
7450 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7451 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7452 if test $ac_cv_lib_socket_connect = yes; then
7453   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7454 fi
7455
7456     fi
7457
7458     # Guillermo Gomez says -lposix is necessary on A/UX.
7459     echo "$as_me:$LINENO: checking for remove" >&5
7460 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7461 if test "${ac_cv_func_remove+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   if test x$gcc_no_link = xyes; then
7465   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7467    { (exit 1); exit 1; }; }
7468 fi
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h.  */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h.  */
7475 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7477 #define remove innocuous_remove
7478
7479 /* System header to define __stub macros and hopefully few prototypes,
7480     which can conflict with char remove (); below.
7481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482     <limits.h> exists even on freestanding compilers.  */
7483
7484 #ifdef __STDC__
7485 # include <limits.h>
7486 #else
7487 # include <assert.h>
7488 #endif
7489
7490 #undef remove
7491
7492 /* Override any gcc2 internal prototype to avoid an error.  */
7493 #ifdef __cplusplus
7494 extern "C"
7495 {
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498    builtin and then its argument prototype would still apply.  */
7499 char remove ();
7500 /* The GNU C library defines this for functions which it implements
7501     to always fail with ENOSYS.  Some functions are actually named
7502     something starting with __ and the normal name is an alias.  */
7503 #if defined (__stub_remove) || defined (__stub___remove)
7504 choke me
7505 #else
7506 char (*f) () = remove;
7507 #endif
7508 #ifdef __cplusplus
7509 }
7510 #endif
7511
7512 int
7513 main ()
7514 {
7515 return f != remove;
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522   (eval $ac_link) 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } &&
7529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531   (eval $ac_try) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; } &&
7535          { ac_try='test -s conftest$ac_exeext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   ac_cv_func_remove=yes
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_cv_func_remove=no
7547 fi
7548 rm -f conftest.err conftest.$ac_objext \
7549       conftest$ac_exeext conftest.$ac_ext
7550 fi
7551 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7552 echo "${ECHO_T}$ac_cv_func_remove" >&6
7553
7554     if test $ac_cv_func_remove = no; then
7555       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7556 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7557 if test "${ac_cv_lib_posix_remove+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   ac_check_lib_save_LIBS=$LIBS
7561 LIBS="-lposix  $LIBS"
7562 if test x$gcc_no_link = xyes; then
7563   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7565    { (exit 1); exit 1; }; }
7566 fi
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h.  */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h.  */
7573
7574 /* Override any gcc2 internal prototype to avoid an error.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 #endif
7578 /* We use char because int might match the return type of a gcc2
7579    builtin and then its argument prototype would still apply.  */
7580 char remove ();
7581 int
7582 main ()
7583 {
7584 remove ();
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext conftest$ac_exeext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591   (eval $ac_link) 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600   (eval $ac_try) 2>&5
7601   ac_status=$?
7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603   (exit $ac_status); }; } &&
7604          { ac_try='test -s conftest$ac_exeext'
7605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606   (eval $ac_try) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   ac_cv_lib_posix_remove=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 ac_cv_lib_posix_remove=no
7616 fi
7617 rm -f conftest.err conftest.$ac_objext \
7618       conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7620 fi
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7622 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7623 if test $ac_cv_lib_posix_remove = yes; then
7624   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7625 fi
7626
7627     fi
7628
7629     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7630     echo "$as_me:$LINENO: checking for shmat" >&5
7631 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7632 if test "${ac_cv_func_shmat+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   if test x$gcc_no_link = xyes; then
7636   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7638    { (exit 1); exit 1; }; }
7639 fi
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7648 #define shmat innocuous_shmat
7649
7650 /* System header to define __stub macros and hopefully few prototypes,
7651     which can conflict with char shmat (); below.
7652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653     <limits.h> exists even on freestanding compilers.  */
7654
7655 #ifdef __STDC__
7656 # include <limits.h>
7657 #else
7658 # include <assert.h>
7659 #endif
7660
7661 #undef shmat
7662
7663 /* Override any gcc2 internal prototype to avoid an error.  */
7664 #ifdef __cplusplus
7665 extern "C"
7666 {
7667 #endif
7668 /* We use char because int might match the return type of a gcc2
7669    builtin and then its argument prototype would still apply.  */
7670 char shmat ();
7671 /* The GNU C library defines this for functions which it implements
7672     to always fail with ENOSYS.  Some functions are actually named
7673     something starting with __ and the normal name is an alias.  */
7674 #if defined (__stub_shmat) || defined (__stub___shmat)
7675 choke me
7676 #else
7677 char (*f) () = shmat;
7678 #endif
7679 #ifdef __cplusplus
7680 }
7681 #endif
7682
7683 int
7684 main ()
7685 {
7686 return f != shmat;
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693   (eval $ac_link) 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; } &&
7706          { ac_try='test -s conftest$ac_exeext'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   ac_cv_func_shmat=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 ac_cv_func_shmat=no
7718 fi
7719 rm -f conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721 fi
7722 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7723 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7724
7725     if test $ac_cv_func_shmat = no; then
7726       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7727 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7728 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   ac_check_lib_save_LIBS=$LIBS
7732 LIBS="-lipc  $LIBS"
7733 if test x$gcc_no_link = xyes; then
7734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7736    { (exit 1); exit 1; }; }
7737 fi
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744
7745 /* Override any gcc2 internal prototype to avoid an error.  */
7746 #ifdef __cplusplus
7747 extern "C"
7748 #endif
7749 /* We use char because int might match the return type of a gcc2
7750    builtin and then its argument prototype would still apply.  */
7751 char shmat ();
7752 int
7753 main ()
7754 {
7755 shmat ();
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762   (eval $ac_link) 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest$ac_exeext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   ac_cv_lib_ipc_shmat=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_lib_ipc_shmat=no
7787 fi
7788 rm -f conftest.err conftest.$ac_objext \
7789       conftest$ac_exeext conftest.$ac_ext
7790 LIBS=$ac_check_lib_save_LIBS
7791 fi
7792 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7793 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7794 if test $ac_cv_lib_ipc_shmat = yes; then
7795   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7796 fi
7797
7798     fi
7799   fi
7800
7801   # Check for libraries that X11R6 Xt/Xaw programs need.
7802   ac_save_LDFLAGS=$LDFLAGS
7803   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7804   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7805   # check for ICE first), but we must link in the order -lSM -lICE or
7806   # we get undefined symbols.  So assume we have SM if we have ICE.
7807   # These have to be linked with before -lX11, unlike the other
7808   # libraries we check for below, so use a different variable.
7809   # John Interrante, Karl Berry
7810   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7811 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7812 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   ac_check_lib_save_LIBS=$LIBS
7816 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7817 if test x$gcc_no_link = xyes; then
7818   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7820    { (exit 1); exit 1; }; }
7821 fi
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828
7829 /* Override any gcc2 internal prototype to avoid an error.  */
7830 #ifdef __cplusplus
7831 extern "C"
7832 #endif
7833 /* We use char because int might match the return type of a gcc2
7834    builtin and then its argument prototype would still apply.  */
7835 char IceConnectionNumber ();
7836 int
7837 main ()
7838 {
7839 IceConnectionNumber ();
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext conftest$ac_exeext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7846   (eval $ac_link) 2>conftest.er1
7847   ac_status=$?
7848   grep -v '^ *+' conftest.er1 >conftest.err
7849   rm -f conftest.er1
7850   cat conftest.err >&5
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } &&
7853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; } &&
7859          { ac_try='test -s conftest$ac_exeext'
7860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861   (eval $ac_try) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; }; then
7865   ac_cv_lib_ICE_IceConnectionNumber=yes
7866 else
7867   echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_cv_lib_ICE_IceConnectionNumber=no
7871 fi
7872 rm -f conftest.err conftest.$ac_objext \
7873       conftest$ac_exeext conftest.$ac_ext
7874 LIBS=$ac_check_lib_save_LIBS
7875 fi
7876 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7877 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7878 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7879   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7880 fi
7881
7882   LDFLAGS=$ac_save_LDFLAGS
7883
7884 fi
7885
7886
7887 # Determine which AWT peer libraries to build
7888 # Check whether --enable-java-awt or --disable-java-awt was given.
7889 if test "${enable_java_awt+set}" = set; then
7890   enableval="$enable_java_awt"
7891
7892 fi;
7893
7894 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7895 use_xlib_awt=""
7896 use_gtk_awt=""
7897 # The default toolkit to use is the first one specified.
7898 TOOLKIT=
7899
7900
7901 for peer in $peerlibs ; do
7902   case $peer in
7903     xlib)
7904       if test "$no_x" = yes; then
7905         echo "*** xlib peers requested but no X library available" 1>&2
7906         exit 1
7907       else
7908         use_xlib_awt="yes"
7909         if test -z "$TOOLKIT"; then
7910            TOOLKIT=gnu.awt.xlib.XToolkit
7911         fi
7912       fi
7913       ;;
7914     gtk)
7915       if test "$no_x" = yes; then
7916          echo "*** xlib peers requested but no X library available" 1>&2
7917          exit 1
7918       else
7919          use_gtk_awt=yes
7920          if test -z "$TOOLKIT"; then
7921             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7922          fi
7923          test -d jniinclude || mkdir jniinclude
7924       fi
7925       ;;
7926     no)
7927       use_xlib_awt=
7928       use_gtk_awt=
7929       break
7930       ;;
7931     *)
7932       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7933       exit 1
7934   esac
7935 done
7936
7937
7938
7939 if test "$use_xlib_awt" = yes; then
7940   XLIB_AWT_TRUE=
7941   XLIB_AWT_FALSE='#'
7942 else
7943   XLIB_AWT_TRUE='#'
7944   XLIB_AWT_FALSE=
7945 fi
7946
7947
7948
7949 if test "$use_gtk_awt" = yes; then
7950   GTK_AWT_TRUE=
7951   GTK_AWT_FALSE='#'
7952 else
7953   GTK_AWT_TRUE='#'
7954   GTK_AWT_FALSE=
7955 fi
7956
7957
7958 # determine whether to enable the cairo GTK Graphics2D backend
7959 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7960 if test "${enable_gtk_cairo+set}" = set; then
7961   enableval="$enable_gtk_cairo"
7962
7963 fi;
7964
7965
7966 if test "x${enable_gtk_cairo}" = xyes; then
7967   GTK_CAIRO_TRUE=
7968   GTK_CAIRO_FALSE='#'
7969 else
7970   GTK_CAIRO_TRUE='#'
7971   GTK_CAIRO_FALSE=
7972 fi
7973
7974 if test "x${enable_gtk_cairo}" = xyes
7975 then
7976
7977   succeeded=no
7978
7979   if test -z "$PKG_CONFIG"; then
7980     # Extract the first word of "pkg-config", so it can be a program name with args.
7981 set dummy pkg-config; ac_word=$2
7982 echo "$as_me:$LINENO: checking for $ac_word" >&5
7983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   case $PKG_CONFIG in
7988   [\\/]* | ?:[\\/]*)
7989   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7990   ;;
7991   *)
7992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995   IFS=$as_save_IFS
7996   test -z "$as_dir" && as_dir=.
7997   for ac_exec_ext in '' $ac_executable_extensions; do
7998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001     break 2
8002   fi
8003 done
8004 done
8005
8006   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8007   ;;
8008 esac
8009 fi
8010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8011
8012 if test -n "$PKG_CONFIG"; then
8013   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8014 echo "${ECHO_T}$PKG_CONFIG" >&6
8015 else
8016   echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6
8018 fi
8019
8020   fi
8021
8022   if test "$PKG_CONFIG" = "no" ; then
8023      echo "*** The pkg-config script could not be found. Make sure it is"
8024      echo "*** in your path, or set the PKG_CONFIG environment variable"
8025      echo "*** to the full path to pkg-config."
8026      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8027   else
8028      PKG_CONFIG_MIN_VERSION=0.9.0
8029      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8030         echo "$as_me:$LINENO: checking for cairo" >&5
8031 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8032
8033         if $PKG_CONFIG --exists "cairo" ; then
8034             echo "$as_me:$LINENO: result: yes" >&5
8035 echo "${ECHO_T}yes" >&6
8036             succeeded=yes
8037
8038             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8039 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8040             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8041             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8042 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8043
8044             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8045 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8046             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8047             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8048 echo "${ECHO_T}$CAIRO_LIBS" >&6
8049         else
8050             CAIRO_CFLAGS=""
8051             CAIRO_LIBS=""
8052             ## If we have a custom action on failure, don't print errors, but
8053             ## do set a variable so people can do so.
8054             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8055             echo $CAIRO_PKG_ERRORS
8056         fi
8057
8058
8059
8060      else
8061         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8062         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8063      fi
8064   fi
8065
8066   if test $succeeded = yes; then
8067      :
8068   else
8069      { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8070 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8071    { (exit 1); exit 1; }; }
8072   fi
8073
8074
8075   succeeded=no
8076
8077   if test -z "$PKG_CONFIG"; then
8078     # Extract the first word of "pkg-config", so it can be a program name with args.
8079 set dummy pkg-config; ac_word=$2
8080 echo "$as_me:$LINENO: checking for $ac_word" >&5
8081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8082 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   case $PKG_CONFIG in
8086   [\\/]* | ?:[\\/]*)
8087   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8088   ;;
8089   *)
8090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095   for ac_exec_ext in '' $ac_executable_extensions; do
8096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102 done
8103
8104   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8105   ;;
8106 esac
8107 fi
8108 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8109
8110 if test -n "$PKG_CONFIG"; then
8111   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8112 echo "${ECHO_T}$PKG_CONFIG" >&6
8113 else
8114   echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8116 fi
8117
8118   fi
8119
8120   if test "$PKG_CONFIG" = "no" ; then
8121      echo "*** The pkg-config script could not be found. Make sure it is"
8122      echo "*** in your path, or set the PKG_CONFIG environment variable"
8123      echo "*** to the full path to pkg-config."
8124      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8125   else
8126      PKG_CONFIG_MIN_VERSION=0.9.0
8127      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8128         echo "$as_me:$LINENO: checking for pangoft2" >&5
8129 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8130
8131         if $PKG_CONFIG --exists "pangoft2" ; then
8132             echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8134             succeeded=yes
8135
8136             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8137 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8138             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8139             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8140 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8141
8142             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8143 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8144             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8145             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8146 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8147         else
8148             PANGOFT2_CFLAGS=""
8149             PANGOFT2_LIBS=""
8150             ## If we have a custom action on failure, don't print errors, but
8151             ## do set a variable so people can do so.
8152             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8153             echo $PANGOFT2_PKG_ERRORS
8154         fi
8155
8156
8157
8158      else
8159         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8160         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8161      fi
8162   fi
8163
8164   if test $succeeded = yes; then
8165      :
8166   else
8167      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8168 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8169    { (exit 1); exit 1; }; }
8170   fi
8171
8172 fi
8173
8174
8175
8176
8177
8178 # FIXME: this should be _libs on some hosts.
8179 libsubdir=.libs
8180
8181 # Allow the GC to be disabled.  Can be useful when debugging.
8182 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8183 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8184 # Check whether --enable-java-gc or --disable-java-gc was given.
8185 if test "${enable_java_gc+set}" = set; then
8186   enableval="$enable_java_gc"
8187   GC=$enableval
8188 else
8189   GC=boehm
8190 fi;
8191 GCLIBS=
8192 GCINCS=
8193 GCDEPS=
8194 GCSPEC=
8195 JC1GCSPEC=
8196 GCTESTSPEC=
8197 case "$GC" in
8198  boehm)
8199     echo "$as_me:$LINENO: result: boehm" >&5
8200 echo "${ECHO_T}boehm" >&6
8201     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8202     JC1GCSPEC='-fuse-boehm-gc'
8203     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8204     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8205     GCOBJS=boehm.lo
8206     GCHDR=boehm-gc.h
8207     # The POSIX thread support needs to know this.
8208
8209 cat >>confdefs.h <<\_ACEOF
8210 #define HAVE_BOEHM_GC 1
8211 _ACEOF
8212
8213     ;;
8214  no)
8215     echo "$as_me:$LINENO: result: none" >&5
8216 echo "${ECHO_T}none" >&6
8217     GCHDR=no-gc.h
8218     ;;
8219  *)
8220     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8221 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8222    { (exit 1); exit 1; }; }
8223     ;;
8224 esac
8225
8226
8227
8228
8229
8230
8231           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8232
8233
8234
8235 if test "$GC" = boehm; then
8236   USING_BOEHMGC_TRUE=
8237   USING_BOEHMGC_FALSE='#'
8238 else
8239   USING_BOEHMGC_TRUE='#'
8240   USING_BOEHMGC_FALSE=
8241 fi
8242
8243
8244
8245 if test "$GC" = no; then
8246   USING_NOGC_TRUE=
8247   USING_NOGC_FALSE='#'
8248 else
8249   USING_NOGC_TRUE='#'
8250   USING_NOGC_FALSE=
8251 fi
8252
8253
8254
8255 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8256 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8257 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8258 echo "$as_me:$LINENO: result: $THREADS" >&5
8259 echo "${ECHO_T}$THREADS" >&6
8260
8261 case "$THREADS" in
8262  no | none | single)
8263     THREADS=none
8264     ;;
8265  posix | pthreads)
8266     THREADS=posix
8267     case "$host" in
8268      *-*-linux*)
8269
8270 cat >>confdefs.h <<\_ACEOF
8271 #define LINUX_THREADS 1
8272 _ACEOF
8273
8274         ;;
8275     esac
8276     ;;
8277  win32)
8278     ;;
8279  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8280     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8281 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8282    { (exit 1); exit 1; }; }
8283     ;;
8284  *)
8285     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8286 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8287    { (exit 1); exit 1; }; }
8288     ;;
8289 esac
8290
8291 THREADCXXFLAGS=
8292 THREADLDFLAGS=
8293 THREADLIBS=
8294 THREADINCS=
8295 THREADDEPS=
8296 THREADH=
8297 THREADSPEC=
8298 case "$THREADS" in
8299  posix)
8300     case "$host" in
8301      *-*-cygwin*)
8302         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8303         ;;
8304      *-*-freebsd[1234]*)
8305         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8306         # merely adds pthread_* functions) but it does have a -pthread switch
8307         # which is required at link-time to select -lc_r *instead* of -lc.
8308         THREADLDFLAGS=-pthread
8309         # Don't set THREADSPEC here as might be expected since -pthread is
8310         # not processed when found within a spec file, it must come from
8311         # the command line.  For now, the user must provide the -pthread
8312         # switch to link code compiled with gcj.  In future, consider adding
8313         # support for weak references to pthread_* functions ala gthr.h API.
8314         THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8315         ;;
8316      *-*-freebsd*)
8317         # FreeBSD 5 implements a model much closer to other modern UNIX
8318         # which support threads.  However, it still does not support
8319         # -lpthread.
8320         THREADLDFLAGS=-pthread
8321         THREADSPEC=-lc_r
8322         ;;
8323      alpha*-dec-osf*)
8324         THREADCXXFLAGS=-pthread
8325         # boehm-gc needs some functions from librt, so link that too.
8326         THREADLIBS='-lpthread -lrt'
8327         THREADSPEC='-lpthread -lrt'
8328         ;;
8329      *)
8330         THREADLIBS=-lpthread
8331         THREADSPEC=-lpthread
8332         ;;
8333     esac
8334     THREADH=posix-threads.h
8335     # MIT pthreads doesn't seem to have the mutexattr functions.
8336     # But for now we don't check for it.  We just assume you aren't
8337     # using MIT pthreads.
8338
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8341 _ACEOF
8342
8343
8344     # If we're using the Boehm GC, then we happen to know that it
8345     # defines _REENTRANT, so we don't bother.  Eww.
8346     if test "$GC" != boehm; then
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define _REENTRANT 1
8350 _ACEOF
8351
8352     fi
8353
8354 cat >>confdefs.h <<\_ACEOF
8355 #define _POSIX_PTHREAD_SEMANTICS 1
8356 _ACEOF
8357
8358     ;;
8359
8360  win32)
8361     THREADH=win32-threads.h
8362     ;;
8363
8364  none)
8365     THREADH=no-threads.h
8366     ;;
8367 esac
8368           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 if test "$THREADS" = posix; then
8379   USING_POSIX_THREADS_TRUE=
8380   USING_POSIX_THREADS_FALSE='#'
8381 else
8382   USING_POSIX_THREADS_TRUE='#'
8383   USING_POSIX_THREADS_FALSE=
8384 fi
8385
8386
8387
8388 if test "$THREADS" = win32; then
8389   USING_WIN32_THREADS_TRUE=
8390   USING_WIN32_THREADS_FALSE='#'
8391 else
8392   USING_WIN32_THREADS_TRUE='#'
8393   USING_WIN32_THREADS_FALSE=
8394 fi
8395
8396
8397
8398 if test "$THREADS" = none; then
8399   USING_NO_THREADS_TRUE=
8400   USING_NO_THREADS_FALSE='#'
8401 else
8402   USING_NO_THREADS_TRUE='#'
8403   USING_NO_THREADS_FALSE=
8404 fi
8405
8406
8407 if test -d sysdep; then true; else mkdir sysdep; fi
8408           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8409
8410
8411 HASH_SYNC_SPEC=
8412 # Hash synchronization is only useful with posix threads right now.
8413 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8414    HASH_SYNC_SPEC=-fhash-synchronization
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define JV_HASH_SYNCHRONIZATION 1
8418 _ACEOF
8419
8420 fi
8421
8422
8423
8424
8425
8426 if test "$GCC" = yes; then
8427   USING_GCC_TRUE=
8428   USING_GCC_FALSE='#'
8429 else
8430   USING_GCC_TRUE='#'
8431   USING_GCC_FALSE=
8432 fi
8433
8434
8435 # We're in the tree with gcc, and need to include some of its headers.
8436 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8437
8438 # Figure out where generated headers like libgcj-config.h get installed.
8439 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8440 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8441 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8442 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8443
8444
8445
8446 if test "x${with_newlib}" = "xyes"; then
8447    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8448    # may not work correctly, because the compiler may not be able to
8449    # link executables.
8450
8451    # We assume newlib.  This lets us hard-code the functions we know
8452    # we'll have.
8453
8454 cat >>confdefs.h <<\_ACEOF
8455 #define HAVE_MEMMOVE 1
8456 _ACEOF
8457
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_MEMCPY 1
8461 _ACEOF
8462
8463
8464 cat >>confdefs.h <<\_ACEOF
8465 #define HAVE_STRERROR 1
8466 _ACEOF
8467
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define HAVE_TIME 1
8471 _ACEOF
8472
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_GMTIME_R 1
8476 _ACEOF
8477
8478
8479 cat >>confdefs.h <<\_ACEOF
8480 #define HAVE_LOCALTIME_R 1
8481 _ACEOF
8482
8483
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_USLEEP_DECL 1
8486 _ACEOF
8487
8488    # This is only for POSIX threads.
8489
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8492 _ACEOF
8493
8494    # We also assume we are using gcc, which provides alloca.
8495    cat >>confdefs.h <<\_ACEOF
8496 #define HAVE_ALLOCA 1
8497 _ACEOF
8498
8499
8500    # Assume we do not have getuid and friends.
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define NO_GETUID 1
8504 _ACEOF
8505
8506    PLATFORMNET=NoNet
8507 else
8508
8509
8510
8511
8512
8513
8514
8515
8516 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8517 do
8518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8519 echo "$as_me:$LINENO: checking for $ac_func" >&5
8520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_var+set}\" = set"; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   if test x$gcc_no_link = xyes; then
8525   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8527    { (exit 1); exit 1; }; }
8528 fi
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8537 #define $ac_func innocuous_$ac_func
8538
8539 /* System header to define __stub macros and hopefully few prototypes,
8540     which can conflict with char $ac_func (); below.
8541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542     <limits.h> exists even on freestanding compilers.  */
8543
8544 #ifdef __STDC__
8545 # include <limits.h>
8546 #else
8547 # include <assert.h>
8548 #endif
8549
8550 #undef $ac_func
8551
8552 /* Override any gcc2 internal prototype to avoid an error.  */
8553 #ifdef __cplusplus
8554 extern "C"
8555 {
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558    builtin and then its argument prototype would still apply.  */
8559 char $ac_func ();
8560 /* The GNU C library defines this for functions which it implements
8561     to always fail with ENOSYS.  Some functions are actually named
8562     something starting with __ and the normal name is an alias.  */
8563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8564 choke me
8565 #else
8566 char (*f) () = $ac_func;
8567 #endif
8568 #ifdef __cplusplus
8569 }
8570 #endif
8571
8572 int
8573 main ()
8574 {
8575 return f != $ac_func;
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   eval "$as_ac_var=yes"
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 eval "$as_ac_var=no"
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609       conftest$ac_exeext conftest.$ac_ext
8610 fi
8611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8613 if test `eval echo '${'$as_ac_var'}'` = yes; then
8614   cat >>confdefs.h <<_ACEOF
8615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8616 _ACEOF
8617
8618 fi
8619 done
8620
8621
8622
8623
8624
8625
8626 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8627 do
8628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8629 echo "$as_me:$LINENO: checking for $ac_func" >&5
8630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8631 if eval "test \"\${$as_ac_var+set}\" = set"; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   if test x$gcc_no_link = xyes; then
8635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8637    { (exit 1); exit 1; }; }
8638 fi
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h.  */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h.  */
8645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8647 #define $ac_func innocuous_$ac_func
8648
8649 /* System header to define __stub macros and hopefully few prototypes,
8650     which can conflict with char $ac_func (); below.
8651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652     <limits.h> exists even on freestanding compilers.  */
8653
8654 #ifdef __STDC__
8655 # include <limits.h>
8656 #else
8657 # include <assert.h>
8658 #endif
8659
8660 #undef $ac_func
8661
8662 /* Override any gcc2 internal prototype to avoid an error.  */
8663 #ifdef __cplusplus
8664 extern "C"
8665 {
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char $ac_func ();
8670 /* The GNU C library defines this for functions which it implements
8671     to always fail with ENOSYS.  Some functions are actually named
8672     something starting with __ and the normal name is an alias.  */
8673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8674 choke me
8675 #else
8676 char (*f) () = $ac_func;
8677 #endif
8678 #ifdef __cplusplus
8679 }
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return f != $ac_func;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } &&
8699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   eval "$as_ac_var=yes"
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 eval "$as_ac_var=no"
8717 fi
8718 rm -f conftest.err conftest.$ac_objext \
8719       conftest$ac_exeext conftest.$ac_ext
8720 fi
8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8723 if test `eval echo '${'$as_ac_var'}'` = yes; then
8724   cat >>confdefs.h <<_ACEOF
8725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8726 _ACEOF
8727
8728 fi
8729 done
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8741 do
8742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8743 echo "$as_me:$LINENO: checking for $ac_func" >&5
8744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745 if eval "test \"\${$as_ac_var+set}\" = set"; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   if test x$gcc_no_link = xyes; then
8749   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8751    { (exit 1); exit 1; }; }
8752 fi
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8761 #define $ac_func innocuous_$ac_func
8762
8763 /* System header to define __stub macros and hopefully few prototypes,
8764     which can conflict with char $ac_func (); below.
8765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8766     <limits.h> exists even on freestanding compilers.  */
8767
8768 #ifdef __STDC__
8769 # include <limits.h>
8770 #else
8771 # include <assert.h>
8772 #endif
8773
8774 #undef $ac_func
8775
8776 /* Override any gcc2 internal prototype to avoid an error.  */
8777 #ifdef __cplusplus
8778 extern "C"
8779 {
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782    builtin and then its argument prototype would still apply.  */
8783 char $ac_func ();
8784 /* The GNU C library defines this for functions which it implements
8785     to always fail with ENOSYS.  Some functions are actually named
8786     something starting with __ and the normal name is an alias.  */
8787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8788 choke me
8789 #else
8790 char (*f) () = $ac_func;
8791 #endif
8792 #ifdef __cplusplus
8793 }
8794 #endif
8795
8796 int
8797 main ()
8798 {
8799 return f != $ac_func;
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815   (eval $ac_try) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; } &&
8819          { ac_try='test -s conftest$ac_exeext'
8820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821   (eval $ac_try) 2>&5
8822   ac_status=$?
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); }; }; then
8825   eval "$as_ac_var=yes"
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830 eval "$as_ac_var=no"
8831 fi
8832 rm -f conftest.err conftest.$ac_objext \
8833       conftest$ac_exeext conftest.$ac_ext
8834 fi
8835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8837 if test `eval echo '${'$as_ac_var'}'` = yes; then
8838   cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 fi
8843 done
8844
8845
8846
8847 for ac_func in nl_langinfo setlocale
8848 do
8849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8850 echo "$as_me:$LINENO: checking for $ac_func" >&5
8851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8852 if eval "test \"\${$as_ac_var+set}\" = set"; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   if test x$gcc_no_link = xyes; then
8856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8858    { (exit 1); exit 1; }; }
8859 fi
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8868 #define $ac_func innocuous_$ac_func
8869
8870 /* System header to define __stub macros and hopefully few prototypes,
8871     which can conflict with char $ac_func (); below.
8872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8873     <limits.h> exists even on freestanding compilers.  */
8874
8875 #ifdef __STDC__
8876 # include <limits.h>
8877 #else
8878 # include <assert.h>
8879 #endif
8880
8881 #undef $ac_func
8882
8883 /* Override any gcc2 internal prototype to avoid an error.  */
8884 #ifdef __cplusplus
8885 extern "C"
8886 {
8887 #endif
8888 /* We use char because int might match the return type of a gcc2
8889    builtin and then its argument prototype would still apply.  */
8890 char $ac_func ();
8891 /* The GNU C library defines this for functions which it implements
8892     to always fail with ENOSYS.  Some functions are actually named
8893     something starting with __ and the normal name is an alias.  */
8894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8895 choke me
8896 #else
8897 char (*f) () = $ac_func;
8898 #endif
8899 #ifdef __cplusplus
8900 }
8901 #endif
8902
8903 int
8904 main ()
8905 {
8906 return f != $ac_func;
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913   (eval $ac_link) 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; } &&
8926          { ac_try='test -s conftest$ac_exeext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   eval "$as_ac_var=yes"
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 eval "$as_ac_var=no"
8938 fi
8939 rm -f conftest.err conftest.$ac_objext \
8940       conftest$ac_exeext conftest.$ac_ext
8941 fi
8942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8944 if test `eval echo '${'$as_ac_var'}'` = yes; then
8945   cat >>confdefs.h <<_ACEOF
8946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8947 _ACEOF
8948
8949 fi
8950 done
8951
8952
8953
8954 for ac_func in inet_aton inet_addr
8955 do
8956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8957 echo "$as_me:$LINENO: checking for $ac_func" >&5
8958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_var+set}\" = set"; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   if test x$gcc_no_link = xyes; then
8963   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8965    { (exit 1); exit 1; }; }
8966 fi
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8975 #define $ac_func innocuous_$ac_func
8976
8977 /* System header to define __stub macros and hopefully few prototypes,
8978     which can conflict with char $ac_func (); below.
8979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8980     <limits.h> exists even on freestanding compilers.  */
8981
8982 #ifdef __STDC__
8983 # include <limits.h>
8984 #else
8985 # include <assert.h>
8986 #endif
8987
8988 #undef $ac_func
8989
8990 /* Override any gcc2 internal prototype to avoid an error.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 {
8994 #endif
8995 /* We use char because int might match the return type of a gcc2
8996    builtin and then its argument prototype would still apply.  */
8997 char $ac_func ();
8998 /* The GNU C library defines this for functions which it implements
8999     to always fail with ENOSYS.  Some functions are actually named
9000     something starting with __ and the normal name is an alias.  */
9001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9002 choke me
9003 #else
9004 char (*f) () = $ac_func;
9005 #endif
9006 #ifdef __cplusplus
9007 }
9008 #endif
9009
9010 int
9011 main ()
9012 {
9013 return f != $ac_func;
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020   (eval $ac_link) 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } &&
9027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029   (eval $ac_try) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); }; } &&
9033          { ac_try='test -s conftest$ac_exeext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   eval "$as_ac_var=yes"
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 eval "$as_ac_var=no"
9045 fi
9046 rm -f conftest.err conftest.$ac_objext \
9047       conftest$ac_exeext conftest.$ac_ext
9048 fi
9049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9051 if test `eval echo '${'$as_ac_var'}'` = yes; then
9052   cat >>confdefs.h <<_ACEOF
9053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9054 _ACEOF
9055  break
9056 fi
9057 done
9058
9059
9060
9061
9062 for ac_func in inet_pton uname inet_ntoa
9063 do
9064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9065 echo "$as_me:$LINENO: checking for $ac_func" >&5
9066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_var+set}\" = set"; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   if test x$gcc_no_link = xyes; then
9071   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9073    { (exit 1); exit 1; }; }
9074 fi
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9083 #define $ac_func innocuous_$ac_func
9084
9085 /* System header to define __stub macros and hopefully few prototypes,
9086     which can conflict with char $ac_func (); below.
9087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088     <limits.h> exists even on freestanding compilers.  */
9089
9090 #ifdef __STDC__
9091 # include <limits.h>
9092 #else
9093 # include <assert.h>
9094 #endif
9095
9096 #undef $ac_func
9097
9098 /* Override any gcc2 internal prototype to avoid an error.  */
9099 #ifdef __cplusplus
9100 extern "C"
9101 {
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104    builtin and then its argument prototype would still apply.  */
9105 char $ac_func ();
9106 /* The GNU C library defines this for functions which it implements
9107     to always fail with ENOSYS.  Some functions are actually named
9108     something starting with __ and the normal name is an alias.  */
9109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9110 choke me
9111 #else
9112 char (*f) () = $ac_func;
9113 #endif
9114 #ifdef __cplusplus
9115 }
9116 #endif
9117
9118 int
9119 main ()
9120 {
9121 return f != $ac_func;
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; } &&
9141          { ac_try='test -s conftest$ac_exeext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   eval "$as_ac_var=yes"
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 eval "$as_ac_var=no"
9153 fi
9154 rm -f conftest.err conftest.$ac_objext \
9155       conftest$ac_exeext conftest.$ac_ext
9156 fi
9157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9159 if test `eval echo '${'$as_ac_var'}'` = yes; then
9160   cat >>confdefs.h <<_ACEOF
9161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9162 _ACEOF
9163
9164 fi
9165 done
9166
9167
9168
9169
9170
9171
9172 for ac_func in fork execvp pipe sigaction ftruncate
9173 do
9174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9175 echo "$as_me:$LINENO: checking for $ac_func" >&5
9176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_var+set}\" = set"; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   if test x$gcc_no_link = xyes; then
9181   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9183    { (exit 1); exit 1; }; }
9184 fi
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9193 #define $ac_func innocuous_$ac_func
9194
9195 /* System header to define __stub macros and hopefully few prototypes,
9196     which can conflict with char $ac_func (); below.
9197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198     <limits.h> exists even on freestanding compilers.  */
9199
9200 #ifdef __STDC__
9201 # include <limits.h>
9202 #else
9203 # include <assert.h>
9204 #endif
9205
9206 #undef $ac_func
9207
9208 /* Override any gcc2 internal prototype to avoid an error.  */
9209 #ifdef __cplusplus
9210 extern "C"
9211 {
9212 #endif
9213 /* We use char because int might match the return type of a gcc2
9214    builtin and then its argument prototype would still apply.  */
9215 char $ac_func ();
9216 /* The GNU C library defines this for functions which it implements
9217     to always fail with ENOSYS.  Some functions are actually named
9218     something starting with __ and the normal name is an alias.  */
9219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9220 choke me
9221 #else
9222 char (*f) () = $ac_func;
9223 #endif
9224 #ifdef __cplusplus
9225 }
9226 #endif
9227
9228 int
9229 main ()
9230 {
9231 return f != $ac_func;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238   (eval $ac_link) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247   (eval $ac_try) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; } &&
9251          { ac_try='test -s conftest$ac_exeext'
9252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253   (eval $ac_try) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; }; then
9257   eval "$as_ac_var=yes"
9258 else
9259   echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262 eval "$as_ac_var=no"
9263 fi
9264 rm -f conftest.err conftest.$ac_objext \
9265       conftest$ac_exeext conftest.$ac_ext
9266 fi
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9269 if test `eval echo '${'$as_ac_var'}'` = yes; then
9270   cat >>confdefs.h <<_ACEOF
9271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9272 _ACEOF
9273
9274 fi
9275 done
9276
9277    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9278 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9279 if test "${ac_cv_header_stdc+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288 #include <stdlib.h>
9289 #include <stdarg.h>
9290 #include <string.h>
9291 #include <float.h>
9292
9293 int
9294 main ()
9295 {
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303   (eval $ac_compile) 2>conftest.er1
9304   ac_status=$?
9305   grep -v '^ *+' conftest.er1 >conftest.err
9306   rm -f conftest.er1
9307   cat conftest.err >&5
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } &&
9310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; } &&
9316          { ac_try='test -s conftest.$ac_objext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_cv_header_stdc=yes
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ac_cv_header_stdc=no
9328 fi
9329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9330
9331 if test $ac_cv_header_stdc = yes; then
9332   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9333   cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339 #include <string.h>
9340
9341 _ACEOF
9342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9343   $EGREP "memchr" >/dev/null 2>&1; then
9344   :
9345 else
9346   ac_cv_header_stdc=no
9347 fi
9348 rm -f conftest*
9349
9350 fi
9351
9352 if test $ac_cv_header_stdc = yes; then
9353   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 #include <stdlib.h>
9361
9362 _ACEOF
9363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9364   $EGREP "free" >/dev/null 2>&1; then
9365   :
9366 else
9367   ac_cv_header_stdc=no
9368 fi
9369 rm -f conftest*
9370
9371 fi
9372
9373 if test $ac_cv_header_stdc = yes; then
9374   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9375   if test "$cross_compiling" = yes; then
9376   :
9377 else
9378   cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384 #include <ctype.h>
9385 #if ((' ' & 0x0FF) == 0x020)
9386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9388 #else
9389 # define ISLOWER(c) \
9390                    (('a' <= (c) && (c) <= 'i') \
9391                      || ('j' <= (c) && (c) <= 'r') \
9392                      || ('s' <= (c) && (c) <= 'z'))
9393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9394 #endif
9395
9396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9397 int
9398 main ()
9399 {
9400   int i;
9401   for (i = 0; i < 256; i++)
9402     if (XOR (islower (i), ISLOWER (i))
9403         || toupper (i) != TOUPPER (i))
9404       exit(2);
9405   exit (0);
9406 }
9407 _ACEOF
9408 rm -f conftest$ac_exeext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410   (eval $ac_link) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   :
9420 else
9421   echo "$as_me: program exited with status $ac_status" >&5
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 ( exit $ac_status )
9426 ac_cv_header_stdc=no
9427 fi
9428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9429 fi
9430 fi
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9434 if test $ac_cv_header_stdc = yes; then
9435
9436 cat >>confdefs.h <<\_ACEOF
9437 #define STDC_HEADERS 1
9438 _ACEOF
9439
9440 fi
9441
9442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9453                   inttypes.h stdint.h unistd.h
9454 do
9455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9456 echo "$as_me:$LINENO: checking for $ac_header" >&5
9457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459   echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461   cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h.  */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h.  */
9467 $ac_includes_default
9468
9469 #include <$ac_header>
9470 _ACEOF
9471 rm -f conftest.$ac_objext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473   (eval $ac_compile) 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } &&
9480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest.$ac_objext'
9487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488   (eval $ac_try) 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; }; then
9492   eval "$as_ac_Header=yes"
9493 else
9494   echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497 eval "$as_ac_Header=no"
9498 fi
9499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9500 fi
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9504   cat >>confdefs.h <<_ACEOF
9505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506 _ACEOF
9507
9508 fi
9509
9510 done
9511
9512
9513
9514
9515
9516 for ac_header in execinfo.h unistd.h dlfcn.h
9517 do
9518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9520   echo "$as_me:$LINENO: checking for $ac_header" >&5
9521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 fi
9525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9527 else
9528   # Is the header compilable?
9529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537 $ac_includes_default
9538 #include <$ac_header>
9539 _ACEOF
9540 rm -f conftest.$ac_objext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542   (eval $ac_compile) 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest.$ac_objext'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; }; then
9561   ac_header_compiler=yes
9562 else
9563   echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_header_compiler=no
9567 fi
9568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570 echo "${ECHO_T}$ac_header_compiler" >&6
9571
9572 # Is the header present?
9573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <$ac_header>
9582 _ACEOF
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9585   ac_status=$?
9586   grep -v '^ *+' conftest.er1 >conftest.err
9587   rm -f conftest.er1
9588   cat conftest.err >&5
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); } >/dev/null; then
9591   if test -s conftest.err; then
9592     ac_cpp_err=$ac_c_preproc_warn_flag
9593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9594   else
9595     ac_cpp_err=
9596   fi
9597 else
9598   ac_cpp_err=yes
9599 fi
9600 if test -z "$ac_cpp_err"; then
9601   ac_header_preproc=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606   ac_header_preproc=no
9607 fi
9608 rm -f conftest.err conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9610 echo "${ECHO_T}$ac_header_preproc" >&6
9611
9612 # So?  What about this header?
9613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9614   yes:no: )
9615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9619     ac_header_preproc=yes
9620     ;;
9621   no:yes:* )
9622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9634     (
9635       cat <<\_ASBOX
9636 ## ---------------------------------- ##
9637 ## Report this to the libjava lists.  ##
9638 ## ---------------------------------- ##
9639 _ASBOX
9640     ) |
9641       sed "s/^/$as_me: WARNING:     /" >&2
9642     ;;
9643 esac
9644 echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   eval "$as_ac_Header=\$ac_header_preproc"
9650 fi
9651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9653
9654 fi
9655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9656   cat >>confdefs.h <<_ACEOF
9657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9658 _ACEOF
9659
9660 fi
9661
9662 done
9663
9664    echo "$as_me:$LINENO: checking for backtrace" >&5
9665 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9666 if test "${ac_cv_func_backtrace+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   if test x$gcc_no_link = xyes; then
9670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9672    { (exit 1); exit 1; }; }
9673 fi
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h.  */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h.  */
9680 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9682 #define backtrace innocuous_backtrace
9683
9684 /* System header to define __stub macros and hopefully few prototypes,
9685     which can conflict with char backtrace (); below.
9686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687     <limits.h> exists even on freestanding compilers.  */
9688
9689 #ifdef __STDC__
9690 # include <limits.h>
9691 #else
9692 # include <assert.h>
9693 #endif
9694
9695 #undef backtrace
9696
9697 /* Override any gcc2 internal prototype to avoid an error.  */
9698 #ifdef __cplusplus
9699 extern "C"
9700 {
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703    builtin and then its argument prototype would still apply.  */
9704 char backtrace ();
9705 /* The GNU C library defines this for functions which it implements
9706     to always fail with ENOSYS.  Some functions are actually named
9707     something starting with __ and the normal name is an alias.  */
9708 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9709 choke me
9710 #else
9711 char (*f) () = backtrace;
9712 #endif
9713 #ifdef __cplusplus
9714 }
9715 #endif
9716
9717 int
9718 main ()
9719 {
9720 return f != backtrace;
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727   (eval $ac_link) 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; } &&
9740          { ac_try='test -s conftest$ac_exeext'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; }; then
9746   ac_cv_func_backtrace=yes
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 ac_cv_func_backtrace=no
9752 fi
9753 rm -f conftest.err conftest.$ac_objext \
9754       conftest$ac_exeext conftest.$ac_ext
9755 fi
9756 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9757 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9758 if test $ac_cv_func_backtrace = yes; then
9759
9760      case "$host" in
9761        ia64-*-linux*)
9762          # Has broken backtrace()
9763          ;;
9764        mips*-*-linux*)
9765          # Has broken backtrace(), but we supply our own.
9766          if test -d sysdep; then true; else mkdir -p sysdep; fi
9767          supply_backtrace=yes
9768
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_BACKTRACE 1
9771 _ACEOF
9772
9773          ;;
9774        *)
9775
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_BACKTRACE 1
9778 _ACEOF
9779
9780          ;;
9781      esac
9782
9783 else
9784
9785      case "$host" in
9786        *mingw*)
9787          # Has backtrace() defined in libgcj itself
9788
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_BACKTRACE 1
9791 _ACEOF
9792
9793          ;;
9794      esac
9795
9796 fi
9797
9798
9799    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9800 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9801 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-ldl  $LIBS"
9806 if test x$gcc_no_link = xyes; then
9807   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9809    { (exit 1); exit 1; }; }
9810 fi
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817
9818 /* Override any gcc2 internal prototype to avoid an error.  */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 /* We use char because int might match the return type of a gcc2
9823    builtin and then its argument prototype would still apply.  */
9824 char dladdr ();
9825 int
9826 main ()
9827 {
9828 dladdr ();
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9835   (eval $ac_link) 2>conftest.er1
9836   ac_status=$?
9837   grep -v '^ *+' conftest.er1 >conftest.err
9838   rm -f conftest.er1
9839   cat conftest.err >&5
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } &&
9842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest$ac_exeext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   ac_cv_lib_dl_dladdr=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_cv_lib_dl_dladdr=no
9860 fi
9861 rm -f conftest.err conftest.$ac_objext \
9862       conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9864 fi
9865 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9866 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9867 if test $ac_cv_lib_dl_dladdr = yes; then
9868
9869      if test "x${disable_dladdr}" = "xyes"; then
9870        #Broken dladdr().
9871        true
9872      else
9873
9874 cat >>confdefs.h <<\_ACEOF
9875 #define HAVE_DLADDR 1
9876 _ACEOF
9877
9878      fi
9879
9880 fi
9881
9882    if test x"$build" = x"$host"; then
9883      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9884 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9885 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   test "$cross_compiling" = yes &&
9889   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9890 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9891    { (exit 1); exit 1; }; }
9892 if test -r "/proc/self/exe"; then
9893   ac_cv_file__proc_self_exe=yes
9894 else
9895   ac_cv_file__proc_self_exe=no
9896 fi
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9899 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9900 if test $ac_cv_file__proc_self_exe = yes; then
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define HAVE__PROC_SELF_EXE 1
9904 _ACEOF
9905
9906
9907
9908 cat >>confdefs.h <<\_ACEOF
9909 #define HAVE_PROC_SELF_EXE 1
9910 _ACEOF
9911
9912 fi
9913
9914    else
9915      case $host in
9916      *-linux*)
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_PROC_SELF_EXE 1
9920 _ACEOF
9921
9922        ;;
9923      esac
9924    fi
9925
9926
9927
9928   am_cv_lib_iconv_ldpath=
9929
9930 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9931 if test "${with_libiconv_prefix+set}" = set; then
9932   withval="$with_libiconv_prefix"
9933
9934     for dir in `echo "$withval" | tr : ' '`; do
9935       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9936       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9937     done
9938
9939 fi;
9940
9941   echo "$as_me:$LINENO: checking for iconv" >&5
9942 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9943 if test "${am_cv_func_iconv+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946
9947     am_cv_func_iconv="no, consider installing GNU libiconv"
9948     am_cv_lib_iconv=no
9949     if test x$gcc_no_link = xyes; then
9950   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9952    { (exit 1); exit 1; }; }
9953 fi
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 #include <stdlib.h>
9961 #include <iconv.h>
9962 int
9963 main ()
9964 {
9965 iconv_t cd = iconv_open("","");
9966        iconv(cd,NULL,NULL,NULL,NULL);
9967        iconv_close(cd);
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9974   (eval $ac_link) 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; } &&
9987          { ac_try='test -s conftest$ac_exeext'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   am_cv_func_iconv=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001     if test "$am_cv_func_iconv" != yes; then
10002       am_save_LIBS="$LIBS"
10003       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10004       if test x$gcc_no_link = xyes; then
10005   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10007    { (exit 1); exit 1; }; }
10008 fi
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 #include <stdlib.h>
10016 #include <iconv.h>
10017 int
10018 main ()
10019 {
10020 iconv_t cd = iconv_open("","");
10021          iconv(cd,NULL,NULL,NULL,NULL);
10022          iconv_close(cd);
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029   (eval $ac_link) 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } &&
10036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038   (eval $ac_try) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; } &&
10042          { ac_try='test -s conftest$ac_exeext'
10043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044   (eval $ac_try) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048   am_cv_lib_iconv=yes
10049         am_cv_func_iconv=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 fi
10055 rm -f conftest.err conftest.$ac_objext \
10056       conftest$ac_exeext conftest.$ac_ext
10057       LIBS="$am_save_LIBS"
10058     fi
10059
10060 fi
10061 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10062 echo "${ECHO_T}$am_cv_func_iconv" >&6
10063   if test "$am_cv_func_iconv" = yes; then
10064
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_ICONV 1
10067 _ACEOF
10068
10069     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10070 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10071     if test "${am_cv_proto_iconv+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074
10075       cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081
10082 #include <stdlib.h>
10083 #include <iconv.h>
10084 extern
10085 #ifdef __cplusplus
10086 "C"
10087 #endif
10088 #if defined(__STDC__) || defined(__cplusplus)
10089 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10090 #else
10091 size_t iconv();
10092 #endif
10093
10094 int
10095 main ()
10096 {
10097
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10104   (eval $ac_compile) 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } &&
10111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113   (eval $ac_try) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; } &&
10117          { ac_try='test -s conftest.$ac_objext'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }; then
10123   am_cv_proto_iconv_arg1=""
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 am_cv_proto_iconv_arg1="const"
10129 fi
10130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10131       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);"
10132 fi
10133
10134     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10135     echo "$as_me:$LINENO: result: ${ac_t:-
10136          }$am_cv_proto_iconv" >&5
10137 echo "${ECHO_T}${ac_t:-
10138          }$am_cv_proto_iconv" >&6
10139
10140 cat >>confdefs.h <<_ACEOF
10141 #define ICONV_CONST $am_cv_proto_iconv_arg1
10142 _ACEOF
10143
10144   fi
10145   LIBICONV=
10146   if test "$am_cv_lib_iconv" = yes; then
10147     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10148   fi
10149
10150
10151
10152 for ac_header in locale.h
10153 do
10154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10156   echo "$as_me:$LINENO: checking for $ac_header" >&5
10157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 fi
10161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10163 else
10164   # Is the header compilable?
10165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10167 cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h.  */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h.  */
10173 $ac_includes_default
10174 #include <$ac_header>
10175 _ACEOF
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178   (eval $ac_compile) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; } &&
10191          { ac_try='test -s conftest.$ac_objext'
10192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193   (eval $ac_try) 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_header_compiler=yes
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 ac_header_compiler=no
10203 fi
10204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10206 echo "${ECHO_T}$ac_header_compiler" >&6
10207
10208 # Is the header present?
10209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217 #include <$ac_header>
10218 _ACEOF
10219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10221   ac_status=$?
10222   grep -v '^ *+' conftest.er1 >conftest.err
10223   rm -f conftest.er1
10224   cat conftest.err >&5
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); } >/dev/null; then
10227   if test -s conftest.err; then
10228     ac_cpp_err=$ac_c_preproc_warn_flag
10229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10230   else
10231     ac_cpp_err=
10232   fi
10233 else
10234   ac_cpp_err=yes
10235 fi
10236 if test -z "$ac_cpp_err"; then
10237   ac_header_preproc=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242   ac_header_preproc=no
10243 fi
10244 rm -f conftest.err conftest.$ac_ext
10245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10246 echo "${ECHO_T}$ac_header_preproc" >&6
10247
10248 # So?  What about this header?
10249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10250   yes:no: )
10251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10255     ac_header_preproc=yes
10256     ;;
10257   no:yes:* )
10258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10270     (
10271       cat <<\_ASBOX
10272 ## ---------------------------------- ##
10273 ## Report this to the libjava lists.  ##
10274 ## ---------------------------------- ##
10275 _ASBOX
10276     ) |
10277       sed "s/^/$as_me: WARNING:     /" >&2
10278     ;;
10279 esac
10280 echo "$as_me:$LINENO: checking for $ac_header" >&5
10281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10283   echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285   eval "$as_ac_Header=\$ac_header_preproc"
10286 fi
10287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10289
10290 fi
10291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10292   cat >>confdefs.h <<_ACEOF
10293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10294 _ACEOF
10295
10296 fi
10297
10298 done
10299
10300   if test $ac_cv_header_locale_h = yes; then
10301     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10302 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10303 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   if test x$gcc_no_link = xyes; then
10307   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10309    { (exit 1); exit 1; }; }
10310 fi
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 #include <locale.h>
10318 int
10319 main ()
10320 {
10321 return LC_MESSAGES
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328   (eval $ac_link) 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } &&
10335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337   (eval $ac_try) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; } &&
10341          { ac_try='test -s conftest$ac_exeext'
10342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343   (eval $ac_try) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; }; then
10347   am_cv_val_LC_MESSAGES=yes
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 am_cv_val_LC_MESSAGES=no
10353 fi
10354 rm -f conftest.err conftest.$ac_objext \
10355       conftest$ac_exeext conftest.$ac_ext
10356 fi
10357 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10358 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10359     if test $am_cv_val_LC_MESSAGES = yes; then
10360
10361 cat >>confdefs.h <<\_ACEOF
10362 #define HAVE_LC_MESSAGES 1
10363 _ACEOF
10364
10365     fi
10366   fi
10367    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10368 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10369 if test "${ac_cv_struct_tm+set}" = set; then
10370   echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372   cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h.  */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h.  */
10378 #include <sys/types.h>
10379 #include <time.h>
10380
10381 int
10382 main ()
10383 {
10384 struct tm *tp; tp->tm_sec;
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391   (eval $ac_compile) 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } &&
10398          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400   (eval $ac_try) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; } &&
10404          { ac_try='test -s conftest.$ac_objext'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   ac_cv_struct_tm=time.h
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_struct_tm=sys/time.h
10416 fi
10417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10420 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10421 if test $ac_cv_struct_tm = sys/time.h; then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define TM_IN_SYS_TIME 1
10425 _ACEOF
10426
10427 fi
10428
10429 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10430 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10431 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440 #include <sys/types.h>
10441 #include <$ac_cv_struct_tm>
10442
10443
10444 int
10445 main ()
10446 {
10447 static struct tm ac_aggr;
10448 if (ac_aggr.tm_zone)
10449 return 0;
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456   (eval $ac_compile) 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } &&
10463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; } &&
10469          { ac_try='test -s conftest.$ac_objext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_cv_member_struct_tm_tm_zone=yes
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h.  */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h.  */
10486 #include <sys/types.h>
10487 #include <$ac_cv_struct_tm>
10488
10489
10490 int
10491 main ()
10492 {
10493 static struct tm ac_aggr;
10494 if (sizeof ac_aggr.tm_zone)
10495 return 0;
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   ac_cv_member_struct_tm_tm_zone=yes
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ac_cv_member_struct_tm_tm_zone=no
10527 fi
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10531 fi
10532 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10533 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10534 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10535
10536 cat >>confdefs.h <<_ACEOF
10537 #define HAVE_STRUCT_TM_TM_ZONE 1
10538 _ACEOF
10539
10540
10541 fi
10542
10543 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_TM_ZONE 1
10547 _ACEOF
10548
10549 else
10550   echo "$as_me:$LINENO: checking for tzname" >&5
10551 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10552 if test "${ac_cv_var_tzname+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   if test x$gcc_no_link = xyes; then
10556   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10558    { (exit 1); exit 1; }; }
10559 fi
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 #include <time.h>
10567 #ifndef tzname /* For SGI.  */
10568 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10569 #endif
10570
10571 int
10572 main ()
10573 {
10574 atoi(*tzname);
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581   (eval $ac_link) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; } &&
10594          { ac_try='test -s conftest$ac_exeext'
10595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596   (eval $ac_try) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); }; }; then
10600   ac_cv_var_tzname=yes
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_cv_var_tzname=no
10606 fi
10607 rm -f conftest.err conftest.$ac_objext \
10608       conftest$ac_exeext conftest.$ac_ext
10609 fi
10610 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10611 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10612   if test $ac_cv_var_tzname = yes; then
10613
10614 cat >>confdefs.h <<\_ACEOF
10615 #define HAVE_TZNAME 1
10616 _ACEOF
10617
10618   fi
10619 fi
10620
10621
10622
10623
10624 for ac_func in gethostbyname_r
10625 do
10626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10627 echo "$as_me:$LINENO: checking for $ac_func" >&5
10628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10629 if eval "test \"\${$as_ac_var+set}\" = set"; then
10630   echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632   if test x$gcc_no_link = xyes; then
10633   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10635    { (exit 1); exit 1; }; }
10636 fi
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10645 #define $ac_func innocuous_$ac_func
10646
10647 /* System header to define __stub macros and hopefully few prototypes,
10648     which can conflict with char $ac_func (); below.
10649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650     <limits.h> exists even on freestanding compilers.  */
10651
10652 #ifdef __STDC__
10653 # include <limits.h>
10654 #else
10655 # include <assert.h>
10656 #endif
10657
10658 #undef $ac_func
10659
10660 /* Override any gcc2 internal prototype to avoid an error.  */
10661 #ifdef __cplusplus
10662 extern "C"
10663 {
10664 #endif
10665 /* We use char because int might match the return type of a gcc2
10666    builtin and then its argument prototype would still apply.  */
10667 char $ac_func ();
10668 /* The GNU C library defines this for functions which it implements
10669     to always fail with ENOSYS.  Some functions are actually named
10670     something starting with __ and the normal name is an alias.  */
10671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10672 choke me
10673 #else
10674 char (*f) () = $ac_func;
10675 #endif
10676 #ifdef __cplusplus
10677 }
10678 #endif
10679
10680 int
10681 main ()
10682 {
10683 return f != $ac_func;
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690   (eval $ac_link) 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699   (eval $ac_try) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; } &&
10703          { ac_try='test -s conftest$ac_exeext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   eval "$as_ac_var=yes"
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 eval "$as_ac_var=no"
10715 fi
10716 rm -f conftest.err conftest.$ac_objext \
10717       conftest$ac_exeext conftest.$ac_ext
10718 fi
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10721 if test `eval echo '${'$as_ac_var'}'` = yes; then
10722   cat >>confdefs.h <<_ACEOF
10723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10724 _ACEOF
10725
10726
10727 cat >>confdefs.h <<\_ACEOF
10728 #define HAVE_GETHOSTBYNAME_R 1
10729 _ACEOF
10730
10731      # There are two different kinds of gethostbyname_r.
10732      # We look for the one that returns `int'.
10733      # Hopefully this check is robust enough.
10734      cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <netdb.h>
10741
10742 _ACEOF
10743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10744   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10745
10746
10747 cat >>confdefs.h <<\_ACEOF
10748 #define GETHOSTBYNAME_R_RETURNS_INT 1
10749 _ACEOF
10750
10751 fi
10752 rm -f conftest*
10753
10754
10755      case " $GCINCS " in
10756      *" -D_REENTRANT "*) ;;
10757      *)
10758                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10759 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10760 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763    ac_ext=cc
10764 ac_cpp='$CXXCPP $CPPFLAGS'
10765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10768
10769           cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 #include <netdb.h>
10776 int
10777 main ()
10778 {
10779 gethostbyname_r("", 0, 0);
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786   (eval $ac_compile) 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } &&
10793          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   libjava_cv_gethostbyname_r_needs_reentrant=no
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810                 CPPFLAGS_SAVE="$CPPFLAGS"
10811                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10812                 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818 #include <netdb.h>
10819 int
10820 main ()
10821 {
10822 gethostbyname_r("", 0, 0);
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829   (eval $ac_compile) 2>conftest.er1
10830   ac_status=$?
10831   grep -v '^ *+' conftest.er1 >conftest.err
10832   rm -f conftest.er1
10833   cat conftest.err >&5
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); } &&
10836          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838   (eval $ac_try) 2>&5
10839   ac_status=$?
10840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841   (exit $ac_status); }; } &&
10842          { ac_try='test -s conftest.$ac_objext'
10843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844   (eval $ac_try) 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   libjava_cv_gethostbyname_r_needs_reentrant=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 libjava_cv_gethostbyname_r_needs_reentrant=fail
10854 fi
10855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10856                 CPPFLAGS="$CPPFLAGS_SAVE"
10857
10858 fi
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860           ac_ext=c
10861 ac_cpp='$CPP $CPPFLAGS'
10862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10865
10866
10867 fi
10868 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10869 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10870         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10871
10872 cat >>confdefs.h <<\_ACEOF
10873 #define _REENTRANT 1
10874 _ACEOF
10875
10876         fi
10877      ;;
10878      esac
10879
10880      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10881 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10882 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885         cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891
10892 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10893 # define _REENTRANT 1
10894 #endif
10895 #include <netdb.h>
10896 int
10897 main ()
10898 {
10899 struct hostent_data data;
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 rm -f conftest.$ac_objext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10906   (eval $ac_compile) 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; } &&
10919          { ac_try='test -s conftest.$ac_objext'
10920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921   (eval $ac_try) 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   libjava_cv_struct_hostent_data=yes
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 libjava_cv_struct_hostent_data=no
10931 fi
10932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10935 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10936      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_STRUCT_HOSTENT_DATA 1
10940 _ACEOF
10941
10942      fi
10943
10944 fi
10945 done
10946
10947
10948    # FIXME: libjava source code expects to find a prototype for
10949    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10950    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10951    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10952    # linkage check is enough, yet C++ code requires proper prototypes.)
10953    cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959 #include <netdb.h>
10960
10961 _ACEOF
10962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10963   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10964
10965
10966 for ac_func in gethostbyaddr_r
10967 do
10968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10969 echo "$as_me:$LINENO: checking for $ac_func" >&5
10970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10971 if eval "test \"\${$as_ac_var+set}\" = set"; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   if test x$gcc_no_link = xyes; then
10975   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10977    { (exit 1); exit 1; }; }
10978 fi
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10987 #define $ac_func innocuous_$ac_func
10988
10989 /* System header to define __stub macros and hopefully few prototypes,
10990     which can conflict with char $ac_func (); below.
10991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10992     <limits.h> exists even on freestanding compilers.  */
10993
10994 #ifdef __STDC__
10995 # include <limits.h>
10996 #else
10997 # include <assert.h>
10998 #endif
10999
11000 #undef $ac_func
11001
11002 /* Override any gcc2 internal prototype to avoid an error.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 {
11006 #endif
11007 /* We use char because int might match the return type of a gcc2
11008    builtin and then its argument prototype would still apply.  */
11009 char $ac_func ();
11010 /* The GNU C library defines this for functions which it implements
11011     to always fail with ENOSYS.  Some functions are actually named
11012     something starting with __ and the normal name is an alias.  */
11013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11014 choke me
11015 #else
11016 char (*f) () = $ac_func;
11017 #endif
11018 #ifdef __cplusplus
11019 }
11020 #endif
11021
11022 int
11023 main ()
11024 {
11025 return f != $ac_func;
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032   (eval $ac_link) 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } &&
11039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041   (eval $ac_try) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; } &&
11045          { ac_try='test -s conftest$ac_exeext'
11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047   (eval $ac_try) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   eval "$as_ac_var=yes"
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 eval "$as_ac_var=no"
11057 fi
11058 rm -f conftest.err conftest.$ac_objext \
11059       conftest$ac_exeext conftest.$ac_ext
11060 fi
11061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11063 if test `eval echo '${'$as_ac_var'}'` = yes; then
11064   cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 _ACEOF
11067
11068
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_GETHOSTBYADDR_R 1
11071 _ACEOF
11072
11073      # There are two different kinds of gethostbyaddr_r.
11074      # We look for the one that returns `int'.
11075      # Hopefully this check is robust enough.
11076      cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h.  */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h.  */
11082 #include <netdb.h>
11083
11084 _ACEOF
11085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11086   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11087
11088
11089 cat >>confdefs.h <<\_ACEOF
11090 #define GETHOSTBYADDR_R_RETURNS_INT 1
11091 _ACEOF
11092
11093 fi
11094 rm -f conftest*
11095
11096 fi
11097 done
11098
11099 fi
11100 rm -f conftest*
11101
11102
11103
11104 for ac_func in gethostname
11105 do
11106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11107 echo "$as_me:$LINENO: checking for $ac_func" >&5
11108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11109 if eval "test \"\${$as_ac_var+set}\" = set"; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112   if test x$gcc_no_link = xyes; then
11113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11115    { (exit 1); exit 1; }; }
11116 fi
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11125 #define $ac_func innocuous_$ac_func
11126
11127 /* System header to define __stub macros and hopefully few prototypes,
11128     which can conflict with char $ac_func (); below.
11129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11130     <limits.h> exists even on freestanding compilers.  */
11131
11132 #ifdef __STDC__
11133 # include <limits.h>
11134 #else
11135 # include <assert.h>
11136 #endif
11137
11138 #undef $ac_func
11139
11140 /* Override any gcc2 internal prototype to avoid an error.  */
11141 #ifdef __cplusplus
11142 extern "C"
11143 {
11144 #endif
11145 /* We use char because int might match the return type of a gcc2
11146    builtin and then its argument prototype would still apply.  */
11147 char $ac_func ();
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11152 choke me
11153 #else
11154 char (*f) () = $ac_func;
11155 #endif
11156 #ifdef __cplusplus
11157 }
11158 #endif
11159
11160 int
11161 main ()
11162 {
11163 return f != $ac_func;
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11170   (eval $ac_link) 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } &&
11177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179   (eval $ac_try) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; } &&
11183          { ac_try='test -s conftest$ac_exeext'
11184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185   (eval $ac_try) 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   eval "$as_ac_var=yes"
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194 eval "$as_ac_var=no"
11195 fi
11196 rm -f conftest.err conftest.$ac_objext \
11197       conftest$ac_exeext conftest.$ac_ext
11198 fi
11199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11201 if test `eval echo '${'$as_ac_var'}'` = yes; then
11202   cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11204 _ACEOF
11205
11206
11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_GETHOSTNAME 1
11209 _ACEOF
11210
11211      cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 #include <unistd.h>
11218
11219 _ACEOF
11220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11221   $EGREP "gethostname" >/dev/null 2>&1; then
11222
11223
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_GETHOSTNAME_DECL 1
11226 _ACEOF
11227
11228 fi
11229 rm -f conftest*
11230
11231 fi
11232 done
11233
11234
11235
11236 for ac_func in usleep
11237 do
11238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 echo "$as_me:$LINENO: checking for $ac_func" >&5
11240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_var+set}\" = set"; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   if test x$gcc_no_link = xyes; then
11245   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11247    { (exit 1); exit 1; }; }
11248 fi
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11257 #define $ac_func innocuous_$ac_func
11258
11259 /* System header to define __stub macros and hopefully few prototypes,
11260     which can conflict with char $ac_func (); below.
11261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11262     <limits.h> exists even on freestanding compilers.  */
11263
11264 #ifdef __STDC__
11265 # include <limits.h>
11266 #else
11267 # include <assert.h>
11268 #endif
11269
11270 #undef $ac_func
11271
11272 /* Override any gcc2 internal prototype to avoid an error.  */
11273 #ifdef __cplusplus
11274 extern "C"
11275 {
11276 #endif
11277 /* We use char because int might match the return type of a gcc2
11278    builtin and then its argument prototype would still apply.  */
11279 char $ac_func ();
11280 /* The GNU C library defines this for functions which it implements
11281     to always fail with ENOSYS.  Some functions are actually named
11282     something starting with __ and the normal name is an alias.  */
11283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 choke me
11285 #else
11286 char (*f) () = $ac_func;
11287 #endif
11288 #ifdef __cplusplus
11289 }
11290 #endif
11291
11292 int
11293 main ()
11294 {
11295 return f != $ac_func;
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>conftest.er1
11303   ac_status=$?
11304   grep -v '^ *+' conftest.er1 >conftest.err
11305   rm -f conftest.er1
11306   cat conftest.err >&5
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } &&
11309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311   (eval $ac_try) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; } &&
11315          { ac_try='test -s conftest$ac_exeext'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; }; then
11321   eval "$as_ac_var=yes"
11322 else
11323   echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 eval "$as_ac_var=no"
11327 fi
11328 rm -f conftest.err conftest.$ac_objext \
11329       conftest$ac_exeext conftest.$ac_ext
11330 fi
11331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11333 if test `eval echo '${'$as_ac_var'}'` = yes; then
11334   cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 _ACEOF
11337
11338      cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 #include <unistd.h>
11345
11346 _ACEOF
11347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11348   $EGREP "usleep" >/dev/null 2>&1; then
11349
11350
11351 cat >>confdefs.h <<\_ACEOF
11352 #define HAVE_USLEEP_DECL 1
11353 _ACEOF
11354
11355 fi
11356 rm -f conftest*
11357
11358 fi
11359 done
11360
11361
11362    # Look for these functions in the thread library, but only bother
11363    # if using POSIX threads.
11364    if test "$THREADS" = posix; then
11365       save_LIBS="$LIBS"
11366       LIBS="$LIBS $THREADLIBS"
11367       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11368       # E.g., Solaris.
11369
11370
11371 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11372 do
11373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 echo "$as_me:$LINENO: checking for $ac_func" >&5
11375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11376 if eval "test \"\${$as_ac_var+set}\" = set"; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   if test x$gcc_no_link = xyes; then
11380   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11382    { (exit 1); exit 1; }; }
11383 fi
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11392 #define $ac_func innocuous_$ac_func
11393
11394 /* System header to define __stub macros and hopefully few prototypes,
11395     which can conflict with char $ac_func (); below.
11396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397     <limits.h> exists even on freestanding compilers.  */
11398
11399 #ifdef __STDC__
11400 # include <limits.h>
11401 #else
11402 # include <assert.h>
11403 #endif
11404
11405 #undef $ac_func
11406
11407 /* Override any gcc2 internal prototype to avoid an error.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 {
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char $ac_func ();
11415 /* The GNU C library defines this for functions which it implements
11416     to always fail with ENOSYS.  Some functions are actually named
11417     something starting with __ and the normal name is an alias.  */
11418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11419 choke me
11420 #else
11421 char (*f) () = $ac_func;
11422 #endif
11423 #ifdef __cplusplus
11424 }
11425 #endif
11426
11427 int
11428 main ()
11429 {
11430 return f != $ac_func;
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11437   (eval $ac_link) 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446   (eval $ac_try) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; } &&
11450          { ac_try='test -s conftest$ac_exeext'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   eval "$as_ac_var=yes"
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 eval "$as_ac_var=no"
11462 fi
11463 rm -f conftest.err conftest.$ac_objext \
11464       conftest$ac_exeext conftest.$ac_ext
11465 fi
11466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11468 if test `eval echo '${'$as_ac_var'}'` = yes; then
11469   cat >>confdefs.h <<_ACEOF
11470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11471 _ACEOF
11472
11473 fi
11474 done
11475
11476
11477       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11478       # Solaris 7 the name librt is preferred.
11479
11480 for ac_func in sched_yield
11481 do
11482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11483 echo "$as_me:$LINENO: checking for $ac_func" >&5
11484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_var+set}\" = set"; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   if test x$gcc_no_link = xyes; then
11489   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11491    { (exit 1); exit 1; }; }
11492 fi
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h.  */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h.  */
11499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11501 #define $ac_func innocuous_$ac_func
11502
11503 /* System header to define __stub macros and hopefully few prototypes,
11504     which can conflict with char $ac_func (); below.
11505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11506     <limits.h> exists even on freestanding compilers.  */
11507
11508 #ifdef __STDC__
11509 # include <limits.h>
11510 #else
11511 # include <assert.h>
11512 #endif
11513
11514 #undef $ac_func
11515
11516 /* Override any gcc2 internal prototype to avoid an error.  */
11517 #ifdef __cplusplus
11518 extern "C"
11519 {
11520 #endif
11521 /* We use char because int might match the return type of a gcc2
11522    builtin and then its argument prototype would still apply.  */
11523 char $ac_func ();
11524 /* The GNU C library defines this for functions which it implements
11525     to always fail with ENOSYS.  Some functions are actually named
11526     something starting with __ and the normal name is an alias.  */
11527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11528 choke me
11529 #else
11530 char (*f) () = $ac_func;
11531 #endif
11532 #ifdef __cplusplus
11533 }
11534 #endif
11535
11536 int
11537 main ()
11538 {
11539 return f != $ac_func;
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11546   (eval $ac_link) 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } &&
11553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555   (eval $ac_try) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; } &&
11559          { ac_try='test -s conftest$ac_exeext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   eval "$as_ac_var=yes"
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 eval "$as_ac_var=no"
11571 fi
11572 rm -f conftest.err conftest.$ac_objext \
11573       conftest$ac_exeext conftest.$ac_ext
11574 fi
11575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11577 if test `eval echo '${'$as_ac_var'}'` = yes; then
11578   cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580 _ACEOF
11581
11582 else
11583
11584         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11585 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11586 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lrt  $LIBS"
11591 if test x$gcc_no_link = xyes; then
11592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11594    { (exit 1); exit 1; }; }
11595 fi
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602
11603 /* Override any gcc2 internal prototype to avoid an error.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 /* We use char because int might match the return type of a gcc2
11608    builtin and then its argument prototype would still apply.  */
11609 char sched_yield ();
11610 int
11611 main ()
11612 {
11613 sched_yield ();
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620   (eval $ac_link) 2>conftest.er1
11621   ac_status=$?
11622   grep -v '^ *+' conftest.er1 >conftest.err
11623   rm -f conftest.er1
11624   cat conftest.err >&5
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; } &&
11633          { ac_try='test -s conftest$ac_exeext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   ac_cv_lib_rt_sched_yield=yes
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 ac_cv_lib_rt_sched_yield=no
11645 fi
11646 rm -f conftest.err conftest.$ac_objext \
11647       conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11651 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11652 if test $ac_cv_lib_rt_sched_yield = yes; then
11653
11654           cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_SCHED_YIELD 1
11656 _ACEOF
11657
11658           THREADLIBS="$THREADLIBS -lrt"
11659           THREADSPEC="$THREADSPEC -lrt"
11660 else
11661
11662           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11663 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11664 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11665   echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667   ac_check_lib_save_LIBS=$LIBS
11668 LIBS="-lposix4  $LIBS"
11669 if test x$gcc_no_link = xyes; then
11670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11672    { (exit 1); exit 1; }; }
11673 fi
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h.  */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h.  */
11680
11681 /* Override any gcc2 internal prototype to avoid an error.  */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 /* We use char because int might match the return type of a gcc2
11686    builtin and then its argument prototype would still apply.  */
11687 char sched_yield ();
11688 int
11689 main ()
11690 {
11691 sched_yield ();
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11698   (eval $ac_link) 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } &&
11705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; } &&
11711          { ac_try='test -s conftest$ac_exeext'
11712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713   (eval $ac_try) 2>&5
11714   ac_status=$?
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); }; }; then
11717   ac_cv_lib_posix4_sched_yield=yes
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 ac_cv_lib_posix4_sched_yield=no
11723 fi
11724 rm -f conftest.err conftest.$ac_objext \
11725       conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11729 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11730 if test $ac_cv_lib_posix4_sched_yield = yes; then
11731
11732             cat >>confdefs.h <<\_ACEOF
11733 #define HAVE_SCHED_YIELD 1
11734 _ACEOF
11735
11736             THREADLIBS="$THREADLIBS -lposix4"
11737             THREADSPEC="$THREADSPEC -lposix4"
11738 fi
11739
11740 fi
11741
11742 fi
11743 done
11744
11745       LIBS="$save_LIBS"
11746
11747       # We can save a little space at runtime if the mutex has m_count
11748       # or __m_count.  This is a nice hack for Linux.
11749       cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #include <pthread.h>
11756 int
11757 main ()
11758 {
11759
11760           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11761
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768   (eval $ac_compile) 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; } &&
11781          { ac_try='test -s conftest.$ac_objext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787
11788 cat >>confdefs.h <<\_ACEOF
11789 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11790 _ACEOF
11791
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796
11797         cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 #include <pthread.h>
11804 int
11805 main ()
11806 {
11807
11808             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11809
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816   (eval $ac_compile) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; } &&
11829          { ac_try='test -s conftest.$ac_objext'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835
11836 cat >>confdefs.h <<\_ACEOF
11837 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11838 _ACEOF
11839
11840 else
11841   echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 fi
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 fi
11847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848    fi
11849
11850    # We require a way to get the time.
11851    time_found=no
11852
11853
11854
11855 for ac_func in gettimeofday time ftime
11856 do
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11860 if eval "test \"\${$as_ac_var+set}\" = set"; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   if test x$gcc_no_link = xyes; then
11864   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11866    { (exit 1); exit 1; }; }
11867 fi
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11876 #define $ac_func innocuous_$ac_func
11877
11878 /* System header to define __stub macros and hopefully few prototypes,
11879     which can conflict with char $ac_func (); below.
11880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881     <limits.h> exists even on freestanding compilers.  */
11882
11883 #ifdef __STDC__
11884 # include <limits.h>
11885 #else
11886 # include <assert.h>
11887 #endif
11888
11889 #undef $ac_func
11890
11891 /* Override any gcc2 internal prototype to avoid an error.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 {
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char $ac_func ();
11899 /* The GNU C library defines this for functions which it implements
11900     to always fail with ENOSYS.  Some functions are actually named
11901     something starting with __ and the normal name is an alias.  */
11902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11903 choke me
11904 #else
11905 char (*f) () = $ac_func;
11906 #endif
11907 #ifdef __cplusplus
11908 }
11909 #endif
11910
11911 int
11912 main ()
11913 {
11914 return f != $ac_func;
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest$ac_exeext'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; }; then
11940   eval "$as_ac_var=yes"
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 eval "$as_ac_var=no"
11946 fi
11947 rm -f conftest.err conftest.$ac_objext \
11948       conftest$ac_exeext conftest.$ac_ext
11949 fi
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11956  time_found=yes
11957 fi
11958 done
11959
11960    if test "$time_found" = no; then
11961       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11962 echo "$as_me: error: no function found to get the time" >&2;}
11963    { (exit 1); exit 1; }; }
11964    fi
11965
11966
11967 for ac_func in memmove
11968 do
11969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972 if eval "test \"\${$as_ac_var+set}\" = set"; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   if test x$gcc_no_link = xyes; then
11976   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11978    { (exit 1); exit 1; }; }
11979 fi
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11988 #define $ac_func innocuous_$ac_func
11989
11990 /* System header to define __stub macros and hopefully few prototypes,
11991     which can conflict with char $ac_func (); below.
11992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993     <limits.h> exists even on freestanding compilers.  */
11994
11995 #ifdef __STDC__
11996 # include <limits.h>
11997 #else
11998 # include <assert.h>
11999 #endif
12000
12001 #undef $ac_func
12002
12003 /* Override any gcc2 internal prototype to avoid an error.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 {
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009    builtin and then its argument prototype would still apply.  */
12010 char $ac_func ();
12011 /* The GNU C library defines this for functions which it implements
12012     to always fail with ENOSYS.  Some functions are actually named
12013     something starting with __ and the normal name is an alias.  */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 choke me
12016 #else
12017 char (*f) () = $ac_func;
12018 #endif
12019 #ifdef __cplusplus
12020 }
12021 #endif
12022
12023 int
12024 main ()
12025 {
12026 return f != $ac_func;
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033   (eval $ac_link) 2>conftest.er1
12034   ac_status=$?
12035   grep -v '^ *+' conftest.er1 >conftest.err
12036   rm -f conftest.er1
12037   cat conftest.err >&5
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); } &&
12040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; } &&
12046          { ac_try='test -s conftest$ac_exeext'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; }; then
12052   eval "$as_ac_var=yes"
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057 eval "$as_ac_var=no"
12058 fi
12059 rm -f conftest.err conftest.$ac_objext \
12060       conftest$ac_exeext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12064 if test `eval echo '${'$as_ac_var'}'` = yes; then
12065   cat >>confdefs.h <<_ACEOF
12066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12067 _ACEOF
12068
12069 fi
12070 done
12071
12072
12073    # We require memcpy.
12074    memcpy_found=no
12075
12076 for ac_func in memcpy
12077 do
12078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079 echo "$as_me:$LINENO: checking for $ac_func" >&5
12080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12081 if eval "test \"\${$as_ac_var+set}\" = set"; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   if test x$gcc_no_link = xyes; then
12085   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12087    { (exit 1); exit 1; }; }
12088 fi
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12097 #define $ac_func innocuous_$ac_func
12098
12099 /* System header to define __stub macros and hopefully few prototypes,
12100     which can conflict with char $ac_func (); below.
12101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102     <limits.h> exists even on freestanding compilers.  */
12103
12104 #ifdef __STDC__
12105 # include <limits.h>
12106 #else
12107 # include <assert.h>
12108 #endif
12109
12110 #undef $ac_func
12111
12112 /* Override any gcc2 internal prototype to avoid an error.  */
12113 #ifdef __cplusplus
12114 extern "C"
12115 {
12116 #endif
12117 /* We use char because int might match the return type of a gcc2
12118    builtin and then its argument prototype would still apply.  */
12119 char $ac_func ();
12120 /* The GNU C library defines this for functions which it implements
12121     to always fail with ENOSYS.  Some functions are actually named
12122     something starting with __ and the normal name is an alias.  */
12123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12124 choke me
12125 #else
12126 char (*f) () = $ac_func;
12127 #endif
12128 #ifdef __cplusplus
12129 }
12130 #endif
12131
12132 int
12133 main ()
12134 {
12135 return f != $ac_func;
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142   (eval $ac_link) 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157   (eval $ac_try) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); }; }; then
12161   eval "$as_ac_var=yes"
12162 else
12163   echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 eval "$as_ac_var=no"
12167 fi
12168 rm -f conftest.err conftest.$ac_objext \
12169       conftest$ac_exeext conftest.$ac_ext
12170 fi
12171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12173 if test `eval echo '${'$as_ac_var'}'` = yes; then
12174   cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176 _ACEOF
12177  memcpy_found=yes
12178 fi
12179 done
12180
12181    if test "$memcpy_found" = no; then
12182       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12183 echo "$as_me: error: memcpy is required" >&2;}
12184    { (exit 1); exit 1; }; }
12185    fi
12186
12187    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12188 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12189 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-ldl  $LIBS"
12194 if test x$gcc_no_link = xyes; then
12195   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12197    { (exit 1); exit 1; }; }
12198 fi
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205
12206 /* Override any gcc2 internal prototype to avoid an error.  */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 /* We use char because int might match the return type of a gcc2
12211    builtin and then its argument prototype would still apply.  */
12212 char dlopen ();
12213 int
12214 main ()
12215 {
12216 dlopen ();
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223   (eval $ac_link) 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest$ac_exeext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   ac_cv_lib_dl_dlopen=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 ac_cv_lib_dl_dlopen=no
12248 fi
12249 rm -f conftest.err conftest.$ac_objext \
12250       conftest$ac_exeext conftest.$ac_ext
12251 LIBS=$ac_check_lib_save_LIBS
12252 fi
12253 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12254 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12255 if test $ac_cv_lib_dl_dlopen = yes; then
12256
12257
12258 cat >>confdefs.h <<\_ACEOF
12259 #define HAVE_DLOPEN 1
12260 _ACEOF
12261
12262 fi
12263
12264
12265    # Some library-finding code we stole from Tcl.
12266    #--------------------------------------------------------------------
12267    #    Check for the existence of the -lsocket and -lnsl libraries.
12268    #    The order here is important, so that they end up in the right
12269    #    order in the command line generated by make.  Here are some
12270    #    special considerations:
12271    #    1. Use "connect" and "accept" to check for -lsocket, and
12272    #       "gethostbyname" to check for -lnsl.
12273    #    2. Use each function name only once:  can't redo a check because
12274    #       autoconf caches the results of the last check and won't redo it.
12275    #    3. Use -lnsl and -lsocket only if they supply procedures that
12276    #       aren't already present in the normal libraries.  This is because
12277    #       IRIX 5.2 has libraries, but they aren't needed and they're
12278    #       bogus:  they goof up name resolution if used.
12279    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12280    #       To get around this problem, check for both libraries together
12281    #       if -lsocket doesn't work by itself.
12282    #--------------------------------------------------------------------
12283
12284    echo "$as_me:$LINENO: checking for socket libraries" >&5
12285 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12286 if test "${gcj_cv_lib_sockets+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   gcj_cv_lib_sockets=
12290      gcj_checkBoth=0
12291      unset ac_cv_func_connect
12292      echo "$as_me:$LINENO: checking for connect" >&5
12293 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12294 if test "${ac_cv_func_connect+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   if test x$gcc_no_link = xyes; then
12298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12300    { (exit 1); exit 1; }; }
12301 fi
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12310 #define connect innocuous_connect
12311
12312 /* System header to define __stub macros and hopefully few prototypes,
12313     which can conflict with char connect (); below.
12314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12315     <limits.h> exists even on freestanding compilers.  */
12316
12317 #ifdef __STDC__
12318 # include <limits.h>
12319 #else
12320 # include <assert.h>
12321 #endif
12322
12323 #undef connect
12324
12325 /* Override any gcc2 internal prototype to avoid an error.  */
12326 #ifdef __cplusplus
12327 extern "C"
12328 {
12329 #endif
12330 /* We use char because int might match the return type of a gcc2
12331    builtin and then its argument prototype would still apply.  */
12332 char connect ();
12333 /* The GNU C library defines this for functions which it implements
12334     to always fail with ENOSYS.  Some functions are actually named
12335     something starting with __ and the normal name is an alias.  */
12336 #if defined (__stub_connect) || defined (__stub___connect)
12337 choke me
12338 #else
12339 char (*f) () = connect;
12340 #endif
12341 #ifdef __cplusplus
12342 }
12343 #endif
12344
12345 int
12346 main ()
12347 {
12348 return f != connect;
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355   (eval $ac_link) 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } &&
12362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest$ac_exeext'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_cv_func_connect=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_func_connect=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext \
12382       conftest$ac_exeext conftest.$ac_ext
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12385 echo "${ECHO_T}$ac_cv_func_connect" >&6
12386 if test $ac_cv_func_connect = yes; then
12387   gcj_checkSocket=0
12388 else
12389   gcj_checkSocket=1
12390 fi
12391
12392      if test "$gcj_checkSocket" = 1; then
12393          unset ac_cv_func_connect
12394          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12395 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12396 if test "${ac_cv_lib_socket_main+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-lsocket  $LIBS"
12401 if test x$gcc_no_link = xyes; then
12402   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12404    { (exit 1); exit 1; }; }
12405 fi
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412
12413
12414 int
12415 main ()
12416 {
12417 main ();
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424   (eval $ac_link) 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; } &&
12437          { ac_try='test -s conftest$ac_exeext'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   ac_cv_lib_socket_main=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_cv_lib_socket_main=no
12449 fi
12450 rm -f conftest.err conftest.$ac_objext \
12451       conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12453 fi
12454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12455 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12456 if test $ac_cv_lib_socket_main = yes; then
12457   gcj_cv_lib_sockets="-lsocket"
12458 else
12459   gcj_checkBoth=1
12460 fi
12461
12462      fi
12463      if test "$gcj_checkBoth" = 1; then
12464          gcj_oldLibs=$LIBS
12465          LIBS="$LIBS -lsocket -lnsl"
12466          unset ac_cv_func_accept
12467          echo "$as_me:$LINENO: checking for accept" >&5
12468 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12469 if test "${ac_cv_func_accept+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   if test x$gcc_no_link = xyes; then
12473   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12475    { (exit 1); exit 1; }; }
12476 fi
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12485 #define accept innocuous_accept
12486
12487 /* System header to define __stub macros and hopefully few prototypes,
12488     which can conflict with char accept (); below.
12489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12490     <limits.h> exists even on freestanding compilers.  */
12491
12492 #ifdef __STDC__
12493 # include <limits.h>
12494 #else
12495 # include <assert.h>
12496 #endif
12497
12498 #undef accept
12499
12500 /* Override any gcc2 internal prototype to avoid an error.  */
12501 #ifdef __cplusplus
12502 extern "C"
12503 {
12504 #endif
12505 /* We use char because int might match the return type of a gcc2
12506    builtin and then its argument prototype would still apply.  */
12507 char accept ();
12508 /* The GNU C library defines this for functions which it implements
12509     to always fail with ENOSYS.  Some functions are actually named
12510     something starting with __ and the normal name is an alias.  */
12511 #if defined (__stub_accept) || defined (__stub___accept)
12512 choke me
12513 #else
12514 char (*f) () = accept;
12515 #endif
12516 #ifdef __cplusplus
12517 }
12518 #endif
12519
12520 int
12521 main ()
12522 {
12523 return f != accept;
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530   (eval $ac_link) 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; } &&
12543          { ac_try='test -s conftest$ac_exeext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   ac_cv_func_accept=yes
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 ac_cv_func_accept=no
12555 fi
12556 rm -f conftest.err conftest.$ac_objext \
12557       conftest$ac_exeext conftest.$ac_ext
12558 fi
12559 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12560 echo "${ECHO_T}$ac_cv_func_accept" >&6
12561 if test $ac_cv_func_accept = yes; then
12562   gcj_checkNsl=0
12563                         gcj_cv_lib_sockets="-lsocket -lnsl"
12564 fi
12565
12566          unset ac_cv_func_accept
12567          LIBS=$gcj_oldLibs
12568      fi
12569      unset ac_cv_func_gethostbyname
12570      gcj_oldLibs=$LIBS
12571      LIBS="$LIBS $gcj_cv_lib_sockets"
12572      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12573 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12574 if test "${ac_cv_func_gethostbyname+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   if test x$gcc_no_link = xyes; then
12578   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12580    { (exit 1); exit 1; }; }
12581 fi
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12590 #define gethostbyname innocuous_gethostbyname
12591
12592 /* System header to define __stub macros and hopefully few prototypes,
12593     which can conflict with char gethostbyname (); below.
12594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12595     <limits.h> exists even on freestanding compilers.  */
12596
12597 #ifdef __STDC__
12598 # include <limits.h>
12599 #else
12600 # include <assert.h>
12601 #endif
12602
12603 #undef gethostbyname
12604
12605 /* Override any gcc2 internal prototype to avoid an error.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 {
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611    builtin and then its argument prototype would still apply.  */
12612 char gethostbyname ();
12613 /* The GNU C library defines this for functions which it implements
12614     to always fail with ENOSYS.  Some functions are actually named
12615     something starting with __ and the normal name is an alias.  */
12616 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12617 choke me
12618 #else
12619 char (*f) () = gethostbyname;
12620 #endif
12621 #ifdef __cplusplus
12622 }
12623 #endif
12624
12625 int
12626 main ()
12627 {
12628 return f != gethostbyname;
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext conftest$ac_exeext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12635   (eval $ac_link) 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   ac_cv_func_gethostbyname=yes
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_cv_func_gethostbyname=no
12660 fi
12661 rm -f conftest.err conftest.$ac_objext \
12662       conftest$ac_exeext conftest.$ac_ext
12663 fi
12664 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12665 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12666 if test $ac_cv_func_gethostbyname = yes; then
12667   :
12668 else
12669   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12670 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12671 if test "${ac_cv_lib_nsl_main+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-lnsl  $LIBS"
12676 if test x$gcc_no_link = xyes; then
12677   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12679    { (exit 1); exit 1; }; }
12680 fi
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h.  */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h.  */
12687
12688
12689 int
12690 main ()
12691 {
12692 main ();
12693   ;
12694   return 0;
12695 }
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699   (eval $ac_link) 2>conftest.er1
12700   ac_status=$?
12701   grep -v '^ *+' conftest.er1 >conftest.err
12702   rm -f conftest.er1
12703   cat conftest.err >&5
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); } &&
12706          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   ac_cv_lib_nsl_main=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_cv_lib_nsl_main=no
12724 fi
12725 rm -f conftest.err conftest.$ac_objext \
12726       conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12728 fi
12729 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12730 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12731 if test $ac_cv_lib_nsl_main = yes; then
12732   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12733 fi
12734
12735 fi
12736
12737      unset ac_cv_func_gethostbyname
12738      LIBS=$gcj_oldLIBS
12739
12740 fi
12741 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12742 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12743    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12744
12745    if test "$with_system_zlib" = yes; then
12746       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12747 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12748 if test "${ac_cv_lib_z_deflate+set}" = set; then
12749   echo $ECHO_N "(cached) $ECHO_C" >&6
12750 else
12751   ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-lz  $LIBS"
12753 if test x$gcc_no_link = xyes; then
12754   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12756    { (exit 1); exit 1; }; }
12757 fi
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h.  */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h.  */
12764
12765 /* Override any gcc2 internal prototype to avoid an error.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770    builtin and then its argument prototype would still apply.  */
12771 char deflate ();
12772 int
12773 main ()
12774 {
12775 deflate ();
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782   (eval $ac_link) 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791   (eval $ac_try) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; } &&
12795          { ac_try='test -s conftest$ac_exeext'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ac_cv_lib_z_deflate=yes
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_cv_lib_z_deflate=no
12807 fi
12808 rm -f conftest.err conftest.$ac_objext \
12809       conftest$ac_exeext conftest.$ac_ext
12810 LIBS=$ac_check_lib_save_LIBS
12811 fi
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12813 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12814 if test $ac_cv_lib_z_deflate = yes; then
12815   ZLIBSPEC=-lz
12816 else
12817   ZLIBSPEC=
12818 fi
12819
12820    fi
12821
12822    # Test for Gtk stuff, if asked for.
12823    if test "$use_gtk_awt" = yes; then
12824
12825   succeeded=no
12826
12827   if test -z "$PKG_CONFIG"; then
12828     # Extract the first word of "pkg-config", so it can be a program name with args.
12829 set dummy pkg-config; ac_word=$2
12830 echo "$as_me:$LINENO: checking for $ac_word" >&5
12831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   case $PKG_CONFIG in
12836   [\\/]* | ?:[\\/]*)
12837   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12838   ;;
12839   *)
12840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12842 do
12843   IFS=$as_save_IFS
12844   test -z "$as_dir" && as_dir=.
12845   for ac_exec_ext in '' $ac_executable_extensions; do
12846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849     break 2
12850   fi
12851 done
12852 done
12853
12854   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12855   ;;
12856 esac
12857 fi
12858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859
12860 if test -n "$PKG_CONFIG"; then
12861   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12862 echo "${ECHO_T}$PKG_CONFIG" >&6
12863 else
12864   echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6
12866 fi
12867
12868   fi
12869
12870   if test "$PKG_CONFIG" = "no" ; then
12871      echo "*** The pkg-config script could not be found. Make sure it is"
12872      echo "*** in your path, or set the PKG_CONFIG environment variable"
12873      echo "*** to the full path to pkg-config."
12874      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12875   else
12876      PKG_CONFIG_MIN_VERSION=0.9.0
12877      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12878         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12879 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12880
12881         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12882             echo "$as_me:$LINENO: result: yes" >&5
12883 echo "${ECHO_T}yes" >&6
12884             succeeded=yes
12885
12886             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12887 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12888             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12889             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12890 echo "${ECHO_T}$GTK_CFLAGS" >&6
12891
12892             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12893 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12894             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12895             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12896 echo "${ECHO_T}$GTK_LIBS" >&6
12897         else
12898             GTK_CFLAGS=""
12899             GTK_LIBS=""
12900             ## If we have a custom action on failure, don't print errors, but
12901             ## do set a variable so people can do so.
12902             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12903             echo $GTK_PKG_ERRORS
12904         fi
12905
12906
12907
12908      else
12909         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12910         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12911      fi
12912   fi
12913
12914   if test $succeeded = yes; then
12915      :
12916   else
12917      { { 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
12918 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;}
12919    { (exit 1); exit 1; }; }
12920   fi
12921
12922
12923
12924
12925
12926   succeeded=no
12927
12928   if test -z "$PKG_CONFIG"; then
12929     # Extract the first word of "pkg-config", so it can be a program name with args.
12930 set dummy pkg-config; ac_word=$2
12931 echo "$as_me:$LINENO: checking for $ac_word" >&5
12932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12934   echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936   case $PKG_CONFIG in
12937   [\\/]* | ?:[\\/]*)
12938   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12939   ;;
12940   *)
12941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $PATH
12943 do
12944   IFS=$as_save_IFS
12945   test -z "$as_dir" && as_dir=.
12946   for ac_exec_ext in '' $ac_executable_extensions; do
12947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950     break 2
12951   fi
12952 done
12953 done
12954
12955   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12956   ;;
12957 esac
12958 fi
12959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12960
12961 if test -n "$PKG_CONFIG"; then
12962   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12963 echo "${ECHO_T}$PKG_CONFIG" >&6
12964 else
12965   echo "$as_me:$LINENO: result: no" >&5
12966 echo "${ECHO_T}no" >&6
12967 fi
12968
12969   fi
12970
12971   if test "$PKG_CONFIG" = "no" ; then
12972      echo "*** The pkg-config script could not be found. Make sure it is"
12973      echo "*** in your path, or set the PKG_CONFIG environment variable"
12974      echo "*** to the full path to pkg-config."
12975      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12976   else
12977      PKG_CONFIG_MIN_VERSION=0.9.0
12978      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12979         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12980 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12981
12982         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12983             echo "$as_me:$LINENO: result: yes" >&5
12984 echo "${ECHO_T}yes" >&6
12985             succeeded=yes
12986
12987             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12988 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12989             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12990             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12991 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12992
12993             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12994 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12995             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12996             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12997 echo "${ECHO_T}$GLIB_LIBS" >&6
12998         else
12999             GLIB_CFLAGS=""
13000             GLIB_LIBS=""
13001             ## If we have a custom action on failure, don't print errors, but
13002             ## do set a variable so people can do so.
13003             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13004             echo $GLIB_PKG_ERRORS
13005         fi
13006
13007
13008
13009      else
13010         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13011         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13012      fi
13013   fi
13014
13015   if test $succeeded = yes; then
13016      :
13017   else
13018      { { 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
13019 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;}
13020    { (exit 1); exit 1; }; }
13021   fi
13022
13023
13024
13025
13026
13027   succeeded=no
13028
13029   if test -z "$PKG_CONFIG"; then
13030     # Extract the first word of "pkg-config", so it can be a program name with args.
13031 set dummy pkg-config; ac_word=$2
13032 echo "$as_me:$LINENO: checking for $ac_word" >&5
13033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   case $PKG_CONFIG in
13038   [\\/]* | ?:[\\/]*)
13039   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13040   ;;
13041   *)
13042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045   IFS=$as_save_IFS
13046   test -z "$as_dir" && as_dir=.
13047   for ac_exec_ext in '' $ac_executable_extensions; do
13048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13049     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13051     break 2
13052   fi
13053 done
13054 done
13055
13056   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13057   ;;
13058 esac
13059 fi
13060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13061
13062 if test -n "$PKG_CONFIG"; then
13063   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13064 echo "${ECHO_T}$PKG_CONFIG" >&6
13065 else
13066   echo "$as_me:$LINENO: result: no" >&5
13067 echo "${ECHO_T}no" >&6
13068 fi
13069
13070   fi
13071
13072   if test "$PKG_CONFIG" = "no" ; then
13073      echo "*** The pkg-config script could not be found. Make sure it is"
13074      echo "*** in your path, or set the PKG_CONFIG environment variable"
13075      echo "*** to the full path to pkg-config."
13076      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13077   else
13078      PKG_CONFIG_MIN_VERSION=0.9.0
13079      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13080         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13081 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13082
13083         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13084             echo "$as_me:$LINENO: result: yes" >&5
13085 echo "${ECHO_T}yes" >&6
13086             succeeded=yes
13087
13088             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13089 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13090             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13091             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13092 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13093
13094             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13095 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13096             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13097             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13098 echo "${ECHO_T}$LIBART_LIBS" >&6
13099         else
13100             LIBART_CFLAGS=""
13101             LIBART_LIBS=""
13102             ## If we have a custom action on failure, don't print errors, but
13103             ## do set a variable so people can do so.
13104             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13105             echo $LIBART_PKG_ERRORS
13106         fi
13107
13108
13109
13110      else
13111         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13112         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13113      fi
13114   fi
13115
13116   if test $succeeded = yes; then
13117      :
13118   else
13119      { { 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
13120 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;}
13121    { (exit 1); exit 1; }; }
13122   fi
13123
13124
13125
13126    fi
13127
13128    # On Solaris, and maybe other architectures, the Boehm collector
13129    # requires -ldl.
13130    if test "$GC" = boehm; then
13131       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13132 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13133 if test "${ac_cv_lib_dl_main+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-ldl  $LIBS"
13138 if test x$gcc_no_link = xyes; then
13139   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13141    { (exit 1); exit 1; }; }
13142 fi
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149
13150
13151 int
13152 main ()
13153 {
13154 main ();
13155   ;
13156   return 0;
13157 }
13158 _ACEOF
13159 rm -f conftest.$ac_objext conftest$ac_exeext
13160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13161   (eval $ac_link) 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } &&
13168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; } &&
13174          { ac_try='test -s conftest$ac_exeext'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   ac_cv_lib_dl_main=yes
13181 else
13182   echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185 ac_cv_lib_dl_main=no
13186 fi
13187 rm -f conftest.err conftest.$ac_objext \
13188       conftest$ac_exeext conftest.$ac_ext
13189 LIBS=$ac_check_lib_save_LIBS
13190 fi
13191 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13192 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13193 if test $ac_cv_lib_dl_main = yes; then
13194   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13195 fi
13196
13197    fi
13198 fi
13199
13200
13201 if test "$supply_backtrace" = yes; then
13202   SUPPLY_BACKTRACE_TRUE=
13203   SUPPLY_BACKTRACE_FALSE='#'
13204 else
13205   SUPPLY_BACKTRACE_TRUE='#'
13206   SUPPLY_BACKTRACE_FALSE=
13207 fi
13208
13209
13210 if test -z "${with_multisubdir}"; then
13211    builddotdot=.
13212 else
13213    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13214 fi
13215
13216 NATIVE=yes
13217
13218 # Which gcj do we use?
13219 which_gcj=default
13220 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13221 if test -n "${with_cross_host}"; then
13222   # We are being configured with a cross compiler. We can't
13223   # use ac_exeext, because that is for the target platform.
13224   NATIVE=no
13225   cross_host_exeext=
13226   case "${with_cross_host}" in
13227      *mingw* | *cygwin*)
13228          cross_host_exeext=.exe
13229      ;;
13230   esac
13231   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13232      if test x"$build_noncanonical" = x"$with_cross_host"; then
13233         # Ordinary cross (host!=target and host=build)
13234         which_gcj=built
13235      else
13236         # Canadian cross (host!=target and host!=build)
13237         which_gcj=cross
13238      fi
13239   else
13240      which_gcj=cross
13241   fi
13242 else
13243   # We are being configured with a native or crossed-native compiler
13244   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13245      if test x"$build" = x"$host"; then
13246         # True native build (host=target and host=build)
13247         which_gcj=built
13248      else
13249         # Crossed-native build (host=target and host!=build)
13250         which_gcj=cross
13251      fi
13252   else
13253      which_gcj=path
13254   fi
13255 fi
13256 case "${which_gcj}" in
13257    built)
13258       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13259       GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13260       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13261    ;;
13262    cross)
13263       if test "x${with_newlib}" = "xyes"; then
13264          # FIXME (comment): Why is this needed?
13265          GCC_UNWIND_INCLUDE=
13266          GCJ="${target_noncanonical}-gcj"
13267       else
13268          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13269       fi
13270       ZIP=jar
13271       GCJH='$(target_noncanonical)-gcjh'
13272    ;;
13273    path)
13274       GCJ="gcj -B`${PWDCMD-pwd}`/"
13275       ## In this case, gcj is found outside the build tree.  However, zip is
13276       ## found in the build tree.
13277       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13278       GCJH=gcjh
13279    ;;
13280 esac
13281
13282
13283
13284
13285 # Create it, so that compile/link tests don't fail
13286 test -f libgcj.spec || touch libgcj.spec
13287
13288 # We must search the source tree for java.lang, since we still don't
13289 # have libgcj.jar nor java/lang/*.class
13290 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13291 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13292
13293 # Since some classes depend on this one, we need its source available
13294 # before we can do any GCJ compilation test :-(
13295 if test ! -f gnu/classpath/Configuration.java; then
13296   test -d gnu || mkdir gnu
13297   test -d gnu/classpath || mkdir gnu/classpath
13298   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13299       -e 's,@TOOLKIT@,$TOOLKIT,' \
13300         < $srcdir/gnu/classpath/Configuration.java.in \
13301         > gnu/classpath/Configuration.java
13302   # We do not want to redirect the output of the grep below to /dev/null,
13303   # but we add /dev/null to the input list so that grep will print the
13304   # filename of Configuration.java in case it finds any matches.
13305   if grep @ gnu/classpath/Configuration.java /dev/null; then
13306     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13307 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13308    { (exit 1); exit 1; }; }
13309   fi
13310 fi
13311
13312 if test -n "$ac_tool_prefix"; then
13313   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13315 echo "$as_me:$LINENO: checking for $ac_word" >&5
13316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13317 if test "${ac_cv_prog_GCJ+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   if test -n "$GCJ"; then
13321   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13325 do
13326   IFS=$as_save_IFS
13327   test -z "$as_dir" && as_dir=.
13328   for ac_exec_ext in '' $ac_executable_extensions; do
13329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13332     break 2
13333   fi
13334 done
13335 done
13336
13337 fi
13338 fi
13339 GCJ=$ac_cv_prog_GCJ
13340 if test -n "$GCJ"; then
13341   echo "$as_me:$LINENO: result: $GCJ" >&5
13342 echo "${ECHO_T}$GCJ" >&6
13343 else
13344   echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6
13346 fi
13347
13348 fi
13349 if test -z "$ac_cv_prog_GCJ"; then
13350   ac_ct_GCJ=$GCJ
13351   # Extract the first word of "gcj", so it can be a program name with args.
13352 set dummy gcj; ac_word=$2
13353 echo "$as_me:$LINENO: checking for $ac_word" >&5
13354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13355 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13356   echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358   if test -n "$ac_ct_GCJ"; then
13359   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13360 else
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13363 do
13364   IFS=$as_save_IFS
13365   test -z "$as_dir" && as_dir=.
13366   for ac_exec_ext in '' $ac_executable_extensions; do
13367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368     ac_cv_prog_ac_ct_GCJ="gcj"
13369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13370     break 2
13371   fi
13372 done
13373 done
13374
13375   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13376 fi
13377 fi
13378 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13379 if test -n "$ac_ct_GCJ"; then
13380   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13381 echo "${ECHO_T}$ac_ct_GCJ" >&6
13382 else
13383   echo "$as_me:$LINENO: result: no" >&5
13384 echo "${ECHO_T}no" >&6
13385 fi
13386
13387   GCJ=$ac_ct_GCJ
13388 else
13389   GCJ="$ac_cv_prog_GCJ"
13390 fi
13391
13392   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13393
13394
13395
13396
13397 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13398
13399 echo "$as_me:$LINENO: checking size of void *" >&5
13400 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13401 if test "${ac_cv_sizeof_void_p+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 #include "confdefs.h"
13412 #include <sys/types.h>
13413
13414
13415 int
13416 main ()
13417 {
13418 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; } &&
13438          { ac_try='test -s conftest.$ac_objext'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; }; then
13444   ac_cv_sizeof_void_p=$ac_size
13445 else
13446   echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 fi
13450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13451   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13452 done
13453
13454 fi
13455
13456 if test x$ac_cv_sizeof_void_p = x ; then
13457   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13458 echo "$as_me: error: cannot determine a size for void *" >&2;}
13459    { (exit 1); exit 1; }; }
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13462 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13463
13464 cat >>confdefs.h <<_ACEOF
13465 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13466 _ACEOF
13467
13468
13469
13470 ZLIBS=
13471 SYS_ZLIBS=
13472 ZINCS=
13473
13474 if test -z "$ZLIBSPEC"; then
13475    # Use zlib from the GCC tree.
13476    ZINCS='-I$(top_srcdir)/../zlib'
13477    ZLIBS=../zlib/libzgcj_convenience.la
13478 else
13479    # System's zlib.
13480    SYS_ZLIBS="$ZLIBSPEC"
13481 fi
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492 if test "$NATIVE" = yes; then
13493   NATIVE_TRUE=
13494   NATIVE_FALSE='#'
13495 else
13496   NATIVE_TRUE='#'
13497   NATIVE_FALSE=
13498 fi
13499
13500
13501
13502 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13503   NEEDS_DATA_START_TRUE=
13504   NEEDS_DATA_START_FALSE='#'
13505 else
13506   NEEDS_DATA_START_TRUE='#'
13507   NEEDS_DATA_START_FALSE=
13508 fi
13509
13510
13511
13512 # Process the option "--enable-version-specific-runtime-libs"
13513 # Calculate toolexeclibdir
13514 case ${version_specific_libs} in
13515   yes)
13516     # Need the gcc compiler version to know where to install libraries
13517     # and header files if --enable-version-specific-runtime-libs option
13518     # is selected.
13519     includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13520     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13521     toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13522     toolexeclibdir=$toolexecmainlibdir
13523     ;;
13524   no)
13525     if test -n "$with_cross_host" &&
13526        test x"$with_cross_host" != x"no"; then
13527       # Install a library built with a cross compiler in tooldir, not libdir.
13528       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13529       toolexecmainlibdir='$(toolexecdir)/lib'
13530     else
13531       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13532       toolexecmainlibdir='$(libdir)'
13533     fi
13534     multi_os_directory=`$CC -print-multi-os-directory`
13535     case $multi_os_directory in
13536       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13537       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13538     esac
13539     ;;
13540 esac
13541
13542
13543
13544
13545 # Determine gcj version number.
13546 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13547 GCJVERSION=$gcjversion
13548
13549
13550 cat >>confdefs.h <<_ACEOF
13551 #define GCJVERSION "$GCJVERSION"
13552 _ACEOF
13553
13554
13555 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13556 # On that system, sys/ioctl.h will not include sys/filio.h unless
13557 # BSD_COMP is defined; just including sys/filio.h is simpler.
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
13578 do
13579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581   echo "$as_me:$LINENO: checking for $ac_header" >&5
13582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 fi
13586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13588 else
13589   # Is the header compilable?
13590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598 $ac_includes_default
13599 #include <$ac_header>
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; } &&
13616          { ac_try='test -s conftest.$ac_objext'
13617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618   (eval $ac_try) 2>&5
13619   ac_status=$?
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); }; }; then
13622   ac_header_compiler=yes
13623 else
13624   echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 ac_header_compiler=no
13628 fi
13629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6
13632
13633 # Is the header present?
13634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13636 cat >conftest.$ac_ext <<_ACEOF
13637 /* confdefs.h.  */
13638 _ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h.  */
13642 #include <$ac_header>
13643 _ACEOF
13644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } >/dev/null; then
13652   if test -s conftest.err; then
13653     ac_cpp_err=$ac_c_preproc_warn_flag
13654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13655   else
13656     ac_cpp_err=
13657   fi
13658 else
13659   ac_cpp_err=yes
13660 fi
13661 if test -z "$ac_cpp_err"; then
13662   ac_header_preproc=yes
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667   ac_header_preproc=no
13668 fi
13669 rm -f conftest.err conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13671 echo "${ECHO_T}$ac_header_preproc" >&6
13672
13673 # So?  What about this header?
13674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675   yes:no: )
13676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13680     ac_header_preproc=yes
13681     ;;
13682   no:yes:* )
13683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13695     (
13696       cat <<\_ASBOX
13697 ## ---------------------------------- ##
13698 ## Report this to the libjava lists.  ##
13699 ## ---------------------------------- ##
13700 _ASBOX
13701     ) |
13702       sed "s/^/$as_me: WARNING:     /" >&2
13703     ;;
13704 esac
13705 echo "$as_me:$LINENO: checking for $ac_header" >&5
13706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   eval "$as_ac_Header=\$ac_header_preproc"
13711 fi
13712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13714
13715 fi
13716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13717   cat >>confdefs.h <<_ACEOF
13718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13719 _ACEOF
13720
13721 fi
13722
13723 done
13724
13725 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13726 # for now.  If you change this, you also must update natFile.cc.
13727
13728 for ac_header in dirent.h
13729 do
13730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13732   echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735   echo $ECHO_N "(cached) $ECHO_C" >&6
13736 fi
13737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13739 else
13740   # Is the header compilable?
13741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 $ac_includes_default
13750 #include <$ac_header>
13751 _ACEOF
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754   (eval $ac_compile) 2>conftest.er1
13755   ac_status=$?
13756   grep -v '^ *+' conftest.er1 >conftest.err
13757   rm -f conftest.er1
13758   cat conftest.err >&5
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } &&
13761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest.$ac_objext'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_header_compiler=yes
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_header_compiler=no
13779 fi
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13782 echo "${ECHO_T}$ac_header_compiler" >&6
13783
13784 # Is the header present?
13785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h.  */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h.  */
13793 #include <$ac_header>
13794 _ACEOF
13795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13797   ac_status=$?
13798   grep -v '^ *+' conftest.er1 >conftest.err
13799   rm -f conftest.er1
13800   cat conftest.err >&5
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } >/dev/null; then
13803   if test -s conftest.err; then
13804     ac_cpp_err=$ac_c_preproc_warn_flag
13805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13806   else
13807     ac_cpp_err=
13808   fi
13809 else
13810   ac_cpp_err=yes
13811 fi
13812 if test -z "$ac_cpp_err"; then
13813   ac_header_preproc=yes
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13817
13818   ac_header_preproc=no
13819 fi
13820 rm -f conftest.err conftest.$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13822 echo "${ECHO_T}$ac_header_preproc" >&6
13823
13824 # So?  What about this header?
13825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13826   yes:no: )
13827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13831     ac_header_preproc=yes
13832     ;;
13833   no:yes:* )
13834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13846     (
13847       cat <<\_ASBOX
13848 ## ---------------------------------- ##
13849 ## Report this to the libjava lists.  ##
13850 ## ---------------------------------- ##
13851 _ASBOX
13852     ) |
13853       sed "s/^/$as_me: WARNING:     /" >&2
13854     ;;
13855 esac
13856 echo "$as_me:$LINENO: checking for $ac_header" >&5
13857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   eval "$as_ac_Header=\$ac_header_preproc"
13862 fi
13863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13865
13866 fi
13867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13868   cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 fi
13873
13874 done
13875
13876
13877 for ac_header in inttypes.h
13878 do
13879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13881   echo "$as_me:$LINENO: checking for $ac_header" >&5
13882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 fi
13886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13888 else
13889   # Is the header compilable?
13890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898 $ac_includes_default
13899 #include <$ac_header>
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903   (eval $ac_compile) 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } &&
13910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; } &&
13916          { ac_try='test -s conftest.$ac_objext'
13917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918   (eval $ac_try) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922   ac_header_compiler=yes
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_compiler=no
13928 fi
13929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931 echo "${ECHO_T}$ac_header_compiler" >&6
13932
13933 # Is the header present?
13934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h.  */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h.  */
13942 #include <$ac_header>
13943 _ACEOF
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } >/dev/null; then
13952   if test -s conftest.err; then
13953     ac_cpp_err=$ac_c_preproc_warn_flag
13954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13955   else
13956     ac_cpp_err=
13957   fi
13958 else
13959   ac_cpp_err=yes
13960 fi
13961 if test -z "$ac_cpp_err"; then
13962   ac_header_preproc=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967   ac_header_preproc=no
13968 fi
13969 rm -f conftest.err conftest.$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6
13972
13973 # So?  What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975   yes:no: )
13976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980     ac_header_preproc=yes
13981     ;;
13982   no:yes:* )
13983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995     (
13996       cat <<\_ASBOX
13997 ## ---------------------------------- ##
13998 ## Report this to the libjava lists.  ##
13999 ## ---------------------------------- ##
14000 _ASBOX
14001     ) |
14002       sed "s/^/$as_me: WARNING:     /" >&2
14003     ;;
14004 esac
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   eval "$as_ac_Header=\$ac_header_preproc"
14011 fi
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014
14015 fi
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017   cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 _ACEOF
14020
14021
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_INTTYPES_H 1
14024 _ACEOF
14025
14026
14027 cat >>confdefs.h <<\_ACEOF
14028 #define JV_HAVE_INTTYPES_H 1
14029 _ACEOF
14030
14031
14032 fi
14033
14034 done
14035
14036 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14037 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14038 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 #include <sys/types.h>
14048 #include <sys/wait.h>
14049 #ifndef WEXITSTATUS
14050 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14051 #endif
14052 #ifndef WIFEXITED
14053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14054 #endif
14055
14056 int
14057 main ()
14058 {
14059   int s;
14060   wait (&s);
14061   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068   (eval $ac_compile) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } &&
14075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; } &&
14081          { ac_try='test -s conftest.$ac_objext'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }; then
14087   ac_cv_header_sys_wait_h=yes
14088 else
14089   echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092 ac_cv_header_sys_wait_h=no
14093 fi
14094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14095 fi
14096 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14097 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14098 if test $ac_cv_header_sys_wait_h = yes; then
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_SYS_WAIT_H 1
14102 _ACEOF
14103
14104 fi
14105
14106
14107 echo "$as_me:$LINENO: checking for ssize_t" >&5
14108 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14109 if test "${ac_cv_type_ssize_t+set}" = set; then
14110   echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112   cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118 $ac_includes_default
14119 int
14120 main ()
14121 {
14122 if ((ssize_t *) 0)
14123   return 0;
14124 if (sizeof (ssize_t))
14125   return 0;
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest.$ac_objext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14132   (eval $ac_compile) 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } &&
14139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; } &&
14145          { ac_try='test -s conftest.$ac_objext'
14146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147   (eval $ac_try) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; }; then
14151   ac_cv_type_ssize_t=yes
14152 else
14153   echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_cv_type_ssize_t=no
14157 fi
14158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14159 fi
14160 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14161 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14162 if test $ac_cv_type_ssize_t = yes; then
14163   :
14164 else
14165
14166 cat >>confdefs.h <<_ACEOF
14167 #define ssize_t int
14168 _ACEOF
14169
14170 fi
14171
14172
14173 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14174 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h.  */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h.  */
14181 #include <sys/types.h>
14182 #if STDC_HEADERS
14183 #include <stdlib.h>
14184 #include <stddef.h>
14185 #endif
14186 #if HAVE_NETINET_IN_H
14187 #include <netinet/in.h>
14188 #endif
14189 int
14190 main ()
14191 {
14192 in_addr_t foo;
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199   (eval $ac_compile) 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; } &&
14212          { ac_try='test -s conftest.$ac_objext'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_IN_ADDR_T 1
14221 _ACEOF
14222
14223    echo "$as_me:$LINENO: result: yes" >&5
14224 echo "${ECHO_T}yes" >&6
14225 else
14226   echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14228
14229 echo "$as_me:$LINENO: result: no" >&5
14230 echo "${ECHO_T}no" >&6
14231 fi
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233
14234 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14235 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 #include <netinet/in.h>
14243 int
14244 main ()
14245 {
14246 struct ip_mreq mreq;
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253   (eval $ac_compile) 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_STRUCT_IP_MREQ 1
14275 _ACEOF
14276
14277    echo "$as_me:$LINENO: result: yes" >&5
14278 echo "${ECHO_T}yes" >&6
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 echo "$as_me:$LINENO: result: no" >&5
14284 echo "${ECHO_T}no" >&6
14285 fi
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287
14288 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14289 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 #include <netinet/in.h>
14297 int
14298 main ()
14299 {
14300 struct ipv6_mreq mreq6;
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326
14327 cat >>confdefs.h <<\_ACEOF
14328 #define HAVE_STRUCT_IPV6_MREQ 1
14329 _ACEOF
14330
14331    echo "$as_me:$LINENO: result: yes" >&5
14332 echo "${ECHO_T}yes" >&6
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 echo "$as_me:$LINENO: result: no" >&5
14338 echo "${ECHO_T}no" >&6
14339 fi
14340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14341
14342 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14343 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 #include <netinet/in.h>
14351 int
14352 main ()
14353 {
14354 struct sockaddr_in6 addr6;
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361   (eval $ac_compile) 2>conftest.er1
14362   ac_status=$?
14363   grep -v '^ *+' conftest.er1 >conftest.err
14364   rm -f conftest.er1
14365   cat conftest.err >&5
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); } &&
14368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; } &&
14374          { ac_try='test -s conftest.$ac_objext'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_INET6 1
14383 _ACEOF
14384
14385    echo "$as_me:$LINENO: result: yes" >&5
14386 echo "${ECHO_T}yes" >&6
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6
14393 fi
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395
14396 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14397 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 #define _POSIX_PII_SOCKET
14405 #include <sys/types.h>
14406 #include <sys/socket.h>
14407 int
14408 main ()
14409 {
14410 socklen_t x = 5;
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417   (eval $ac_compile) 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } &&
14424          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_SOCKLEN_T 1
14439 _ACEOF
14440
14441    echo "$as_me:$LINENO: result: yes" >&5
14442 echo "${ECHO_T}yes" >&6
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 echo "$as_me:$LINENO: result: no" >&5
14448 echo "${ECHO_T}no" >&6
14449 fi
14450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451
14452 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14453 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460 #include <time.h>
14461 int
14462 main ()
14463 {
14464 struct tm tim; tim.tm_gmtoff = 0;
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; } &&
14484          { ac_try='test -s conftest.$ac_objext'
14485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486   (eval $ac_try) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490
14491 cat >>confdefs.h <<\_ACEOF
14492 #define STRUCT_TM_HAS_GMTOFF 1
14493 _ACEOF
14494
14495    echo "$as_me:$LINENO: result: yes" >&5
14496 echo "${ECHO_T}yes" >&6
14497 else
14498   echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14500
14501 echo "$as_me:$LINENO: result: no" >&5
14502 echo "${ECHO_T}no" >&6
14503    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14504 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14505                cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h.  */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h.  */
14511 #include <time.h>
14512 int
14513 main ()
14514 {
14515 void i(){long z2 = 2*timezone;}
14516   ;
14517   return 0;
14518 }
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522   (eval $ac_compile) 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } &&
14529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531   (eval $ac_try) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }; } &&
14535          { ac_try='test -s conftest.$ac_objext'
14536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537   (eval $ac_try) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; }; then
14541
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_TIMEZONE 1
14544 _ACEOF
14545
14546       echo "$as_me:$LINENO: result: yes" >&5
14547 echo "${ECHO_T}yes" >&6
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552 echo "$as_me:$LINENO: result: no" >&5
14553 echo "${ECHO_T}no" >&6
14554        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14555 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14556               cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h.  */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h.  */
14562 #include <time.h>
14563 int
14564 main ()
14565 {
14566 long z2 = _timezone;
14567   ;
14568   return 0;
14569 }
14570 _ACEOF
14571 rm -f conftest.$ac_objext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573   (eval $ac_compile) 2>conftest.er1
14574   ac_status=$?
14575   grep -v '^ *+' conftest.er1 >conftest.err
14576   rm -f conftest.er1
14577   cat conftest.err >&5
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); } &&
14580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14592
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_UNDERSCORE_TIMEZONE 1
14595 _ACEOF
14596
14597           echo "$as_me:$LINENO: result: yes" >&5
14598 echo "${ECHO_T}yes" >&6
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 echo "$as_me:$LINENO: result: no" >&5
14604 echo "${ECHO_T}no" >&6
14605 fi
14606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14607 fi
14608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14609 fi
14610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611
14612 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14613 # for constant arguments.  Useless!
14614 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14615 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14616 if test "${ac_cv_working_alloca_h+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   if test x$gcc_no_link = xyes; then
14620   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14621 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14622    { (exit 1); exit 1; }; }
14623 fi
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 #include <alloca.h>
14631 int
14632 main ()
14633 {
14634 char *p = (char *) alloca (2 * sizeof (int));
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641   (eval $ac_link) 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"                   || test ! -s conftest.err'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest$ac_exeext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_cv_working_alloca_h=yes
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_cv_working_alloca_h=no
14666 fi
14667 rm -f conftest.err conftest.$ac_objext \
14668       conftest$ac_exeext conftest.$ac_ext
14669 fi
14670 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14671 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14672 if test $ac_cv_working_alloca_h = yes; then
14673
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_ALLOCA_H 1
14676 _ACEOF
14677
14678 fi
14679
14680 echo "$as_me:$LINENO: checking for alloca" >&5
14681 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14682 if test "${ac_cv_func_alloca_works+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   if test x$gcc_no_link = xyes; then
14686   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14688    { (exit 1); exit 1; }; }
14689 fi
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 #ifdef __GNUC__
14697 # define alloca __builtin_alloca
14698 #else
14699 # ifdef _MSC_VER
14700 #  include <malloc.h>
14701 #  define alloca _alloca
14702 # else
14703 #  if HAVE_ALLOCA_H
14704 #   include <alloca.h>
14705 #  else
14706 #   ifdef _AIX
14707  #pragma alloca
14708 #   else
14709 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14710 char *alloca ();
14711 #    endif
14712 #   endif
14713 #  endif
14714 # endif
14715 #endif
14716
14717 int
14718 main ()
14719 {
14720 char *p = (char *) alloca (1);
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727   (eval $ac_link) 2>conftest.er1
14728   ac_status=$?
14729   grep -v '^ *+' conftest.er1 >conftest.err
14730   rm -f conftest.er1
14731   cat conftest.err >&5
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } &&
14734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest$ac_exeext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   ac_cv_func_alloca_works=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_cv_func_alloca_works=no
14752 fi
14753 rm -f conftest.err conftest.$ac_objext \
14754       conftest$ac_exeext conftest.$ac_ext
14755 fi
14756 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14757 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14758
14759 if test $ac_cv_func_alloca_works = yes; then
14760
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_ALLOCA 1
14763 _ACEOF
14764
14765 else
14766   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14767 # that cause trouble.  Some versions do not even contain alloca or
14768 # contain a buggy version.  If you still want to use their alloca,
14769 # use ar to extract alloca.o from them instead of compiling alloca.c.
14770
14771 ALLOCA=alloca.$ac_objext
14772
14773 cat >>confdefs.h <<\_ACEOF
14774 #define C_ALLOCA 1
14775 _ACEOF
14776
14777
14778 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14779 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14780 if test "${ac_cv_os_cray+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h.  */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h.  */
14789 #if defined(CRAY) && ! defined(CRAY2)
14790 webecray
14791 #else
14792 wenotbecray
14793 #endif
14794
14795 _ACEOF
14796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14797   $EGREP "webecray" >/dev/null 2>&1; then
14798   ac_cv_os_cray=yes
14799 else
14800   ac_cv_os_cray=no
14801 fi
14802 rm -f conftest*
14803
14804 fi
14805 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14806 echo "${ECHO_T}$ac_cv_os_cray" >&6
14807 if test $ac_cv_os_cray = yes; then
14808   for ac_func in _getb67 GETB67 getb67; do
14809     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810 echo "$as_me:$LINENO: checking for $ac_func" >&5
14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14812 if eval "test \"\${$as_ac_var+set}\" = set"; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   if test x$gcc_no_link = xyes; then
14816   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14818    { (exit 1); exit 1; }; }
14819 fi
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14828 #define $ac_func innocuous_$ac_func
14829
14830 /* System header to define __stub macros and hopefully few prototypes,
14831     which can conflict with char $ac_func (); below.
14832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833     <limits.h> exists even on freestanding compilers.  */
14834
14835 #ifdef __STDC__
14836 # include <limits.h>
14837 #else
14838 # include <assert.h>
14839 #endif
14840
14841 #undef $ac_func
14842
14843 /* Override any gcc2 internal prototype to avoid an error.  */
14844 #ifdef __cplusplus
14845 extern "C"
14846 {
14847 #endif
14848 /* We use char because int might match the return type of a gcc2
14849    builtin and then its argument prototype would still apply.  */
14850 char $ac_func ();
14851 /* The GNU C library defines this for functions which it implements
14852     to always fail with ENOSYS.  Some functions are actually named
14853     something starting with __ and the normal name is an alias.  */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 char (*f) () = $ac_func;
14858 #endif
14859 #ifdef __cplusplus
14860 }
14861 #endif
14862
14863 int
14864 main ()
14865 {
14866 return f != $ac_func;
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873   (eval $ac_link) 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; } &&
14886          { ac_try='test -s conftest$ac_exeext'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; }; then
14892   eval "$as_ac_var=yes"
14893 else
14894   echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 eval "$as_ac_var=no"
14898 fi
14899 rm -f conftest.err conftest.$ac_objext \
14900       conftest$ac_exeext conftest.$ac_ext
14901 fi
14902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14904 if test `eval echo '${'$as_ac_var'}'` = yes; then
14905
14906 cat >>confdefs.h <<_ACEOF
14907 #define CRAY_STACKSEG_END $ac_func
14908 _ACEOF
14909
14910     break
14911 fi
14912
14913   done
14914 fi
14915
14916 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14917 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14918 if test "${ac_cv_c_stack_direction+set}" = set; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921   if test "$cross_compiling" = yes; then
14922   ac_cv_c_stack_direction=0
14923 else
14924   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 int
14931 find_stack_direction ()
14932 {
14933   static char *addr = 0;
14934   auto char dummy;
14935   if (addr == 0)
14936     {
14937       addr = &dummy;
14938       return find_stack_direction ();
14939     }
14940   else
14941     return (&dummy > addr) ? 1 : -1;
14942 }
14943
14944 int
14945 main ()
14946 {
14947   exit (find_stack_direction () < 0);
14948 }
14949 _ACEOF
14950 rm -f conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952   (eval $ac_link) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_cv_c_stack_direction=1
14962 else
14963   echo "$as_me: program exited with status $ac_status" >&5
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 ( exit $ac_status )
14968 ac_cv_c_stack_direction=-1
14969 fi
14970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14971 fi
14972 fi
14973 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14974 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14975
14976 cat >>confdefs.h <<_ACEOF
14977 #define STACK_DIRECTION $ac_cv_c_stack_direction
14978 _ACEOF
14979
14980
14981 fi
14982
14983 if test x$gcc_no_link = xyes; then
14984   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14985     ac_cv_func_mmap_fixed_mapped=no
14986   fi
14987 fi
14988 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14989
14990
14991 for ac_header in stdlib.h unistd.h
14992 do
14993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14995   echo "$as_me:$LINENO: checking for $ac_header" >&5
14996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14998   echo $ECHO_N "(cached) $ECHO_C" >&6
14999 fi
15000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15002 else
15003   # Is the header compilable?
15004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012 $ac_includes_default
15013 #include <$ac_header>
15014 _ACEOF
15015 rm -f conftest.$ac_objext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15017   (eval $ac_compile) 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026   (eval $ac_try) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; } &&
15030          { ac_try='test -s conftest.$ac_objext'
15031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032   (eval $ac_try) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; }; then
15036   ac_header_compiler=yes
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 ac_header_compiler=no
15042 fi
15043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15045 echo "${ECHO_T}$ac_header_compiler" >&6
15046
15047 # Is the header present?
15048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h.  */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h.  */
15056 #include <$ac_header>
15057 _ACEOF
15058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15060   ac_status=$?
15061   grep -v '^ *+' conftest.er1 >conftest.err
15062   rm -f conftest.er1
15063   cat conftest.err >&5
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); } >/dev/null; then
15066   if test -s conftest.err; then
15067     ac_cpp_err=$ac_c_preproc_warn_flag
15068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15069   else
15070     ac_cpp_err=
15071   fi
15072 else
15073   ac_cpp_err=yes
15074 fi
15075 if test -z "$ac_cpp_err"; then
15076   ac_header_preproc=yes
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081   ac_header_preproc=no
15082 fi
15083 rm -f conftest.err conftest.$ac_ext
15084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15085 echo "${ECHO_T}$ac_header_preproc" >&6
15086
15087 # So?  What about this header?
15088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15089   yes:no: )
15090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15094     ac_header_preproc=yes
15095     ;;
15096   no:yes:* )
15097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15109     (
15110       cat <<\_ASBOX
15111 ## ---------------------------------- ##
15112 ## Report this to the libjava lists.  ##
15113 ## ---------------------------------- ##
15114 _ASBOX
15115     ) |
15116       sed "s/^/$as_me: WARNING:     /" >&2
15117     ;;
15118 esac
15119 echo "$as_me:$LINENO: checking for $ac_header" >&5
15120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   eval "$as_ac_Header=\$ac_header_preproc"
15125 fi
15126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15128
15129 fi
15130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15131   cat >>confdefs.h <<_ACEOF
15132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15133 _ACEOF
15134
15135 fi
15136
15137 done
15138
15139
15140 for ac_func in getpagesize
15141 do
15142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15143 echo "$as_me:$LINENO: checking for $ac_func" >&5
15144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15145 if eval "test \"\${$as_ac_var+set}\" = set"; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148   if test x$gcc_no_link = xyes; then
15149   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15151    { (exit 1); exit 1; }; }
15152 fi
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15161 #define $ac_func innocuous_$ac_func
15162
15163 /* System header to define __stub macros and hopefully few prototypes,
15164     which can conflict with char $ac_func (); below.
15165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15166     <limits.h> exists even on freestanding compilers.  */
15167
15168 #ifdef __STDC__
15169 # include <limits.h>
15170 #else
15171 # include <assert.h>
15172 #endif
15173
15174 #undef $ac_func
15175
15176 /* Override any gcc2 internal prototype to avoid an error.  */
15177 #ifdef __cplusplus
15178 extern "C"
15179 {
15180 #endif
15181 /* We use char because int might match the return type of a gcc2
15182    builtin and then its argument prototype would still apply.  */
15183 char $ac_func ();
15184 /* The GNU C library defines this for functions which it implements
15185     to always fail with ENOSYS.  Some functions are actually named
15186     something starting with __ and the normal name is an alias.  */
15187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15188 choke me
15189 #else
15190 char (*f) () = $ac_func;
15191 #endif
15192 #ifdef __cplusplus
15193 }
15194 #endif
15195
15196 int
15197 main ()
15198 {
15199 return f != $ac_func;
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext conftest$ac_exeext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15206   (eval $ac_link) 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; } &&
15219          { ac_try='test -s conftest$ac_exeext'
15220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221   (eval $ac_try) 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); }; }; then
15225   eval "$as_ac_var=yes"
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 eval "$as_ac_var=no"
15231 fi
15232 rm -f conftest.err conftest.$ac_objext \
15233       conftest$ac_exeext conftest.$ac_ext
15234 fi
15235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15237 if test `eval echo '${'$as_ac_var'}'` = yes; then
15238   cat >>confdefs.h <<_ACEOF
15239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15240 _ACEOF
15241
15242 fi
15243 done
15244
15245 echo "$as_me:$LINENO: checking for working mmap" >&5
15246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   if test "$cross_compiling" = yes; then
15251   ac_cv_func_mmap_fixed_mapped=no
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 $ac_includes_default
15260 /* malloc might have been renamed as rpl_malloc. */
15261 #undef malloc
15262
15263 /* Thanks to Mike Haertel and Jim Avera for this test.
15264    Here is a matrix of mmap possibilities:
15265         mmap private not fixed
15266         mmap private fixed at somewhere currently unmapped
15267         mmap private fixed at somewhere already mapped
15268         mmap shared not fixed
15269         mmap shared fixed at somewhere currently unmapped
15270         mmap shared fixed at somewhere already mapped
15271    For private mappings, we should verify that changes cannot be read()
15272    back from the file, nor mmap's back from the file at a different
15273    address.  (There have been systems where private was not correctly
15274    implemented like the infamous i386 svr4.0, and systems where the
15275    VM page cache was not coherent with the file system buffer cache
15276    like early versions of FreeBSD and possibly contemporary NetBSD.)
15277    For shared mappings, we should conversely verify that changes get
15278    propagated back to all the places they're supposed to be.
15279
15280    Grep wants private fixed already mapped.
15281    The main things grep needs to know about mmap are:
15282    * does it exist and is it safe to write into the mmap'd area
15283    * how to use it (BSD variants)  */
15284
15285 #include <fcntl.h>
15286 #include <sys/mman.h>
15287
15288 #if !STDC_HEADERS && !HAVE_STDLIB_H
15289 char *malloc ();
15290 #endif
15291
15292 /* This mess was copied from the GNU getpagesize.h.  */
15293 #if !HAVE_GETPAGESIZE
15294 /* Assume that all systems that can run configure have sys/param.h.  */
15295 # if !HAVE_SYS_PARAM_H
15296 #  define HAVE_SYS_PARAM_H 1
15297 # endif
15298
15299 # ifdef _SC_PAGESIZE
15300 #  define getpagesize() sysconf(_SC_PAGESIZE)
15301 # else /* no _SC_PAGESIZE */
15302 #  if HAVE_SYS_PARAM_H
15303 #   include <sys/param.h>
15304 #   ifdef EXEC_PAGESIZE
15305 #    define getpagesize() EXEC_PAGESIZE
15306 #   else /* no EXEC_PAGESIZE */
15307 #    ifdef NBPG
15308 #     define getpagesize() NBPG * CLSIZE
15309 #     ifndef CLSIZE
15310 #      define CLSIZE 1
15311 #     endif /* no CLSIZE */
15312 #    else /* no NBPG */
15313 #     ifdef NBPC
15314 #      define getpagesize() NBPC
15315 #     else /* no NBPC */
15316 #      ifdef PAGESIZE
15317 #       define getpagesize() PAGESIZE
15318 #      endif /* PAGESIZE */
15319 #     endif /* no NBPC */
15320 #    endif /* no NBPG */
15321 #   endif /* no EXEC_PAGESIZE */
15322 #  else /* no HAVE_SYS_PARAM_H */
15323 #   define getpagesize() 8192   /* punt totally */
15324 #  endif /* no HAVE_SYS_PARAM_H */
15325 # endif /* no _SC_PAGESIZE */
15326
15327 #endif /* no HAVE_GETPAGESIZE */
15328
15329 int
15330 main ()
15331 {
15332   char *data, *data2, *data3;
15333   int i, pagesize;
15334   int fd;
15335
15336   pagesize = getpagesize ();
15337
15338   /* First, make a file with some known garbage in it. */
15339   data = (char *) malloc (pagesize);
15340   if (!data)
15341     exit (1);
15342   for (i = 0; i < pagesize; ++i)
15343     *(data + i) = rand ();
15344   umask (0);
15345   fd = creat ("conftest.mmap", 0600);
15346   if (fd < 0)
15347     exit (1);
15348   if (write (fd, data, pagesize) != pagesize)
15349     exit (1);
15350   close (fd);
15351
15352   /* Next, try to mmap the file at a fixed address which already has
15353      something else allocated at it.  If we can, also make sure that
15354      we see the same garbage.  */
15355   fd = open ("conftest.mmap", O_RDWR);
15356   if (fd < 0)
15357     exit (1);
15358   data2 = (char *) malloc (2 * pagesize);
15359   if (!data2)
15360     exit (1);
15361   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15362   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15363                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15364     exit (1);
15365   for (i = 0; i < pagesize; ++i)
15366     if (*(data + i) != *(data2 + i))
15367       exit (1);
15368
15369   /* Finally, make sure that changes to the mapped area do not
15370      percolate back to the file as seen by read().  (This is a bug on
15371      some variants of i386 svr4.0.)  */
15372   for (i = 0; i < pagesize; ++i)
15373     *(data2 + i) = *(data2 + i) + 1;
15374   data3 = (char *) malloc (pagesize);
15375   if (!data3)
15376     exit (1);
15377   if (read (fd, data3, pagesize) != pagesize)
15378     exit (1);
15379   for (i = 0; i < pagesize; ++i)
15380     if (*(data + i) != *(data3 + i))
15381       exit (1);
15382   close (fd);
15383   exit (0);
15384 }
15385 _ACEOF
15386 rm -f conftest$ac_exeext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15388   (eval $ac_link) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; }; then
15397   ac_cv_func_mmap_fixed_mapped=yes
15398 else
15399   echo "$as_me: program exited with status $ac_status" >&5
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ( exit $ac_status )
15404 ac_cv_func_mmap_fixed_mapped=no
15405 fi
15406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15407 fi
15408 fi
15409 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15410 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15411 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15412
15413 cat >>confdefs.h <<\_ACEOF
15414 #define HAVE_MMAP 1
15415 _ACEOF
15416
15417 fi
15418 rm -f conftest.mmap
15419
15420 fi
15421
15422 for ac_prog in perl
15423 do
15424   # Extract the first word of "$ac_prog", so it can be a program name with args.
15425 set dummy $ac_prog; ac_word=$2
15426 echo "$as_me:$LINENO: checking for $ac_word" >&5
15427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15428 if test "${ac_cv_prog_PERL+set}" = set; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 else
15431   if test -n "$PERL"; then
15432   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15433 else
15434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15435 for as_dir in $PATH
15436 do
15437   IFS=$as_save_IFS
15438   test -z "$as_dir" && as_dir=.
15439   for ac_exec_ext in '' $ac_executable_extensions; do
15440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15441     ac_cv_prog_PERL="$ac_prog"
15442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15443     break 2
15444   fi
15445 done
15446 done
15447
15448 fi
15449 fi
15450 PERL=$ac_cv_prog_PERL
15451 if test -n "$PERL"; then
15452   echo "$as_me:$LINENO: result: $PERL" >&5
15453 echo "${ECHO_T}$PERL" >&6
15454 else
15455   echo "$as_me:$LINENO: result: no" >&5
15456 echo "${ECHO_T}no" >&6
15457 fi
15458
15459   test -n "$PERL" && break
15460 done
15461 test -n "$PERL" || PERL="false"
15462
15463
15464 SYSDEP_SOURCES=
15465 SIGNAL_HANDLER_AUX=
15466
15467 case "${host}" in
15468  i?86-*-linux*)
15469     SIGNAL_HANDLER=include/i386-signal.h
15470     ;;
15471  sparc*-sun-solaris*)
15472     SIGNAL_HANDLER=include/sparc-signal.h
15473     ;;
15474 # ia64-*)
15475 #    SYSDEP_SOURCES=sysdep/ia64.c
15476 #    test -d sysdep || mkdir sysdep
15477 #    ;;
15478  hppa*-*-linux*)
15479     SIGNAL_HANDLER=include/pa-signal.h
15480     ;;
15481  ia64-*-linux*)
15482     SIGNAL_HANDLER=include/dwarf2-signal.h
15483     ;;
15484  powerpc*-*-linux*)
15485     SIGNAL_HANDLER=include/powerpc-signal.h
15486     ;;
15487  alpha*-*-linux*)
15488     SIGNAL_HANDLER=include/dwarf2-signal.h
15489     ;;
15490  s390*-*-linux*)
15491     SIGNAL_HANDLER=include/s390-signal.h
15492     ;;
15493  x86_64*-*-linux*)
15494     SIGNAL_HANDLER=include/x86_64-signal.h
15495     SIGNAL_HANDLER_AUX=include/i386-signal.h
15496     ;;
15497  sparc*-*-linux*)
15498     SIGNAL_HANDLER=include/dwarf2-signal.h
15499     ;;
15500  sh-*-linux* | sh[34]*-*-linux*)
15501     SIGNAL_HANDLER=include/dwarf2-signal.h
15502     ;;
15503  *mingw*)
15504     SIGNAL_HANDLER=include/win32-signal.h
15505     ;;
15506  mips*-*-linux*)
15507     SIGNAL_HANDLER=include/mips-signal.h
15508     ;;
15509  *-*-darwin*)
15510     SIGNAL_HANDLER=include/darwin-signal.h
15511     ;;
15512  *)
15513     SIGNAL_HANDLER=include/default-signal.h
15514     ;;
15515 esac
15516
15517 # If we're using sjlj exceptions, forget what we just learned.
15518 if test "$enable_sjlj_exceptions" = yes; then
15519    SIGNAL_HANDLER=include/default-signal.h
15520    SIGNAL_HANDLER_AUX=
15521 fi
15522
15523 # Define here any compiler flags that you need in order to make backtrace() work.
15524 BACKTRACESPEC=
15525 case "${host}" in
15526  x86_64*-*-linux*|i?86-*)
15527     BACKTRACESPEC=-fno-omit-frame-pointer
15528     ;;
15529 esac
15530
15531
15532
15533
15534 if test -z "$SIGNAL_HANDLER_AUX"; then
15535   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15536 fi
15537
15538                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15539
15540
15541 if test "${multilib}" = "yes"; then
15542   multilib_arg="--enable-multilib"
15543 else
15544   multilib_arg=
15545 fi
15546
15547
15548
15549 here=`${PWDCMD-pwd}`
15550
15551
15552 # We get this from the environment.
15553
15554
15555                                                                                 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15556
15557
15558           ac_config_commands="$ac_config_commands default"
15559
15560
15561 cat >confcache <<\_ACEOF
15562 # This file is a shell script that caches the results of configure
15563 # tests run on this system so they can be shared between configure
15564 # scripts and configure runs, see configure's option --config-cache.
15565 # It is not useful on other systems.  If it contains results you don't
15566 # want to keep, you may remove or edit it.
15567 #
15568 # config.status only pays attention to the cache file if you give it
15569 # the --recheck option to rerun configure.
15570 #
15571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15573 # following values.
15574
15575 _ACEOF
15576
15577 # The following way of writing the cache mishandles newlines in values,
15578 # but we know of no workaround that is simple, portable, and efficient.
15579 # So, don't put newlines in cache variables' values.
15580 # Ultrix sh set writes to stderr and can't be redirected directly,
15581 # and sets the high bit in the cache file unless we assign to the vars.
15582 {
15583   (set) 2>&1 |
15584     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15585     *ac_space=\ *)
15586       # `set' does not quote correctly, so add quotes (double-quote
15587       # substitution turns \\\\ into \\, and sed turns \\ into \).
15588       sed -n \
15589         "s/'/'\\\\''/g;
15590           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15591       ;;
15592     *)
15593       # `set' quotes correctly as required by POSIX, so do not add quotes.
15594       sed -n \
15595         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15596       ;;
15597     esac;
15598 } |
15599   sed '
15600      t clear
15601      : clear
15602      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15603      t end
15604      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15605      : end' >>confcache
15606 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15607   if test -w $cache_file; then
15608     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15609     cat confcache >$cache_file
15610   else
15611     echo "not updating unwritable cache $cache_file"
15612   fi
15613 fi
15614 rm -f confcache
15615
15616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15617 # Let make expand exec_prefix.
15618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15619
15620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15622 # trailing colons and then remove the whole line if VPATH becomes empty
15623 # (actually we leave an empty line to preserve line numbers).
15624 if test "x$srcdir" = x.; then
15625   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15626 s/:*\$(srcdir):*/:/;
15627 s/:*\${srcdir}:*/:/;
15628 s/:*@srcdir@:*/:/;
15629 s/^\([^=]*=[     ]*\):*/\1/;
15630 s/:*$//;
15631 s/^[^=]*=[       ]*$//;
15632 }'
15633 fi
15634
15635 DEFS=-DHAVE_CONFIG_H
15636
15637 ac_libobjs=
15638 ac_ltlibobjs=
15639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15640   # 1. Remove the extension, and $U if already installed.
15641   ac_i=`echo "$ac_i" |
15642          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15643   # 2. Add them.
15644   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15645   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15646 done
15647 LIBOBJS=$ac_libobjs
15648
15649 LTLIBOBJS=$ac_ltlibobjs
15650
15651
15652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15653   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15654 Usually this means the macro was only invoked conditionally." >&5
15655 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15656 Usually this means the macro was only invoked conditionally." >&2;}
15657    { (exit 1); exit 1; }; }
15658 fi
15659 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15660   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15661 Usually this means the macro was only invoked conditionally." >&5
15662 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15663 Usually this means the macro was only invoked conditionally." >&2;}
15664    { (exit 1); exit 1; }; }
15665 fi
15666 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15667   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15668 Usually this means the macro was only invoked conditionally." >&5
15669 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15670 Usually this means the macro was only invoked conditionally." >&2;}
15671    { (exit 1); exit 1; }; }
15672 fi
15673 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15674   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15675 Usually this means the macro was only invoked conditionally." >&5
15676 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15677 Usually this means the macro was only invoked conditionally." >&2;}
15678    { (exit 1); exit 1; }; }
15679 fi
15680 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15681   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15682 Usually this means the macro was only invoked conditionally." >&5
15683 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15684 Usually this means the macro was only invoked conditionally." >&2;}
15685    { (exit 1); exit 1; }; }
15686 fi
15687 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15688   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15689 Usually this means the macro was only invoked conditionally." >&5
15690 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15691 Usually this means the macro was only invoked conditionally." >&2;}
15692    { (exit 1); exit 1; }; }
15693 fi
15694 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15695   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15696 Usually this means the macro was only invoked conditionally." >&5
15697 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15698 Usually this means the macro was only invoked conditionally." >&2;}
15699    { (exit 1); exit 1; }; }
15700 fi
15701 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15702   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15703 Usually this means the macro was only invoked conditionally." >&5
15704 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15705 Usually this means the macro was only invoked conditionally." >&2;}
15706    { (exit 1); exit 1; }; }
15707 fi
15708 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15709   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15710 Usually this means the macro was only invoked conditionally." >&5
15711 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15712 Usually this means the macro was only invoked conditionally." >&2;}
15713    { (exit 1); exit 1; }; }
15714 fi
15715 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15716   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15717 Usually this means the macro was only invoked conditionally." >&5
15718 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15719 Usually this means the macro was only invoked conditionally." >&2;}
15720    { (exit 1); exit 1; }; }
15721 fi
15722 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15723   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15724 Usually this means the macro was only invoked conditionally." >&5
15725 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15726 Usually this means the macro was only invoked conditionally." >&2;}
15727    { (exit 1); exit 1; }; }
15728 fi
15729 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15730   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15731 Usually this means the macro was only invoked conditionally." >&5
15732 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15733 Usually this means the macro was only invoked conditionally." >&2;}
15734    { (exit 1); exit 1; }; }
15735 fi
15736 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15737   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15738 Usually this means the macro was only invoked conditionally." >&5
15739 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15740 Usually this means the macro was only invoked conditionally." >&2;}
15741    { (exit 1); exit 1; }; }
15742 fi
15743 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15744   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15745 Usually this means the macro was only invoked conditionally." >&5
15746 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15747 Usually this means the macro was only invoked conditionally." >&2;}
15748    { (exit 1); exit 1; }; }
15749 fi
15750 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15751   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15752 Usually this means the macro was only invoked conditionally." >&5
15753 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15754 Usually this means the macro was only invoked conditionally." >&2;}
15755    { (exit 1); exit 1; }; }
15756 fi
15757 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15758   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15759 Usually this means the macro was only invoked conditionally." >&5
15760 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15761 Usually this means the macro was only invoked conditionally." >&2;}
15762    { (exit 1); exit 1; }; }
15763 fi
15764 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15765   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15766 Usually this means the macro was only invoked conditionally." >&5
15767 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15768 Usually this means the macro was only invoked conditionally." >&2;}
15769    { (exit 1); exit 1; }; }
15770 fi
15771 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15772   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15773 Usually this means the macro was only invoked conditionally." >&5
15774 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15775 Usually this means the macro was only invoked conditionally." >&2;}
15776    { (exit 1); exit 1; }; }
15777 fi
15778 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15779   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15780 Usually this means the macro was only invoked conditionally." >&5
15781 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15782 Usually this means the macro was only invoked conditionally." >&2;}
15783    { (exit 1); exit 1; }; }
15784 fi
15785 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15786   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15787 Usually this means the macro was only invoked conditionally." >&5
15788 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15789 Usually this means the macro was only invoked conditionally." >&2;}
15790    { (exit 1); exit 1; }; }
15791 fi
15792 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15793   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15794 Usually this means the macro was only invoked conditionally." >&5
15795 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15796 Usually this means the macro was only invoked conditionally." >&2;}
15797    { (exit 1); exit 1; }; }
15798 fi
15799 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15800   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15801 Usually this means the macro was only invoked conditionally." >&5
15802 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15803 Usually this means the macro was only invoked conditionally." >&2;}
15804    { (exit 1); exit 1; }; }
15805 fi
15806
15807 : ${CONFIG_STATUS=./config.status}
15808 ac_clean_files_save=$ac_clean_files
15809 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15810 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15811 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15812 cat >$CONFIG_STATUS <<_ACEOF
15813 #! $SHELL
15814 # Generated by $as_me.
15815 # Run this file to recreate the current configuration.
15816 # Compiler output produced by configure, useful for debugging
15817 # configure, is in config.log if it exists.
15818
15819 debug=false
15820 ac_cs_recheck=false
15821 ac_cs_silent=false
15822 SHELL=\${CONFIG_SHELL-$SHELL}
15823 _ACEOF
15824
15825 cat >>$CONFIG_STATUS <<\_ACEOF
15826 ## --------------------- ##
15827 ## M4sh Initialization.  ##
15828 ## --------------------- ##
15829
15830 # Be Bourne compatible
15831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15832   emulate sh
15833   NULLCMD=:
15834   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15835   # is contrary to our usage.  Disable this feature.
15836   alias -g '${1+"$@"}'='"$@"'
15837 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15838   set -o posix
15839 fi
15840 DUALCASE=1; export DUALCASE # for MKS sh
15841
15842 # Support unset when possible.
15843 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15844   as_unset=unset
15845 else
15846   as_unset=false
15847 fi
15848
15849
15850 # Work around bugs in pre-3.0 UWIN ksh.
15851 $as_unset ENV MAIL MAILPATH
15852 PS1='$ '
15853 PS2='> '
15854 PS4='+ '
15855
15856 # NLS nuisances.
15857 for as_var in \
15858   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15859   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15860   LC_TELEPHONE LC_TIME
15861 do
15862   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15863     eval $as_var=C; export $as_var
15864   else
15865     $as_unset $as_var
15866   fi
15867 done
15868
15869 # Required to use basename.
15870 if expr a : '\(a\)' >/dev/null 2>&1; then
15871   as_expr=expr
15872 else
15873   as_expr=false
15874 fi
15875
15876 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15877   as_basename=basename
15878 else
15879   as_basename=false
15880 fi
15881
15882
15883 # Name of the executable.
15884 as_me=`$as_basename "$0" ||
15885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15886          X"$0" : 'X\(//\)$' \| \
15887          X"$0" : 'X\(/\)$' \| \
15888          .     : '\(.\)' 2>/dev/null ||
15889 echo X/"$0" |
15890     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15891           /^X\/\(\/\/\)$/{ s//\1/; q; }
15892           /^X\/\(\/\).*/{ s//\1/; q; }
15893           s/.*/./; q'`
15894
15895
15896 # PATH needs CR, and LINENO needs CR and PATH.
15897 # Avoid depending upon Character Ranges.
15898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15901 as_cr_digits='0123456789'
15902 as_cr_alnum=$as_cr_Letters$as_cr_digits
15903
15904 # The user is always right.
15905 if test "${PATH_SEPARATOR+set}" != set; then
15906   echo "#! /bin/sh" >conf$$.sh
15907   echo  "exit 0"   >>conf$$.sh
15908   chmod +x conf$$.sh
15909   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15910     PATH_SEPARATOR=';'
15911   else
15912     PATH_SEPARATOR=:
15913   fi
15914   rm -f conf$$.sh
15915 fi
15916
15917
15918   as_lineno_1=$LINENO
15919   as_lineno_2=$LINENO
15920   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15921   test "x$as_lineno_1" != "x$as_lineno_2" &&
15922   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15923   # Find who we are.  Look in the path if we contain no path at all
15924   # relative or not.
15925   case $0 in
15926     *[\\/]* ) as_myself=$0 ;;
15927     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $PATH
15929 do
15930   IFS=$as_save_IFS
15931   test -z "$as_dir" && as_dir=.
15932   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15933 done
15934
15935        ;;
15936   esac
15937   # We did not find ourselves, most probably we were run as `sh COMMAND'
15938   # in which case we are not to be found in the path.
15939   if test "x$as_myself" = x; then
15940     as_myself=$0
15941   fi
15942   if test ! -f "$as_myself"; then
15943     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15944 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15945    { (exit 1); exit 1; }; }
15946   fi
15947   case $CONFIG_SHELL in
15948   '')
15949     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15950 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15951 do
15952   IFS=$as_save_IFS
15953   test -z "$as_dir" && as_dir=.
15954   for as_base in sh bash ksh sh5; do
15955          case $as_dir in
15956          /*)
15957            if ("$as_dir/$as_base" -c '
15958   as_lineno_1=$LINENO
15959   as_lineno_2=$LINENO
15960   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15961   test "x$as_lineno_1" != "x$as_lineno_2" &&
15962   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15963              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15964              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15965              CONFIG_SHELL=$as_dir/$as_base
15966              export CONFIG_SHELL
15967              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15968            fi;;
15969          esac
15970        done
15971 done
15972 ;;
15973   esac
15974
15975   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15976   # uniformly replaced by the line number.  The first 'sed' inserts a
15977   # line-number line before each line; the second 'sed' does the real
15978   # work.  The second script uses 'N' to pair each line-number line
15979   # with the numbered line, and appends trailing '-' during
15980   # substitution so that $LINENO is not a special case at line end.
15981   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15982   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15983   sed '=' <$as_myself |
15984     sed '
15985       N
15986       s,$,-,
15987       : loop
15988       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15989       t loop
15990       s,-$,,
15991       s,^['$as_cr_digits']*\n,,
15992     ' >$as_me.lineno &&
15993   chmod +x $as_me.lineno ||
15994     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15995 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15996    { (exit 1); exit 1; }; }
15997
15998   # Don't try to exec as it changes $[0], causing all sort of problems
15999   # (the dirname of $[0] is not the place where we might find the
16000   # original and so on.  Autoconf is especially sensible to this).
16001   . ./$as_me.lineno
16002   # Exit status is that of the last command.
16003   exit
16004 }
16005
16006
16007 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16008   *c*,-n*) ECHO_N= ECHO_C='
16009 ' ECHO_T='      ' ;;
16010   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16011   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16012 esac
16013
16014 if expr a : '\(a\)' >/dev/null 2>&1; then
16015   as_expr=expr
16016 else
16017   as_expr=false
16018 fi
16019
16020 rm -f conf$$ conf$$.exe conf$$.file
16021 echo >conf$$.file
16022 if ln -s conf$$.file conf$$ 2>/dev/null; then
16023   # We could just check for DJGPP; but this test a) works b) is more generic
16024   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16025   if test -f conf$$.exe; then
16026     # Don't use ln at all; we don't have any links
16027     as_ln_s='cp -p'
16028   else
16029     as_ln_s='ln -s'
16030   fi
16031 elif ln conf$$.file conf$$ 2>/dev/null; then
16032   as_ln_s=ln
16033 else
16034   as_ln_s='cp -p'
16035 fi
16036 rm -f conf$$ conf$$.exe conf$$.file
16037
16038 if mkdir -p . 2>/dev/null; then
16039   as_mkdir_p=:
16040 else
16041   test -d ./-p && rmdir ./-p
16042   as_mkdir_p=false
16043 fi
16044
16045 as_executable_p="test -f"
16046
16047 # Sed expression to map a string onto a valid CPP name.
16048 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16049
16050 # Sed expression to map a string onto a valid variable name.
16051 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16052
16053
16054 # IFS
16055 # We need space, tab and new line, in precisely that order.
16056 as_nl='
16057 '
16058 IFS="   $as_nl"
16059
16060 # CDPATH.
16061 $as_unset CDPATH
16062
16063 exec 6>&1
16064
16065 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16066 # report actual input values of CONFIG_FILES etc. instead of their
16067 # values after options handling.  Logging --version etc. is OK.
16068 exec 5>>config.log
16069 {
16070   echo
16071   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16072 ## Running $as_me. ##
16073 _ASBOX
16074 } >&5
16075 cat >&5 <<_CSEOF
16076
16077 This file was extended by libjava $as_me version-unused, which was
16078 generated by GNU Autoconf 2.59.  Invocation command line was
16079
16080   CONFIG_FILES    = $CONFIG_FILES
16081   CONFIG_HEADERS  = $CONFIG_HEADERS
16082   CONFIG_LINKS    = $CONFIG_LINKS
16083   CONFIG_COMMANDS = $CONFIG_COMMANDS
16084   $ $0 $@
16085
16086 _CSEOF
16087 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16088 echo >&5
16089 _ACEOF
16090
16091 # Files that config.status was made for.
16092 if test -n "$ac_config_files"; then
16093   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16094 fi
16095
16096 if test -n "$ac_config_headers"; then
16097   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16098 fi
16099
16100 if test -n "$ac_config_links"; then
16101   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16102 fi
16103
16104 if test -n "$ac_config_commands"; then
16105   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16106 fi
16107
16108 cat >>$CONFIG_STATUS <<\_ACEOF
16109
16110 ac_cs_usage="\
16111 \`$as_me' instantiates files from templates according to the
16112 current configuration.
16113
16114 Usage: $0 [OPTIONS] [FILE]...
16115
16116   -h, --help       print this help, then exit
16117   -V, --version    print version number, then exit
16118   -q, --quiet      do not print progress messages
16119   -d, --debug      don't remove temporary files
16120       --recheck    update $as_me by reconfiguring in the same conditions
16121   --file=FILE[:TEMPLATE]
16122                    instantiate the configuration file FILE
16123   --header=FILE[:TEMPLATE]
16124                    instantiate the configuration header FILE
16125
16126 Configuration files:
16127 $config_files
16128
16129 Configuration headers:
16130 $config_headers
16131
16132 Configuration links:
16133 $config_links
16134
16135 Configuration commands:
16136 $config_commands
16137
16138 Report bugs to <bug-autoconf@gnu.org>."
16139 _ACEOF
16140
16141 cat >>$CONFIG_STATUS <<_ACEOF
16142 ac_cs_version="\\
16143 libjava config.status version-unused
16144 configured by $0, generated by GNU Autoconf 2.59,
16145   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16146
16147 Copyright (C) 2003 Free Software Foundation, Inc.
16148 This config.status script is free software; the Free Software Foundation
16149 gives unlimited permission to copy, distribute and modify it."
16150 srcdir=$srcdir
16151 INSTALL="$INSTALL"
16152 _ACEOF
16153
16154 cat >>$CONFIG_STATUS <<\_ACEOF
16155 # If no file are specified by the user, then we need to provide default
16156 # value.  By we need to know if files were specified by the user.
16157 ac_need_defaults=:
16158 while test $# != 0
16159 do
16160   case $1 in
16161   --*=*)
16162     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16163     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16164     ac_shift=:
16165     ;;
16166   -*)
16167     ac_option=$1
16168     ac_optarg=$2
16169     ac_shift=shift
16170     ;;
16171   *) # This is not an option, so the user has probably given explicit
16172      # arguments.
16173      ac_option=$1
16174      ac_need_defaults=false;;
16175   esac
16176
16177   case $ac_option in
16178   # Handling of the options.
16179 _ACEOF
16180 cat >>$CONFIG_STATUS <<\_ACEOF
16181   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16182     ac_cs_recheck=: ;;
16183   --version | --vers* | -V )
16184     echo "$ac_cs_version"; exit 0 ;;
16185   --he | --h)
16186     # Conflict between --help and --header
16187     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16188 Try \`$0 --help' for more information." >&5
16189 echo "$as_me: error: ambiguous option: $1
16190 Try \`$0 --help' for more information." >&2;}
16191    { (exit 1); exit 1; }; };;
16192   --help | --hel | -h )
16193     echo "$ac_cs_usage"; exit 0 ;;
16194   --debug | --d* | -d )
16195     debug=: ;;
16196   --file | --fil | --fi | --f )
16197     $ac_shift
16198     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16199     ac_need_defaults=false;;
16200   --header | --heade | --head | --hea )
16201     $ac_shift
16202     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16203     ac_need_defaults=false;;
16204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16206     ac_cs_silent=: ;;
16207
16208   # This is an error.
16209   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16210 Try \`$0 --help' for more information." >&5
16211 echo "$as_me: error: unrecognized option: $1
16212 Try \`$0 --help' for more information." >&2;}
16213    { (exit 1); exit 1; }; } ;;
16214
16215   *) ac_config_targets="$ac_config_targets $1" ;;
16216
16217   esac
16218   shift
16219 done
16220
16221 ac_configure_extra_args=
16222
16223 if $ac_cs_silent; then
16224   exec 6>/dev/null
16225   ac_configure_extra_args="$ac_configure_extra_args --silent"
16226 fi
16227
16228 _ACEOF
16229 cat >>$CONFIG_STATUS <<_ACEOF
16230 if \$ac_cs_recheck; then
16231   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16232   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16233 fi
16234
16235 _ACEOF
16236
16237 cat >>$CONFIG_STATUS <<_ACEOF
16238 #
16239 # INIT-COMMANDS section.
16240 #
16241
16242 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16243 srcdir=${srcdir}
16244 host=${host}
16245 target=${target}
16246 with_multisubdir=${with_multisubdir}
16247 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16248 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16249 libgcj_basedir=${libgcj_basedir}
16250 CC="${CC}"
16251 CXX="${CXX}"
16252 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16253
16254
16255 _ACEOF
16256
16257
16258
16259 cat >>$CONFIG_STATUS <<\_ACEOF
16260 for ac_config_target in $ac_config_targets
16261 do
16262   case "$ac_config_target" in
16263   # Handling of arguments.
16264   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16265   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16266   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16267   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16268   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16269   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16270   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16271   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16272   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16273   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16274   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16275   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16276   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16277   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16278   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16279   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16280   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16281   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16282   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16283   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16284   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16285   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16286   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16287   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16288   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16289   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16290   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16291   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16292   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16293 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16294    { (exit 1); exit 1; }; };;
16295   esac
16296 done
16297
16298 # If the user did not use the arguments to specify the items to instantiate,
16299 # then the envvar interface is used.  Set only those that are not.
16300 # We use the long form for the default assignment because of an extremely
16301 # bizarre bug on SunOS 4.1.3.
16302 if $ac_need_defaults; then
16303   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16304   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16305   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16306   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16307 fi
16308
16309 # Have a temporary directory for convenience.  Make it in the build tree
16310 # simply because there is no reason to put it here, and in addition,
16311 # creating and moving files from /tmp can sometimes cause problems.
16312 # Create a temporary directory, and hook for its removal unless debugging.
16313 $debug ||
16314 {
16315   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16316   trap '{ (exit 1); exit 1; }' 1 2 13 15
16317 }
16318
16319 # Create a (secure) tmp directory for tmp files.
16320
16321 {
16322   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16323   test -n "$tmp" && test -d "$tmp"
16324 }  ||
16325 {
16326   tmp=./confstat$$-$RANDOM
16327   (umask 077 && mkdir $tmp)
16328 } ||
16329 {
16330    echo "$me: cannot create a temporary directory in ." >&2
16331    { (exit 1); exit 1; }
16332 }
16333
16334 _ACEOF
16335
16336 cat >>$CONFIG_STATUS <<_ACEOF
16337
16338 #
16339 # CONFIG_FILES section.
16340 #
16341
16342 # No need to generate the scripts if there are no CONFIG_FILES.
16343 # This happens for instance when ./config.status config.h
16344 if test -n "\$CONFIG_FILES"; then
16345   # Protect against being on the right side of a sed subst in config.status.
16346   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16347    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16348 s,@SHELL@,$SHELL,;t t
16349 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16350 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16351 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16352 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16353 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16354 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16355 s,@exec_prefix@,$exec_prefix,;t t
16356 s,@prefix@,$prefix,;t t
16357 s,@program_transform_name@,$program_transform_name,;t t
16358 s,@bindir@,$bindir,;t t
16359 s,@sbindir@,$sbindir,;t t
16360 s,@libexecdir@,$libexecdir,;t t
16361 s,@datadir@,$datadir,;t t
16362 s,@sysconfdir@,$sysconfdir,;t t
16363 s,@sharedstatedir@,$sharedstatedir,;t t
16364 s,@localstatedir@,$localstatedir,;t t
16365 s,@libdir@,$libdir,;t t
16366 s,@includedir@,$includedir,;t t
16367 s,@oldincludedir@,$oldincludedir,;t t
16368 s,@infodir@,$infodir,;t t
16369 s,@mandir@,$mandir,;t t
16370 s,@build_alias@,$build_alias,;t t
16371 s,@host_alias@,$host_alias,;t t
16372 s,@target_alias@,$target_alias,;t t
16373 s,@DEFS@,$DEFS,;t t
16374 s,@ECHO_C@,$ECHO_C,;t t
16375 s,@ECHO_N@,$ECHO_N,;t t
16376 s,@ECHO_T@,$ECHO_T,;t t
16377 s,@LIBS@,$LIBS,;t t
16378 s,@libgcj_basedir@,$libgcj_basedir,;t t
16379 s,@build@,$build,;t t
16380 s,@build_cpu@,$build_cpu,;t t
16381 s,@build_vendor@,$build_vendor,;t t
16382 s,@build_os@,$build_os,;t t
16383 s,@host@,$host,;t t
16384 s,@host_cpu@,$host_cpu,;t t
16385 s,@host_vendor@,$host_vendor,;t t
16386 s,@host_os@,$host_os,;t t
16387 s,@target@,$target,;t t
16388 s,@target_cpu@,$target_cpu,;t t
16389 s,@target_vendor@,$target_vendor,;t t
16390 s,@target_os@,$target_os,;t t
16391 s,@target_noncanonical@,$target_noncanonical,;t t
16392 s,@LN_S@,$LN_S,;t t
16393 s,@mkinstalldirs@,$mkinstalldirs,;t t
16394 s,@CC@,$CC,;t t
16395 s,@ac_ct_CC@,$ac_ct_CC,;t t
16396 s,@EXEEXT@,$EXEEXT,;t t
16397 s,@OBJEXT@,$OBJEXT,;t t
16398 s,@CXX@,$CXX,;t t
16399 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16400 s,@CFLAGS@,$CFLAGS,;t t
16401 s,@CXXFLAGS@,$CXXFLAGS,;t t
16402 s,@LDFLAGS@,$LDFLAGS,;t t
16403 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16404 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16405 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16406 s,@CYGPATH_W@,$CYGPATH_W,;t t
16407 s,@PACKAGE@,$PACKAGE,;t t
16408 s,@VERSION@,$VERSION,;t t
16409 s,@ACLOCAL@,$ACLOCAL,;t t
16410 s,@AUTOCONF@,$AUTOCONF,;t t
16411 s,@AUTOMAKE@,$AUTOMAKE,;t t
16412 s,@AUTOHEADER@,$AUTOHEADER,;t t
16413 s,@MAKEINFO@,$MAKEINFO,;t t
16414 s,@install_sh@,$install_sh,;t t
16415 s,@STRIP@,$STRIP,;t t
16416 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16417 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16418 s,@mkdir_p@,$mkdir_p,;t t
16419 s,@AWK@,$AWK,;t t
16420 s,@SET_MAKE@,$SET_MAKE,;t t
16421 s,@am__leading_dot@,$am__leading_dot,;t t
16422 s,@AMTAR@,$AMTAR,;t t
16423 s,@am__tar@,$am__tar,;t t
16424 s,@am__untar@,$am__untar,;t t
16425 s,@DEPDIR@,$DEPDIR,;t t
16426 s,@am__include@,$am__include,;t t
16427 s,@am__quote@,$am__quote,;t t
16428 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16429 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16430 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16431 s,@CCDEPMODE@,$CCDEPMODE,;t t
16432 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16433 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16434 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16435 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16436 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16437 s,@AS@,$AS,;t t
16438 s,@ac_ct_AS@,$ac_ct_AS,;t t
16439 s,@AR@,$AR,;t t
16440 s,@ac_ct_AR@,$ac_ct_AR,;t t
16441 s,@RANLIB@,$RANLIB,;t t
16442 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16443 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16444 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16445 s,@MAINT@,$MAINT,;t t
16446 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16447 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16448 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16449 s,@INCLTDL@,$INCLTDL,;t t
16450 s,@LIBLTDL@,$LIBLTDL,;t t
16451 s,@DIRLTDL@,$DIRLTDL,;t t
16452 s,@LIBTOOL@,$LIBTOOL,;t t
16453 s,@CXXCPP@,$CXXCPP,;t t
16454 s,@CPPFLAGS@,$CPPFLAGS,;t t
16455 s,@GCJ@,$GCJ,;t t
16456 s,@GCJFLAGS@,$GCJFLAGS,;t t
16457 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16458 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16459 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16460 s,@subdirs@,$subdirs,;t t
16461 s,@COMPPATH@,$COMPPATH,;t t
16462 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16463 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16464 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16465 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16466 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16467 s,@INTERPRETER@,$INTERPRETER,;t t
16468 s,@LIBFFI@,$LIBFFI,;t t
16469 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16470 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16471 s,@CPP@,$CPP,;t t
16472 s,@EGREP@,$EGREP,;t t
16473 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16474 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16475 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16476 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16477 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16478 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16479 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16480 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16481 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16482 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16483 s,@X_CFLAGS@,$X_CFLAGS,;t t
16484 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16485 s,@X_LIBS@,$X_LIBS,;t t
16486 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16487 s,@TOOLKIT@,$TOOLKIT,;t t
16488 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16489 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16490 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16491 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16492 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16493 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16494 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16495 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16496 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16497 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16498 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16499 s,@GCLIBS@,$GCLIBS,;t t
16500 s,@GCINCS@,$GCINCS,;t t
16501 s,@GCDEPS@,$GCDEPS,;t t
16502 s,@GCSPEC@,$GCSPEC,;t t
16503 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16504 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16505 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16506 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16507 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16508 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16509 s,@THREADLIBS@,$THREADLIBS,;t t
16510 s,@THREADINCS@,$THREADINCS,;t t
16511 s,@THREADDEPS@,$THREADDEPS,;t t
16512 s,@THREADSPEC@,$THREADSPEC,;t t
16513 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16514 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16515 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16516 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16517 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16518 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16519 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16520 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16521 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16522 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16523 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16524 s,@tool_include_dir@,$tool_include_dir,;t t
16525 s,@gcc_version@,$gcc_version,;t t
16526 s,@LIBICONV@,$LIBICONV,;t t
16527 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16528 s,@GTK_LIBS@,$GTK_LIBS,;t t
16529 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16530 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16531 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16532 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16533 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16534 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16535 s,@GCJH@,$GCJH,;t t
16536 s,@ZIP@,$ZIP,;t t
16537 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16538 s,@ZLIBS@,$ZLIBS,;t t
16539 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16540 s,@ZINCS@,$ZINCS,;t t
16541 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16542 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16543 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16544 s,@IEEESPEC@,$IEEESPEC,;t t
16545 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16546 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16547 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16548 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16549 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16550 s,@toolexecdir@,$toolexecdir,;t t
16551 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16552 s,@toolexeclibdir@,$toolexeclibdir,;t t
16553 s,@GCJVERSION@,$GCJVERSION,;t t
16554 s,@ALLOCA@,$ALLOCA,;t t
16555 s,@PERL@,$PERL,;t t
16556 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16557 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16558 s,@here@,$here,;t t
16559 s,@LIBOBJS@,$LIBOBJS,;t t
16560 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16561 CEOF
16562
16563 _ACEOF
16564
16565   cat >>$CONFIG_STATUS <<\_ACEOF
16566   # Split the substitutions into bite-sized pieces for seds with
16567   # small command number limits, like on Digital OSF/1 and HP-UX.
16568   ac_max_sed_lines=48
16569   ac_sed_frag=1 # Number of current file.
16570   ac_beg=1 # First line for current file.
16571   ac_end=$ac_max_sed_lines # Line after last line for current file.
16572   ac_more_lines=:
16573   ac_sed_cmds=
16574   while $ac_more_lines; do
16575     if test $ac_beg -gt 1; then
16576       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16577     else
16578       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16579     fi
16580     if test ! -s $tmp/subs.frag; then
16581       ac_more_lines=false
16582     else
16583       # The purpose of the label and of the branching condition is to
16584       # speed up the sed processing (if there are no `@' at all, there
16585       # is no need to browse any of the substitutions).
16586       # These are the two extra sed commands mentioned above.
16587       (echo ':t
16588   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16589       if test -z "$ac_sed_cmds"; then
16590         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16591       else
16592         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16593       fi
16594       ac_sed_frag=`expr $ac_sed_frag + 1`
16595       ac_beg=$ac_end
16596       ac_end=`expr $ac_end + $ac_max_sed_lines`
16597     fi
16598   done
16599   if test -z "$ac_sed_cmds"; then
16600     ac_sed_cmds=cat
16601   fi
16602 fi # test -n "$CONFIG_FILES"
16603
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<\_ACEOF
16606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16607   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16608   case $ac_file in
16609   - | *:- | *:-:* ) # input from stdin
16610         cat >$tmp/stdin
16611         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16613   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16614         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16615   * )   ac_file_in=$ac_file.in ;;
16616   esac
16617
16618   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16619   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16621          X"$ac_file" : 'X\(//\)[^/]' \| \
16622          X"$ac_file" : 'X\(//\)$' \| \
16623          X"$ac_file" : 'X\(/\)' \| \
16624          .     : '\(.\)' 2>/dev/null ||
16625 echo X"$ac_file" |
16626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16628           /^X\(\/\/\)$/{ s//\1/; q; }
16629           /^X\(\/\).*/{ s//\1/; q; }
16630           s/.*/./; q'`
16631   { if $as_mkdir_p; then
16632     mkdir -p "$ac_dir"
16633   else
16634     as_dir="$ac_dir"
16635     as_dirs=
16636     while test ! -d "$as_dir"; do
16637       as_dirs="$as_dir $as_dirs"
16638       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640          X"$as_dir" : 'X\(//\)[^/]' \| \
16641          X"$as_dir" : 'X\(//\)$' \| \
16642          X"$as_dir" : 'X\(/\)' \| \
16643          .     : '\(.\)' 2>/dev/null ||
16644 echo X"$as_dir" |
16645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16647           /^X\(\/\/\)$/{ s//\1/; q; }
16648           /^X\(\/\).*/{ s//\1/; q; }
16649           s/.*/./; q'`
16650     done
16651     test ! -n "$as_dirs" || mkdir $as_dirs
16652   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16654    { (exit 1); exit 1; }; }; }
16655
16656   ac_builddir=.
16657
16658 if test "$ac_dir" != .; then
16659   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16660   # A "../" for each directory in $ac_dir_suffix.
16661   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16662 else
16663   ac_dir_suffix= ac_top_builddir=
16664 fi
16665
16666 case $srcdir in
16667   .)  # No --srcdir option.  We are building in place.
16668     ac_srcdir=.
16669     if test -z "$ac_top_builddir"; then
16670        ac_top_srcdir=.
16671     else
16672        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16673     fi ;;
16674   [\\/]* | ?:[\\/]* )  # Absolute path.
16675     ac_srcdir=$srcdir$ac_dir_suffix;
16676     ac_top_srcdir=$srcdir ;;
16677   *) # Relative path.
16678     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16679     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16680 esac
16681
16682 # Do not use `cd foo && pwd` to compute absolute paths, because
16683 # the directories may not exist.
16684 case `pwd` in
16685 .) ac_abs_builddir="$ac_dir";;
16686 *)
16687   case "$ac_dir" in
16688   .) ac_abs_builddir=`pwd`;;
16689   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16690   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16691   esac;;
16692 esac
16693 case $ac_abs_builddir in
16694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16695 *)
16696   case ${ac_top_builddir}. in
16697   .) ac_abs_top_builddir=$ac_abs_builddir;;
16698   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16699   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16700   esac;;
16701 esac
16702 case $ac_abs_builddir in
16703 .) ac_abs_srcdir=$ac_srcdir;;
16704 *)
16705   case $ac_srcdir in
16706   .) ac_abs_srcdir=$ac_abs_builddir;;
16707   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16708   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16709   esac;;
16710 esac
16711 case $ac_abs_builddir in
16712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16713 *)
16714   case $ac_top_srcdir in
16715   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16716   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16717   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16718   esac;;
16719 esac
16720
16721
16722   case $INSTALL in
16723   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16724   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16725   esac
16726
16727   # Let's still pretend it is `configure' which instantiates (i.e., don't
16728   # use $as_me), people would be surprised to read:
16729   #    /* config.h.  Generated by config.status.  */
16730   if test x"$ac_file" = x-; then
16731     configure_input=
16732   else
16733     configure_input="$ac_file.  "
16734   fi
16735   configure_input=$configure_input"Generated from `echo $ac_file_in |
16736                                      sed 's,.*/,,'` by configure."
16737
16738   # First look for the input files in the build tree, otherwise in the
16739   # src tree.
16740   ac_file_inputs=`IFS=:
16741     for f in $ac_file_in; do
16742       case $f in
16743       -) echo $tmp/stdin ;;
16744       [\\/$]*)
16745          # Absolute (can't be DOS-style, as IFS=:)
16746          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16747 echo "$as_me: error: cannot find input file: $f" >&2;}
16748    { (exit 1); exit 1; }; }
16749          echo "$f";;
16750       *) # Relative
16751          if test -f "$f"; then
16752            # Build tree
16753            echo "$f"
16754          elif test -f "$srcdir/$f"; then
16755            # Source tree
16756            echo "$srcdir/$f"
16757          else
16758            # /dev/null tree
16759            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16760 echo "$as_me: error: cannot find input file: $f" >&2;}
16761    { (exit 1); exit 1; }; }
16762          fi;;
16763       esac
16764     done` || { (exit 1); exit 1; }
16765
16766   if test x"$ac_file" != x-; then
16767     { echo "$as_me:$LINENO: creating $ac_file" >&5
16768 echo "$as_me: creating $ac_file" >&6;}
16769     rm -f "$ac_file"
16770   fi
16771 _ACEOF
16772 cat >>$CONFIG_STATUS <<_ACEOF
16773   sed "$ac_vpsub
16774 $extrasub
16775 _ACEOF
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777 :t
16778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16779 s,@configure_input@,$configure_input,;t t
16780 s,@srcdir@,$ac_srcdir,;t t
16781 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16782 s,@top_srcdir@,$ac_top_srcdir,;t t
16783 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16784 s,@builddir@,$ac_builddir,;t t
16785 s,@abs_builddir@,$ac_abs_builddir,;t t
16786 s,@top_builddir@,$ac_top_builddir,;t t
16787 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16788 s,@INSTALL@,$ac_INSTALL,;t t
16789 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16790   rm -f $tmp/stdin
16791   if test x"$ac_file" != x-; then
16792     mv $tmp/out $ac_file
16793   else
16794     cat $tmp/out
16795     rm -f $tmp/out
16796   fi
16797
16798 done
16799 _ACEOF
16800 cat >>$CONFIG_STATUS <<\_ACEOF
16801
16802 #
16803 # CONFIG_HEADER section.
16804 #
16805
16806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16808 #
16809 # ac_d sets the value in "#define NAME VALUE" lines.
16810 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16811 ac_dB='[         ].*$,\1#\2'
16812 ac_dC=' '
16813 ac_dD=',;t'
16814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16815 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16816 ac_uB='$,\1#\2define\3'
16817 ac_uC=' '
16818 ac_uD=',;t'
16819
16820 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16821   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16822   case $ac_file in
16823   - | *:- | *:-:* ) # input from stdin
16824         cat >$tmp/stdin
16825         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16827   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16828         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16829   * )   ac_file_in=$ac_file.in ;;
16830   esac
16831
16832   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16833 echo "$as_me: creating $ac_file" >&6;}
16834
16835   # First look for the input files in the build tree, otherwise in the
16836   # src tree.
16837   ac_file_inputs=`IFS=:
16838     for f in $ac_file_in; do
16839       case $f in
16840       -) echo $tmp/stdin ;;
16841       [\\/$]*)
16842          # Absolute (can't be DOS-style, as IFS=:)
16843          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16844 echo "$as_me: error: cannot find input file: $f" >&2;}
16845    { (exit 1); exit 1; }; }
16846          # Do quote $f, to prevent DOS paths from being IFS'd.
16847          echo "$f";;
16848       *) # Relative
16849          if test -f "$f"; then
16850            # Build tree
16851            echo "$f"
16852          elif test -f "$srcdir/$f"; then
16853            # Source tree
16854            echo "$srcdir/$f"
16855          else
16856            # /dev/null tree
16857            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16858 echo "$as_me: error: cannot find input file: $f" >&2;}
16859    { (exit 1); exit 1; }; }
16860          fi;;
16861       esac
16862     done` || { (exit 1); exit 1; }
16863   # Remove the trailing spaces.
16864   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16865
16866 _ACEOF
16867
16868 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16869 # `conftest.undefs', that substitutes the proper values into
16870 # config.h.in to produce config.h.  The first handles `#define'
16871 # templates, and the second `#undef' templates.
16872 # And first: Protect against being on the right side of a sed subst in
16873 # config.status.  Protect against being in an unquoted here document
16874 # in config.status.
16875 rm -f conftest.defines conftest.undefs
16876 # Using a here document instead of a string reduces the quoting nightmare.
16877 # Putting comments in sed scripts is not portable.
16878 #
16879 # `end' is used to avoid that the second main sed command (meant for
16880 # 0-ary CPP macros) applies to n-ary macro definitions.
16881 # See the Autoconf documentation for `clear'.
16882 cat >confdef2sed.sed <<\_ACEOF
16883 s/[\\&,]/\\&/g
16884 s,[\\$`],\\&,g
16885 t clear
16886 : clear
16887 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16888 t end
16889 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16890 : end
16891 _ACEOF
16892 # If some macros were called several times there might be several times
16893 # the same #defines, which is useless.  Nevertheless, we may not want to
16894 # sort them, since we want the *last* AC-DEFINE to be honored.
16895 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16896 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16897 rm -f confdef2sed.sed
16898
16899 # This sed command replaces #undef with comments.  This is necessary, for
16900 # example, in the case of _POSIX_SOURCE, which is predefined and required
16901 # on some systems where configure will not decide to define it.
16902 cat >>conftest.undefs <<\_ACEOF
16903 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16904 _ACEOF
16905
16906 # Break up conftest.defines because some shells have a limit on the size
16907 # of here documents, and old seds have small limits too (100 cmds).
16908 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16909 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16910 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16911 echo '  :' >>$CONFIG_STATUS
16912 rm -f conftest.tail
16913 while grep . conftest.defines >/dev/null
16914 do
16915   # Write a limited-size here document to $tmp/defines.sed.
16916   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16917   # Speed up: don't consider the non `#define' lines.
16918   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16919   # Work around the forget-to-reset-the-flag bug.
16920   echo 't clr' >>$CONFIG_STATUS
16921   echo ': clr' >>$CONFIG_STATUS
16922   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16923   echo 'CEOF
16924   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16925   rm -f $tmp/in
16926   mv $tmp/out $tmp/in
16927 ' >>$CONFIG_STATUS
16928   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16929   rm -f conftest.defines
16930   mv conftest.tail conftest.defines
16931 done
16932 rm -f conftest.defines
16933 echo '  fi # grep' >>$CONFIG_STATUS
16934 echo >>$CONFIG_STATUS
16935
16936 # Break up conftest.undefs because some shells have a limit on the size
16937 # of here documents, and old seds have small limits too (100 cmds).
16938 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16939 rm -f conftest.tail
16940 while grep . conftest.undefs >/dev/null
16941 do
16942   # Write a limited-size here document to $tmp/undefs.sed.
16943   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16944   # Speed up: don't consider the non `#undef'
16945   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16946   # Work around the forget-to-reset-the-flag bug.
16947   echo 't clr' >>$CONFIG_STATUS
16948   echo ': clr' >>$CONFIG_STATUS
16949   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16950   echo 'CEOF
16951   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16952   rm -f $tmp/in
16953   mv $tmp/out $tmp/in
16954 ' >>$CONFIG_STATUS
16955   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16956   rm -f conftest.undefs
16957   mv conftest.tail conftest.undefs
16958 done
16959 rm -f conftest.undefs
16960
16961 cat >>$CONFIG_STATUS <<\_ACEOF
16962   # Let's still pretend it is `configure' which instantiates (i.e., don't
16963   # use $as_me), people would be surprised to read:
16964   #    /* config.h.  Generated by config.status.  */
16965   if test x"$ac_file" = x-; then
16966     echo "/* Generated by configure.  */" >$tmp/config.h
16967   else
16968     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16969   fi
16970   cat $tmp/in >>$tmp/config.h
16971   rm -f $tmp/in
16972   if test x"$ac_file" != x-; then
16973     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16974       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16975 echo "$as_me: $ac_file is unchanged" >&6;}
16976     else
16977       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16979          X"$ac_file" : 'X\(//\)[^/]' \| \
16980          X"$ac_file" : 'X\(//\)$' \| \
16981          X"$ac_file" : 'X\(/\)' \| \
16982          .     : '\(.\)' 2>/dev/null ||
16983 echo X"$ac_file" |
16984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16986           /^X\(\/\/\)$/{ s//\1/; q; }
16987           /^X\(\/\).*/{ s//\1/; q; }
16988           s/.*/./; q'`
16989       { if $as_mkdir_p; then
16990     mkdir -p "$ac_dir"
16991   else
16992     as_dir="$ac_dir"
16993     as_dirs=
16994     while test ! -d "$as_dir"; do
16995       as_dirs="$as_dir $as_dirs"
16996       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998          X"$as_dir" : 'X\(//\)[^/]' \| \
16999          X"$as_dir" : 'X\(//\)$' \| \
17000          X"$as_dir" : 'X\(/\)' \| \
17001          .     : '\(.\)' 2>/dev/null ||
17002 echo X"$as_dir" |
17003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17004           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17005           /^X\(\/\/\)$/{ s//\1/; q; }
17006           /^X\(\/\).*/{ s//\1/; q; }
17007           s/.*/./; q'`
17008     done
17009     test ! -n "$as_dirs" || mkdir $as_dirs
17010   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17012    { (exit 1); exit 1; }; }; }
17013
17014       rm -f $ac_file
17015       mv $tmp/config.h $ac_file
17016     fi
17017   else
17018     cat $tmp/config.h
17019     rm -f $tmp/config.h
17020   fi
17021 # Compute $ac_file's index in $config_headers.
17022 _am_stamp_count=1
17023 for _am_header in $config_headers :; do
17024   case $_am_header in
17025     $ac_file | $ac_file:* )
17026       break ;;
17027     * )
17028       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17029   esac
17030 done
17031 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17032 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17033          X$ac_file : 'X\(//\)[^/]' \| \
17034          X$ac_file : 'X\(//\)$' \| \
17035          X$ac_file : 'X\(/\)' \| \
17036          .     : '\(.\)' 2>/dev/null ||
17037 echo X$ac_file |
17038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17040           /^X\(\/\/\)$/{ s//\1/; q; }
17041           /^X\(\/\).*/{ s//\1/; q; }
17042           s/.*/./; q'`/stamp-h$_am_stamp_count
17043 done
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<\_ACEOF
17046
17047 #
17048 # CONFIG_LINKS section.
17049 #
17050
17051 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17052   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17053   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17054
17055   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17056 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17057
17058   if test ! -r $srcdir/$ac_source; then
17059     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17060 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17061    { (exit 1); exit 1; }; }
17062   fi
17063   rm -f $ac_dest
17064
17065   # Make relative symlinks.
17066   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17067 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17068          X"$ac_dest" : 'X\(//\)[^/]' \| \
17069          X"$ac_dest" : 'X\(//\)$' \| \
17070          X"$ac_dest" : 'X\(/\)' \| \
17071          .     : '\(.\)' 2>/dev/null ||
17072 echo X"$ac_dest" |
17073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17075           /^X\(\/\/\)$/{ s//\1/; q; }
17076           /^X\(\/\).*/{ s//\1/; q; }
17077           s/.*/./; q'`
17078   { if $as_mkdir_p; then
17079     mkdir -p "$ac_dest_dir"
17080   else
17081     as_dir="$ac_dest_dir"
17082     as_dirs=
17083     while test ! -d "$as_dir"; do
17084       as_dirs="$as_dir $as_dirs"
17085       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17087          X"$as_dir" : 'X\(//\)[^/]' \| \
17088          X"$as_dir" : 'X\(//\)$' \| \
17089          X"$as_dir" : 'X\(/\)' \| \
17090          .     : '\(.\)' 2>/dev/null ||
17091 echo X"$as_dir" |
17092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17094           /^X\(\/\/\)$/{ s//\1/; q; }
17095           /^X\(\/\).*/{ s//\1/; q; }
17096           s/.*/./; q'`
17097     done
17098     test ! -n "$as_dirs" || mkdir $as_dirs
17099   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17100 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17101    { (exit 1); exit 1; }; }; }
17102
17103   ac_builddir=.
17104
17105 if test "$ac_dest_dir" != .; then
17106   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17107   # A "../" for each directory in $ac_dir_suffix.
17108   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17109 else
17110   ac_dir_suffix= ac_top_builddir=
17111 fi
17112
17113 case $srcdir in
17114   .)  # No --srcdir option.  We are building in place.
17115     ac_srcdir=.
17116     if test -z "$ac_top_builddir"; then
17117        ac_top_srcdir=.
17118     else
17119        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17120     fi ;;
17121   [\\/]* | ?:[\\/]* )  # Absolute path.
17122     ac_srcdir=$srcdir$ac_dir_suffix;
17123     ac_top_srcdir=$srcdir ;;
17124   *) # Relative path.
17125     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17126     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17127 esac
17128
17129 # Do not use `cd foo && pwd` to compute absolute paths, because
17130 # the directories may not exist.
17131 case `pwd` in
17132 .) ac_abs_builddir="$ac_dest_dir";;
17133 *)
17134   case "$ac_dest_dir" in
17135   .) ac_abs_builddir=`pwd`;;
17136   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17137   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17138   esac;;
17139 esac
17140 case $ac_abs_builddir in
17141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17142 *)
17143   case ${ac_top_builddir}. in
17144   .) ac_abs_top_builddir=$ac_abs_builddir;;
17145   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17146   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17147   esac;;
17148 esac
17149 case $ac_abs_builddir in
17150 .) ac_abs_srcdir=$ac_srcdir;;
17151 *)
17152   case $ac_srcdir in
17153   .) ac_abs_srcdir=$ac_abs_builddir;;
17154   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17155   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17156   esac;;
17157 esac
17158 case $ac_abs_builddir in
17159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17160 *)
17161   case $ac_top_srcdir in
17162   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17163   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17164   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17165   esac;;
17166 esac
17167
17168
17169   case $srcdir in
17170   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17171       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17172   esac
17173
17174   # Try a symlink, then a hard link, then a copy.
17175   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17176     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17177     cp -p $srcdir/$ac_source $ac_dest ||
17178     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17179 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17180    { (exit 1); exit 1; }; }
17181 done
17182 _ACEOF
17183 cat >>$CONFIG_STATUS <<\_ACEOF
17184
17185 #
17186 # CONFIG_COMMANDS section.
17187 #
17188 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17189   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17190   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17191   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17192 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17193          X"$ac_dest" : 'X\(//\)[^/]' \| \
17194          X"$ac_dest" : 'X\(//\)$' \| \
17195          X"$ac_dest" : 'X\(/\)' \| \
17196          .     : '\(.\)' 2>/dev/null ||
17197 echo X"$ac_dest" |
17198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17200           /^X\(\/\/\)$/{ s//\1/; q; }
17201           /^X\(\/\).*/{ s//\1/; q; }
17202           s/.*/./; q'`
17203   { if $as_mkdir_p; then
17204     mkdir -p "$ac_dir"
17205   else
17206     as_dir="$ac_dir"
17207     as_dirs=
17208     while test ! -d "$as_dir"; do
17209       as_dirs="$as_dir $as_dirs"
17210       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17212          X"$as_dir" : 'X\(//\)[^/]' \| \
17213          X"$as_dir" : 'X\(//\)$' \| \
17214          X"$as_dir" : 'X\(/\)' \| \
17215          .     : '\(.\)' 2>/dev/null ||
17216 echo X"$as_dir" |
17217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17219           /^X\(\/\/\)$/{ s//\1/; q; }
17220           /^X\(\/\).*/{ s//\1/; q; }
17221           s/.*/./; q'`
17222     done
17223     test ! -n "$as_dirs" || mkdir $as_dirs
17224   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17225 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17226    { (exit 1); exit 1; }; }; }
17227
17228   ac_builddir=.
17229
17230 if test "$ac_dir" != .; then
17231   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17232   # A "../" for each directory in $ac_dir_suffix.
17233   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17234 else
17235   ac_dir_suffix= ac_top_builddir=
17236 fi
17237
17238 case $srcdir in
17239   .)  # No --srcdir option.  We are building in place.
17240     ac_srcdir=.
17241     if test -z "$ac_top_builddir"; then
17242        ac_top_srcdir=.
17243     else
17244        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17245     fi ;;
17246   [\\/]* | ?:[\\/]* )  # Absolute path.
17247     ac_srcdir=$srcdir$ac_dir_suffix;
17248     ac_top_srcdir=$srcdir ;;
17249   *) # Relative path.
17250     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17251     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17252 esac
17253
17254 # Do not use `cd foo && pwd` to compute absolute paths, because
17255 # the directories may not exist.
17256 case `pwd` in
17257 .) ac_abs_builddir="$ac_dir";;
17258 *)
17259   case "$ac_dir" in
17260   .) ac_abs_builddir=`pwd`;;
17261   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17262   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17263   esac;;
17264 esac
17265 case $ac_abs_builddir in
17266 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17267 *)
17268   case ${ac_top_builddir}. in
17269   .) ac_abs_top_builddir=$ac_abs_builddir;;
17270   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17271   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17272   esac;;
17273 esac
17274 case $ac_abs_builddir in
17275 .) ac_abs_srcdir=$ac_srcdir;;
17276 *)
17277   case $ac_srcdir in
17278   .) ac_abs_srcdir=$ac_abs_builddir;;
17279   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17280   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17281   esac;;
17282 esac
17283 case $ac_abs_builddir in
17284 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17285 *)
17286   case $ac_top_srcdir in
17287   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17288   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17289   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17290   esac;;
17291 esac
17292
17293
17294   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17295 echo "$as_me: executing $ac_dest commands" >&6;}
17296   case $ac_dest in
17297     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17298   # Strip MF so we end up with the name of the file.
17299   mf=`echo "$mf" | sed -e 's/:.*$//'`
17300   # Check whether this is an Automake generated Makefile or not.
17301   # We used to match only the files named `Makefile.in', but
17302   # some people rename them; so instead we look at the file content.
17303   # Grep'ing the first line is not enough: some people post-process
17304   # each Makefile.in and add a new line on top of each file to say so.
17305   # So let's grep whole file.
17306   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17307     dirpart=`(dirname "$mf") 2>/dev/null ||
17308 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17309          X"$mf" : 'X\(//\)[^/]' \| \
17310          X"$mf" : 'X\(//\)$' \| \
17311          X"$mf" : 'X\(/\)' \| \
17312          .     : '\(.\)' 2>/dev/null ||
17313 echo X"$mf" |
17314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17316           /^X\(\/\/\)$/{ s//\1/; q; }
17317           /^X\(\/\).*/{ s//\1/; q; }
17318           s/.*/./; q'`
17319   else
17320     continue
17321   fi
17322   # Extract the definition of DEPDIR, am__include, and am__quote
17323   # from the Makefile without running `make'.
17324   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17325   test -z "$DEPDIR" && continue
17326   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17327   test -z "am__include" && continue
17328   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17329   # When using ansi2knr, U may be empty or an underscore; expand it
17330   U=`sed -n 's/^U = //p' < "$mf"`
17331   # Find all dependency output files, they are included files with
17332   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17333   # simplest approach to changing $(DEPDIR) to its actual value in the
17334   # expansion.
17335   for file in `sed -n "
17336     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17337        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17338     # Make sure the directory exists.
17339     test -f "$dirpart/$file" && continue
17340     fdir=`(dirname "$file") 2>/dev/null ||
17341 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342          X"$file" : 'X\(//\)[^/]' \| \
17343          X"$file" : 'X\(//\)$' \| \
17344          X"$file" : 'X\(/\)' \| \
17345          .     : '\(.\)' 2>/dev/null ||
17346 echo X"$file" |
17347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17349           /^X\(\/\/\)$/{ s//\1/; q; }
17350           /^X\(\/\).*/{ s//\1/; q; }
17351           s/.*/./; q'`
17352     { if $as_mkdir_p; then
17353     mkdir -p $dirpart/$fdir
17354   else
17355     as_dir=$dirpart/$fdir
17356     as_dirs=
17357     while test ! -d "$as_dir"; do
17358       as_dirs="$as_dir $as_dirs"
17359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17361          X"$as_dir" : 'X\(//\)[^/]' \| \
17362          X"$as_dir" : 'X\(//\)$' \| \
17363          X"$as_dir" : 'X\(/\)' \| \
17364          .     : '\(.\)' 2>/dev/null ||
17365 echo X"$as_dir" |
17366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17368           /^X\(\/\/\)$/{ s//\1/; q; }
17369           /^X\(\/\).*/{ s//\1/; q; }
17370           s/.*/./; q'`
17371     done
17372     test ! -n "$as_dirs" || mkdir $as_dirs
17373   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17374 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17375    { (exit 1); exit 1; }; }; }
17376
17377     # echo "creating $dirpart/$file"
17378     echo '# dummy' > "$dirpart/$file"
17379   done
17380 done
17381  ;;
17382     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17383 case " $CONFIG_FILES " in
17384  *" Makefile "*)
17385    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17386    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17387    ;;
17388 esac
17389  ;;
17390   esac
17391 done
17392 _ACEOF
17393
17394 cat >>$CONFIG_STATUS <<\_ACEOF
17395
17396 { (exit 0); exit 0; }
17397 _ACEOF
17398 chmod +x $CONFIG_STATUS
17399 ac_clean_files=$ac_clean_files_save
17400
17401
17402 # configure is writing to config.log, and then calls config.status.
17403 # config.status does its own redirection, appending to config.log.
17404 # Unfortunately, on DOS this fails, as config.log is still kept open
17405 # by configure, so config.status won't be able to write to it; its
17406 # output is simply discarded.  So we exec the FD to /dev/null,
17407 # effectively closing config.log, so it can be properly (re)opened and
17408 # appended to by config.status.  When coming back to configure, we
17409 # need to make the FD available again.
17410 if test "$no_create" != yes; then
17411   ac_cs_success=:
17412   ac_config_status_args=
17413   test "$silent" = yes &&
17414     ac_config_status_args="$ac_config_status_args --quiet"
17415   exec 5>/dev/null
17416   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17417   exec 5>>config.log
17418   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17419   # would make configure fail if this is the last instruction.
17420   $ac_cs_success || { (exit 1); exit 1; }
17421 fi
17422
17423 #
17424 # CONFIG_SUBDIRS section.
17425 #
17426 if test "$no_recursion" != yes; then
17427
17428   # Remove --cache-file and --srcdir arguments so they do not pile up.
17429   ac_sub_configure_args=
17430   ac_prev=
17431   for ac_arg in $ac_configure_args; do
17432     if test -n "$ac_prev"; then
17433       ac_prev=
17434       continue
17435     fi
17436     case $ac_arg in
17437     -cache-file | --cache-file | --cache-fil | --cache-fi \
17438     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17439       ac_prev=cache_file ;;
17440     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17441     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17442     | --c=*)
17443       ;;
17444     --config-cache | -C)
17445       ;;
17446     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17447       ac_prev=srcdir ;;
17448     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17449       ;;
17450     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17451       ac_prev=prefix ;;
17452     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17453       ;;
17454     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17455     esac
17456   done
17457
17458   # Always prepend --prefix to ensure using the same prefix
17459   # in subdir configurations.
17460   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17461
17462   ac_popdir=`pwd`
17463   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17464
17465     # Do not complain, so a configure script can configure whichever
17466     # parts of a large source tree are present.
17467     test -d $srcdir/$ac_dir || continue
17468
17469     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17470 echo "$as_me: configuring in $ac_dir" >&6;}
17471     { if $as_mkdir_p; then
17472     mkdir -p "$ac_dir"
17473   else
17474     as_dir="$ac_dir"
17475     as_dirs=
17476     while test ! -d "$as_dir"; do
17477       as_dirs="$as_dir $as_dirs"
17478       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17480          X"$as_dir" : 'X\(//\)[^/]' \| \
17481          X"$as_dir" : 'X\(//\)$' \| \
17482          X"$as_dir" : 'X\(/\)' \| \
17483          .     : '\(.\)' 2>/dev/null ||
17484 echo X"$as_dir" |
17485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17487           /^X\(\/\/\)$/{ s//\1/; q; }
17488           /^X\(\/\).*/{ s//\1/; q; }
17489           s/.*/./; q'`
17490     done
17491     test ! -n "$as_dirs" || mkdir $as_dirs
17492   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17494    { (exit 1); exit 1; }; }; }
17495
17496     ac_builddir=.
17497
17498 if test "$ac_dir" != .; then
17499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17500   # A "../" for each directory in $ac_dir_suffix.
17501   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17502 else
17503   ac_dir_suffix= ac_top_builddir=
17504 fi
17505
17506 case $srcdir in
17507   .)  # No --srcdir option.  We are building in place.
17508     ac_srcdir=.
17509     if test -z "$ac_top_builddir"; then
17510        ac_top_srcdir=.
17511     else
17512        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17513     fi ;;
17514   [\\/]* | ?:[\\/]* )  # Absolute path.
17515     ac_srcdir=$srcdir$ac_dir_suffix;
17516     ac_top_srcdir=$srcdir ;;
17517   *) # Relative path.
17518     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17519     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17520 esac
17521
17522 # Do not use `cd foo && pwd` to compute absolute paths, because
17523 # the directories may not exist.
17524 case `pwd` in
17525 .) ac_abs_builddir="$ac_dir";;
17526 *)
17527   case "$ac_dir" in
17528   .) ac_abs_builddir=`pwd`;;
17529   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17530   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17531   esac;;
17532 esac
17533 case $ac_abs_builddir in
17534 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17535 *)
17536   case ${ac_top_builddir}. in
17537   .) ac_abs_top_builddir=$ac_abs_builddir;;
17538   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17539   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17540   esac;;
17541 esac
17542 case $ac_abs_builddir in
17543 .) ac_abs_srcdir=$ac_srcdir;;
17544 *)
17545   case $ac_srcdir in
17546   .) ac_abs_srcdir=$ac_abs_builddir;;
17547   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17548   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17549   esac;;
17550 esac
17551 case $ac_abs_builddir in
17552 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17553 *)
17554   case $ac_top_srcdir in
17555   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17556   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17557   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17558   esac;;
17559 esac
17560
17561
17562     cd $ac_dir
17563
17564     # Check for guested configure; otherwise get Cygnus style configure.
17565     if test -f $ac_srcdir/configure.gnu; then
17566       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17567     elif test -f $ac_srcdir/configure; then
17568       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17569     elif test -f $ac_srcdir/configure.in; then
17570       ac_sub_configure=$ac_configure
17571     else
17572       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17573 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17574       ac_sub_configure=
17575     fi
17576
17577     # The recursion is here.
17578     if test -n "$ac_sub_configure"; then
17579       # Make the cache file name correct relative to the subdirectory.
17580       case $cache_file in
17581       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17582       *) # Relative path.
17583         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17584       esac
17585
17586       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17587 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17588       # The eval makes quoting arguments work.
17589       eval $ac_sub_configure $ac_sub_configure_args \
17590            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17591         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17592 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17593    { (exit 1); exit 1; }; }
17594     fi
17595
17596     cd "$ac_popdir"
17597   done
17598 fi
17599