aclocal.m4: Regenerate with aclocal 1.9.2.
[platform/upstream/gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all 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"
2206                          || test ! -s conftest.err'
2207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208   (eval $ac_try) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }; } &&
2212          { ac_try='test -s conftest.$ac_objext'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; }; then
2218   ac_compiler_gnu=yes
2219 else
2220   echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 ac_compiler_gnu=no
2224 fi
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2227
2228 fi
2229 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2231 GCC=`test $ac_compiler_gnu = yes && echo yes`
2232 ac_test_CFLAGS=${CFLAGS+set}
2233 ac_save_CFLAGS=$CFLAGS
2234 CFLAGS="-g"
2235 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2237 if test "${ac_cv_prog_cc_g+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h.  */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h.  */
2246
2247 int
2248 main ()
2249 {
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>conftest.er1
2258   ac_status=$?
2259   grep -v '^ *+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -z "$ac_c_werror_flag"
2265                          || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_g=yes
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_cv_prog_cc_g=no
2283 fi
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2287 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2288 if test "$ac_test_CFLAGS" = set; then
2289   CFLAGS=$ac_save_CFLAGS
2290 elif test $ac_cv_prog_cc_g = yes; then
2291   if test "$GCC" = yes; then
2292     CFLAGS="-g -O2"
2293   else
2294     CFLAGS="-g"
2295   fi
2296 else
2297   if test "$GCC" = yes; then
2298     CFLAGS="-O2"
2299   else
2300     CFLAGS=
2301   fi
2302 fi
2303 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   ac_cv_prog_cc_stdc=no
2309 ac_save_CC=$CC
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316 #include <stdarg.h>
2317 #include <stdio.h>
2318 #include <sys/types.h>
2319 #include <sys/stat.h>
2320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2321 struct buf { int x; };
2322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2323 static char *e (p, i)
2324      char **p;
2325      int i;
2326 {
2327   return p[i];
2328 }
2329 static char *f (char * (*g) (char **, int), char **p, ...)
2330 {
2331   char *s;
2332   va_list v;
2333   va_start (v,p);
2334   s = g (p, va_arg (v,int));
2335   va_end (v);
2336   return s;
2337 }
2338
2339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2340    function prototypes and stuff, but not '\xHH' hex character constants.
2341    These don't provoke an error unfortunately, instead are silently treated
2342    as 'x'.  The following induces an error, until -std1 is added to get
2343    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2344    array size at least.  It's necessary to write '\x00'==0 to get something
2345    that's true only with -std1.  */
2346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2347
2348 int test (int i, double x);
2349 struct s1 {int (*f) (int a);};
2350 struct s2 {int (*f) (double a);};
2351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2352 int argc;
2353 char **argv;
2354 int
2355 main ()
2356 {
2357 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 # Don't try gcc -ansi; that turns off useful extensions and
2363 # breaks some systems' header files.
2364 # AIX                   -qlanglvl=ansi
2365 # Ultrix and OSF/1      -std1
2366 # HP-UX 10.20 and later -Ae
2367 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2368 # SVR4                  -Xc -D__EXTENSIONS__
2369 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2370 do
2371   CC="$ac_save_CC $ac_arg"
2372   rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374   (eval $ac_compile) 2>conftest.er1
2375   ac_status=$?
2376   grep -v '^ *+' conftest.er1 >conftest.err
2377   rm -f conftest.er1
2378   cat conftest.err >&5
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); } &&
2381          { ac_try='test -z "$ac_c_werror_flag"
2382                          || test ! -s conftest.err'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; } &&
2388          { ac_try='test -s conftest.$ac_objext'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; }; then
2394   ac_cv_prog_cc_stdc=$ac_arg
2395 break
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 fi
2401 rm -f conftest.err conftest.$ac_objext
2402 done
2403 rm -f conftest.$ac_ext conftest.$ac_objext
2404 CC=$ac_save_CC
2405
2406 fi
2407
2408 case "x$ac_cv_prog_cc_stdc" in
2409   x|xno)
2410     echo "$as_me:$LINENO: result: none needed" >&5
2411 echo "${ECHO_T}none needed" >&6 ;;
2412   *)
2413     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2415     CC="$CC $ac_cv_prog_cc_stdc" ;;
2416 esac
2417
2418 # Some people use a C++ compiler to compile C.  Since we use `exit',
2419 # in C++ we need to declare it.  In case someone uses the same compiler
2420 # for both compiling C and C++ we need to have the C++ compiler decide
2421 # the declaration of exit, since it's the most demanding environment.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #ifndef __cplusplus
2424   choke me
2425 #endif
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_c_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   for ac_declaration in \
2450    '' \
2451    'extern "C" void std::exit (int) throw (); using std::exit;' \
2452    'extern "C" void std::exit (int); using std::exit;' \
2453    'extern "C" void exit (int) throw ();' \
2454    'extern "C" void exit (int);' \
2455    'void exit (int);'
2456 do
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463 $ac_declaration
2464 #include <stdlib.h>
2465 int
2466 main ()
2467 {
2468 exit (42);
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>conftest.er1
2476   ac_status=$?
2477   grep -v '^ *+' conftest.er1 >conftest.err
2478   rm -f conftest.er1
2479   cat conftest.err >&5
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -z "$ac_c_werror_flag"
2483                          || test ! -s conftest.err'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; } &&
2489          { ac_try='test -s conftest.$ac_objext'
2490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491   (eval $ac_try) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   :
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 continue
2501 fi
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509 $ac_declaration
2510 int
2511 main ()
2512 {
2513 exit (42);
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520   (eval $ac_compile) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -z "$ac_c_werror_flag"
2528                          || test ! -s conftest.err'
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); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   break
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 fi
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548 rm -f conftest*
2549 if test -n "$ac_declaration"; then
2550   echo '#ifdef __cplusplus' >>confdefs.h
2551   echo $ac_declaration      >>confdefs.h
2552   echo '#endif'             >>confdefs.h
2553 fi
2554
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 fi
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567 ac_ext=cc
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2574   do
2575     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577 echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CXX"; then
2583   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590   for ac_exec_ext in '' $ac_executable_extensions; do
2591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598
2599 fi
2600 fi
2601 CXX=$glibcxx_cv_prog_CXX
2602 if test -n "$CXX"; then
2603   echo "$as_me:$LINENO: result: $CXX" >&5
2604 echo "${ECHO_T}$CXX" >&6
2605 else
2606   echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2608 fi
2609
2610     test -n "$CXX" && break
2611   done
2612 fi
2613 if test -z "$CXX"; then
2614   ac_ct_CXX=$CXX
2615   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   if test -n "$ac_ct_CXX"; then
2625   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632   for ac_exec_ext in '' $ac_executable_extensions; do
2633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634     ac_cv_prog_ac_ct_CXX="$ac_prog"
2635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639 done
2640
2641 fi
2642 fi
2643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2644 if test -n "$ac_ct_CXX"; then
2645   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2646 echo "${ECHO_T}$ac_ct_CXX" >&6
2647 else
2648   echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2650 fi
2651
2652   test -n "$ac_ct_CXX" && break
2653 done
2654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2655
2656   CXX=$ac_ct_CXX
2657 fi
2658
2659
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO:" \
2662      "checking for C++ compiler version" >&5
2663 ac_compiler=`set X $ac_compile; echo $2`
2664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2665   (eval $ac_compiler --version </dev/null >&5) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2670   (eval $ac_compiler -v </dev/null >&5) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2675   (eval $ac_compiler -V </dev/null >&5) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695 #ifndef __GNUC__
2696        choke me
2697 #endif
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705   (eval $ac_compile) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_cxx_werror_flag"
2713                          || test ! -s conftest.err'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; }; then
2725   ac_compiler_gnu=yes
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 ac_compiler_gnu=no
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2734
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2738 GXX=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CXXFLAGS=${CXXFLAGS+set}
2740 ac_save_CXXFLAGS=$CXXFLAGS
2741 CXXFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cxx_g+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753
2754 int
2755 main ()
2756 {
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_cxx_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   ac_cv_prog_cxx_g=yes
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_prog_cxx_g=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2795 if test "$ac_test_CXXFLAGS" = set; then
2796   CXXFLAGS=$ac_save_CXXFLAGS
2797 elif test $ac_cv_prog_cxx_g = yes; then
2798   if test "$GXX" = yes; then
2799     CXXFLAGS="-g -O2"
2800   else
2801     CXXFLAGS="-g"
2802   fi
2803 else
2804   if test "$GXX" = yes; then
2805     CXXFLAGS="-O2"
2806   else
2807     CXXFLAGS=
2808   fi
2809 fi
2810 for ac_declaration in \
2811    '' \
2812    'extern "C" void std::exit (int) throw (); using std::exit;' \
2813    'extern "C" void std::exit (int); using std::exit;' \
2814    'extern "C" void exit (int) throw ();' \
2815    'extern "C" void exit (int);' \
2816    'void exit (int);'
2817 do
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 $ac_declaration
2825 #include <stdlib.h>
2826 int
2827 main ()
2828 {
2829 exit (42);
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836   (eval $ac_compile) 2>conftest.er1
2837   ac_status=$?
2838   grep -v '^ *+' conftest.er1 >conftest.err
2839   rm -f conftest.er1
2840   cat conftest.err >&5
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          { ac_try='test -z "$ac_cxx_werror_flag"
2844                          || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864   cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 $ac_declaration
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_cxx_werror_flag"
2889                          || test ! -s conftest.err'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; } &&
2895          { ac_try='test -s conftest.$ac_objext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   break
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 done
2909 rm -f conftest*
2910 if test -n "$ac_declaration"; then
2911   echo '#ifdef __cplusplus' >>confdefs.h
2912   echo $ac_declaration      >>confdefs.h
2913   echo '#endif'             >>confdefs.h
2914 fi
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921
2922 CXXFLAGS="$save_CXXFLAGS"
2923
2924
2925
2926
2927
2928 am__api_version="1.9"
2929 # Find a good install program.  We prefer a C program (faster),
2930 # so one script is as good as another.  But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2935 # AIX /bin/install
2936 # AmigaOS /C/install, which installs bootblocks on floppy discs
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # OS/2's system install, which has a completely different semantic
2941 # ./install, which can be erroneously created by make from ./install.sh.
2942 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in
2955   ./ | .// | /cC/* | \
2956   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2958   /usr/ucb/* ) ;;
2959   *)
2960     # OSF1 and SCO ODT 3.0 have their own names for install.
2961     # Don't use installbsd from OSF since it installs stuff as root
2962     # by default.
2963     for ac_prog in ginstall scoinst install; do
2964       for ac_exec_ext in '' $ac_executable_extensions; do
2965         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2966           if test $ac_prog = install &&
2967             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968             # AIX install.  It has an incompatible calling convention.
2969             :
2970           elif test $ac_prog = install &&
2971             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972             # program-specific install script used by HP pwplus--don't use.
2973             :
2974           else
2975             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2976             break 3
2977           fi
2978         fi
2979       done
2980     done
2981     ;;
2982 esac
2983 done
2984
2985
2986 fi
2987   if test "${ac_cv_path_install+set}" = set; then
2988     INSTALL=$ac_cv_path_install
2989   else
2990     # As a last resort, use the slow shell script.  We don't cache a
2991     # path for INSTALL within a source directory, because that will
2992     # break other packages using the cache if that directory is
2993     # removed, or if the path is relative.
2994     INSTALL=$ac_install_sh
2995   fi
2996 fi
2997 echo "$as_me:$LINENO: result: $INSTALL" >&5
2998 echo "${ECHO_T}$INSTALL" >&6
2999
3000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3001 # It thinks the first close brace ends the variable substitution.
3002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3003
3004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3005
3006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3007
3008 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3009 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3010 # Just in case
3011 sleep 1
3012 echo timestamp > conftest.file
3013 # Do `set' in a subshell so we don't clobber the current shell's
3014 # arguments.  Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3017 # directory).
3018 if (
3019    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3020    if test "$*" = "X"; then
3021       # -L didn't work.
3022       set X `ls -t $srcdir/configure conftest.file`
3023    fi
3024    rm -f conftest.file
3025    if test "$*" != "X $srcdir/configure conftest.file" \
3026       && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028       # If neither matched, then we have a broken ls.  This can happen
3029       # if, for instance, CONFIG_SHELL is bash and it inherits a
3030       # broken ls alias from the environment.  This has actually
3031       # happened.  Such a system could not be considered "sane".
3032       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3033 alias in your environment" >&5
3034 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3035 alias in your environment" >&2;}
3036    { (exit 1); exit 1; }; }
3037    fi
3038
3039    test "$2" = conftest.file
3040    )
3041 then
3042    # Ok.
3043    :
3044 else
3045    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3046 Check your system clock" >&5
3047 echo "$as_me: error: newly created file is older than distributed files!
3048 Check your system clock" >&2;}
3049    { (exit 1); exit 1; }; }
3050 fi
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3053 test "$program_prefix" != NONE &&
3054   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE &&
3057   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3058 # Double any \ or $.  echo might interpret backslashes.
3059 # By default was `s,x,x', remove it if useless.
3060 cat <<\_ACEOF >conftest.sed
3061 s/[\\$]/&&/g;s/;s,x,x,$//
3062 _ACEOF
3063 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3064 rm conftest.sed
3065
3066 # expand $ac_aux_dir to an absolute path
3067 am_aux_dir=`cd $ac_aux_dir && pwd`
3068
3069 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3070 # Use eval to expand $SHELL
3071 if eval "$MISSING --run true"; then
3072   am_missing_run="$MISSING --run "
3073 else
3074   am_missing_run=
3075   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3076 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3077 fi
3078
3079 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3080   # We used to keeping the `.' as first argument, in order to
3081   # allow $(mkdir_p) to be used without argument.  As in
3082   #   $(mkdir_p) $(somedir)
3083   # where $(somedir) is conditionally defined.  However this is wrong
3084   # for two reasons:
3085   #  1. if the package is installed by a user who cannot write `.'
3086   #     make install will fail,
3087   #  2. the above comment should most certainly read
3088   #     $(mkdir_p) $(DESTDIR)$(somedir)
3089   #     so it does not work when $(somedir) is undefined and
3090   #     $(DESTDIR) is not.
3091   #  To support the latter case, we have to write
3092   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3093   #  so the `.' trick is pointless.
3094   mkdir_p='mkdir -p --'
3095 else
3096   # On NextStep and OpenStep, the `mkdir' command does not
3097   # recognize any option.  It will interpret all options as
3098   # directories to create, and then abort because `.' already
3099   # exists.
3100   for d in ./-p ./--version;
3101   do
3102     test -d $d && rmdir $d
3103   done
3104   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3105   if test -f "$ac_aux_dir/mkinstalldirs"; then
3106     mkdir_p='$(mkinstalldirs)'
3107   else
3108     mkdir_p='$(install_sh) -d'
3109   fi
3110 fi
3111
3112 for ac_prog in gawk mawk nawk awk
3113 do
3114   # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_prog_AWK+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   if test -n "$AWK"; then
3122   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129   for ac_exec_ext in '' $ac_executable_extensions; do
3130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_AWK="$ac_prog"
3132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136 done
3137
3138 fi
3139 fi
3140 AWK=$ac_cv_prog_AWK
3141 if test -n "$AWK"; then
3142   echo "$as_me:$LINENO: result: $AWK" >&5
3143 echo "${ECHO_T}$AWK" >&6
3144 else
3145   echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3147 fi
3148
3149   test -n "$AWK" && break
3150 done
3151
3152 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3153 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3154 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3155 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.make <<\_ACEOF
3159 all:
3160         @echo 'ac_maketemp="$(MAKE)"'
3161 _ACEOF
3162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3163 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3164 if test -n "$ac_maketemp"; then
3165   eval ac_cv_prog_make_${ac_make}_set=yes
3166 else
3167   eval ac_cv_prog_make_${ac_make}_set=no
3168 fi
3169 rm -f conftest.make
3170 fi
3171 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3172   echo "$as_me:$LINENO: result: yes" >&5
3173 echo "${ECHO_T}yes" >&6
3174   SET_MAKE=
3175 else
3176   echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178   SET_MAKE="MAKE=${MAKE-make}"
3179 fi
3180
3181 rm -rf .tst 2>/dev/null
3182 mkdir .tst 2>/dev/null
3183 if test -d .tst; then
3184   am__leading_dot=.
3185 else
3186   am__leading_dot=_
3187 fi
3188 rmdir .tst 2>/dev/null
3189
3190 DEPDIR="${am__leading_dot}deps"
3191
3192           ac_config_commands="$ac_config_commands depfiles"
3193
3194
3195 am_make=${MAKE-make}
3196 cat > confinc << 'END'
3197 am__doit:
3198         @echo done
3199 .PHONY: am__doit
3200 END
3201 # If we don't find an include directive, just comment out the code.
3202 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3203 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3204 am__include="#"
3205 am__quote=
3206 _am_result=none
3207 # First try GNU make style include.
3208 echo "include confinc" > confmf
3209 # We grep out `Entering directory' and `Leaving directory'
3210 # messages which can occur if `w' ends up in MAKEFLAGS.
3211 # In particular we don't look at `^make:' because GNU make might
3212 # be invoked under some other name (usually "gmake"), in which
3213 # case it prints its new name instead of `make'.
3214 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3215    am__include=include
3216    am__quote=
3217    _am_result=GNU
3218 fi
3219 # Now try BSD make style include.
3220 if test "$am__include" = "#"; then
3221    echo '.include "confinc"' > confmf
3222    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3223       am__include=.include
3224       am__quote="\""
3225       _am_result=BSD
3226    fi
3227 fi
3228
3229
3230 echo "$as_me:$LINENO: result: $_am_result" >&5
3231 echo "${ECHO_T}$_am_result" >&6
3232 rm -f confinc confmf
3233
3234 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3235 if test "${enable_dependency_tracking+set}" = set; then
3236   enableval="$enable_dependency_tracking"
3237
3238 fi;
3239 if test "x$enable_dependency_tracking" != xno; then
3240   am_depcomp="$ac_aux_dir/depcomp"
3241   AMDEPBACKSLASH='\'
3242 fi
3243
3244
3245 if test "x$enable_dependency_tracking" != xno; then
3246   AMDEP_TRUE=
3247   AMDEP_FALSE='#'
3248 else
3249   AMDEP_TRUE='#'
3250   AMDEP_FALSE=
3251 fi
3252
3253
3254
3255 # test to see if srcdir already configured
3256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3257    test -f $srcdir/config.status; then
3258   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3260    { (exit 1); exit 1; }; }
3261 fi
3262
3263 # test whether we have cygpath
3264 if test -z "$CYGPATH_W"; then
3265   if (cygpath --version) >/dev/null 2>/dev/null; then
3266     CYGPATH_W='cygpath -w'
3267   else
3268     CYGPATH_W=echo
3269   fi
3270 fi
3271
3272
3273 # Define the identity of the package.
3274  PACKAGE='libjava'
3275  VERSION='version-unused'
3276
3277
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE "$PACKAGE"
3280 _ACEOF
3281
3282
3283 cat >>confdefs.h <<_ACEOF
3284 #define VERSION "$VERSION"
3285 _ACEOF
3286
3287 # Some tools Automake needs.
3288
3289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290
3291
3292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293
3294
3295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296
3297
3298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299
3300
3301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302
3303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3304
3305 # Installed binaries are usually stripped using `strip' when the user
3306 # run `make install-strip'.  However `strip' might not be the right
3307 # tool to use in cross-compilation environments, therefore Automake
3308 # will honor the `STRIP' environment variable to overrule this program.
3309 if test "$cross_compiling" != no; then
3310   if test -n "$ac_tool_prefix"; then
3311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}strip; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_STRIP+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   if test -n "$STRIP"; then
3319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333 done
3334
3335 fi
3336 fi
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339   echo "$as_me:$LINENO: result: $STRIP" >&5
3340 echo "${ECHO_T}$STRIP" >&6
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 fi
3347 if test -z "$ac_cv_prog_STRIP"; then
3348   ac_ct_STRIP=$STRIP
3349   # Extract the first word of "strip", so it can be a program name with args.
3350 set dummy strip; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   if test -n "$ac_ct_STRIP"; then
3357   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364   for ac_exec_ext in '' $ac_executable_extensions; do
3365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366     ac_cv_prog_ac_ct_STRIP="strip"
3367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371 done
3372
3373   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3374 fi
3375 fi
3376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3377 if test -n "$ac_ct_STRIP"; then
3378   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3379 echo "${ECHO_T}$ac_ct_STRIP" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385   STRIP=$ac_ct_STRIP
3386 else
3387   STRIP="$ac_cv_prog_STRIP"
3388 fi
3389
3390 fi
3391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3392
3393 # We need awk for the "check" target.  The system "awk" is bad on
3394 # some platforms.
3395 # Always define AMTAR for backward compatibility.
3396
3397 AMTAR=${AMTAR-"${am_missing_run}tar"}
3398
3399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3400
3401
3402
3403
3404 depcc="$CC"   am_compiler_list=
3405
3406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412   # We make a subdir and do the tests there.  Otherwise we can end up
3413   # making bogus files that we don't know about and never remove.  For
3414   # instance it was reported that on HP-UX the gcc test will end up
3415   # making a dummy file named `D' -- because `-MD' means `put the output
3416   # in D'.
3417   mkdir conftest.dir
3418   # Copy depcomp to subdir because otherwise we won't find it if we're
3419   # using a relative directory.
3420   cp "$am_depcomp" conftest.dir
3421   cd conftest.dir
3422   # We will build objects and dependencies in a subdirectory because
3423   # it helps to detect inapplicable dependency modes.  For instance
3424   # both Tru64's cc and ICC support -MD to output dependencies as a
3425   # side effect of compilation, but ICC will put the dependencies in
3426   # the current directory while Tru64 will put them in the object
3427   # directory.
3428   mkdir sub
3429
3430   am_cv_CC_dependencies_compiler_type=none
3431   if test "$am_compiler_list" = ""; then
3432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433   fi
3434   for depmode in $am_compiler_list; do
3435     # Setup a source with many dependencies, because some compilers
3436     # like to wrap large dependency lists on column 80 (with \), and
3437     # we should not choose a depcomp mode which is confused by this.
3438     #
3439     # We need to recreate these files for each test, as the compiler may
3440     # overwrite some of them when testing with obscure command lines.
3441     # This happens at least with the AIX C compiler.
3442     : > sub/conftest.c
3443     for i in 1 2 3 4 5 6; do
3444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446       # Solaris 8's {/usr,}/bin/sh.
3447       touch sub/conftst$i.h
3448     done
3449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451     case $depmode in
3452     nosideeffect)
3453       # after this tag, mechanisms are not by side-effect, so they'll
3454       # only be used when explicitly requested
3455       if test "x$enable_dependency_tracking" = xyes; then
3456         continue
3457       else
3458         break
3459       fi
3460       ;;
3461     none) break ;;
3462     esac
3463     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464     # mode.  It turns out that the SunPro C++ compiler does not properly
3465     # handle `-M -o', and we need to detect this.
3466     if depmode=$depmode \
3467        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470          >/dev/null 2>conftest.err &&
3471        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474       # icc doesn't choke on unknown options, it will just issue warnings
3475       # or remarks (even with -Werror).  So we grep stderr for any message
3476       # that says an option was ignored or not supported.
3477       # When given -MP, icc 7.0 and 7.1 complain thusly:
3478       #   icc: Command line warning: ignoring option '-M'; no argument required
3479       # The diagnosis changed in icc 8.0:
3480       #   icc: Command line remark: option '-MP' not supported
3481       if (grep 'ignoring option' conftest.err ||
3482           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483         am_cv_CC_dependencies_compiler_type=$depmode
3484         break
3485       fi
3486     fi
3487   done
3488
3489   cd ..
3490   rm -rf conftest.dir
3491 else
3492   am_cv_CC_dependencies_compiler_type=none
3493 fi
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499
3500
3501
3502 if
3503   test "x$enable_dependency_tracking" != xno \
3504   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505   am__fastdepCC_TRUE=
3506   am__fastdepCC_FALSE='#'
3507 else
3508   am__fastdepCC_TRUE='#'
3509   am__fastdepCC_FALSE=
3510 fi
3511
3512
3513 depcc="$CXX"  am_compiler_list=
3514
3515 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3516 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3517 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3521   # We make a subdir and do the tests there.  Otherwise we can end up
3522   # making bogus files that we don't know about and never remove.  For
3523   # instance it was reported that on HP-UX the gcc test will end up
3524   # making a dummy file named `D' -- because `-MD' means `put the output
3525   # in D'.
3526   mkdir conftest.dir
3527   # Copy depcomp to subdir because otherwise we won't find it if we're
3528   # using a relative directory.
3529   cp "$am_depcomp" conftest.dir
3530   cd conftest.dir
3531   # We will build objects and dependencies in a subdirectory because
3532   # it helps to detect inapplicable dependency modes.  For instance
3533   # both Tru64's cc and ICC support -MD to output dependencies as a
3534   # side effect of compilation, but ICC will put the dependencies in
3535   # the current directory while Tru64 will put them in the object
3536   # directory.
3537   mkdir sub
3538
3539   am_cv_CXX_dependencies_compiler_type=none
3540   if test "$am_compiler_list" = ""; then
3541      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3542   fi
3543   for depmode in $am_compiler_list; do
3544     # Setup a source with many dependencies, because some compilers
3545     # like to wrap large dependency lists on column 80 (with \), and
3546     # we should not choose a depcomp mode which is confused by this.
3547     #
3548     # We need to recreate these files for each test, as the compiler may
3549     # overwrite some of them when testing with obscure command lines.
3550     # This happens at least with the AIX C compiler.
3551     : > sub/conftest.c
3552     for i in 1 2 3 4 5 6; do
3553       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3554       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3555       # Solaris 8's {/usr,}/bin/sh.
3556       touch sub/conftst$i.h
3557     done
3558     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3559
3560     case $depmode in
3561     nosideeffect)
3562       # after this tag, mechanisms are not by side-effect, so they'll
3563       # only be used when explicitly requested
3564       if test "x$enable_dependency_tracking" = xyes; then
3565         continue
3566       else
3567         break
3568       fi
3569       ;;
3570     none) break ;;
3571     esac
3572     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3573     # mode.  It turns out that the SunPro C++ compiler does not properly
3574     # handle `-M -o', and we need to detect this.
3575     if depmode=$depmode \
3576        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3577        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3578        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3579          >/dev/null 2>conftest.err &&
3580        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3581        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3582        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3583       # icc doesn't choke on unknown options, it will just issue warnings
3584       # or remarks (even with -Werror).  So we grep stderr for any message
3585       # that says an option was ignored or not supported.
3586       # When given -MP, icc 7.0 and 7.1 complain thusly:
3587       #   icc: Command line warning: ignoring option '-M'; no argument required
3588       # The diagnosis changed in icc 8.0:
3589       #   icc: Command line remark: option '-MP' not supported
3590       if (grep 'ignoring option' conftest.err ||
3591           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3592         am_cv_CXX_dependencies_compiler_type=$depmode
3593         break
3594       fi
3595     fi
3596   done
3597
3598   cd ..
3599   rm -rf conftest.dir
3600 else
3601   am_cv_CXX_dependencies_compiler_type=none
3602 fi
3603
3604 fi
3605 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3606 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3607 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3608
3609
3610
3611 if
3612   test "x$enable_dependency_tracking" != xno \
3613   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3614   am__fastdepCXX_TRUE=
3615   am__fastdepCXX_FALSE='#'
3616 else
3617   am__fastdepCXX_TRUE='#'
3618   am__fastdepCXX_FALSE=
3619 fi
3620
3621
3622
3623
3624 if test -n "$ac_tool_prefix"; then
3625   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3626 set dummy ${ac_tool_prefix}as; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_prog_AS+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   if test -n "$AS"; then
3633   ac_cv_prog_AS="$AS" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_prog_AS="${ac_tool_prefix}as"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649 fi
3650 fi
3651 AS=$ac_cv_prog_AS
3652 if test -n "$AS"; then
3653   echo "$as_me:$LINENO: result: $AS" >&5
3654 echo "${ECHO_T}$AS" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660 fi
3661 if test -z "$ac_cv_prog_AS"; then
3662   ac_ct_AS=$AS
3663   # Extract the first word of "as", so it can be a program name with args.
3664 set dummy as; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   if test -n "$ac_ct_AS"; then
3671   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_exec_ext in '' $ac_executable_extensions; do
3679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680     ac_cv_prog_ac_ct_AS="as"
3681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682     break 2
3683   fi
3684 done
3685 done
3686
3687 fi
3688 fi
3689 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3690 if test -n "$ac_ct_AS"; then
3691   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3692 echo "${ECHO_T}$ac_ct_AS" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698   AS=$ac_ct_AS
3699 else
3700   AS="$ac_cv_prog_AS"
3701 fi
3702
3703 if test -n "$ac_tool_prefix"; then
3704   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}ar; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_AR+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   if test -n "$AR"; then
3712   ac_cv_prog_AR="$AR" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for ac_exec_ext in '' $ac_executable_extensions; do
3720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721     ac_cv_prog_AR="${ac_tool_prefix}ar"
3722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726 done
3727
3728 fi
3729 fi
3730 AR=$ac_cv_prog_AR
3731 if test -n "$AR"; then
3732   echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3734 else
3735   echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3737 fi
3738
3739 fi
3740 if test -z "$ac_cv_prog_AR"; then
3741   ac_ct_AR=$AR
3742   # Extract the first word of "ar", so it can be a program name with args.
3743 set dummy ar; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if test -n "$ac_ct_AR"; then
3750   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_prog_ac_ct_AR="ar"
3760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764 done
3765
3766 fi
3767 fi
3768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3769 if test -n "$ac_ct_AR"; then
3770   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3771 echo "${ECHO_T}$ac_ct_AR" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777   AR=$ac_ct_AR
3778 else
3779   AR="$ac_cv_prog_AR"
3780 fi
3781
3782 if test -n "$ac_tool_prefix"; then
3783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_RANLIB+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   if test -n "$RANLIB"; then
3791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798   for ac_exec_ext in '' $ac_executable_extensions; do
3799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805 done
3806
3807 fi
3808 fi
3809 RANLIB=$ac_cv_prog_RANLIB
3810 if test -n "$RANLIB"; then
3811   echo "$as_me:$LINENO: result: $RANLIB" >&5
3812 echo "${ECHO_T}$RANLIB" >&6
3813 else
3814   echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816 fi
3817
3818 fi
3819 if test -z "$ac_cv_prog_RANLIB"; then
3820   ac_ct_RANLIB=$RANLIB
3821   # Extract the first word of "ranlib", so it can be a program name with args.
3822 set dummy ranlib; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   if test -n "$ac_ct_RANLIB"; then
3829   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_prog_ac_ct_RANLIB="ranlib"
3839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843 done
3844
3845   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3846 fi
3847 fi
3848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3849 if test -n "$ac_ct_RANLIB"; then
3850   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3852 else
3853   echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3855 fi
3856
3857   RANLIB=$ac_ct_RANLIB
3858 else
3859   RANLIB="$ac_cv_prog_RANLIB"
3860 fi
3861
3862
3863 # Find a good install program.  We prefer a C program (faster),
3864 # so one script is as good as another.  But avoid the broken or
3865 # incompatible versions:
3866 # SysV /etc/install, /usr/sbin/install
3867 # SunOS /usr/etc/install
3868 # IRIX /sbin/install
3869 # AIX /bin/install
3870 # AmigaOS /C/install, which installs bootblocks on floppy discs
3871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3874 # OS/2's system install, which has a completely different semantic
3875 # ./install, which can be erroneously created by make from ./install.sh.
3876 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3877 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3878 if test -z "$INSTALL"; then
3879 if test "${ac_cv_path_install+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   # Account for people who put trailing slashes in PATH elements.
3888 case $as_dir/ in
3889   ./ | .// | /cC/* | \
3890   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3891   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3892   /usr/ucb/* ) ;;
3893   *)
3894     # OSF1 and SCO ODT 3.0 have their own names for install.
3895     # Don't use installbsd from OSF since it installs stuff as root
3896     # by default.
3897     for ac_prog in ginstall scoinst install; do
3898       for ac_exec_ext in '' $ac_executable_extensions; do
3899         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3900           if test $ac_prog = install &&
3901             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3902             # AIX install.  It has an incompatible calling convention.
3903             :
3904           elif test $ac_prog = install &&
3905             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3906             # program-specific install script used by HP pwplus--don't use.
3907             :
3908           else
3909             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3910             break 3
3911           fi
3912         fi
3913       done
3914     done
3915     ;;
3916 esac
3917 done
3918
3919
3920 fi
3921   if test "${ac_cv_path_install+set}" = set; then
3922     INSTALL=$ac_cv_path_install
3923   else
3924     # As a last resort, use the slow shell script.  We don't cache a
3925     # path for INSTALL within a source directory, because that will
3926     # break other packages using the cache if that directory is
3927     # removed, or if the path is relative.
3928     INSTALL=$ac_install_sh
3929   fi
3930 fi
3931 echo "$as_me:$LINENO: result: $INSTALL" >&5
3932 echo "${ECHO_T}$INSTALL" >&6
3933
3934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3935 # It thinks the first close brace ends the variable substitution.
3936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3937
3938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3939
3940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3941
3942
3943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3945     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3946 if test "${enable_maintainer_mode+set}" = set; then
3947   enableval="$enable_maintainer_mode"
3948   USE_MAINTAINER_MODE=$enableval
3949 else
3950   USE_MAINTAINER_MODE=no
3951 fi;
3952   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3954
3955
3956 if test $USE_MAINTAINER_MODE = yes; then
3957   MAINTAINER_MODE_TRUE=
3958   MAINTAINER_MODE_FALSE='#'
3959 else
3960   MAINTAINER_MODE_TRUE='#'
3961   MAINTAINER_MODE_FALSE=
3962 fi
3963
3964   MAINT=$MAINTAINER_MODE_TRUE
3965
3966
3967
3968
3969
3970 # configure.host sets the following important variables
3971 #       libgcj_cflags    - host specific C compiler flags
3972 #       libgcj_cxxflags  - host specific C++ compiler flags
3973 #       libgcj_javaflags - host specific Java compiler flags
3974
3975 libgcj_cflags=
3976 libgcj_cxxflags=
3977 libgcj_javaflags=
3978
3979 . ${srcdir}/configure.host
3980
3981 LIBGCJ_CFLAGS="${libgcj_cflags}"
3982 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3983 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3984
3985
3986
3987
3988                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3989
3990
3991 # Only use libltdl for non-newlib builds.
3992 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3993      case $enable_ltdl_convenience in
3994   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3995 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3996    { (exit 1); exit 1; }; } ;;
3997   "") enable_ltdl_convenience=yes
3998       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3999   esac
4000   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4001   INCLTDL='-I${top_srcdir}/''libltdl'
4002
4003
4004    DIRLTDL=libltdl
4005
4006 cat >>confdefs.h <<\_ACEOF
4007 #define USE_LTDL 1
4008 _ACEOF
4009
4010    # Sigh.  Libtool's macro doesn't do the right thing.
4011    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4012    # FIXME: this is a hack.
4013    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4014    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4015 fi
4016
4017
4018
4019 # Check whether --enable-shared or --disable-shared was given.
4020 if test "${enable_shared+set}" = set; then
4021   enableval="$enable_shared"
4022   p=${PACKAGE-default}
4023 case $enableval in
4024 yes) enable_shared=yes ;;
4025 no) enable_shared=no ;;
4026 *)
4027   enable_shared=no
4028   # Look at the argument we got.  We use all the common list separators.
4029   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4030   for pkg in $enableval; do
4031     if test "X$pkg" = "X$p"; then
4032       enable_shared=yes
4033     fi
4034   done
4035   IFS="$ac_save_ifs"
4036   ;;
4037 esac
4038 else
4039   enable_shared=yes
4040 fi;
4041 # Check whether --enable-static or --disable-static was given.
4042 if test "${enable_static+set}" = set; then
4043   enableval="$enable_static"
4044   p=${PACKAGE-default}
4045 case $enableval in
4046 yes) enable_static=yes ;;
4047 no) enable_static=no ;;
4048 *)
4049   enable_static=no
4050   # Look at the argument we got.  We use all the common list separators.
4051   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4052   for pkg in $enableval; do
4053     if test "X$pkg" = "X$p"; then
4054       enable_static=yes
4055     fi
4056   done
4057   IFS="$ac_save_ifs"
4058   ;;
4059 esac
4060 else
4061   enable_static=yes
4062 fi;
4063 # Check whether --enable-fast-install or --disable-fast-install was given.
4064 if test "${enable_fast_install+set}" = set; then
4065   enableval="$enable_fast_install"
4066   p=${PACKAGE-default}
4067 case $enableval in
4068 yes) enable_fast_install=yes ;;
4069 no) enable_fast_install=no ;;
4070 *)
4071   enable_fast_install=no
4072   # Look at the argument we got.  We use all the common list separators.
4073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4074   for pkg in $enableval; do
4075     if test "X$pkg" = "X$p"; then
4076       enable_fast_install=yes
4077     fi
4078   done
4079   IFS="$ac_save_ifs"
4080   ;;
4081 esac
4082 else
4083   enable_fast_install=yes
4084 fi;
4085
4086 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then
4088   withval="$with_gnu_ld"
4089   test "$withval" = no || with_gnu_ld=yes
4090 else
4091   with_gnu_ld=no
4092 fi;
4093 ac_prog=ld
4094 if test "$GCC" = yes; then
4095   # Check if gcc -print-prog-name=ld gives a path.
4096   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4097 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4098   case $host in
4099   *-*-mingw*)
4100     # gcc leaves a trailing carriage return which upsets mingw
4101     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4102   *)
4103     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4104   esac
4105   case $ac_prog in
4106     # Accept absolute paths.
4107     [\\/]* | [A-Za-z]:[\\/]*)
4108       re_direlt='/[^/][^/]*/\.\./'
4109       # Canonicalize the path of ld
4110       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4111       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4113       done
4114       test -z "$LD" && LD="$ac_prog"
4115       ;;
4116   "")
4117     # If it fails, then pretend we aren't using GCC.
4118     ac_prog=ld
4119     ;;
4120   *)
4121     # If it is relative, then search for the first ld in PATH.
4122     with_gnu_ld=unknown
4123     ;;
4124   esac
4125 elif test "$with_gnu_ld" = yes; then
4126   echo "$as_me:$LINENO: checking for GNU ld" >&5
4127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4128 else
4129   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4131 fi
4132 if test "${lt_cv_path_LD+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -z "$LD"; then
4136   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4137   for ac_dir in $PATH; do
4138     test -z "$ac_dir" && ac_dir=.
4139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4140       lt_cv_path_LD="$ac_dir/$ac_prog"
4141       # Check to see if the program is GNU ld.  I'd rather use --version,
4142       # but apparently some GNU ld's only accept -v.
4143       # Break only if it was the GNU/non-GNU ld that we prefer.
4144       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4145         test "$with_gnu_ld" != no && break
4146       else
4147         test "$with_gnu_ld" != yes && break
4148       fi
4149     fi
4150   done
4151   IFS="$ac_save_ifs"
4152 else
4153   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4154 fi
4155 fi
4156
4157 LD="$lt_cv_path_LD"
4158 if test -n "$LD"; then
4159   echo "$as_me:$LINENO: result: $LD" >&5
4160 echo "${ECHO_T}$LD" >&6
4161 else
4162   echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4164 fi
4165 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4166 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4167    { (exit 1); exit 1; }; }
4168 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4169 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4170 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4175   lt_cv_prog_gnu_ld=yes
4176 else
4177   lt_cv_prog_gnu_ld=no
4178 fi
4179 fi
4180 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4182 with_gnu_ld=$lt_cv_prog_gnu_ld
4183
4184
4185 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4187 if test "${lt_cv_ld_reload_flag+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   lt_cv_ld_reload_flag='-r'
4191 fi
4192 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4194 reload_flag=$lt_cv_ld_reload_flag
4195 test -n "$reload_flag" && reload_flag=" $reload_flag"
4196
4197 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4198 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4199 if test "${lt_cv_path_NM+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if test -n "$NM"; then
4203   # Let the user override the test.
4204   lt_cv_path_NM="$NM"
4205 else
4206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4207   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4208     test -z "$ac_dir" && ac_dir=.
4209     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4210     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4211       # Check to see if the nm accepts a BSD-compat flag.
4212       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4213       #   nm: unknown option "B" ignored
4214       # Tru64's nm complains that /dev/null is an invalid object file
4215       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4216         lt_cv_path_NM="$tmp_nm -B"
4217         break
4218       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4219         lt_cv_path_NM="$tmp_nm -p"
4220         break
4221       else
4222         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4223         continue # so that we can try to find one that supports BSD flags
4224       fi
4225     fi
4226   done
4227   IFS="$ac_save_ifs"
4228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4229 fi
4230 fi
4231
4232 NM="$lt_cv_path_NM"
4233 echo "$as_me:$LINENO: result: $NM" >&5
4234 echo "${ECHO_T}$NM" >&6
4235
4236 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4237 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4238 if test "${lt_cv_deplibs_check_method+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   lt_cv_file_magic_cmd='$MAGIC_CMD'
4242 lt_cv_file_magic_test_file=
4243 lt_cv_deplibs_check_method='unknown'
4244 # Need to set the preceding variable on all platforms that support
4245 # interlibrary dependencies.
4246 # 'none' -- dependencies not supported.
4247 # `unknown' -- same as none, but documents that we really don't know.
4248 # 'pass_all' -- all dependencies passed with no checks.
4249 # 'test_compile' -- check by making test program.
4250 # 'file_magic [regex]' -- check by looking for files in library path
4251 # which responds to the $file_magic_cmd with a given egrep regex.
4252 # If you have `file' or equivalent on your system and you're not sure
4253 # whether `pass_all' will *always* work, you probably want this one.
4254
4255 case $host_os in
4256 aix*)
4257   lt_cv_deplibs_check_method=pass_all
4258   ;;
4259
4260 beos*)
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 bsdi4*)
4265   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266   lt_cv_file_magic_cmd='/usr/bin/file -L'
4267   lt_cv_file_magic_test_file=/shlib/libc.so
4268   ;;
4269
4270 cygwin* | mingw* |pw32*)
4271   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4272   lt_cv_file_magic_cmd='$OBJDUMP -f'
4273   ;;
4274
4275 darwin* | rhapsody*)
4276   # this will be overwritten by pass_all, but leave it in just in case
4277   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4278   lt_cv_file_magic_cmd='/usr/bin/file -L'
4279   case "$host_os" in
4280   rhapsody* | darwin1.012)
4281     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4282     ;;
4283   *) # Darwin 1.3 on
4284     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4285     ;;
4286   esac
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 freebsd* | kfreebsd*-gnu)
4291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292     case $host_cpu in
4293     i*86 )
4294       # Not sure whether the presence of OpenBSD here was a mistake.
4295       # Let's accept both of them until this is cleared up.
4296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4297       lt_cv_file_magic_cmd=/usr/bin/file
4298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299       ;;
4300     esac
4301   else
4302     lt_cv_deplibs_check_method=pass_all
4303   fi
4304   ;;
4305
4306 gnu*)
4307   lt_cv_deplibs_check_method=pass_all
4308   ;;
4309
4310 hpux10.20*|hpux11*)
4311   case $host_cpu in
4312   hppa*)
4313     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4314     lt_cv_file_magic_cmd=/usr/bin/file
4315     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4316     ;;
4317   ia64*)
4318     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4319     lt_cv_file_magic_cmd=/usr/bin/file
4320     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4321     ;;
4322   esac
4323   ;;
4324
4325 irix5* | irix6*)
4326   case $host_os in
4327   irix5*)
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 32-bit MSB dynamic lib MIPS - version 1"
4330     ;;
4331   *)
4332     case $LD in
4333     *-32|*"-32 ") libmagic=32-bit;;
4334     *-n32|*"-n32 ") libmagic=N32;;
4335     *-64|*"-64 ") libmagic=64-bit;;
4336     *) libmagic=never-match;;
4337     esac
4338     # this will be overridden with pass_all, but let us keep it just in case
4339     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4340     ;;
4341   esac
4342   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 # This must be Linux ELF.
4347 linux-gnu*)
4348   case $host_cpu in
4349   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4350     lt_cv_deplibs_check_method=pass_all ;;
4351   *)
4352     # glibc up to 2.1.1 does not perform some relocations on ARM
4353     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4354   esac
4355   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4356   ;;
4357
4358 netbsd* | knetbsd*-gnu)
4359   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4360     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4361   else
4362     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4363   fi
4364   ;;
4365
4366 newsos6)
4367   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4368   lt_cv_file_magic_cmd=/usr/bin/file
4369   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4370   ;;
4371
4372 osf3* | osf4* | osf5*)
4373   # this will be overridden with pass_all, but let us keep it just in case
4374   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4375   lt_cv_file_magic_test_file=/shlib/libc.so
4376   lt_cv_deplibs_check_method=pass_all
4377   ;;
4378
4379 sco3.2v5*)
4380   lt_cv_deplibs_check_method=pass_all
4381   ;;
4382
4383 solaris*)
4384   lt_cv_deplibs_check_method=pass_all
4385   lt_cv_file_magic_test_file=/lib/libc.so
4386   ;;
4387
4388 sysv5uw[78]* | sysv4*uw2*)
4389   lt_cv_deplibs_check_method=pass_all
4390   ;;
4391
4392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4393   case $host_vendor in
4394   ncr)
4395     lt_cv_deplibs_check_method=pass_all
4396     ;;
4397   motorola)
4398     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]'
4399     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4400     ;;
4401   esac
4402   ;;
4403 esac
4404
4405 fi
4406 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4407 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410
4411
4412
4413
4414 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4415
4416 # Only perform the check for file, if the check method requires it
4417 case $deplibs_check_method in
4418 file_magic*)
4419   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4420     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4421 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $MAGIC_CMD in
4426   /*)
4427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4428   ;;
4429   ?:/*)
4430   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4431   ;;
4432   *)
4433   ac_save_MAGIC_CMD="$MAGIC_CMD"
4434   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4435   ac_dummy="/usr/bin:$PATH"
4436   for ac_dir in $ac_dummy; do
4437     test -z "$ac_dir" && ac_dir=.
4438     if test -f $ac_dir/${ac_tool_prefix}file; then
4439       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4440       if test -n "$file_magic_test_file"; then
4441         case $deplibs_check_method in
4442         "file_magic "*)
4443           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4444           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4446             egrep "$file_magic_regex" > /dev/null; then
4447             :
4448           else
4449             cat <<EOF 1>&2
4450
4451 *** Warning: the command libtool uses to detect shared libraries,
4452 *** $file_magic_cmd, produces output that libtool cannot recognize.
4453 *** The result is that libtool may fail to recognize shared libraries
4454 *** as such.  This will affect the creation of libtool libraries that
4455 *** depend on shared libraries, but programs linked with such libtool
4456 *** libraries will work regardless of this problem.  Nevertheless, you
4457 *** may want to report the problem to your system manager and/or to
4458 *** bug-libtool@gnu.org
4459
4460 EOF
4461           fi ;;
4462         esac
4463       fi
4464       break
4465     fi
4466   done
4467   IFS="$ac_save_ifs"
4468   MAGIC_CMD="$ac_save_MAGIC_CMD"
4469   ;;
4470 esac
4471 fi
4472
4473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4474 if test -n "$MAGIC_CMD"; then
4475   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4476 echo "${ECHO_T}$MAGIC_CMD" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482 if test -z "$lt_cv_path_MAGIC_CMD"; then
4483   if test -n "$ac_tool_prefix"; then
4484     echo "$as_me:$LINENO: checking for file" >&5
4485 echo $ECHO_N "checking for file... $ECHO_C" >&6
4486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   case $MAGIC_CMD in
4490   /*)
4491   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4492   ;;
4493   ?:/*)
4494   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4495   ;;
4496   *)
4497   ac_save_MAGIC_CMD="$MAGIC_CMD"
4498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4499   ac_dummy="/usr/bin:$PATH"
4500   for ac_dir in $ac_dummy; do
4501     test -z "$ac_dir" && ac_dir=.
4502     if test -f $ac_dir/file; then
4503       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4504       if test -n "$file_magic_test_file"; then
4505         case $deplibs_check_method in
4506         "file_magic "*)
4507           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4510             egrep "$file_magic_regex" > /dev/null; then
4511             :
4512           else
4513             cat <<EOF 1>&2
4514
4515 *** Warning: the command libtool uses to detect shared libraries,
4516 *** $file_magic_cmd, produces output that libtool cannot recognize.
4517 *** The result is that libtool may fail to recognize shared libraries
4518 *** as such.  This will affect the creation of libtool libraries that
4519 *** depend on shared libraries, but programs linked with such libtool
4520 *** libraries will work regardless of this problem.  Nevertheless, you
4521 *** may want to report the problem to your system manager and/or to
4522 *** bug-libtool@gnu.org
4523
4524 EOF
4525           fi ;;
4526         esac
4527       fi
4528       break
4529     fi
4530   done
4531   IFS="$ac_save_ifs"
4532   MAGIC_CMD="$ac_save_MAGIC_CMD"
4533   ;;
4534 esac
4535 fi
4536
4537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4538 if test -n "$MAGIC_CMD"; then
4539   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4540 echo "${ECHO_T}$MAGIC_CMD" >&6
4541 else
4542   echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546   else
4547     MAGIC_CMD=:
4548   fi
4549 fi
4550
4551   fi
4552   ;;
4553 esac
4554
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 if test -n "$ac_tool_prefix"; then
4636   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}strip; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_STRIP+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$STRIP"; then
4644   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660 fi
4661 fi
4662 STRIP=$ac_cv_prog_STRIP
4663 if test -n "$STRIP"; then
4664   echo "$as_me:$LINENO: result: $STRIP" >&5
4665 echo "${ECHO_T}$STRIP" >&6
4666 else
4667   echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671 fi
4672 if test -z "$ac_cv_prog_STRIP"; then
4673   ac_ct_STRIP=$STRIP
4674   # Extract the first word of "strip", so it can be a program name with args.
4675 set dummy strip; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$ac_ct_STRIP"; then
4682   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_prog_ac_ct_STRIP="strip"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697
4698   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4699 fi
4700 fi
4701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4702 if test -n "$ac_ct_STRIP"; then
4703   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4704 echo "${ECHO_T}$ac_ct_STRIP" >&6
4705 else
4706   echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708 fi
4709
4710   STRIP=$ac_ct_STRIP
4711 else
4712   STRIP="$ac_cv_prog_STRIP"
4713 fi
4714
4715
4716 # Check for any special flags to pass to ltconfig.
4717 libtool_flags="--cache-file=$cache_file"
4718 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4719 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4720 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4721 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4722 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4723
4724
4725 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4726 if test "${enable_libtool_lock+set}" = set; then
4727   enableval="$enable_libtool_lock"
4728
4729 fi;
4730 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4731 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4732
4733
4734 # Check whether --with-pic or --without-pic was given.
4735 if test "${with_pic+set}" = set; then
4736   withval="$with_pic"
4737   pic_mode="$withval"
4738 else
4739   pic_mode=default
4740 fi;
4741 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4742 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4743
4744 # Some flags need to be propagated to the compiler or linker for good
4745 # libtool support.
4746 case $host in
4747 *-*-irix6*)
4748   # Find out which ABI we are using.
4749   echo '#line 4749 "configure"' > conftest.$ac_ext
4750   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751   (eval $ac_compile) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; then
4755    if test "$lt_cv_prog_gnu_ld" = yes; then
4756     case `/usr/bin/file conftest.$ac_objext` in
4757     *32-bit*)
4758       LD="${LD-ld} -melf32bsmip"
4759       ;;
4760     *N32*)
4761       LD="${LD-ld} -melf32bmipn32"
4762       ;;
4763     *64-bit*)
4764       LD="${LD-ld} -melf64bmip"
4765       ;;
4766     esac
4767    else
4768     case `/usr/bin/file conftest.$ac_objext` in
4769     *32-bit*)
4770       LD="${LD-ld} -32"
4771       ;;
4772     *N32*)
4773       LD="${LD-ld} -n32"
4774       ;;
4775     *64-bit*)
4776       LD="${LD-ld} -64"
4777       ;;
4778     esac
4779    fi
4780   fi
4781   rm -rf conftest*
4782   ;;
4783
4784 ia64-*-hpux*)
4785   # Find out which ABI we are using.
4786   echo 'int i;' > conftest.$ac_ext
4787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; then
4792     case "`/usr/bin/file conftest.o`" in
4793     *ELF-32*)
4794       HPUX_IA64_MODE="32"
4795       ;;
4796     *ELF-64*)
4797       HPUX_IA64_MODE="64"
4798       ;;
4799     esac
4800   fi
4801   rm -rf conftest*
4802   ;;
4803
4804 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4805   # Find out which ABI we are using.
4806   echo 'int i;' > conftest.$ac_ext
4807   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808   (eval $ac_compile) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; then
4812     case "`/usr/bin/file conftest.o`" in
4813     *32-bit*)
4814       case $host in
4815         x86_64-*linux*)
4816           LD="${LD-ld} -m elf_i386"
4817           ;;
4818         ppc64-*linux*|powerpc64-*linux*)
4819           LD="${LD-ld} -m elf32ppclinux"
4820           ;;
4821         s390x-*linux*)
4822           LD="${LD-ld} -m elf_s390"
4823           ;;
4824         sparc64-*linux*)
4825           LD="${LD-ld} -m elf32_sparc"
4826           ;;
4827       esac
4828       ;;
4829     *64-bit*)
4830       case $host in
4831         x86_64-*linux*)
4832           LD="${LD-ld} -m elf_x86_64"
4833           ;;
4834         ppc*-*linux*|powerpc*-*linux*)
4835           LD="${LD-ld} -m elf64ppc"
4836           ;;
4837         s390*-*linux*)
4838           LD="${LD-ld} -m elf64_s390"
4839           ;;
4840         sparc*-*linux*)
4841           LD="${LD-ld} -m elf64_sparc"
4842           ;;
4843       esac
4844       ;;
4845     esac
4846   fi
4847   rm -rf conftest*
4848   ;;
4849
4850 *-*-sco3.2v5*)
4851   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4852   SAVE_CFLAGS="$CFLAGS"
4853   CFLAGS="$CFLAGS -belf"
4854   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4855 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4856 if test "${lt_cv_cc_needs_belf+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859
4860
4861      ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867      if test x$gcc_no_link = xyes; then
4868   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4870    { (exit 1); exit 1; }; }
4871 fi
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h.  */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h.  */
4878
4879 int
4880 main ()
4881 {
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest$ac_exeext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   lt_cv_cc_needs_belf=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 lt_cv_cc_needs_belf=no
4915 fi
4916 rm -f conftest.err conftest.$ac_objext \
4917       conftest$ac_exeext conftest.$ac_ext
4918      ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 fi
4925 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4926 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4927   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4928     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4929     CFLAGS="$SAVE_CFLAGS"
4930   fi
4931   ;;
4932
4933
4934 esac
4935
4936
4937 # Save cache, so that ltconfig can load it
4938 cat >confcache <<\_ACEOF
4939 # This file is a shell script that caches the results of configure
4940 # tests run on this system so they can be shared between configure
4941 # scripts and configure runs, see configure's option --config-cache.
4942 # It is not useful on other systems.  If it contains results you don't
4943 # want to keep, you may remove or edit it.
4944 #
4945 # config.status only pays attention to the cache file if you give it
4946 # the --recheck option to rerun configure.
4947 #
4948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4950 # following values.
4951
4952 _ACEOF
4953
4954 # The following way of writing the cache mishandles newlines in values,
4955 # but we know of no workaround that is simple, portable, and efficient.
4956 # So, don't put newlines in cache variables' values.
4957 # Ultrix sh set writes to stderr and can't be redirected directly,
4958 # and sets the high bit in the cache file unless we assign to the vars.
4959 {
4960   (set) 2>&1 |
4961     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4962     *ac_space=\ *)
4963       # `set' does not quote correctly, so add quotes (double-quote
4964       # substitution turns \\\\ into \\, and sed turns \\ into \).
4965       sed -n \
4966         "s/'/'\\\\''/g;
4967           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4968       ;;
4969     *)
4970       # `set' quotes correctly as required by POSIX, so do not add quotes.
4971       sed -n \
4972         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4973       ;;
4974     esac;
4975 } |
4976   sed '
4977      t clear
4978      : clear
4979      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4980      t end
4981      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4982      : end' >>confcache
4983 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4984   if test -w $cache_file; then
4985     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4986     cat confcache >$cache_file
4987   else
4988     echo "not updating unwritable cache $cache_file"
4989   fi
4990 fi
4991 rm -f confcache
4992
4993 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4994 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4995 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4996 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4997 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4998 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4999 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5000 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5001 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5002 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5003 echo "$as_me: error: libtool configure failed" >&2;}
5004    { (exit 1); exit 1; }; }
5005
5006 # Reload cache, that may have been modified by ltconfig
5007 if test -r "$cache_file"; then
5008   # Some versions of bash will fail to source /dev/null (special
5009   # files actually), so we avoid doing that.
5010   if test -f "$cache_file"; then
5011     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5012 echo "$as_me: loading cache $cache_file" >&6;}
5013     case $cache_file in
5014       [\\/]* | ?:[\\/]* ) . $cache_file;;
5015       *)                      . ./$cache_file;;
5016     esac
5017   fi
5018 else
5019   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5020 echo "$as_me: creating cache $cache_file" >&6;}
5021   >$cache_file
5022 fi
5023
5024
5025 # This can be used to rebuild libtool when needed
5026 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5027
5028 # Always use our own libtool.
5029 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5030
5031 # Redirect the config.log output again, so that the ltconfig log is not
5032 # clobbered by the next message.
5033 exec 5>>./config.log
5034
5035 ac_ext=cc
5036 ac_cpp='$CXXCPP $CPPFLAGS'
5037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5040 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5041 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5042 if test -z "$CXXCPP"; then
5043   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046       # Double quotes because CXXCPP needs to be expanded
5047     for CXXCPP in "$CXX -E" "/lib/cpp"
5048     do
5049       ac_preproc_ok=false
5050 for ac_cxx_preproc_warn_flag in '' yes
5051 do
5052   # Use a header file that comes with gcc, so configuring glibc
5053   # with a fresh cross-compiler works.
5054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055   # <limits.h> exists even on freestanding compilers.
5056   # On the NeXT, cc -E runs the code through the compiler's parser,
5057   # not just through cpp. "Syntax error" is here to catch this case.
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #ifdef __STDC__
5065 # include <limits.h>
5066 #else
5067 # include <assert.h>
5068 #endif
5069                      Syntax error
5070 _ACEOF
5071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } >/dev/null; then
5079   if test -s conftest.err; then
5080     ac_cpp_err=$ac_cxx_preproc_warn_flag
5081     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5082   else
5083     ac_cpp_err=
5084   fi
5085 else
5086   ac_cpp_err=yes
5087 fi
5088 if test -z "$ac_cpp_err"; then
5089   :
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094   # Broken: fails on valid input.
5095 continue
5096 fi
5097 rm -f conftest.err conftest.$ac_ext
5098
5099   # OK, works on sane cases.  Now check whether non-existent headers
5100   # can be detected and how.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } >/dev/null; then
5117   if test -s conftest.err; then
5118     ac_cpp_err=$ac_cxx_preproc_warn_flag
5119     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5120   else
5121     ac_cpp_err=
5122   fi
5123 else
5124   ac_cpp_err=yes
5125 fi
5126 if test -z "$ac_cpp_err"; then
5127   # Broken: success on invalid input.
5128 continue
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5143   break
5144 fi
5145
5146     done
5147     ac_cv_prog_CXXCPP=$CXXCPP
5148
5149 fi
5150   CXXCPP=$ac_cv_prog_CXXCPP
5151 else
5152   ac_cv_prog_CXXCPP=$CXXCPP
5153 fi
5154 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5155 echo "${ECHO_T}$CXXCPP" >&6
5156 ac_preproc_ok=false
5157 for ac_cxx_preproc_warn_flag in '' yes
5158 do
5159   # Use a header file that comes with gcc, so configuring glibc
5160   # with a fresh cross-compiler works.
5161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162   # <limits.h> exists even on freestanding compilers.
5163   # On the NeXT, cc -E runs the code through the compiler's parser,
5164   # not just through cpp. "Syntax error" is here to catch this case.
5165   cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176                      Syntax error
5177 _ACEOF
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } >/dev/null; then
5186   if test -s conftest.err; then
5187     ac_cpp_err=$ac_cxx_preproc_warn_flag
5188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5189   else
5190     ac_cpp_err=
5191   fi
5192 else
5193   ac_cpp_err=yes
5194 fi
5195 if test -z "$ac_cpp_err"; then
5196   :
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201   # Broken: fails on valid input.
5202 continue
5203 fi
5204 rm -f conftest.err conftest.$ac_ext
5205
5206   # OK, works on sane cases.  Now check whether non-existent headers
5207   # can be detected and how.
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 #include <ac_nonexistent.h>
5215 _ACEOF
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } >/dev/null; then
5224   if test -s conftest.err; then
5225     ac_cpp_err=$ac_cxx_preproc_warn_flag
5226     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5227   else
5228     ac_cpp_err=
5229   fi
5230 else
5231   ac_cpp_err=yes
5232 fi
5233 if test -z "$ac_cpp_err"; then
5234   # Broken: success on invalid input.
5235 continue
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240   # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5243 fi
5244 rm -f conftest.err conftest.$ac_ext
5245
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5250   :
5251 else
5252   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256    { (exit 1); exit 1; }; }
5257 fi
5258
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265
5266
5267 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5268 lt_save_CC="$CC"
5269 lt_save_CFLAGS="$CFLAGS"
5270 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5271 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5272 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5273 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5274 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5275 deplibs_check_method="$deplibs_check_method" \
5276 file_magic_cmd="$file_magic_cmd" \
5277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5278 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5279 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5280 echo "$as_me: error: libtool tag configuration failed" >&2;}
5281    { (exit 1); exit 1; }; }
5282 CC="$lt_save_CC"
5283 CFLAGS="$lt_save_CFLAGS"
5284
5285 # Redirect the config.log output again, so that the ltconfig log is not
5286 # clobbered by the next message.
5287 exec 5>>./config.log
5288
5289
5290
5291
5292
5293
5294
5295 for ac_prog in gcj
5296 do
5297   # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_GCJ+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$GCJ"; then
5305   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_GCJ="$ac_prog"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321 fi
5322 fi
5323 GCJ=$ac_cv_prog_GCJ
5324 if test -n "$GCJ"; then
5325   echo "$as_me:$LINENO: result: $GCJ" >&5
5326 echo "${ECHO_T}$GCJ" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332   test -n "$GCJ" && break
5333 done
5334 test -n "$GCJ" || GCJ="gcj"
5335
5336 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5337 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5338    { (exit 1); exit 1; }; }
5339 if test "x${GCJFLAGS-unset}" = xunset; then
5340    GCJFLAGS="-g -O2"
5341 fi
5342
5343
5344 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5345
5346 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5348 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5352   # We make a subdir and do the tests there.  Otherwise we can end up
5353   # making bogus files that we don't know about and never remove.  For
5354   # instance it was reported that on HP-UX the gcc test will end up
5355   # making a dummy file named `D' -- because `-MD' means `put the output
5356   # in D'.
5357   mkdir conftest.dir
5358   # Copy depcomp to subdir because otherwise we won't find it if we're
5359   # using a relative directory.
5360   cp "$am_depcomp" conftest.dir
5361   cd conftest.dir
5362   # We will build objects and dependencies in a subdirectory because
5363   # it helps to detect inapplicable dependency modes.  For instance
5364   # both Tru64's cc and ICC support -MD to output dependencies as a
5365   # side effect of compilation, but ICC will put the dependencies in
5366   # the current directory while Tru64 will put them in the object
5367   # directory.
5368   mkdir sub
5369
5370   am_cv_GCJ_dependencies_compiler_type=none
5371   if test "$am_compiler_list" = ""; then
5372      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5373   fi
5374   for depmode in $am_compiler_list; do
5375     # Setup a source with many dependencies, because some compilers
5376     # like to wrap large dependency lists on column 80 (with \), and
5377     # we should not choose a depcomp mode which is confused by this.
5378     #
5379     # We need to recreate these files for each test, as the compiler may
5380     # overwrite some of them when testing with obscure command lines.
5381     # This happens at least with the AIX C compiler.
5382     : > sub/conftest.c
5383     for i in 1 2 3 4 5 6; do
5384       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5385       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5386       # Solaris 8's {/usr,}/bin/sh.
5387       touch sub/conftst$i.h
5388     done
5389     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5390
5391     case $depmode in
5392     nosideeffect)
5393       # after this tag, mechanisms are not by side-effect, so they'll
5394       # only be used when explicitly requested
5395       if test "x$enable_dependency_tracking" = xyes; then
5396         continue
5397       else
5398         break
5399       fi
5400       ;;
5401     none) break ;;
5402     esac
5403     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404     # mode.  It turns out that the SunPro C++ compiler does not properly
5405     # handle `-M -o', and we need to detect this.
5406     if depmode=$depmode \
5407        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5408        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5409        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5410          >/dev/null 2>conftest.err &&
5411        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5413        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414       # icc doesn't choke on unknown options, it will just issue warnings
5415       # or remarks (even with -Werror).  So we grep stderr for any message
5416       # that says an option was ignored or not supported.
5417       # When given -MP, icc 7.0 and 7.1 complain thusly:
5418       #   icc: Command line warning: ignoring option '-M'; no argument required
5419       # The diagnosis changed in icc 8.0:
5420       #   icc: Command line remark: option '-MP' not supported
5421       if (grep 'ignoring option' conftest.err ||
5422           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423         am_cv_GCJ_dependencies_compiler_type=$depmode
5424         break
5425       fi
5426     fi
5427   done
5428
5429   cd ..
5430   rm -rf conftest.dir
5431 else
5432   am_cv_GCJ_dependencies_compiler_type=none
5433 fi
5434
5435 fi
5436 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5437 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5438 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5439
5440
5441
5442 if
5443   test "x$enable_dependency_tracking" != xno \
5444   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5445   am__fastdepGCJ_TRUE=
5446   am__fastdepGCJ_FALSE='#'
5447 else
5448   am__fastdepGCJ_TRUE='#'
5449   am__fastdepGCJ_FALSE=
5450 fi
5451
5452
5453
5454
5455 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5456 lt_save_CC="$CC"
5457 lt_save_CFLAGS="$CFLAGS"
5458 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5459 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5460 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5461 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5462 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5463 deplibs_check_method="$deplibs_check_method" \
5464 file_magic_cmd="$file_magic_cmd" \
5465 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5466 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5467 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5468 echo "$as_me: error: libtool tag configuration failed" >&2;}
5469    { (exit 1); exit 1; }; }
5470 CC="$lt_save_CC"
5471 CFLAGS="$lt_save_CFLAGS"
5472
5473 # Redirect the config.log output again, so that the ltconfig log is not
5474 # clobbered by the next message.
5475 exec 5>>./config.log
5476
5477
5478
5479 if test "x$CC" != xcc; then
5480   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5481 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5482 else
5483   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5484 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5485 fi
5486 set dummy $CC; ac_cc=`echo $2 |
5487                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5488 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497
5498 int
5499 main ()
5500 {
5501
5502   ;
5503   return 0;
5504 }
5505 _ACEOF
5506 # Make sure it works both with $CC and with simple cc.
5507 # We do the test twice because some compilers refuse to overwrite an
5508 # existing .o file with -o, though they will create one.
5509 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5510 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } &&
5515    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516   (eval $ac_try) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); };
5520 then
5521   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5522   if test "x$CC" != xcc; then
5523     # Test first that cc exists at all.
5524     if { ac_try='cc -c conftest.$ac_ext >&5'
5525   { (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); }; }; then
5530       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5531       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); };
5541       then
5542         # cc works too.
5543         :
5544       else
5545         # cc exists but doesn't like -o.
5546         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5547       fi
5548     fi
5549   fi
5550 else
5551   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5552 fi
5553 rm -f conftest*
5554
5555 fi
5556 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5557   echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6
5559 else
5560   echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5562
5563 cat >>confdefs.h <<\_ACEOF
5564 #define NO_MINUS_C_MINUS_O 1
5565 _ACEOF
5566
5567 fi
5568
5569 # FIXME: we rely on the cache variable name because
5570 # there is no other way.
5571 set dummy $CC
5572 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5574    # Losing compiler, so override with the script.
5575    # FIXME: It is wrong to rewrite CC.
5576    # But if we don't then we get into trouble of one sort or another.
5577    # A longer-term fix would be to have automake use am__CC in this case,
5578    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5579    CC="$am_aux_dir/compile $CC"
5580 fi
5581
5582
5583
5584 subdirs="$subdirs libltdl"
5585
5586
5587 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5588    COMPPATH=.
5589 else
5590    COMPPATH=..
5591 fi
5592
5593
5594 # The -no-testsuite modules omit the test subdir.
5595
5596
5597 if test -d $srcdir/testsuite; then
5598   TESTSUBDIR_TRUE=
5599   TESTSUBDIR_FALSE='#'
5600 else
5601   TESTSUBDIR_TRUE='#'
5602   TESTSUBDIR_FALSE=
5603 fi
5604
5605
5606 # Should the runtime set system properties by examining the
5607 # environment variable GCJ_PROPERTIES?
5608 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5609 if test "${enable_getenv_properties+set}" = set; then
5610   enableval="$enable_getenv_properties"
5611
5612 fi;
5613
5614 # Whether GCJ_PROPERTIES is used depends on the target.
5615 if test -z "$enable_getenv_properties"; then
5616    enable_getenv_properties=${enable_getenv_properties_default-yes}
5617 fi
5618 if test "$enable_getenv_properties" = no; then
5619
5620 cat >>confdefs.h <<\_ACEOF
5621 #define DISABLE_GETENV_PROPERTIES 1
5622 _ACEOF
5623
5624 fi
5625
5626 # Whether we should use arguments to main()
5627 if test -z "$enable_main_args"; then
5628    enable_main_args=${enable_main_args_default-yes}
5629 fi
5630 if test "$enable_main_args" = no; then
5631
5632 cat >>confdefs.h <<\_ACEOF
5633 #define DISABLE_MAIN_ARGS 1
5634 _ACEOF
5635
5636 fi
5637
5638
5639 # Should we use hashtable-based synchronization?
5640 # Currently works only for Linux X86/ia64
5641 # Typically faster and more space-efficient
5642 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5643 if test "${enable_hash_synchronization+set}" = set; then
5644   enableval="$enable_hash_synchronization"
5645
5646 fi;
5647
5648 if test -z "$enable_hash_synchronization"; then
5649    enable_hash_synchronization=$enable_hash_synchronization_default
5650 fi
5651
5652 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5653 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5654 if test "${enable_libgcj_multifile+set}" = set; then
5655   enableval="$enable_libgcj_multifile"
5656   case "${enableval}" in
5657   yes) enable_libgcj_multifile=yes ;;
5658   no)  enable_libgcj_multifile=no ;;
5659   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5660 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5661    { (exit 1); exit 1; }; } ;;
5662 esac
5663 else
5664   enable_libgcj_multifile=no
5665 fi;
5666
5667
5668 if test "$enable_libgcj_multifile" = yes; then
5669   ONESTEP_TRUE=
5670   ONESTEP_FALSE='#'
5671 else
5672   ONESTEP_TRUE='#'
5673   ONESTEP_FALSE=
5674 fi
5675
5676
5677 # What is the native OS API for MinGW?
5678
5679 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5680 if test "${with_win32_nlsapi+set}" = set; then
5681   withval="$with_win32_nlsapi"
5682   case "${withval}" in
5683   ansi) with_win32_nlsapi=ansi ;;
5684   unicows) with_win32_nlsapi=unicows ;;
5685   unicode) with_win32_nlsapi=unicode ;;
5686   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5687 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5688    { (exit 1); exit 1; }; } ;;
5689 esac
5690 else
5691   with_win32_nlsapi=ansi
5692 fi;
5693
5694 case "${with_win32_nlsapi}" in
5695   unicows | unicode)
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define MINGW_LIBGCJ_UNICODE 1
5699 _ACEOF
5700
5701     ;;
5702 esac
5703
5704 # configure.host sets slow_pthread_self if the synchronization code should
5705 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5706 if test "${slow_pthread_self}" = "yes"; then
5707
5708 cat >>confdefs.h <<\_ACEOF
5709 #define SLOW_PTHREAD_SELF 1
5710 _ACEOF
5711
5712 fi
5713
5714
5715 # See if the user has requested runtime debugging.
5716 LIBGCJDEBUG="false"
5717
5718 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5719 if test "${enable_libgcj_debug+set}" = set; then
5720   enableval="$enable_libgcj_debug"
5721   if test "$enable_libgcj_debug" = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define DEBUG 1
5725 _ACEOF
5726
5727     LIBGCJDEBUG="true"
5728   fi
5729 fi;
5730
5731 # Check for gc debugging.  This option is handled both here and in the GC.
5732 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5733 if test "${enable_gc_debug+set}" = set; then
5734   enableval="$enable_gc_debug"
5735    if test "$enable_gc_debug" = "yes"; then
5736
5737 cat >>confdefs.h <<\_ACEOF
5738 #define LIBGCJ_GC_DEBUG 1
5739 _ACEOF
5740
5741   fi
5742 fi;
5743
5744 # See if the user has the interpreter included.
5745 # Check whether --enable-interpreter or --disable-interpreter was given.
5746 if test "${enable_interpreter+set}" = set; then
5747   enableval="$enable_interpreter"
5748   if test "$enable_interpreter" = yes; then
5749     # This can also be set in configure.host.
5750     libgcj_interpreter=yes
5751   elif test "$enable_interpreter" = no; then
5752     libgcj_interpreter=no
5753   fi
5754 fi;
5755
5756 if test "$libgcj_interpreter" = yes; then
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define INTERPRETER 1
5760 _ACEOF
5761
5762 fi
5763 INTERPRETER="$libgcj_interpreter"
5764
5765
5766 echo "$as_me:$LINENO: checking for exception model to use" >&5
5767 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5768 ac_ext=cc
5769 ac_cpp='$CXXCPP $CPPFLAGS'
5770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773
5774 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5775 if test "${enable_sjlj_exceptions+set}" = set; then
5776   enableval="$enable_sjlj_exceptions"
5777   :
5778 else
5779   cat > conftest.$ac_ext << EOF
5780 #line 5780 "configure"
5781 struct S { ~S(); };
5782 void bar();
5783 void foo()
5784 {
5785   S s;
5786   bar();
5787 }
5788 EOF
5789 old_CXXFLAGS="$CXXFLAGS"
5790 CXXFLAGS=-S
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792   (eval $ac_compile) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; then
5796   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5797     enable_sjlj_exceptions=yes
5798   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5799     enable_sjlj_exceptions=no
5800   fi
5801 fi
5802 CXXFLAGS="$old_CXXFLAGS"
5803 rm -f conftest*
5804 fi;
5805 if test x$enable_sjlj_exceptions = xyes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define SJLJ_EXCEPTIONS 1
5809 _ACEOF
5810
5811   ac_exception_model_name=sjlj
5812 elif test x$enable_sjlj_exceptions = xno; then
5813   ac_exception_model_name="call frame"
5814 else
5815   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5816 echo "$as_me: error: unable to detect exception model" >&2;}
5817    { (exit 1); exit 1; }; }
5818 fi
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5826 echo "${ECHO_T}$ac_exception_model_name" >&6
5827
5828 # If we are non using SJLJ exceptions, and this host does not have support
5829 # for unwinding from a signal handler, enable checked dereferences and divides.
5830 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5831   CHECKREFSPEC=-fcheck-references
5832   DIVIDESPEC=-fuse-divide-subroutine
5833   EXCEPTIONSPEC=
5834 fi
5835
5836 # See if the user wants to disable java.net.  This is the mildly
5837 # ugly way that we admit that target-side configuration sucks.
5838 # Check whether --enable-java-net or --disable-java-net was given.
5839 if test "${enable_java_net+set}" = set; then
5840   enableval="$enable_java_net"
5841
5842 fi;
5843
5844 # Whether java.net is built by default can depend on the target.
5845 if test -z "$enable_java_net"; then
5846    enable_java_net=${enable_java_net_default-yes}
5847 fi
5848 if test "$enable_java_net" = no; then
5849
5850 cat >>confdefs.h <<\_ACEOF
5851 #define DISABLE_JAVA_NET 1
5852 _ACEOF
5853
5854 fi
5855
5856 # See if the user wants to configure without libffi.  Some
5857 # architectures don't support it, and default values are set in
5858 # configure.host.
5859
5860 # Check whether --with-libffi or --without-libffi was given.
5861 if test "${with_libffi+set}" = set; then
5862   withval="$with_libffi"
5863   :
5864 else
5865   with_libffi=${with_libffi_default-yes}
5866 fi;
5867
5868 LIBFFI=
5869 LIBFFIINCS=
5870 if test "$with_libffi" != no; then
5871
5872 cat >>confdefs.h <<\_ACEOF
5873 #define USE_LIBFFI 1
5874 _ACEOF
5875
5876    LIBFFI=../libffi/libffi_convenience.la
5877    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5878 fi
5879
5880
5881
5882 # See if the user wants to disable JVMPI support.
5883 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5884 if test "${enable_jvmpi+set}" = set; then
5885   enableval="$enable_jvmpi"
5886
5887 fi;
5888
5889 if test "$enable_jvmpi" != no; then
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define ENABLE_JVMPI 1
5893 _ACEOF
5894
5895 fi
5896
5897 # If the target is an eCos system, use the appropriate eCos
5898 # I/O routines.
5899 # FIXME: this should not be a local option but a global target
5900 # system; at present there is no eCos target.
5901 TARGET_ECOS=${PROCESS-"no"}
5902
5903 # Check whether --with-ecos or --without-ecos was given.
5904 if test "${with_ecos+set}" = set; then
5905   withval="$with_ecos"
5906   TARGET_ECOS="$with_ecos"
5907
5908 fi;
5909
5910 supply_backtrace=no
5911
5912 PLATFORM_INNER_NAT_HDRS=
5913 case "$TARGET_ECOS" in
5914    no) case "$host" in
5915       *mingw*)
5916             PLATFORM=Win32
5917             PLATFORMNET=Win32
5918             PLATFORMH=win32.h
5919
5920 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5921 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5922 LD_PROG=`$CC --print-prog-name=ld`
5923 LD_VERSION=`$LD_PROG --version`
5924 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5925 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5926 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5927   LD_OK="ok"
5928 else
5929   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5930     LD_OK="ok"
5931   fi
5932 fi
5933 if test "x$LD_OK" != x; then
5934   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5938 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5939   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5940 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5944 _ACEOF
5945
5946 fi
5947       ;;
5948       *)
5949             PLATFORM=Posix
5950             PLATFORMNET=Posix
5951             PLATFORMH=posix.h
5952             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5953       ;;
5954       esac
5955       ;;
5956    *)
5957       PLATFORM=Ecos
5958       PLATFORMNET=NoNet
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define ECOS 1
5962 _ACEOF
5963
5964       PLATFORMH=posix.h
5965       ;;
5966 esac
5967
5968           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5969
5970
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5980   CPP=
5981 fi
5982 if test -z "$CPP"; then
5983   if test "${ac_cv_prog_CPP+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986       # Double quotes because CPP needs to be expanded
5987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5988     do
5989       ac_preproc_ok=false
5990 for ac_c_preproc_warn_flag in '' yes
5991 do
5992   # Use a header file that comes with gcc, so configuring glibc
5993   # with a fresh cross-compiler works.
5994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995   # <limits.h> exists even on freestanding compilers.
5996   # On the NeXT, cc -E runs the code through the compiler's parser,
5997   # not just through cpp. "Syntax error" is here to catch this case.
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 #ifdef __STDC__
6005 # include <limits.h>
6006 #else
6007 # include <assert.h>
6008 #endif
6009                      Syntax error
6010 _ACEOF
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } >/dev/null; then
6019   if test -s conftest.err; then
6020     ac_cpp_err=$ac_c_preproc_warn_flag
6021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022   else
6023     ac_cpp_err=
6024   fi
6025 else
6026   ac_cpp_err=yes
6027 fi
6028 if test -z "$ac_cpp_err"; then
6029   :
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   # Broken: fails on valid input.
6035 continue
6036 fi
6037 rm -f conftest.err conftest.$ac_ext
6038
6039   # OK, works on sane cases.  Now check whether non-existent headers
6040   # can be detected and how.
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } >/dev/null; then
6057   if test -s conftest.err; then
6058     ac_cpp_err=$ac_c_preproc_warn_flag
6059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6060   else
6061     ac_cpp_err=
6062   fi
6063 else
6064   ac_cpp_err=yes
6065 fi
6066 if test -z "$ac_cpp_err"; then
6067   # Broken: success on invalid input.
6068 continue
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   # Passes both tests.
6074 ac_preproc_ok=:
6075 break
6076 fi
6077 rm -f conftest.err conftest.$ac_ext
6078
6079 done
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6083   break
6084 fi
6085
6086     done
6087     ac_cv_prog_CPP=$CPP
6088
6089 fi
6090   CPP=$ac_cv_prog_CPP
6091 else
6092   ac_cv_prog_CPP=$CPP
6093 fi
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6096 ac_preproc_ok=false
6097 for ac_c_preproc_warn_flag in '' yes
6098 do
6099   # Use a header file that comes with gcc, so configuring glibc
6100   # with a fresh cross-compiler works.
6101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102   # <limits.h> exists even on freestanding compilers.
6103   # On the NeXT, cc -E runs the code through the compiler's parser,
6104   # not just through cpp. "Syntax error" is here to catch this case.
6105   cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #ifdef __STDC__
6112 # include <limits.h>
6113 #else
6114 # include <assert.h>
6115 #endif
6116                      Syntax error
6117 _ACEOF
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } >/dev/null; then
6126   if test -s conftest.err; then
6127     ac_cpp_err=$ac_c_preproc_warn_flag
6128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129   else
6130     ac_cpp_err=
6131   fi
6132 else
6133   ac_cpp_err=yes
6134 fi
6135 if test -z "$ac_cpp_err"; then
6136   :
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141   # Broken: fails on valid input.
6142 continue
6143 fi
6144 rm -f conftest.err conftest.$ac_ext
6145
6146   # OK, works on sane cases.  Now check whether non-existent headers
6147   # can be detected and how.
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 #include <ac_nonexistent.h>
6155 _ACEOF
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158   ac_status=$?
6159   grep -v '^ *+' conftest.er1 >conftest.err
6160   rm -f conftest.er1
6161   cat conftest.err >&5
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); } >/dev/null; then
6164   if test -s conftest.err; then
6165     ac_cpp_err=$ac_c_preproc_warn_flag
6166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6167   else
6168     ac_cpp_err=
6169   fi
6170 else
6171   ac_cpp_err=yes
6172 fi
6173 if test -z "$ac_cpp_err"; then
6174   # Broken: success on invalid input.
6175 continue
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180   # Passes both tests.
6181 ac_preproc_ok=:
6182 break
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185
6186 done
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6190   :
6191 else
6192   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196    { (exit 1); exit 1; }; }
6197 fi
6198
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 echo "$as_me:$LINENO: checking for egrep" >&5
6207 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6208 if test "${ac_cv_prog_egrep+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6212     then ac_cv_prog_egrep='grep -E'
6213     else ac_cv_prog_egrep='egrep'
6214     fi
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6217 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6218  EGREP=$ac_cv_prog_egrep
6219
6220
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <stdint.h>
6228
6229 _ACEOF
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231   $EGREP "uint32_t" >/dev/null 2>&1; then
6232
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_INT32_DEFINED 1
6235 _ACEOF
6236
6237 fi
6238 rm -f conftest*
6239
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 #include <inttypes.h>
6247
6248 _ACEOF
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250   $EGREP "uint32_t" >/dev/null 2>&1; then
6251
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_INT32_DEFINED 1
6254 _ACEOF
6255
6256 fi
6257 rm -f conftest*
6258
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #include <sys/types.h>
6266
6267 _ACEOF
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269   $EGREP "u_int32_t" >/dev/null 2>&1; then
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_BSD_INT32_DEFINED 1
6273 _ACEOF
6274
6275 fi
6276 rm -f conftest*
6277
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 #include <sys/config.h>
6285
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288   $EGREP "u_int32_t" >/dev/null 2>&1; then
6289
6290 cat >>confdefs.h <<\_ACEOF
6291 #define HAVE_BSD_INT32_DEFINED 1
6292 _ACEOF
6293
6294 fi
6295 rm -f conftest*
6296
6297
6298
6299
6300 if test "$PLATFORM" = Win32; then
6301   USING_WIN32_PLATFORM_TRUE=
6302   USING_WIN32_PLATFORM_FALSE='#'
6303 else
6304   USING_WIN32_PLATFORM_TRUE='#'
6305   USING_WIN32_PLATFORM_FALSE=
6306 fi
6307
6308
6309
6310 if test "$PLATFORM" = Posix; then
6311   USING_POSIX_PLATFORM_TRUE=
6312   USING_POSIX_PLATFORM_FALSE='#'
6313 else
6314   USING_POSIX_PLATFORM_TRUE='#'
6315   USING_POSIX_PLATFORM_FALSE=
6316 fi
6317
6318
6319
6320 if test "$PLATFORM" = Ecos; then
6321   USING_ECOS_PLATFORM_TRUE=
6322   USING_ECOS_PLATFORM_FALSE='#'
6323 else
6324   USING_ECOS_PLATFORM_TRUE='#'
6325   USING_ECOS_PLATFORM_FALSE=
6326 fi
6327
6328
6329 # These may not be defined in a non-ANS conformant embedded system.
6330 # FIXME: Should these case a runtime exception in that case?
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <time.h>
6338
6339 _ACEOF
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341   $EGREP "mktime" >/dev/null 2>&1; then
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_MKTIME 1
6345 _ACEOF
6346
6347 fi
6348 rm -f conftest*
6349
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 #include <time.h>
6357
6358 _ACEOF
6359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360   $EGREP "localtime" >/dev/null 2>&1; then
6361
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_LOCALTIME 1
6364 _ACEOF
6365
6366 fi
6367 rm -f conftest*
6368
6369
6370 # Create the subdirectory for natFile.cc, or the attempt
6371 # to create the link will fail.
6372 test -d java || mkdir java
6373 test -d java/io || mkdir java/io
6374 test -d gnu || mkdir gnu
6375           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6376
6377
6378 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6379 test -d java/lang || mkdir java/lang
6380           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6381
6382           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6383
6384
6385 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6386 test -d java/net || mkdir java/net
6387           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6388
6389           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6390
6391
6392 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6393 test -d gnu/java || mkdir gnu/java
6394 test -d gnu/java/net || mkdir gnu/java/net
6395           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6396
6397           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6398
6399
6400 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6401 test -d gnu/java/nio || mkdir gnu/java/nio
6402           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6403
6404           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6405
6406 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6407           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6408
6409
6410 case "${host}" in
6411     *mingw*)
6412       SYSTEMSPEC="-lgdi32 -lws2_32"
6413       if test "${with_win32_nlsapi}" = "unicows"; then
6414         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6415       fi
6416     ;;
6417     *)
6418       SYSTEMSPEC=
6419     ;;
6420 esac
6421
6422
6423 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6424
6425
6426
6427 # Check whether --with-system-zlib or --without-system-zlib was given.
6428 if test "${with_system_zlib+set}" = set; then
6429   withval="$with_system_zlib"
6430
6431 fi;
6432 ZLIBSPEC=
6433
6434 ZLIBTESTSPEC=
6435
6436
6437 echo "$as_me:$LINENO: checking for X" >&5
6438 echo $ECHO_N "checking for X... $ECHO_C" >&6
6439
6440
6441 # Check whether --with-x or --without-x was given.
6442 if test "${with_x+set}" = set; then
6443   withval="$with_x"
6444
6445 fi;
6446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6447 if test "x$with_x" = xno; then
6448   # The user explicitly disabled X.
6449   have_x=disabled
6450 else
6451   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6452     # Both variables are already set.
6453     have_x=yes
6454   else
6455     if test "${ac_cv_have_x+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   # One or both of the vars are not set, and there is no cached value.
6459 ac_x_includes=no ac_x_libraries=no
6460 rm -fr conftest.dir
6461 if mkdir conftest.dir; then
6462   cd conftest.dir
6463   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6464   cat >Imakefile <<'_ACEOF'
6465 acfindx:
6466         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6467 _ACEOF
6468   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6469     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6470     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6471     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6472     for ac_extension in a so sl; do
6473       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6474          test -f $ac_im_libdir/libX11.$ac_extension; then
6475         ac_im_usrlibdir=$ac_im_libdir; break
6476       fi
6477     done
6478     # Screen out bogus values from the imake configuration.  They are
6479     # bogus both because they are the default anyway, and because
6480     # using them would break gcc on systems where it needs fixed includes.
6481     case $ac_im_incroot in
6482         /usr/include) ;;
6483         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6484     esac
6485     case $ac_im_usrlibdir in
6486         /usr/lib | /lib) ;;
6487         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6488     esac
6489   fi
6490   cd ..
6491   rm -fr conftest.dir
6492 fi
6493
6494 # Standard set of common directories for X headers.
6495 # Check X11 before X11Rn because it is often a symlink to the current release.
6496 ac_x_header_dirs='
6497 /usr/X11/include
6498 /usr/X11R6/include
6499 /usr/X11R5/include
6500 /usr/X11R4/include
6501
6502 /usr/include/X11
6503 /usr/include/X11R6
6504 /usr/include/X11R5
6505 /usr/include/X11R4
6506
6507 /usr/local/X11/include
6508 /usr/local/X11R6/include
6509 /usr/local/X11R5/include
6510 /usr/local/X11R4/include
6511
6512 /usr/local/include/X11
6513 /usr/local/include/X11R6
6514 /usr/local/include/X11R5
6515 /usr/local/include/X11R4
6516
6517 /usr/X386/include
6518 /usr/x386/include
6519 /usr/XFree86/include/X11
6520
6521 /usr/include
6522 /usr/local/include
6523 /usr/unsupported/include
6524 /usr/athena/include
6525 /usr/local/x11r5/include
6526 /usr/lpp/Xamples/include
6527
6528 /usr/openwin/include
6529 /usr/openwin/share/include'
6530
6531 if test "$ac_x_includes" = no; then
6532   # Guess where to find include files, by looking for Intrinsic.h.
6533   # First, try using that file with no special directory specified.
6534   cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #include <X11/Intrinsic.h>
6541 _ACEOF
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } >/dev/null; then
6550   if test -s conftest.err; then
6551     ac_cpp_err=$ac_c_preproc_warn_flag
6552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6553   else
6554     ac_cpp_err=
6555   fi
6556 else
6557   ac_cpp_err=yes
6558 fi
6559 if test -z "$ac_cpp_err"; then
6560   # We can compile using X headers with no special include directory.
6561 ac_x_includes=
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566   for ac_dir in $ac_x_header_dirs; do
6567   if test -r "$ac_dir/X11/Intrinsic.h"; then
6568     ac_x_includes=$ac_dir
6569     break
6570   fi
6571 done
6572 fi
6573 rm -f conftest.err conftest.$ac_ext
6574 fi # $ac_x_includes = no
6575
6576 if test "$ac_x_libraries" = no; then
6577   # Check for the libraries.
6578   # See if we find them without any special options.
6579   # Don't add to $LIBS permanently.
6580   ac_save_LIBS=$LIBS
6581   LIBS="-lXt $LIBS"
6582   if test x$gcc_no_link = xyes; then
6583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6585    { (exit 1); exit 1; }; }
6586 fi
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 #include <X11/Intrinsic.h>
6594 int
6595 main ()
6596 {
6597 XtMalloc (0)
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -z "$ac_c_werror_flag"
6612                          || test ! -s conftest.err'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   LIBS=$ac_save_LIBS
6625 # We can link X programs with no special library path.
6626 ac_x_libraries=
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 LIBS=$ac_save_LIBS
6632 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6633 do
6634   # Don't even attempt the hair of trying to link an X program!
6635   for ac_extension in a so sl; do
6636     if test -r $ac_dir/libXt.$ac_extension; then
6637       ac_x_libraries=$ac_dir
6638       break 2
6639     fi
6640   done
6641 done
6642 fi
6643 rm -f conftest.err conftest.$ac_objext \
6644       conftest$ac_exeext conftest.$ac_ext
6645 fi # $ac_x_libraries = no
6646
6647 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6648   # Didn't find X anywhere.  Cache the known absence of X.
6649   ac_cv_have_x="have_x=no"
6650 else
6651   # Record where we found X for the cache.
6652   ac_cv_have_x="have_x=yes \
6653                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6654 fi
6655 fi
6656
6657   fi
6658   eval "$ac_cv_have_x"
6659 fi # $with_x != no
6660
6661 if test "$have_x" != yes; then
6662   echo "$as_me:$LINENO: result: $have_x" >&5
6663 echo "${ECHO_T}$have_x" >&6
6664   no_x=yes
6665 else
6666   # If each of the values was on the command line, it overrides each guess.
6667   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6668   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6669   # Update the cache value to reflect the command line values.
6670   ac_cv_have_x="have_x=yes \
6671                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6672   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6673 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6674 fi
6675
6676 if test "$no_x" = yes; then
6677   # Not all programs may use this symbol, but it does not hurt to define it.
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define X_DISPLAY_MISSING 1
6681 _ACEOF
6682
6683   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6684 else
6685   if test -n "$x_includes"; then
6686     X_CFLAGS="$X_CFLAGS -I$x_includes"
6687   fi
6688
6689   # It would also be nice to do this for all -L options, not just this one.
6690   if test -n "$x_libraries"; then
6691     X_LIBS="$X_LIBS -L$x_libraries"
6692     # For Solaris; some versions of Sun CC require a space after -R and
6693     # others require no space.  Words are not sufficient . . . .
6694     case `(uname -sr) 2>/dev/null` in
6695     "SunOS 5"*)
6696       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6697 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6698       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6699       if test x$gcc_no_link = xyes; then
6700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6702    { (exit 1); exit 1; }; }
6703 fi
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721   (eval $ac_link) 2>conftest.er1
6722   ac_status=$?
6723   grep -v '^ *+' conftest.er1 >conftest.err
6724   rm -f conftest.er1
6725   cat conftest.err >&5
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); } &&
6728          { ac_try='test -z "$ac_c_werror_flag"
6729                          || test ! -s conftest.err'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; } &&
6735          { ac_try='test -s conftest$ac_exeext'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   ac_R_nospace=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_R_nospace=no
6747 fi
6748 rm -f conftest.err conftest.$ac_objext \
6749       conftest$ac_exeext conftest.$ac_ext
6750       if test $ac_R_nospace = yes; then
6751         echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6753         X_LIBS="$X_LIBS -R$x_libraries"
6754       else
6755         LIBS="$ac_xsave_LIBS -R $x_libraries"
6756         if test x$gcc_no_link = xyes; then
6757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6759    { (exit 1); exit 1; }; }
6760 fi
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext conftest$ac_exeext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6778   (eval $ac_link) 2>conftest.er1
6779   ac_status=$?
6780   grep -v '^ *+' conftest.er1 >conftest.err
6781   rm -f conftest.er1
6782   cat conftest.err >&5
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } &&
6785          { ac_try='test -z "$ac_c_werror_flag"
6786                          || test ! -s conftest.err'
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); }; } &&
6792          { ac_try='test -s conftest$ac_exeext'
6793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794   (eval $ac_try) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); }; }; then
6798   ac_R_space=yes
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_R_space=no
6804 fi
6805 rm -f conftest.err conftest.$ac_objext \
6806       conftest$ac_exeext conftest.$ac_ext
6807         if test $ac_R_space = yes; then
6808           echo "$as_me:$LINENO: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6810           X_LIBS="$X_LIBS -R $x_libraries"
6811         else
6812           echo "$as_me:$LINENO: result: neither works" >&5
6813 echo "${ECHO_T}neither works" >&6
6814         fi
6815       fi
6816       LIBS=$ac_xsave_LIBS
6817     esac
6818   fi
6819
6820   # Check for system-dependent libraries X programs must link with.
6821   # Do this before checking for the system-independent R6 libraries
6822   # (-lICE), since we may need -lsocket or whatever for X linking.
6823
6824   if test "$ISC" = yes; then
6825     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6826   else
6827     # Martyn Johnson says this is needed for Ultrix, if the X
6828     # libraries were built with DECnet support.  And Karl Berry says
6829     # the Alpha needs dnet_stub (dnet does not exist).
6830     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6831     if test x$gcc_no_link = xyes; then
6832   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834    { (exit 1); exit 1; }; }
6835 fi
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842
6843 /* Override any gcc2 internal prototype to avoid an error.  */
6844 #ifdef __cplusplus
6845 extern "C"
6846 #endif
6847 /* We use char because int might match the return type of a gcc2
6848    builtin and then its argument prototype would still apply.  */
6849 char XOpenDisplay ();
6850 int
6851 main ()
6852 {
6853 XOpenDisplay ();
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860   (eval $ac_link) 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } &&
6867          { ac_try='test -z "$ac_c_werror_flag"
6868                          || test ! -s conftest.err'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; } &&
6874          { ac_try='test -s conftest$ac_exeext'
6875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876   (eval $ac_try) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; }; then
6880   :
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6886 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6887 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   ac_check_lib_save_LIBS=$LIBS
6891 LIBS="-ldnet  $LIBS"
6892 if test x$gcc_no_link = xyes; then
6893   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6895    { (exit 1); exit 1; }; }
6896 fi
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903
6904 /* Override any gcc2 internal prototype to avoid an error.  */
6905 #ifdef __cplusplus
6906 extern "C"
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909    builtin and then its argument prototype would still apply.  */
6910 char dnet_ntoa ();
6911 int
6912 main ()
6913 {
6914 dnet_ntoa ();
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921   (eval $ac_link) 2>conftest.er1
6922   ac_status=$?
6923   grep -v '^ *+' conftest.er1 >conftest.err
6924   rm -f conftest.er1
6925   cat conftest.err >&5
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); } &&
6928          { ac_try='test -z "$ac_c_werror_flag"
6929                          || test ! -s conftest.err'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; } &&
6935          { ac_try='test -s conftest$ac_exeext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_lib_dnet_dnet_ntoa=yes
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_lib_dnet_dnet_ntoa=no
6947 fi
6948 rm -f conftest.err conftest.$ac_objext \
6949       conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6953 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6954 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6955   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6956 fi
6957
6958     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6959       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6960 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6961 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   ac_check_lib_save_LIBS=$LIBS
6965 LIBS="-ldnet_stub  $LIBS"
6966 if test x$gcc_no_link = xyes; then
6967   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6969    { (exit 1); exit 1; }; }
6970 fi
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977
6978 /* Override any gcc2 internal prototype to avoid an error.  */
6979 #ifdef __cplusplus
6980 extern "C"
6981 #endif
6982 /* We use char because int might match the return type of a gcc2
6983    builtin and then its argument prototype would still apply.  */
6984 char dnet_ntoa ();
6985 int
6986 main ()
6987 {
6988 dnet_ntoa ();
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995   (eval $ac_link) 2>conftest.er1
6996   ac_status=$?
6997   grep -v '^ *+' conftest.er1 >conftest.err
6998   rm -f conftest.er1
6999   cat conftest.err >&5
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -z "$ac_c_werror_flag"
7003                          || test ! -s conftest.err'
7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005   (eval $ac_try) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_cv_lib_dnet_stub_dnet_ntoa=no
7021 fi
7022 rm -f conftest.err conftest.$ac_objext \
7023       conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_check_lib_save_LIBS
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7027 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7028 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7029   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7030 fi
7031
7032     fi
7033 fi
7034 rm -f conftest.err conftest.$ac_objext \
7035       conftest$ac_exeext conftest.$ac_ext
7036     LIBS="$ac_xsave_LIBS"
7037
7038     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7039     # to get the SysV transport functions.
7040     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7041     # needs -lnsl.
7042     # The nsl library prevents programs from opening the X display
7043     # on Irix 5.2, according to T.E. Dickey.
7044     # The functions gethostbyname, getservbyname, and inet_addr are
7045     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7046     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7047 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7048 if test "${ac_cv_func_gethostbyname+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   if test x$gcc_no_link = xyes; then
7052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7054    { (exit 1); exit 1; }; }
7055 fi
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7064 #define gethostbyname innocuous_gethostbyname
7065
7066 /* System header to define __stub macros and hopefully few prototypes,
7067     which can conflict with char gethostbyname (); below.
7068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069     <limits.h> exists even on freestanding compilers.  */
7070
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076
7077 #undef gethostbyname
7078
7079 /* Override any gcc2 internal prototype to avoid an error.  */
7080 #ifdef __cplusplus
7081 extern "C"
7082 {
7083 #endif
7084 /* We use char because int might match the return type of a gcc2
7085    builtin and then its argument prototype would still apply.  */
7086 char gethostbyname ();
7087 /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS.  Some functions are actually named
7089     something starting with __ and the normal name is an alias.  */
7090 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7091 choke me
7092 #else
7093 char (*f) () = gethostbyname;
7094 #endif
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098
7099 int
7100 main ()
7101 {
7102 return f != gethostbyname;
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -z "$ac_c_werror_flag"
7117                          || test ! -s conftest.err'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_func_gethostbyname=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_cv_func_gethostbyname=no
7135 fi
7136 rm -f conftest.err conftest.$ac_objext \
7137       conftest$ac_exeext conftest.$ac_ext
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7140 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7141
7142     if test $ac_cv_func_gethostbyname = no; then
7143       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7144 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7145 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lnsl  $LIBS"
7150 if test x$gcc_no_link = xyes; then
7151   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7153    { (exit 1); exit 1; }; }
7154 fi
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char gethostbyname ();
7169 int
7170 main ()
7171 {
7172 gethostbyname ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -z "$ac_c_werror_flag"
7187                          || test ! -s conftest.err'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; } &&
7193          { ac_try='test -s conftest$ac_exeext'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   ac_cv_lib_nsl_gethostbyname=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_cv_lib_nsl_gethostbyname=no
7205 fi
7206 rm -f conftest.err conftest.$ac_objext \
7207       conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7209 fi
7210 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7211 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7212 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7213   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7214 fi
7215
7216       if test $ac_cv_lib_nsl_gethostbyname = no; then
7217         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7218 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7219 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   ac_check_lib_save_LIBS=$LIBS
7223 LIBS="-lbsd  $LIBS"
7224 if test x$gcc_no_link = xyes; then
7225   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7227    { (exit 1); exit 1; }; }
7228 fi
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h.  */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h.  */
7235
7236 /* Override any gcc2 internal prototype to avoid an error.  */
7237 #ifdef __cplusplus
7238 extern "C"
7239 #endif
7240 /* We use char because int might match the return type of a gcc2
7241    builtin and then its argument prototype would still apply.  */
7242 char gethostbyname ();
7243 int
7244 main ()
7245 {
7246 gethostbyname ();
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253   (eval $ac_link) 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -z "$ac_c_werror_flag"
7261                          || test ! -s conftest.err'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_cv_lib_bsd_gethostbyname=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 ac_cv_lib_bsd_gethostbyname=no
7279 fi
7280 rm -f conftest.err conftest.$ac_objext \
7281       conftest$ac_exeext conftest.$ac_ext
7282 LIBS=$ac_check_lib_save_LIBS
7283 fi
7284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7285 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7286 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7287   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7288 fi
7289
7290       fi
7291     fi
7292
7293     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7294     # socket/setsockopt and other routines are undefined under SCO ODT
7295     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7296     # on later versions), says Simon Leinen: it contains gethostby*
7297     # variants that don't use the name server (or something).  -lsocket
7298     # must be given before -lnsl if both are needed.  We assume that
7299     # if connect needs -lnsl, so does gethostbyname.
7300     echo "$as_me:$LINENO: checking for connect" >&5
7301 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7302 if test "${ac_cv_func_connect+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   if test x$gcc_no_link = xyes; then
7306   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7308    { (exit 1); exit 1; }; }
7309 fi
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7318 #define connect innocuous_connect
7319
7320 /* System header to define __stub macros and hopefully few prototypes,
7321     which can conflict with char connect (); below.
7322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323     <limits.h> exists even on freestanding compilers.  */
7324
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7330
7331 #undef connect
7332
7333 /* Override any gcc2 internal prototype to avoid an error.  */
7334 #ifdef __cplusplus
7335 extern "C"
7336 {
7337 #endif
7338 /* We use char because int might match the return type of a gcc2
7339    builtin and then its argument prototype would still apply.  */
7340 char connect ();
7341 /* The GNU C library defines this for functions which it implements
7342     to always fail with ENOSYS.  Some functions are actually named
7343     something starting with __ and the normal name is an alias.  */
7344 #if defined (__stub_connect) || defined (__stub___connect)
7345 choke me
7346 #else
7347 char (*f) () = connect;
7348 #endif
7349 #ifdef __cplusplus
7350 }
7351 #endif
7352
7353 int
7354 main ()
7355 {
7356 return f != connect;
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363   (eval $ac_link) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } &&
7370          { ac_try='test -z "$ac_c_werror_flag"
7371                          || test ! -s conftest.err'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; } &&
7377          { ac_try='test -s conftest$ac_exeext'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; }; then
7383   ac_cv_func_connect=yes
7384 else
7385   echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_cv_func_connect=no
7389 fi
7390 rm -f conftest.err conftest.$ac_objext \
7391       conftest$ac_exeext conftest.$ac_ext
7392 fi
7393 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7394 echo "${ECHO_T}$ac_cv_func_connect" >&6
7395
7396     if test $ac_cv_func_connect = no; then
7397       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7398 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7399 if test "${ac_cv_lib_socket_connect+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   ac_check_lib_save_LIBS=$LIBS
7403 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7404 if test x$gcc_no_link = xyes; then
7405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7407    { (exit 1); exit 1; }; }
7408 fi
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415
7416 /* Override any gcc2 internal prototype to avoid an error.  */
7417 #ifdef __cplusplus
7418 extern "C"
7419 #endif
7420 /* We use char because int might match the return type of a gcc2
7421    builtin and then its argument prototype would still apply.  */
7422 char connect ();
7423 int
7424 main ()
7425 {
7426 connect ();
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433   (eval $ac_link) 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } &&
7440          { ac_try='test -z "$ac_c_werror_flag"
7441                          || test ! -s conftest.err'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; } &&
7447          { ac_try='test -s conftest$ac_exeext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   ac_cv_lib_socket_connect=yes
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 ac_cv_lib_socket_connect=no
7459 fi
7460 rm -f conftest.err conftest.$ac_objext \
7461       conftest$ac_exeext conftest.$ac_ext
7462 LIBS=$ac_check_lib_save_LIBS
7463 fi
7464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7466 if test $ac_cv_lib_socket_connect = yes; then
7467   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7468 fi
7469
7470     fi
7471
7472     # Guillermo Gomez says -lposix is necessary on A/UX.
7473     echo "$as_me:$LINENO: checking for remove" >&5
7474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7475 if test "${ac_cv_func_remove+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   if test x$gcc_no_link = xyes; then
7479   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7481    { (exit 1); exit 1; }; }
7482 fi
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7491 #define remove innocuous_remove
7492
7493 /* System header to define __stub macros and hopefully few prototypes,
7494     which can conflict with char remove (); below.
7495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496     <limits.h> exists even on freestanding compilers.  */
7497
7498 #ifdef __STDC__
7499 # include <limits.h>
7500 #else
7501 # include <assert.h>
7502 #endif
7503
7504 #undef remove
7505
7506 /* Override any gcc2 internal prototype to avoid an error.  */
7507 #ifdef __cplusplus
7508 extern "C"
7509 {
7510 #endif
7511 /* We use char because int might match the return type of a gcc2
7512    builtin and then its argument prototype would still apply.  */
7513 char remove ();
7514 /* The GNU C library defines this for functions which it implements
7515     to always fail with ENOSYS.  Some functions are actually named
7516     something starting with __ and the normal name is an alias.  */
7517 #if defined (__stub_remove) || defined (__stub___remove)
7518 choke me
7519 #else
7520 char (*f) () = remove;
7521 #endif
7522 #ifdef __cplusplus
7523 }
7524 #endif
7525
7526 int
7527 main ()
7528 {
7529 return f != remove;
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536   (eval $ac_link) 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } &&
7543          { ac_try='test -z "$ac_c_werror_flag"
7544                          || test ! -s conftest.err'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; } &&
7550          { ac_try='test -s conftest$ac_exeext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   ac_cv_func_remove=yes
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_cv_func_remove=no
7562 fi
7563 rm -f conftest.err conftest.$ac_objext \
7564       conftest$ac_exeext conftest.$ac_ext
7565 fi
7566 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7567 echo "${ECHO_T}$ac_cv_func_remove" >&6
7568
7569     if test $ac_cv_func_remove = no; then
7570       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7572 if test "${ac_cv_lib_posix_remove+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lposix  $LIBS"
7577 if test x$gcc_no_link = xyes; then
7578   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7580    { (exit 1); exit 1; }; }
7581 fi
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h.  */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h.  */
7588
7589 /* Override any gcc2 internal prototype to avoid an error.  */
7590 #ifdef __cplusplus
7591 extern "C"
7592 #endif
7593 /* We use char because int might match the return type of a gcc2
7594    builtin and then its argument prototype would still apply.  */
7595 char remove ();
7596 int
7597 main ()
7598 {
7599 remove ();
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606   (eval $ac_link) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest$ac_exeext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_cv_lib_posix_remove=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_cv_lib_posix_remove=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext \
7634       conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7636 fi
7637 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7638 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7639 if test $ac_cv_lib_posix_remove = yes; then
7640   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7641 fi
7642
7643     fi
7644
7645     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7646     echo "$as_me:$LINENO: checking for shmat" >&5
7647 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7648 if test "${ac_cv_func_shmat+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test x$gcc_no_link = xyes; then
7652   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7654    { (exit 1); exit 1; }; }
7655 fi
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7664 #define shmat innocuous_shmat
7665
7666 /* System header to define __stub macros and hopefully few prototypes,
7667     which can conflict with char shmat (); below.
7668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669     <limits.h> exists even on freestanding compilers.  */
7670
7671 #ifdef __STDC__
7672 # include <limits.h>
7673 #else
7674 # include <assert.h>
7675 #endif
7676
7677 #undef shmat
7678
7679 /* Override any gcc2 internal prototype to avoid an error.  */
7680 #ifdef __cplusplus
7681 extern "C"
7682 {
7683 #endif
7684 /* We use char because int might match the return type of a gcc2
7685    builtin and then its argument prototype would still apply.  */
7686 char shmat ();
7687 /* The GNU C library defines this for functions which it implements
7688     to always fail with ENOSYS.  Some functions are actually named
7689     something starting with __ and the normal name is an alias.  */
7690 #if defined (__stub_shmat) || defined (__stub___shmat)
7691 choke me
7692 #else
7693 char (*f) () = shmat;
7694 #endif
7695 #ifdef __cplusplus
7696 }
7697 #endif
7698
7699 int
7700 main ()
7701 {
7702 return f != shmat;
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest$ac_exeext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_cv_func_shmat=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_func_shmat=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext \
7737       conftest$ac_exeext conftest.$ac_ext
7738 fi
7739 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7740 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7741
7742     if test $ac_cv_func_shmat = no; then
7743       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7744 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7745 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lipc  $LIBS"
7750 if test x$gcc_no_link = xyes; then
7751   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7753    { (exit 1); exit 1; }; }
7754 fi
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 /* Override any gcc2 internal prototype to avoid an error.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767    builtin and then its argument prototype would still apply.  */
7768 char shmat ();
7769 int
7770 main ()
7771 {
7772 shmat ();
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779   (eval $ac_link) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest$ac_exeext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_cv_lib_ipc_shmat=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_cv_lib_ipc_shmat=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext \
7807       conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7809 fi
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7811 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7812 if test $ac_cv_lib_ipc_shmat = yes; then
7813   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7814 fi
7815
7816     fi
7817   fi
7818
7819   # Check for libraries that X11R6 Xt/Xaw programs need.
7820   ac_save_LDFLAGS=$LDFLAGS
7821   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7822   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7823   # check for ICE first), but we must link in the order -lSM -lICE or
7824   # we get undefined symbols.  So assume we have SM if we have ICE.
7825   # These have to be linked with before -lX11, unlike the other
7826   # libraries we check for below, so use a different variable.
7827   # John Interrante, Karl Berry
7828   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7829 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7830 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   ac_check_lib_save_LIBS=$LIBS
7834 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7835 if test x$gcc_no_link = xyes; then
7836   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7838    { (exit 1); exit 1; }; }
7839 fi
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846
7847 /* Override any gcc2 internal prototype to avoid an error.  */
7848 #ifdef __cplusplus
7849 extern "C"
7850 #endif
7851 /* We use char because int might match the return type of a gcc2
7852    builtin and then its argument prototype would still apply.  */
7853 char IceConnectionNumber ();
7854 int
7855 main ()
7856 {
7857 IceConnectionNumber ();
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864   (eval $ac_link) 2>conftest.er1
7865   ac_status=$?
7866   grep -v '^ *+' conftest.er1 >conftest.err
7867   rm -f conftest.er1
7868   cat conftest.err >&5
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); } &&
7871          { ac_try='test -z "$ac_c_werror_flag"
7872                          || test ! -s conftest.err'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; } &&
7878          { ac_try='test -s conftest$ac_exeext'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   ac_cv_lib_ICE_IceConnectionNumber=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 ac_cv_lib_ICE_IceConnectionNumber=no
7890 fi
7891 rm -f conftest.err conftest.$ac_objext \
7892       conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7896 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7897 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7898   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7899 fi
7900
7901   LDFLAGS=$ac_save_LDFLAGS
7902
7903 fi
7904
7905
7906 # Determine which AWT peer libraries to build
7907 # Check whether --enable-java-awt or --disable-java-awt was given.
7908 if test "${enable_java_awt+set}" = set; then
7909   enableval="$enable_java_awt"
7910
7911 fi;
7912
7913 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7914 use_xlib_awt=""
7915 use_gtk_awt=""
7916 # The default toolkit to use is the first one specified.
7917 TOOLKIT=
7918
7919
7920 for peer in $peerlibs ; do
7921   case $peer in
7922     xlib)
7923       if test "$no_x" = yes; then
7924         echo "*** xlib peers requested but no X library available" 1>&2
7925         exit 1
7926       else
7927         use_xlib_awt="yes"
7928         if test -z "$TOOLKIT"; then
7929            TOOLKIT=gnu.awt.xlib.XToolkit
7930         fi
7931       fi
7932       ;;
7933     gtk)
7934       if test "$no_x" = yes; then
7935          echo "*** xlib peers requested but no X library available" 1>&2
7936          exit 1
7937       else
7938          use_gtk_awt=yes
7939          if test -z "$TOOLKIT"; then
7940             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7941          fi
7942          test -d jniinclude || mkdir jniinclude
7943       fi
7944       ;;
7945     no)
7946       use_xlib_awt=
7947       use_gtk_awt=
7948       break
7949       ;;
7950     *)
7951       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7952       exit 1
7953   esac
7954 done
7955
7956
7957
7958 if test "$use_xlib_awt" = yes; then
7959   XLIB_AWT_TRUE=
7960   XLIB_AWT_FALSE='#'
7961 else
7962   XLIB_AWT_TRUE='#'
7963   XLIB_AWT_FALSE=
7964 fi
7965
7966
7967
7968 if test "$use_gtk_awt" = yes; then
7969   GTK_AWT_TRUE=
7970   GTK_AWT_FALSE='#'
7971 else
7972   GTK_AWT_TRUE='#'
7973   GTK_AWT_FALSE=
7974 fi
7975
7976
7977 # determine whether to enable the cairo GTK Graphics2D backend
7978 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7979 if test "${enable_gtk_cairo+set}" = set; then
7980   enableval="$enable_gtk_cairo"
7981
7982 fi;
7983
7984
7985 if test "x${enable_gtk_cairo}" = xyes; then
7986   GTK_CAIRO_TRUE=
7987   GTK_CAIRO_FALSE='#'
7988 else
7989   GTK_CAIRO_TRUE='#'
7990   GTK_CAIRO_FALSE=
7991 fi
7992
7993 if test "x${enable_gtk_cairo}" = xyes
7994 then
7995
7996   succeeded=no
7997
7998   if test -z "$PKG_CONFIG"; then
7999     # Extract the first word of "pkg-config", so it can be a program name with args.
8000 set dummy pkg-config; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   case $PKG_CONFIG in
8007   [\\/]* | ?:[\\/]*)
8008   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8009   ;;
8010   *)
8011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_exec_ext in '' $ac_executable_extensions; do
8017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023 done
8024
8025   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8026   ;;
8027 esac
8028 fi
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030
8031 if test -n "$PKG_CONFIG"; then
8032   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8033 echo "${ECHO_T}$PKG_CONFIG" >&6
8034 else
8035   echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8037 fi
8038
8039   fi
8040
8041   if test "$PKG_CONFIG" = "no" ; then
8042      echo "*** The pkg-config script could not be found. Make sure it is"
8043      echo "*** in your path, or set the PKG_CONFIG environment variable"
8044      echo "*** to the full path to pkg-config."
8045      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8046   else
8047      PKG_CONFIG_MIN_VERSION=0.9.0
8048      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8049         echo "$as_me:$LINENO: checking for cairo" >&5
8050 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8051
8052         if $PKG_CONFIG --exists "cairo" ; then
8053             echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8055             succeeded=yes
8056
8057             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8058 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8059             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8060             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8061 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8062
8063             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8064 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8065             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8066             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8067 echo "${ECHO_T}$CAIRO_LIBS" >&6
8068         else
8069             CAIRO_CFLAGS=""
8070             CAIRO_LIBS=""
8071             ## If we have a custom action on failure, don't print errors, but
8072             ## do set a variable so people can do so.
8073             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8074             echo $CAIRO_PKG_ERRORS
8075         fi
8076
8077
8078
8079      else
8080         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8081         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8082      fi
8083   fi
8084
8085   if test $succeeded = yes; then
8086      :
8087   else
8088      { { 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
8089 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;}
8090    { (exit 1); exit 1; }; }
8091   fi
8092
8093
8094   succeeded=no
8095
8096   if test -z "$PKG_CONFIG"; then
8097     # Extract the first word of "pkg-config", so it can be a program name with args.
8098 set dummy pkg-config; ac_word=$2
8099 echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   case $PKG_CONFIG in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114   for ac_exec_ext in '' $ac_executable_extensions; do
8115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121 done
8122
8123   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8124   ;;
8125 esac
8126 fi
8127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8128
8129 if test -n "$PKG_CONFIG"; then
8130   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8131 echo "${ECHO_T}$PKG_CONFIG" >&6
8132 else
8133   echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8135 fi
8136
8137   fi
8138
8139   if test "$PKG_CONFIG" = "no" ; then
8140      echo "*** The pkg-config script could not be found. Make sure it is"
8141      echo "*** in your path, or set the PKG_CONFIG environment variable"
8142      echo "*** to the full path to pkg-config."
8143      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8144   else
8145      PKG_CONFIG_MIN_VERSION=0.9.0
8146      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8147         echo "$as_me:$LINENO: checking for pangoft2" >&5
8148 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8149
8150         if $PKG_CONFIG --exists "pangoft2" ; then
8151             echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6
8153             succeeded=yes
8154
8155             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8156 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8157             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8158             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8159 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8160
8161             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8162 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8163             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8164             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8165 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8166         else
8167             PANGOFT2_CFLAGS=""
8168             PANGOFT2_LIBS=""
8169             ## If we have a custom action on failure, don't print errors, but
8170             ## do set a variable so people can do so.
8171             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8172             echo $PANGOFT2_PKG_ERRORS
8173         fi
8174
8175
8176
8177      else
8178         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8179         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8180      fi
8181   fi
8182
8183   if test $succeeded = yes; then
8184      :
8185   else
8186      { { 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
8187 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;}
8188    { (exit 1); exit 1; }; }
8189   fi
8190
8191 fi
8192
8193
8194
8195
8196
8197 # FIXME: this should be _libs on some hosts.
8198 libsubdir=.libs
8199
8200 # Allow the GC to be disabled.  Can be useful when debugging.
8201 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8202 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8203 # Check whether --enable-java-gc or --disable-java-gc was given.
8204 if test "${enable_java_gc+set}" = set; then
8205   enableval="$enable_java_gc"
8206   GC=$enableval
8207 else
8208   GC=boehm
8209 fi;
8210 GCLIBS=
8211 GCINCS=
8212 GCDEPS=
8213 GCSPEC=
8214 JC1GCSPEC=
8215 GCTESTSPEC=
8216 case "$GC" in
8217  boehm)
8218     echo "$as_me:$LINENO: result: boehm" >&5
8219 echo "${ECHO_T}boehm" >&6
8220     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8221     JC1GCSPEC='-fuse-boehm-gc'
8222     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8223     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8224     GCOBJS=boehm.lo
8225     GCHDR=boehm-gc.h
8226     # The POSIX thread support needs to know this.
8227
8228 cat >>confdefs.h <<\_ACEOF
8229 #define HAVE_BOEHM_GC 1
8230 _ACEOF
8231
8232     ;;
8233  no)
8234     echo "$as_me:$LINENO: result: none" >&5
8235 echo "${ECHO_T}none" >&6
8236     GCHDR=no-gc.h
8237     ;;
8238  *)
8239     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8240 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8241    { (exit 1); exit 1; }; }
8242     ;;
8243 esac
8244
8245
8246
8247
8248
8249
8250           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8251
8252
8253
8254 if test "$GC" = boehm; then
8255   USING_BOEHMGC_TRUE=
8256   USING_BOEHMGC_FALSE='#'
8257 else
8258   USING_BOEHMGC_TRUE='#'
8259   USING_BOEHMGC_FALSE=
8260 fi
8261
8262
8263
8264 if test "$GC" = no; then
8265   USING_NOGC_TRUE=
8266   USING_NOGC_FALSE='#'
8267 else
8268   USING_NOGC_TRUE='#'
8269   USING_NOGC_FALSE=
8270 fi
8271
8272
8273
8274 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8275 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8276 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8277 echo "$as_me:$LINENO: result: $THREADS" >&5
8278 echo "${ECHO_T}$THREADS" >&6
8279
8280 case "$THREADS" in
8281  no | none | single)
8282     THREADS=none
8283     ;;
8284  posix | pthreads)
8285     THREADS=posix
8286     case "$host" in
8287      *-*-linux*)
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define LINUX_THREADS 1
8291 _ACEOF
8292
8293         ;;
8294     esac
8295     ;;
8296  win32)
8297     ;;
8298  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8299     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8300 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8301    { (exit 1); exit 1; }; }
8302     ;;
8303  *)
8304     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8305 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8306    { (exit 1); exit 1; }; }
8307     ;;
8308 esac
8309
8310 THREADCXXFLAGS=
8311 THREADLDFLAGS=
8312 THREADLIBS=
8313 THREADINCS=
8314 THREADDEPS=
8315 THREADH=
8316 THREADSPEC=
8317 case "$THREADS" in
8318  posix)
8319     case "$host" in
8320      *-*-cygwin*)
8321         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8322         ;;
8323      *-*-freebsd[1234]*)
8324         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8325         # merely adds pthread_* functions) but it does have a -pthread switch
8326         # which is required at link-time to select -lc_r *instead* of -lc.
8327         THREADLDFLAGS=-pthread
8328         # Don't set THREADSPEC here as might be expected since -pthread is
8329         # not processed when found within a spec file, it must come from
8330         # the command line.  For now, the user must provide the -pthread
8331         # switch to link code compiled with gcj.  In future, consider adding
8332         # support for weak references to pthread_* functions ala gthr.h API.
8333         THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8334         ;;
8335      *-*-freebsd*)
8336         # FreeBSD 5 implements a model much closer to other modern UNIX
8337         # which support threads.  However, it still does not support
8338         # -lpthread.
8339         THREADLDFLAGS=-pthread
8340         THREADSPEC=-lc_r
8341         ;;
8342      alpha*-dec-osf*)
8343         THREADCXXFLAGS=-pthread
8344         # boehm-gc needs some functions from librt, so link that too.
8345         THREADLIBS='-lpthread -lrt'
8346         THREADSPEC='-lpthread -lrt'
8347         ;;
8348      *)
8349         THREADLIBS=-lpthread
8350         THREADSPEC=-lpthread
8351         ;;
8352     esac
8353     THREADH=posix-threads.h
8354     # MIT pthreads doesn't seem to have the mutexattr functions.
8355     # But for now we don't check for it.  We just assume you aren't
8356     # using MIT pthreads.
8357
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8360 _ACEOF
8361
8362
8363     # If we're using the Boehm GC, then we happen to know that it
8364     # defines _REENTRANT, so we don't bother.  Eww.
8365     if test "$GC" != boehm; then
8366
8367 cat >>confdefs.h <<\_ACEOF
8368 #define _REENTRANT 1
8369 _ACEOF
8370
8371     fi
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define _POSIX_PTHREAD_SEMANTICS 1
8375 _ACEOF
8376
8377     ;;
8378
8379  win32)
8380     THREADH=win32-threads.h
8381     ;;
8382
8383  none)
8384     THREADH=no-threads.h
8385     ;;
8386 esac
8387           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 if test "$THREADS" = posix; then
8398   USING_POSIX_THREADS_TRUE=
8399   USING_POSIX_THREADS_FALSE='#'
8400 else
8401   USING_POSIX_THREADS_TRUE='#'
8402   USING_POSIX_THREADS_FALSE=
8403 fi
8404
8405
8406
8407 if test "$THREADS" = win32; then
8408   USING_WIN32_THREADS_TRUE=
8409   USING_WIN32_THREADS_FALSE='#'
8410 else
8411   USING_WIN32_THREADS_TRUE='#'
8412   USING_WIN32_THREADS_FALSE=
8413 fi
8414
8415
8416
8417 if test "$THREADS" = none; then
8418   USING_NO_THREADS_TRUE=
8419   USING_NO_THREADS_FALSE='#'
8420 else
8421   USING_NO_THREADS_TRUE='#'
8422   USING_NO_THREADS_FALSE=
8423 fi
8424
8425
8426 if test -d sysdep; then true; else mkdir sysdep; fi
8427           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8428
8429
8430 HASH_SYNC_SPEC=
8431 # Hash synchronization is only useful with posix threads right now.
8432 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8433    HASH_SYNC_SPEC=-fhash-synchronization
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define JV_HASH_SYNCHRONIZATION 1
8437 _ACEOF
8438
8439 fi
8440
8441
8442
8443
8444
8445 if test "$GCC" = yes; then
8446   USING_GCC_TRUE=
8447   USING_GCC_FALSE='#'
8448 else
8449   USING_GCC_TRUE='#'
8450   USING_GCC_FALSE=
8451 fi
8452
8453
8454 # We're in the tree with gcc, and need to include some of its headers.
8455 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8456
8457 # Figure out where generated headers like libgcj-config.h get installed.
8458 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8459 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8460 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8461 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8462
8463
8464
8465 if test "x${with_newlib}" = "xyes"; then
8466    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8467    # may not work correctly, because the compiler may not be able to
8468    # link executables.
8469
8470    # We assume newlib.  This lets us hard-code the functions we know
8471    # we'll have.
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_MEMMOVE 1
8475 _ACEOF
8476
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_MEMCPY 1
8480 _ACEOF
8481
8482
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_STRERROR 1
8485 _ACEOF
8486
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_TIME 1
8490 _ACEOF
8491
8492
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_GMTIME_R 1
8495 _ACEOF
8496
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_LOCALTIME_R 1
8500 _ACEOF
8501
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_USLEEP_DECL 1
8505 _ACEOF
8506
8507    # This is only for POSIX threads.
8508
8509 cat >>confdefs.h <<\_ACEOF
8510 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8511 _ACEOF
8512
8513    # We also assume we are using gcc, which provides alloca.
8514    cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_ALLOCA 1
8516 _ACEOF
8517
8518
8519    # Assume we do not have getuid and friends.
8520
8521 cat >>confdefs.h <<\_ACEOF
8522 #define NO_GETUID 1
8523 _ACEOF
8524
8525    PLATFORMNET=NoNet
8526 else
8527
8528
8529
8530
8531
8532
8533
8534
8535 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8536 do
8537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8538 echo "$as_me:$LINENO: checking for $ac_func" >&5
8539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8540 if eval "test \"\${$as_ac_var+set}\" = set"; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   if test x$gcc_no_link = xyes; then
8544   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8546    { (exit 1); exit 1; }; }
8547 fi
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8556 #define $ac_func innocuous_$ac_func
8557
8558 /* System header to define __stub macros and hopefully few prototypes,
8559     which can conflict with char $ac_func (); below.
8560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561     <limits.h> exists even on freestanding compilers.  */
8562
8563 #ifdef __STDC__
8564 # include <limits.h>
8565 #else
8566 # include <assert.h>
8567 #endif
8568
8569 #undef $ac_func
8570
8571 /* Override any gcc2 internal prototype to avoid an error.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 {
8575 #endif
8576 /* We use char because int might match the return type of a gcc2
8577    builtin and then its argument prototype would still apply.  */
8578 char $ac_func ();
8579 /* The GNU C library defines this for functions which it implements
8580     to always fail with ENOSYS.  Some functions are actually named
8581     something starting with __ and the normal name is an alias.  */
8582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8583 choke me
8584 #else
8585 char (*f) () = $ac_func;
8586 #endif
8587 #ifdef __cplusplus
8588 }
8589 #endif
8590
8591 int
8592 main ()
8593 {
8594 return f != $ac_func;
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601   (eval $ac_link) 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag"
8609                          || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   eval "$as_ac_var=yes"
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 eval "$as_ac_var=no"
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 fi
8631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633 if test `eval echo '${'$as_ac_var'}'` = yes; then
8634   cat >>confdefs.h <<_ACEOF
8635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8636 _ACEOF
8637
8638 fi
8639 done
8640
8641
8642
8643
8644
8645
8646 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8647 do
8648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8649 echo "$as_me:$LINENO: checking for $ac_func" >&5
8650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_var+set}\" = set"; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   if test x$gcc_no_link = xyes; then
8655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8657    { (exit 1); exit 1; }; }
8658 fi
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8667 #define $ac_func innocuous_$ac_func
8668
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char $ac_func (); below.
8671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672     <limits.h> exists even on freestanding compilers.  */
8673
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679
8680 #undef $ac_func
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 {
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char $ac_func ();
8690 /* The GNU C library defines this for functions which it implements
8691     to always fail with ENOSYS.  Some functions are actually named
8692     something starting with __ and the normal name is an alias.  */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694 choke me
8695 #else
8696 char (*f) () = $ac_func;
8697 #endif
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701
8702 int
8703 main ()
8704 {
8705 return f != $ac_func;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag"
8720                          || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   eval "$as_ac_var=yes"
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 eval "$as_ac_var=no"
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8747 _ACEOF
8748
8749 fi
8750 done
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8762 do
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   if test x$gcc_no_link = xyes; then
8770   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8772    { (exit 1); exit 1; }; }
8773 fi
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8782 #define $ac_func innocuous_$ac_func
8783
8784 /* System header to define __stub macros and hopefully few prototypes,
8785     which can conflict with char $ac_func (); below.
8786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8787     <limits.h> exists even on freestanding compilers.  */
8788
8789 #ifdef __STDC__
8790 # include <limits.h>
8791 #else
8792 # include <assert.h>
8793 #endif
8794
8795 #undef $ac_func
8796
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809 choke me
8810 #else
8811 char (*f) () = $ac_func;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != $ac_func;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -z "$ac_c_werror_flag"
8835                          || test ! -s conftest.err'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; } &&
8841          { ac_try='test -s conftest$ac_exeext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   eval "$as_ac_var=yes"
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852 eval "$as_ac_var=no"
8853 fi
8854 rm -f conftest.err conftest.$ac_objext \
8855       conftest$ac_exeext conftest.$ac_ext
8856 fi
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8859 if test `eval echo '${'$as_ac_var'}'` = yes; then
8860   cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 fi
8865 done
8866
8867
8868
8869 for ac_func in nl_langinfo setlocale
8870 do
8871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8872 echo "$as_me:$LINENO: checking for $ac_func" >&5
8873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_var+set}\" = set"; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   if test x$gcc_no_link = xyes; then
8878   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8880    { (exit 1); exit 1; }; }
8881 fi
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8890 #define $ac_func innocuous_$ac_func
8891
8892 /* System header to define __stub macros and hopefully few prototypes,
8893     which can conflict with char $ac_func (); below.
8894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8895     <limits.h> exists even on freestanding compilers.  */
8896
8897 #ifdef __STDC__
8898 # include <limits.h>
8899 #else
8900 # include <assert.h>
8901 #endif
8902
8903 #undef $ac_func
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 {
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911    builtin and then its argument prototype would still apply.  */
8912 char $ac_func ();
8913 /* The GNU C library defines this for functions which it implements
8914     to always fail with ENOSYS.  Some functions are actually named
8915     something starting with __ and the normal name is an alias.  */
8916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8917 choke me
8918 #else
8919 char (*f) () = $ac_func;
8920 #endif
8921 #ifdef __cplusplus
8922 }
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 return f != $ac_func;
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935   (eval $ac_link) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag"
8943                          || test ! -s conftest.err'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; } &&
8949          { ac_try='test -s conftest$ac_exeext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   eval "$as_ac_var=yes"
8956 else
8957   echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 eval "$as_ac_var=no"
8961 fi
8962 rm -f conftest.err conftest.$ac_objext \
8963       conftest$ac_exeext conftest.$ac_ext
8964 fi
8965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8967 if test `eval echo '${'$as_ac_var'}'` = yes; then
8968   cat >>confdefs.h <<_ACEOF
8969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8970 _ACEOF
8971
8972 fi
8973 done
8974
8975
8976
8977 for ac_func in inet_aton inet_addr
8978 do
8979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8980 echo "$as_me:$LINENO: checking for $ac_func" >&5
8981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8982 if eval "test \"\${$as_ac_var+set}\" = set"; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   if test x$gcc_no_link = xyes; then
8986   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988    { (exit 1); exit 1; }; }
8989 fi
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8998 #define $ac_func innocuous_$ac_func
8999
9000 /* System header to define __stub macros and hopefully few prototypes,
9001     which can conflict with char $ac_func (); below.
9002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003     <limits.h> exists even on freestanding compilers.  */
9004
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9010
9011 #undef $ac_func
9012
9013 /* Override any gcc2 internal prototype to avoid an error.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 {
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019    builtin and then its argument prototype would still apply.  */
9020 char $ac_func ();
9021 /* The GNU C library defines this for functions which it implements
9022     to always fail with ENOSYS.  Some functions are actually named
9023     something starting with __ and the normal name is an alias.  */
9024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9025 choke me
9026 #else
9027 char (*f) () = $ac_func;
9028 #endif
9029 #ifdef __cplusplus
9030 }
9031 #endif
9032
9033 int
9034 main ()
9035 {
9036 return f != $ac_func;
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043   (eval $ac_link) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag"
9051                          || test ! -s conftest.err'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; } &&
9057          { ac_try='test -s conftest$ac_exeext'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   eval "$as_ac_var=yes"
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 eval "$as_ac_var=no"
9069 fi
9070 rm -f conftest.err conftest.$ac_objext \
9071       conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078 _ACEOF
9079  break
9080 fi
9081 done
9082
9083
9084
9085
9086 for ac_func in inet_pton uname inet_ntoa
9087 do
9088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9089 echo "$as_me:$LINENO: checking for $ac_func" >&5
9090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_var+set}\" = set"; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   if test x$gcc_no_link = xyes; then
9095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9097    { (exit 1); exit 1; }; }
9098 fi
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9107 #define $ac_func innocuous_$ac_func
9108
9109 /* System header to define __stub macros and hopefully few prototypes,
9110     which can conflict with char $ac_func (); below.
9111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9112     <limits.h> exists even on freestanding compilers.  */
9113
9114 #ifdef __STDC__
9115 # include <limits.h>
9116 #else
9117 # include <assert.h>
9118 #endif
9119
9120 #undef $ac_func
9121
9122 /* Override any gcc2 internal prototype to avoid an error.  */
9123 #ifdef __cplusplus
9124 extern "C"
9125 {
9126 #endif
9127 /* We use char because int might match the return type of a gcc2
9128    builtin and then its argument prototype would still apply.  */
9129 char $ac_func ();
9130 /* The GNU C library defines this for functions which it implements
9131     to always fail with ENOSYS.  Some functions are actually named
9132     something starting with __ and the normal name is an alias.  */
9133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9134 choke me
9135 #else
9136 char (*f) () = $ac_func;
9137 #endif
9138 #ifdef __cplusplus
9139 }
9140 #endif
9141
9142 int
9143 main ()
9144 {
9145 return f != $ac_func;
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152   (eval $ac_link) 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag"
9160                          || test ! -s conftest.err'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest$ac_exeext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   eval "$as_ac_var=yes"
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 eval "$as_ac_var=no"
9178 fi
9179 rm -f conftest.err conftest.$ac_objext \
9180       conftest$ac_exeext conftest.$ac_ext
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9184 if test `eval echo '${'$as_ac_var'}'` = yes; then
9185   cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9187 _ACEOF
9188
9189 fi
9190 done
9191
9192
9193
9194
9195
9196
9197 for ac_func in fork execvp pipe sigaction ftruncate
9198 do
9199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9200 echo "$as_me:$LINENO: checking for $ac_func" >&5
9201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_var+set}\" = set"; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   if test x$gcc_no_link = xyes; then
9206   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9208    { (exit 1); exit 1; }; }
9209 fi
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9218 #define $ac_func innocuous_$ac_func
9219
9220 /* System header to define __stub macros and hopefully few prototypes,
9221     which can conflict with char $ac_func (); below.
9222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223     <limits.h> exists even on freestanding compilers.  */
9224
9225 #ifdef __STDC__
9226 # include <limits.h>
9227 #else
9228 # include <assert.h>
9229 #endif
9230
9231 #undef $ac_func
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 {
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239    builtin and then its argument prototype would still apply.  */
9240 char $ac_func ();
9241 /* The GNU C library defines this for functions which it implements
9242     to always fail with ENOSYS.  Some functions are actually named
9243     something starting with __ and the normal name is an alias.  */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9245 choke me
9246 #else
9247 char (*f) () = $ac_func;
9248 #endif
9249 #ifdef __cplusplus
9250 }
9251 #endif
9252
9253 int
9254 main ()
9255 {
9256 return f != $ac_func;
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263   (eval $ac_link) 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag"
9271                          || test ! -s conftest.err'
9272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273   (eval $ac_try) 2>&5
9274   ac_status=$?
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); }; } &&
9277          { ac_try='test -s conftest$ac_exeext'
9278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279   (eval $ac_try) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; }; then
9283   eval "$as_ac_var=yes"
9284 else
9285   echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 eval "$as_ac_var=no"
9289 fi
9290 rm -f conftest.err conftest.$ac_objext \
9291       conftest$ac_exeext conftest.$ac_ext
9292 fi
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9295 if test `eval echo '${'$as_ac_var'}'` = yes; then
9296   cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9298 _ACEOF
9299
9300 fi
9301 done
9302
9303    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9305 if test "${ac_cv_header_stdc+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314 #include <stdlib.h>
9315 #include <stdarg.h>
9316 #include <string.h>
9317 #include <float.h>
9318
9319 int
9320 main ()
9321 {
9322
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329   (eval $ac_compile) 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag"
9337                          || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_header_stdc=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_header_stdc=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357
9358 if test $ac_cv_header_stdc = yes; then
9359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9360   cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 #include <string.h>
9367
9368 _ACEOF
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370   $EGREP "memchr" >/dev/null 2>&1; then
9371   :
9372 else
9373   ac_cv_header_stdc=no
9374 fi
9375 rm -f conftest*
9376
9377 fi
9378
9379 if test $ac_cv_header_stdc = yes; then
9380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9381   cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 #include <stdlib.h>
9388
9389 _ACEOF
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391   $EGREP "free" >/dev/null 2>&1; then
9392   :
9393 else
9394   ac_cv_header_stdc=no
9395 fi
9396 rm -f conftest*
9397
9398 fi
9399
9400 if test $ac_cv_header_stdc = yes; then
9401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9402   if test "$cross_compiling" = yes; then
9403   :
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 #include <ctype.h>
9412 #if ((' ' & 0x0FF) == 0x020)
9413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9415 #else
9416 # define ISLOWER(c) \
9417                    (('a' <= (c) && (c) <= 'i') \
9418                      || ('j' <= (c) && (c) <= 'r') \
9419                      || ('s' <= (c) && (c) <= 'z'))
9420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9421 #endif
9422
9423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9424 int
9425 main ()
9426 {
9427   int i;
9428   for (i = 0; i < 256; i++)
9429     if (XOR (islower (i), ISLOWER (i))
9430         || toupper (i) != TOUPPER (i))
9431       exit(2);
9432   exit (0);
9433 }
9434 _ACEOF
9435 rm -f conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437   (eval $ac_link) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   :
9447 else
9448   echo "$as_me: program exited with status $ac_status" >&5
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ( exit $ac_status )
9453 ac_cv_header_stdc=no
9454 fi
9455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9456 fi
9457 fi
9458 fi
9459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9461 if test $ac_cv_header_stdc = yes; then
9462
9463 cat >>confdefs.h <<\_ACEOF
9464 #define STDC_HEADERS 1
9465 _ACEOF
9466
9467 fi
9468
9469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9480                   inttypes.h stdint.h unistd.h
9481 do
9482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 $ac_includes_default
9495
9496 #include <$ac_header>
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500   (eval $ac_compile) 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } &&
9507          { ac_try='test -z "$ac_c_werror_flag"
9508                          || test ! -s conftest.err'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; } &&
9514          { ac_try='test -s conftest.$ac_objext'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   eval "$as_ac_Header=yes"
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 eval "$as_ac_Header=no"
9526 fi
9527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528 fi
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9532   cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9534 _ACEOF
9535
9536 fi
9537
9538 done
9539
9540
9541
9542
9543
9544 for ac_header in execinfo.h unistd.h dlfcn.h
9545 do
9546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548   echo "$as_me:$LINENO: checking for $ac_header" >&5
9549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 fi
9553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9555 else
9556   # Is the header compilable?
9557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 $ac_includes_default
9566 #include <$ac_header>
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570   (eval $ac_compile) 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -z "$ac_c_werror_flag"
9578                          || test ! -s conftest.err'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; } &&
9584          { ac_try='test -s conftest.$ac_objext'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   ac_header_compiler=yes
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595 ac_header_compiler=no
9596 fi
9597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9599 echo "${ECHO_T}$ac_header_compiler" >&6
9600
9601 # Is the header present?
9602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <$ac_header>
9611 _ACEOF
9612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } >/dev/null; then
9620   if test -s conftest.err; then
9621     ac_cpp_err=$ac_c_preproc_warn_flag
9622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9623   else
9624     ac_cpp_err=
9625   fi
9626 else
9627   ac_cpp_err=yes
9628 fi
9629 if test -z "$ac_cpp_err"; then
9630   ac_header_preproc=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635   ac_header_preproc=no
9636 fi
9637 rm -f conftest.err conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9639 echo "${ECHO_T}$ac_header_preproc" >&6
9640
9641 # So?  What about this header?
9642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9643   yes:no: )
9644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9648     ac_header_preproc=yes
9649     ;;
9650   no:yes:* )
9651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9663     (
9664       cat <<\_ASBOX
9665 ## ---------------------------------- ##
9666 ## Report this to the libjava lists.  ##
9667 ## ---------------------------------- ##
9668 _ASBOX
9669     ) |
9670       sed "s/^/$as_me: WARNING:     /" >&2
9671     ;;
9672 esac
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   eval "$as_ac_Header=\$ac_header_preproc"
9679 fi
9680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9682
9683 fi
9684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9685   cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9687 _ACEOF
9688
9689 fi
9690
9691 done
9692
9693    echo "$as_me:$LINENO: checking for backtrace" >&5
9694 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9695 if test "${ac_cv_func_backtrace+set}" = set; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   if test x$gcc_no_link = xyes; then
9699   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9701    { (exit 1); exit 1; }; }
9702 fi
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9711 #define backtrace innocuous_backtrace
9712
9713 /* System header to define __stub macros and hopefully few prototypes,
9714     which can conflict with char backtrace (); below.
9715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716     <limits.h> exists even on freestanding compilers.  */
9717
9718 #ifdef __STDC__
9719 # include <limits.h>
9720 #else
9721 # include <assert.h>
9722 #endif
9723
9724 #undef backtrace
9725
9726 /* Override any gcc2 internal prototype to avoid an error.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 {
9730 #endif
9731 /* We use char because int might match the return type of a gcc2
9732    builtin and then its argument prototype would still apply.  */
9733 char backtrace ();
9734 /* The GNU C library defines this for functions which it implements
9735     to always fail with ENOSYS.  Some functions are actually named
9736     something starting with __ and the normal name is an alias.  */
9737 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9738 choke me
9739 #else
9740 char (*f) () = backtrace;
9741 #endif
9742 #ifdef __cplusplus
9743 }
9744 #endif
9745
9746 int
9747 main ()
9748 {
9749 return f != backtrace;
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_func_backtrace=yes
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_func_backtrace=no
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784       conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9787 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9788 if test $ac_cv_func_backtrace = yes; then
9789
9790      case "$host" in
9791        ia64-*-linux*)
9792          # Has broken backtrace()
9793          ;;
9794        mips*-*-linux*)
9795          # Has broken backtrace(), but we supply our own.
9796          if test -d sysdep; then true; else mkdir -p sysdep; fi
9797          supply_backtrace=yes
9798
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_BACKTRACE 1
9801 _ACEOF
9802
9803          ;;
9804        *)
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_BACKTRACE 1
9808 _ACEOF
9809
9810          ;;
9811      esac
9812
9813 else
9814
9815      case "$host" in
9816        *mingw*)
9817          # Has backtrace() defined in libgcj itself
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_BACKTRACE 1
9821 _ACEOF
9822
9823          ;;
9824      esac
9825
9826 fi
9827
9828
9829    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9830 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9831 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834   ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-ldl  $LIBS"
9836 if test x$gcc_no_link = xyes; then
9837   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9839    { (exit 1); exit 1; }; }
9840 fi
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any gcc2 internal prototype to avoid an error.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 /* We use char because int might match the return type of a gcc2
9853    builtin and then its argument prototype would still apply.  */
9854 char dladdr ();
9855 int
9856 main ()
9857 {
9858 dladdr ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865   (eval $ac_link) 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -z "$ac_c_werror_flag"
9873                          || test ! -s conftest.err'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_dl_dladdr=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_dl_dladdr=no
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9897 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9898 if test $ac_cv_lib_dl_dladdr = yes; then
9899
9900      if test "x${disable_dladdr}" = "xyes"; then
9901        #Broken dladdr().
9902        true
9903      else
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_DLADDR 1
9907 _ACEOF
9908
9909      fi
9910
9911 fi
9912
9913    if test x"$build" = x"$host"; then
9914      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9915 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9916 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   test "$cross_compiling" = yes &&
9920   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9921 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9922    { (exit 1); exit 1; }; }
9923 if test -r "/proc/self/exe"; then
9924   ac_cv_file__proc_self_exe=yes
9925 else
9926   ac_cv_file__proc_self_exe=no
9927 fi
9928 fi
9929 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9930 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9931 if test $ac_cv_file__proc_self_exe = yes; then
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE__PROC_SELF_EXE 1
9935 _ACEOF
9936
9937
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_PROC_SELF_EXE 1
9941 _ACEOF
9942
9943 fi
9944
9945    else
9946      case $host in
9947      *-linux*)
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_PROC_SELF_EXE 1
9951 _ACEOF
9952
9953        ;;
9954      esac
9955    fi
9956
9957
9958
9959   am_cv_lib_iconv_ldpath=
9960
9961 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9962 if test "${with_libiconv_prefix+set}" = set; then
9963   withval="$with_libiconv_prefix"
9964
9965     for dir in `echo "$withval" | tr : ' '`; do
9966       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9967       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9968     done
9969
9970 fi;
9971
9972   echo "$as_me:$LINENO: checking for iconv" >&5
9973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9974 if test "${am_cv_func_iconv+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977
9978     am_cv_func_iconv="no, consider installing GNU libiconv"
9979     am_cv_lib_iconv=no
9980     if test x$gcc_no_link = xyes; then
9981   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9983    { (exit 1); exit 1; }; }
9984 fi
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #include <stdlib.h>
9992 #include <iconv.h>
9993 int
9994 main ()
9995 {
9996 iconv_t cd = iconv_open("","");
9997        iconv(cd,NULL,NULL,NULL,NULL);
9998        iconv_close(cd);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005   (eval $ac_link) 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } &&
10012          { ac_try='test -z "$ac_c_werror_flag"
10013                          || test ! -s conftest.err'
10014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015   (eval $ac_try) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; } &&
10019          { ac_try='test -s conftest$ac_exeext'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; }; then
10025   am_cv_func_iconv=yes
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 fi
10031 rm -f conftest.err conftest.$ac_objext \
10032       conftest$ac_exeext conftest.$ac_ext
10033     if test "$am_cv_func_iconv" != yes; then
10034       am_save_LIBS="$LIBS"
10035       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10036       if test x$gcc_no_link = xyes; then
10037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10039    { (exit 1); exit 1; }; }
10040 fi
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 #include <stdlib.h>
10048 #include <iconv.h>
10049 int
10050 main ()
10051 {
10052 iconv_t cd = iconv_open("","");
10053          iconv(cd,NULL,NULL,NULL,NULL);
10054          iconv_close(cd);
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061   (eval $ac_link) 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -z "$ac_c_werror_flag"
10069                          || test ! -s conftest.err'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   am_cv_lib_iconv=yes
10082         am_cv_func_iconv=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 fi
10088 rm -f conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090       LIBS="$am_save_LIBS"
10091     fi
10092
10093 fi
10094 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10095 echo "${ECHO_T}$am_cv_func_iconv" >&6
10096   if test "$am_cv_func_iconv" = yes; then
10097
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_ICONV 1
10100 _ACEOF
10101
10102     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10103 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10104     if test "${am_cv_proto_iconv+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107
10108       cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114
10115 #include <stdlib.h>
10116 #include <iconv.h>
10117 extern
10118 #ifdef __cplusplus
10119 "C"
10120 #endif
10121 #if defined(__STDC__) || defined(__cplusplus)
10122 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10123 #else
10124 size_t iconv();
10125 #endif
10126
10127 int
10128 main ()
10129 {
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   am_cv_proto_iconv_arg1=""
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 am_cv_proto_iconv_arg1="const"
10163 fi
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165       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);"
10166 fi
10167
10168     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10169     echo "$as_me:$LINENO: result: ${ac_t:-
10170          }$am_cv_proto_iconv" >&5
10171 echo "${ECHO_T}${ac_t:-
10172          }$am_cv_proto_iconv" >&6
10173
10174 cat >>confdefs.h <<_ACEOF
10175 #define ICONV_CONST $am_cv_proto_iconv_arg1
10176 _ACEOF
10177
10178   fi
10179   LIBICONV=
10180   if test "$am_cv_lib_iconv" = yes; then
10181     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10182   fi
10183
10184
10185
10186 for ac_header in locale.h
10187 do
10188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190   echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 fi
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 else
10198   # Is the header compilable?
10199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207 $ac_includes_default
10208 #include <$ac_header>
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212   (eval $ac_compile) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -z "$ac_c_werror_flag"
10220                          || test ! -s conftest.err'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; } &&
10226          { ac_try='test -s conftest.$ac_objext'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_header_compiler=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_header_compiler=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10242
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 #include <$ac_header>
10253 _ACEOF
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } >/dev/null; then
10262   if test -s conftest.err; then
10263     ac_cpp_err=$ac_c_preproc_warn_flag
10264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10265   else
10266     ac_cpp_err=
10267   fi
10268 else
10269   ac_cpp_err=yes
10270 fi
10271 if test -z "$ac_cpp_err"; then
10272   ac_header_preproc=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277   ac_header_preproc=no
10278 fi
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10282
10283 # So?  What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285   yes:no: )
10286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290     ac_header_preproc=yes
10291     ;;
10292   no:yes:* )
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10305     (
10306       cat <<\_ASBOX
10307 ## ---------------------------------- ##
10308 ## Report this to the libjava lists.  ##
10309 ## ---------------------------------- ##
10310 _ASBOX
10311     ) |
10312       sed "s/^/$as_me: WARNING:     /" >&2
10313     ;;
10314 esac
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   eval "$as_ac_Header=\$ac_header_preproc"
10321 fi
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325 fi
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327   cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10330
10331 fi
10332
10333 done
10334
10335   if test $ac_cv_header_locale_h = yes; then
10336     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10337 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10338 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   if test x$gcc_no_link = xyes; then
10342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10344    { (exit 1); exit 1; }; }
10345 fi
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352 #include <locale.h>
10353 int
10354 main ()
10355 {
10356 return LC_MESSAGES
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363   (eval $ac_link) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } &&
10370          { ac_try='test -z "$ac_c_werror_flag"
10371                          || test ! -s conftest.err'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; } &&
10377          { ac_try='test -s conftest$ac_exeext'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   am_cv_val_LC_MESSAGES=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 am_cv_val_LC_MESSAGES=no
10389 fi
10390 rm -f conftest.err conftest.$ac_objext \
10391       conftest$ac_exeext conftest.$ac_ext
10392 fi
10393 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10394 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10395     if test $am_cv_val_LC_MESSAGES = yes; then
10396
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_LC_MESSAGES 1
10399 _ACEOF
10400
10401     fi
10402   fi
10403    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10405 if test "${ac_cv_struct_tm+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h.  */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h.  */
10414 #include <sys/types.h>
10415 #include <time.h>
10416
10417 int
10418 main ()
10419 {
10420 struct tm *tp; tp->tm_sec;
10421   ;
10422   return 0;
10423 }
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427   (eval $ac_compile) 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } &&
10434          { ac_try='test -z "$ac_c_werror_flag"
10435                          || test ! -s conftest.err'
10436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437   (eval $ac_try) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; } &&
10441          { ac_try='test -s conftest.$ac_objext'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   ac_cv_struct_tm=time.h
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 ac_cv_struct_tm=sys/time.h
10453 fi
10454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10455 fi
10456 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10457 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10458 if test $ac_cv_struct_tm = sys/time.h; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define TM_IN_SYS_TIME 1
10462 _ACEOF
10463
10464 fi
10465
10466 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10467 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10468 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 #include <sys/types.h>
10478 #include <$ac_cv_struct_tm>
10479
10480
10481 int
10482 main ()
10483 {
10484 static struct tm ac_aggr;
10485 if (ac_aggr.tm_zone)
10486 return 0;
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493   (eval $ac_compile) 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag"
10501                          || test ! -s conftest.err'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_member_struct_tm_tm_zone=yes
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 #include <sys/types.h>
10525 #include <$ac_cv_struct_tm>
10526
10527
10528 int
10529 main ()
10530 {
10531 static struct tm ac_aggr;
10532 if (sizeof ac_aggr.tm_zone)
10533 return 0;
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540   (eval $ac_compile) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag"
10548                          || test ! -s conftest.err'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; } &&
10554          { ac_try='test -s conftest.$ac_objext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   ac_cv_member_struct_tm_tm_zone=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_member_struct_tm_tm_zone=no
10566 fi
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570 fi
10571 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10572 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10573 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10574
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_STRUCT_TM_TM_ZONE 1
10577 _ACEOF
10578
10579
10580 fi
10581
10582 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_TM_ZONE 1
10586 _ACEOF
10587
10588 else
10589   echo "$as_me:$LINENO: checking for tzname" >&5
10590 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10591 if test "${ac_cv_var_tzname+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   if test x$gcc_no_link = xyes; then
10595   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10597    { (exit 1); exit 1; }; }
10598 fi
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 #include <time.h>
10606 #ifndef tzname /* For SGI.  */
10607 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10608 #endif
10609
10610 int
10611 main ()
10612 {
10613 atoi(*tzname);
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620   (eval $ac_link) 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -z "$ac_c_werror_flag"
10628                          || test ! -s conftest.err'
10629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630   (eval $ac_try) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_var_tzname=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_var_tzname=no
10646 fi
10647 rm -f conftest.err conftest.$ac_objext \
10648       conftest$ac_exeext conftest.$ac_ext
10649 fi
10650 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10651 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10652   if test $ac_cv_var_tzname = yes; then
10653
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_TZNAME 1
10656 _ACEOF
10657
10658   fi
10659 fi
10660
10661
10662
10663
10664 for ac_func in gethostbyname_r
10665 do
10666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 echo "$as_me:$LINENO: checking for $ac_func" >&5
10668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10669 if eval "test \"\${$as_ac_var+set}\" = set"; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   if test x$gcc_no_link = xyes; then
10673   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10675    { (exit 1); exit 1; }; }
10676 fi
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10685 #define $ac_func innocuous_$ac_func
10686
10687 /* System header to define __stub macros and hopefully few prototypes,
10688     which can conflict with char $ac_func (); below.
10689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10690     <limits.h> exists even on freestanding compilers.  */
10691
10692 #ifdef __STDC__
10693 # include <limits.h>
10694 #else
10695 # include <assert.h>
10696 #endif
10697
10698 #undef $ac_func
10699
10700 /* Override any gcc2 internal prototype to avoid an error.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 {
10704 #endif
10705 /* We use char because int might match the return type of a gcc2
10706    builtin and then its argument prototype would still apply.  */
10707 char $ac_func ();
10708 /* The GNU C library defines this for functions which it implements
10709     to always fail with ENOSYS.  Some functions are actually named
10710     something starting with __ and the normal name is an alias.  */
10711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10712 choke me
10713 #else
10714 char (*f) () = $ac_func;
10715 #endif
10716 #ifdef __cplusplus
10717 }
10718 #endif
10719
10720 int
10721 main ()
10722 {
10723 return f != $ac_func;
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10730   (eval $ac_link) 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -z "$ac_c_werror_flag"
10738                          || test ! -s conftest.err'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest$ac_exeext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   eval "$as_ac_var=yes"
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 eval "$as_ac_var=no"
10756 fi
10757 rm -f conftest.err conftest.$ac_objext \
10758       conftest$ac_exeext conftest.$ac_ext
10759 fi
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10762 if test `eval echo '${'$as_ac_var'}'` = yes; then
10763   cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_GETHOSTBYNAME_R 1
10770 _ACEOF
10771
10772      # There are two different kinds of gethostbyname_r.
10773      # We look for the one that returns `int'.
10774      # Hopefully this check is robust enough.
10775      cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 #include <netdb.h>
10782
10783 _ACEOF
10784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10785   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10786
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define GETHOSTBYNAME_R_RETURNS_INT 1
10790 _ACEOF
10791
10792 fi
10793 rm -f conftest*
10794
10795
10796      case " $GCINCS " in
10797      *" -D_REENTRANT "*) ;;
10798      *)
10799                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10800 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10801 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804    ac_ext=cc
10805 ac_cpp='$CXXCPP $CPPFLAGS'
10806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10809
10810           cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 #include <netdb.h>
10817 int
10818 main ()
10819 {
10820 gethostbyname_r("", 0, 0);
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827   (eval $ac_compile) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -z "$ac_cxx_werror_flag"
10835                          || test ! -s conftest.err'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; } &&
10841          { ac_try='test -s conftest.$ac_objext'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   libjava_cv_gethostbyname_r_needs_reentrant=no
10848 else
10849   echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852                 CPPFLAGS_SAVE="$CPPFLAGS"
10853                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10854                 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 #include <netdb.h>
10861 int
10862 main ()
10863 {
10864 gethostbyname_r("", 0, 0);
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871   (eval $ac_compile) 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } &&
10878          { ac_try='test -z "$ac_cxx_werror_flag"
10879                          || test ! -s conftest.err'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; } &&
10885          { ac_try='test -s conftest.$ac_objext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   libjava_cv_gethostbyname_r_needs_reentrant=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 libjava_cv_gethostbyname_r_needs_reentrant=fail
10897 fi
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899                 CPPFLAGS="$CPPFLAGS_SAVE"
10900
10901 fi
10902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903           ac_ext=c
10904 ac_cpp='$CPP $CPPFLAGS'
10905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10908
10909
10910 fi
10911 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10912 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10913         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10914
10915 cat >>confdefs.h <<\_ACEOF
10916 #define _REENTRANT 1
10917 _ACEOF
10918
10919         fi
10920      ;;
10921      esac
10922
10923      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10924 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10925 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928         cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934
10935 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10936 # define _REENTRANT 1
10937 #endif
10938 #include <netdb.h>
10939 int
10940 main ()
10941 {
10942 struct hostent_data data;
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949   (eval $ac_compile) 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } &&
10956          { ac_try='test -z "$ac_c_werror_flag"
10957                          || test ! -s conftest.err'
10958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959   (eval $ac_try) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; } &&
10963          { ac_try='test -s conftest.$ac_objext'
10964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965   (eval $ac_try) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   libjava_cv_struct_hostent_data=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 libjava_cv_struct_hostent_data=no
10975 fi
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 fi
10978 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10979 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10980      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_STRUCT_HOSTENT_DATA 1
10984 _ACEOF
10985
10986      fi
10987
10988 fi
10989 done
10990
10991
10992    # FIXME: libjava source code expects to find a prototype for
10993    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10994    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10995    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10996    # linkage check is enough, yet C++ code requires proper prototypes.)
10997    cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 #include <netdb.h>
11004
11005 _ACEOF
11006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11007   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11008
11009
11010 for ac_func in gethostbyaddr_r
11011 do
11012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 echo "$as_me:$LINENO: checking for $ac_func" >&5
11014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11015 if eval "test \"\${$as_ac_var+set}\" = set"; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   if test x$gcc_no_link = xyes; then
11019   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11021    { (exit 1); exit 1; }; }
11022 fi
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11031 #define $ac_func innocuous_$ac_func
11032
11033 /* System header to define __stub macros and hopefully few prototypes,
11034     which can conflict with char $ac_func (); below.
11035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036     <limits.h> exists even on freestanding compilers.  */
11037
11038 #ifdef __STDC__
11039 # include <limits.h>
11040 #else
11041 # include <assert.h>
11042 #endif
11043
11044 #undef $ac_func
11045
11046 /* Override any gcc2 internal prototype to avoid an error.  */
11047 #ifdef __cplusplus
11048 extern "C"
11049 {
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052    builtin and then its argument prototype would still apply.  */
11053 char $ac_func ();
11054 /* The GNU C library defines this for functions which it implements
11055     to always fail with ENOSYS.  Some functions are actually named
11056     something starting with __ and the normal name is an alias.  */
11057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11058 choke me
11059 #else
11060 char (*f) () = $ac_func;
11061 #endif
11062 #ifdef __cplusplus
11063 }
11064 #endif
11065
11066 int
11067 main ()
11068 {
11069 return f != $ac_func;
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076   (eval $ac_link) 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -z "$ac_c_werror_flag"
11084                          || test ! -s conftest.err'
11085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086   (eval $ac_try) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; } &&
11090          { ac_try='test -s conftest$ac_exeext'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   eval "$as_ac_var=yes"
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 eval "$as_ac_var=no"
11102 fi
11103 rm -f conftest.err conftest.$ac_objext \
11104       conftest$ac_exeext conftest.$ac_ext
11105 fi
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11108 if test `eval echo '${'$as_ac_var'}'` = yes; then
11109   cat >>confdefs.h <<_ACEOF
11110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 _ACEOF
11112
11113
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_GETHOSTBYADDR_R 1
11116 _ACEOF
11117
11118      # There are two different kinds of gethostbyaddr_r.
11119      # We look for the one that returns `int'.
11120      # Hopefully this check is robust enough.
11121      cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 #include <netdb.h>
11128
11129 _ACEOF
11130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11131   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11132
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define GETHOSTBYADDR_R_RETURNS_INT 1
11136 _ACEOF
11137
11138 fi
11139 rm -f conftest*
11140
11141 fi
11142 done
11143
11144 fi
11145 rm -f conftest*
11146
11147
11148
11149 for ac_func in gethostname
11150 do
11151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11152 echo "$as_me:$LINENO: checking for $ac_func" >&5
11153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11154 if eval "test \"\${$as_ac_var+set}\" = set"; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   if test x$gcc_no_link = xyes; then
11158   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11160    { (exit 1); exit 1; }; }
11161 fi
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11170 #define $ac_func innocuous_$ac_func
11171
11172 /* System header to define __stub macros and hopefully few prototypes,
11173     which can conflict with char $ac_func (); below.
11174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175     <limits.h> exists even on freestanding compilers.  */
11176
11177 #ifdef __STDC__
11178 # include <limits.h>
11179 #else
11180 # include <assert.h>
11181 #endif
11182
11183 #undef $ac_func
11184
11185 /* Override any gcc2 internal prototype to avoid an error.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 {
11189 #endif
11190 /* We use char because int might match the return type of a gcc2
11191    builtin and then its argument prototype would still apply.  */
11192 char $ac_func ();
11193 /* The GNU C library defines this for functions which it implements
11194     to always fail with ENOSYS.  Some functions are actually named
11195     something starting with __ and the normal name is an alias.  */
11196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11197 choke me
11198 #else
11199 char (*f) () = $ac_func;
11200 #endif
11201 #ifdef __cplusplus
11202 }
11203 #endif
11204
11205 int
11206 main ()
11207 {
11208 return f != $ac_func;
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } &&
11222          { ac_try='test -z "$ac_c_werror_flag"
11223                          || test ! -s conftest.err'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   eval "$as_ac_var=yes"
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 eval "$as_ac_var=no"
11241 fi
11242 rm -f conftest.err conftest.$ac_objext \
11243       conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248   cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11251
11252
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_GETHOSTNAME 1
11255 _ACEOF
11256
11257      cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <unistd.h>
11264
11265 _ACEOF
11266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11267   $EGREP "gethostname" >/dev/null 2>&1; then
11268
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GETHOSTNAME_DECL 1
11272 _ACEOF
11273
11274 fi
11275 rm -f conftest*
11276
11277 fi
11278 done
11279
11280
11281
11282 for ac_func in usleep
11283 do
11284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11285 echo "$as_me:$LINENO: checking for $ac_func" >&5
11286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11287 if eval "test \"\${$as_ac_var+set}\" = set"; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   if test x$gcc_no_link = xyes; then
11291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11293    { (exit 1); exit 1; }; }
11294 fi
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11303 #define $ac_func innocuous_$ac_func
11304
11305 /* System header to define __stub macros and hopefully few prototypes,
11306     which can conflict with char $ac_func (); below.
11307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308     <limits.h> exists even on freestanding compilers.  */
11309
11310 #ifdef __STDC__
11311 # include <limits.h>
11312 #else
11313 # include <assert.h>
11314 #endif
11315
11316 #undef $ac_func
11317
11318 /* Override any gcc2 internal prototype to avoid an error.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 {
11322 #endif
11323 /* We use char because int might match the return type of a gcc2
11324    builtin and then its argument prototype would still apply.  */
11325 char $ac_func ();
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 choke me
11331 #else
11332 char (*f) () = $ac_func;
11333 #endif
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337
11338 int
11339 main ()
11340 {
11341 return f != $ac_func;
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348   (eval $ac_link) 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } &&
11355          { ac_try='test -z "$ac_c_werror_flag"
11356                          || test ! -s conftest.err'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; } &&
11362          { ac_try='test -s conftest$ac_exeext'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }; then
11368   eval "$as_ac_var=yes"
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 eval "$as_ac_var=no"
11374 fi
11375 rm -f conftest.err conftest.$ac_objext \
11376       conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11380 if test `eval echo '${'$as_ac_var'}'` = yes; then
11381   cat >>confdefs.h <<_ACEOF
11382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 _ACEOF
11384
11385      cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 #include <unistd.h>
11392
11393 _ACEOF
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395   $EGREP "usleep" >/dev/null 2>&1; then
11396
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_USLEEP_DECL 1
11400 _ACEOF
11401
11402 fi
11403 rm -f conftest*
11404
11405 fi
11406 done
11407
11408
11409    # Look for these functions in the thread library, but only bother
11410    # if using POSIX threads.
11411    if test "$THREADS" = posix; then
11412       save_LIBS="$LIBS"
11413       LIBS="$LIBS $THREADLIBS"
11414       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11415       # E.g., Solaris.
11416
11417
11418 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11419 do
11420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:$LINENO: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   if test x$gcc_no_link = xyes; then
11427   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11429    { (exit 1); exit 1; }; }
11430 fi
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11439 #define $ac_func innocuous_$ac_func
11440
11441 /* System header to define __stub macros and hopefully few prototypes,
11442     which can conflict with char $ac_func (); below.
11443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444     <limits.h> exists even on freestanding compilers.  */
11445
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451
11452 #undef $ac_func
11453
11454 /* Override any gcc2 internal prototype to avoid an error.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 {
11458 #endif
11459 /* We use char because int might match the return type of a gcc2
11460    builtin and then its argument prototype would still apply.  */
11461 char $ac_func ();
11462 /* The GNU C library defines this for functions which it implements
11463     to always fail with ENOSYS.  Some functions are actually named
11464     something starting with __ and the normal name is an alias.  */
11465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11466 choke me
11467 #else
11468 char (*f) () = $ac_func;
11469 #endif
11470 #ifdef __cplusplus
11471 }
11472 #endif
11473
11474 int
11475 main ()
11476 {
11477 return f != $ac_func;
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484   (eval $ac_link) 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag"
11492                          || test ! -s conftest.err'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest$ac_exeext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   eval "$as_ac_var=yes"
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 eval "$as_ac_var=no"
11510 fi
11511 rm -f conftest.err conftest.$ac_objext \
11512       conftest$ac_exeext conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517   cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519 _ACEOF
11520
11521 fi
11522 done
11523
11524
11525       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11526       # Solaris 7 the name librt is preferred.
11527
11528 for ac_func in sched_yield
11529 do
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_var+set}\" = set"; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   if test x$gcc_no_link = xyes; then
11537   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11539    { (exit 1); exit 1; }; }
11540 fi
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11549 #define $ac_func innocuous_$ac_func
11550
11551 /* System header to define __stub macros and hopefully few prototypes,
11552     which can conflict with char $ac_func (); below.
11553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554     <limits.h> exists even on freestanding compilers.  */
11555
11556 #ifdef __STDC__
11557 # include <limits.h>
11558 #else
11559 # include <assert.h>
11560 #endif
11561
11562 #undef $ac_func
11563
11564 /* Override any gcc2 internal prototype to avoid an error.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 {
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570    builtin and then its argument prototype would still apply.  */
11571 char $ac_func ();
11572 /* The GNU C library defines this for functions which it implements
11573     to always fail with ENOSYS.  Some functions are actually named
11574     something starting with __ and the normal name is an alias.  */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11576 choke me
11577 #else
11578 char (*f) () = $ac_func;
11579 #endif
11580 #ifdef __cplusplus
11581 }
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 return f != $ac_func;
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -z "$ac_c_werror_flag"
11602                          || test ! -s conftest.err'
11603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604   (eval $ac_try) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; } &&
11608          { ac_try='test -s conftest$ac_exeext'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; }; then
11614   eval "$as_ac_var=yes"
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 eval "$as_ac_var=no"
11620 fi
11621 rm -f conftest.err conftest.$ac_objext \
11622       conftest$ac_exeext conftest.$ac_ext
11623 fi
11624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11626 if test `eval echo '${'$as_ac_var'}'` = yes; then
11627   cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629 _ACEOF
11630
11631 else
11632
11633         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11634 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11635 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lrt  $LIBS"
11640 if test x$gcc_no_link = xyes; then
11641   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11643    { (exit 1); exit 1; }; }
11644 fi
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651
11652 /* Override any gcc2 internal prototype to avoid an error.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657    builtin and then its argument prototype would still apply.  */
11658 char sched_yield ();
11659 int
11660 main ()
11661 {
11662 sched_yield ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669   (eval $ac_link) 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag"
11677                          || test ! -s conftest.err'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest$ac_exeext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_cv_lib_rt_sched_yield=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_cv_lib_rt_sched_yield=no
11695 fi
11696 rm -f conftest.err conftest.$ac_objext \
11697       conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11701 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11702 if test $ac_cv_lib_rt_sched_yield = yes; then
11703
11704           cat >>confdefs.h <<\_ACEOF
11705 #define HAVE_SCHED_YIELD 1
11706 _ACEOF
11707
11708           THREADLIBS="$THREADLIBS -lrt"
11709           THREADSPEC="$THREADSPEC -lrt"
11710 else
11711
11712           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11713 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11714 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lposix4  $LIBS"
11719 if test x$gcc_no_link = xyes; then
11720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11722    { (exit 1); exit 1; }; }
11723 fi
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 /* Override any gcc2 internal prototype to avoid an error.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char sched_yield ();
11738 int
11739 main ()
11740 {
11741 sched_yield ();
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag"
11756                          || test ! -s conftest.err'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_lib_posix4_sched_yield=yes
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 ac_cv_lib_posix4_sched_yield=no
11774 fi
11775 rm -f conftest.err conftest.$ac_objext \
11776       conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11780 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11781 if test $ac_cv_lib_posix4_sched_yield = yes; then
11782
11783             cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_SCHED_YIELD 1
11785 _ACEOF
11786
11787             THREADLIBS="$THREADLIBS -lposix4"
11788             THREADSPEC="$THREADSPEC -lposix4"
11789 fi
11790
11791 fi
11792
11793 fi
11794 done
11795
11796       LIBS="$save_LIBS"
11797
11798       # We can save a little space at runtime if the mutex has m_count
11799       # or __m_count.  This is a nice hack for Linux.
11800       cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <pthread.h>
11807 int
11808 main ()
11809 {
11810
11811           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11812
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819   (eval $ac_compile) 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -z "$ac_c_werror_flag"
11827                          || test ! -s conftest.err'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest.$ac_objext'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839
11840 cat >>confdefs.h <<\_ACEOF
11841 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11842 _ACEOF
11843
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848
11849         cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #include <pthread.h>
11856 int
11857 main ()
11858 {
11859
11860             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868   (eval $ac_compile) 2>conftest.er1
11869   ac_status=$?
11870   grep -v '^ *+' conftest.er1 >conftest.err
11871   rm -f conftest.er1
11872   cat conftest.err >&5
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } &&
11875          { ac_try='test -z "$ac_c_werror_flag"
11876                          || test ! -s conftest.err'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest.$ac_objext'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888
11889 cat >>confdefs.h <<\_ACEOF
11890 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11891 _ACEOF
11892
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 fi
11898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901    fi
11902
11903    # We require a way to get the time.
11904    time_found=no
11905
11906
11907
11908 for ac_func in gettimeofday time ftime
11909 do
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_var+set}\" = set"; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916   if test x$gcc_no_link = xyes; then
11917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11919    { (exit 1); exit 1; }; }
11920 fi
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11929 #define $ac_func innocuous_$ac_func
11930
11931 /* System header to define __stub macros and hopefully few prototypes,
11932     which can conflict with char $ac_func (); below.
11933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934     <limits.h> exists even on freestanding compilers.  */
11935
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941
11942 #undef $ac_func
11943
11944 /* Override any gcc2 internal prototype to avoid an error.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 {
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char $ac_func ();
11952 /* The GNU C library defines this for functions which it implements
11953     to always fail with ENOSYS.  Some functions are actually named
11954     something starting with __ and the normal name is an alias.  */
11955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11956 choke me
11957 #else
11958 char (*f) () = $ac_func;
11959 #endif
11960 #ifdef __cplusplus
11961 }
11962 #endif
11963
11964 int
11965 main ()
11966 {
11967 return f != $ac_func;
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_c_werror_flag"
11982                          || test ! -s conftest.err'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; } &&
11988          { ac_try='test -s conftest$ac_exeext'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   eval "$as_ac_var=yes"
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 eval "$as_ac_var=no"
12000 fi
12001 rm -f conftest.err conftest.$ac_objext \
12002       conftest$ac_exeext conftest.$ac_ext
12003 fi
12004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007   cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 _ACEOF
12010  time_found=yes
12011 fi
12012 done
12013
12014    if test "$time_found" = no; then
12015       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12016 echo "$as_me: error: no function found to get the time" >&2;}
12017    { (exit 1); exit 1; }; }
12018    fi
12019
12020
12021 for ac_func in memmove
12022 do
12023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12024 echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12026 if eval "test \"\${$as_ac_var+set}\" = set"; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   if test x$gcc_no_link = xyes; then
12030   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12032    { (exit 1); exit 1; }; }
12033 fi
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12042 #define $ac_func innocuous_$ac_func
12043
12044 /* System header to define __stub macros and hopefully few prototypes,
12045     which can conflict with char $ac_func (); below.
12046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047     <limits.h> exists even on freestanding compilers.  */
12048
12049 #ifdef __STDC__
12050 # include <limits.h>
12051 #else
12052 # include <assert.h>
12053 #endif
12054
12055 #undef $ac_func
12056
12057 /* Override any gcc2 internal prototype to avoid an error.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 {
12061 #endif
12062 /* We use char because int might match the return type of a gcc2
12063    builtin and then its argument prototype would still apply.  */
12064 char $ac_func ();
12065 /* The GNU C library defines this for functions which it implements
12066     to always fail with ENOSYS.  Some functions are actually named
12067     something starting with __ and the normal name is an alias.  */
12068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12069 choke me
12070 #else
12071 char (*f) () = $ac_func;
12072 #endif
12073 #ifdef __cplusplus
12074 }
12075 #endif
12076
12077 int
12078 main ()
12079 {
12080 return f != $ac_func;
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087   (eval $ac_link) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   eval "$as_ac_var=yes"
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 eval "$as_ac_var=no"
12113 fi
12114 rm -f conftest.err conftest.$ac_objext \
12115       conftest$ac_exeext conftest.$ac_ext
12116 fi
12117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120   cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122 _ACEOF
12123
12124 fi
12125 done
12126
12127
12128    # We require memcpy.
12129    memcpy_found=no
12130
12131 for ac_func in memcpy
12132 do
12133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 echo "$as_me:$LINENO: checking for $ac_func" >&5
12135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12136 if eval "test \"\${$as_ac_var+set}\" = set"; then
12137   echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139   if test x$gcc_no_link = xyes; then
12140   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12142    { (exit 1); exit 1; }; }
12143 fi
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h.  */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h.  */
12150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12152 #define $ac_func innocuous_$ac_func
12153
12154 /* System header to define __stub macros and hopefully few prototypes,
12155     which can conflict with char $ac_func (); below.
12156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157     <limits.h> exists even on freestanding compilers.  */
12158
12159 #ifdef __STDC__
12160 # include <limits.h>
12161 #else
12162 # include <assert.h>
12163 #endif
12164
12165 #undef $ac_func
12166
12167 /* Override any gcc2 internal prototype to avoid an error.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 {
12171 #endif
12172 /* We use char because int might match the return type of a gcc2
12173    builtin and then its argument prototype would still apply.  */
12174 char $ac_func ();
12175 /* The GNU C library defines this for functions which it implements
12176     to always fail with ENOSYS.  Some functions are actually named
12177     something starting with __ and the normal name is an alias.  */
12178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12179 choke me
12180 #else
12181 char (*f) () = $ac_func;
12182 #endif
12183 #ifdef __cplusplus
12184 }
12185 #endif
12186
12187 int
12188 main ()
12189 {
12190 return f != $ac_func;
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197   (eval $ac_link) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"
12205                          || test ! -s conftest.err'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest$ac_exeext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   eval "$as_ac_var=yes"
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 eval "$as_ac_var=no"
12223 fi
12224 rm -f conftest.err conftest.$ac_objext \
12225       conftest$ac_exeext conftest.$ac_ext
12226 fi
12227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12229 if test `eval echo '${'$as_ac_var'}'` = yes; then
12230   cat >>confdefs.h <<_ACEOF
12231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12232 _ACEOF
12233  memcpy_found=yes
12234 fi
12235 done
12236
12237    if test "$memcpy_found" = no; then
12238       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12239 echo "$as_me: error: memcpy is required" >&2;}
12240    { (exit 1); exit 1; }; }
12241    fi
12242
12243    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12244 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-ldl  $LIBS"
12250 if test x$gcc_no_link = xyes; then
12251   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12253    { (exit 1); exit 1; }; }
12254 fi
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267    builtin and then its argument prototype would still apply.  */
12268 char dlopen ();
12269 int
12270 main ()
12271 {
12272 dlopen ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag"
12287                          || test ! -s conftest.err'
12288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289   (eval $ac_try) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; } &&
12293          { ac_try='test -s conftest$ac_exeext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   ac_cv_lib_dl_dlopen=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_dl_dlopen=no
12305 fi
12306 rm -f conftest.err conftest.$ac_objext \
12307       conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12312 if test $ac_cv_lib_dl_dlopen = yes; then
12313
12314
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_DLOPEN 1
12317 _ACEOF
12318
12319 fi
12320
12321
12322    # Some library-finding code we stole from Tcl.
12323    #--------------------------------------------------------------------
12324    #    Check for the existence of the -lsocket and -lnsl libraries.
12325    #    The order here is important, so that they end up in the right
12326    #    order in the command line generated by make.  Here are some
12327    #    special considerations:
12328    #    1. Use "connect" and "accept" to check for -lsocket, and
12329    #       "gethostbyname" to check for -lnsl.
12330    #    2. Use each function name only once:  can't redo a check because
12331    #       autoconf caches the results of the last check and won't redo it.
12332    #    3. Use -lnsl and -lsocket only if they supply procedures that
12333    #       aren't already present in the normal libraries.  This is because
12334    #       IRIX 5.2 has libraries, but they aren't needed and they're
12335    #       bogus:  they goof up name resolution if used.
12336    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12337    #       To get around this problem, check for both libraries together
12338    #       if -lsocket doesn't work by itself.
12339    #--------------------------------------------------------------------
12340
12341    echo "$as_me:$LINENO: checking for socket libraries" >&5
12342 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12343 if test "${gcj_cv_lib_sockets+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   gcj_cv_lib_sockets=
12347      gcj_checkBoth=0
12348      unset ac_cv_func_connect
12349      echo "$as_me:$LINENO: checking for connect" >&5
12350 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12351 if test "${ac_cv_func_connect+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   if test x$gcc_no_link = xyes; then
12355   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12357    { (exit 1); exit 1; }; }
12358 fi
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12367 #define connect innocuous_connect
12368
12369 /* System header to define __stub macros and hopefully few prototypes,
12370     which can conflict with char connect (); below.
12371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372     <limits.h> exists even on freestanding compilers.  */
12373
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379
12380 #undef connect
12381
12382 /* Override any gcc2 internal prototype to avoid an error.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 {
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388    builtin and then its argument prototype would still apply.  */
12389 char connect ();
12390 /* The GNU C library defines this for functions which it implements
12391     to always fail with ENOSYS.  Some functions are actually named
12392     something starting with __ and the normal name is an alias.  */
12393 #if defined (__stub_connect) || defined (__stub___connect)
12394 choke me
12395 #else
12396 char (*f) () = connect;
12397 #endif
12398 #ifdef __cplusplus
12399 }
12400 #endif
12401
12402 int
12403 main ()
12404 {
12405 return f != connect;
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412   (eval $ac_link) 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag"
12420                          || test ! -s conftest.err'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   ac_cv_func_connect=yes
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_cv_func_connect=no
12438 fi
12439 rm -f conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext conftest.$ac_ext
12441 fi
12442 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12443 echo "${ECHO_T}$ac_cv_func_connect" >&6
12444 if test $ac_cv_func_connect = yes; then
12445   gcj_checkSocket=0
12446 else
12447   gcj_checkSocket=1
12448 fi
12449
12450      if test "$gcj_checkSocket" = 1; then
12451          unset ac_cv_func_connect
12452          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12453 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12454 if test "${ac_cv_lib_socket_main+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lsocket  $LIBS"
12459 if test x$gcc_no_link = xyes; then
12460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12462    { (exit 1); exit 1; }; }
12463 fi
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470
12471
12472 int
12473 main ()
12474 {
12475 main ();
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag"
12490                          || test ! -s conftest.err'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; } &&
12496          { ac_try='test -s conftest$ac_exeext'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502   ac_cv_lib_socket_main=yes
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 ac_cv_lib_socket_main=no
12508 fi
12509 rm -f conftest.err conftest.$ac_objext \
12510       conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12512 fi
12513 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12514 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12515 if test $ac_cv_lib_socket_main = yes; then
12516   gcj_cv_lib_sockets="-lsocket"
12517 else
12518   gcj_checkBoth=1
12519 fi
12520
12521      fi
12522      if test "$gcj_checkBoth" = 1; then
12523          gcj_oldLibs=$LIBS
12524          LIBS="$LIBS -lsocket -lnsl"
12525          unset ac_cv_func_accept
12526          echo "$as_me:$LINENO: checking for accept" >&5
12527 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12528 if test "${ac_cv_func_accept+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   if test x$gcc_no_link = xyes; then
12532   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12534    { (exit 1); exit 1; }; }
12535 fi
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12544 #define accept innocuous_accept
12545
12546 /* System header to define __stub macros and hopefully few prototypes,
12547     which can conflict with char accept (); below.
12548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549     <limits.h> exists even on freestanding compilers.  */
12550
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556
12557 #undef accept
12558
12559 /* Override any gcc2 internal prototype to avoid an error.  */
12560 #ifdef __cplusplus
12561 extern "C"
12562 {
12563 #endif
12564 /* We use char because int might match the return type of a gcc2
12565    builtin and then its argument prototype would still apply.  */
12566 char accept ();
12567 /* The GNU C library defines this for functions which it implements
12568     to always fail with ENOSYS.  Some functions are actually named
12569     something starting with __ and the normal name is an alias.  */
12570 #if defined (__stub_accept) || defined (__stub___accept)
12571 choke me
12572 #else
12573 char (*f) () = accept;
12574 #endif
12575 #ifdef __cplusplus
12576 }
12577 #endif
12578
12579 int
12580 main ()
12581 {
12582 return f != accept;
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589   (eval $ac_link) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest$ac_exeext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_func_accept=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_cv_func_accept=no
12615 fi
12616 rm -f conftest.err conftest.$ac_objext \
12617       conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12620 echo "${ECHO_T}$ac_cv_func_accept" >&6
12621 if test $ac_cv_func_accept = yes; then
12622   gcj_checkNsl=0
12623                         gcj_cv_lib_sockets="-lsocket -lnsl"
12624 fi
12625
12626          unset ac_cv_func_accept
12627          LIBS=$gcj_oldLibs
12628      fi
12629      unset ac_cv_func_gethostbyname
12630      gcj_oldLibs=$LIBS
12631      LIBS="$LIBS $gcj_cv_lib_sockets"
12632      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12633 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12634 if test "${ac_cv_func_gethostbyname+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   if test x$gcc_no_link = xyes; then
12638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12640    { (exit 1); exit 1; }; }
12641 fi
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12650 #define gethostbyname innocuous_gethostbyname
12651
12652 /* System header to define __stub macros and hopefully few prototypes,
12653     which can conflict with char gethostbyname (); below.
12654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655     <limits.h> exists even on freestanding compilers.  */
12656
12657 #ifdef __STDC__
12658 # include <limits.h>
12659 #else
12660 # include <assert.h>
12661 #endif
12662
12663 #undef gethostbyname
12664
12665 /* Override any gcc2 internal prototype to avoid an error.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 {
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671    builtin and then its argument prototype would still apply.  */
12672 char gethostbyname ();
12673 /* The GNU C library defines this for functions which it implements
12674     to always fail with ENOSYS.  Some functions are actually named
12675     something starting with __ and the normal name is an alias.  */
12676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12677 choke me
12678 #else
12679 char (*f) () = gethostbyname;
12680 #endif
12681 #ifdef __cplusplus
12682 }
12683 #endif
12684
12685 int
12686 main ()
12687 {
12688 return f != gethostbyname;
12689   ;
12690   return 0;
12691 }
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>conftest.er1
12696   ac_status=$?
12697   grep -v '^ *+' conftest.er1 >conftest.err
12698   rm -f conftest.er1
12699   cat conftest.err >&5
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } &&
12702          { ac_try='test -z "$ac_c_werror_flag"
12703                          || test ! -s conftest.err'
12704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705   (eval $ac_try) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   ac_cv_func_gethostbyname=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_cv_func_gethostbyname=no
12721 fi
12722 rm -f conftest.err conftest.$ac_objext \
12723       conftest$ac_exeext conftest.$ac_ext
12724 fi
12725 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12726 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12727 if test $ac_cv_func_gethostbyname = yes; then
12728   :
12729 else
12730   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12731 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12732 if test "${ac_cv_lib_nsl_main+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lnsl  $LIBS"
12737 if test x$gcc_no_link = xyes; then
12738   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12740    { (exit 1); exit 1; }; }
12741 fi
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748
12749
12750 int
12751 main ()
12752 {
12753 main ();
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760   (eval $ac_link) 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } &&
12767          { ac_try='test -z "$ac_c_werror_flag"
12768                          || test ! -s conftest.err'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest$ac_exeext'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_cv_lib_nsl_main=yes
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 ac_cv_lib_nsl_main=no
12786 fi
12787 rm -f conftest.err conftest.$ac_objext \
12788       conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12790 fi
12791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12792 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12793 if test $ac_cv_lib_nsl_main = yes; then
12794   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12795 fi
12796
12797 fi
12798
12799      unset ac_cv_func_gethostbyname
12800      LIBS=$gcj_oldLIBS
12801
12802 fi
12803 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12804 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12805    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12806
12807    if test "$with_system_zlib" = yes; then
12808       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12809 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12810 if test "${ac_cv_lib_z_deflate+set}" = set; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   ac_check_lib_save_LIBS=$LIBS
12814 LIBS="-lz  $LIBS"
12815 if test x$gcc_no_link = xyes; then
12816   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12818    { (exit 1); exit 1; }; }
12819 fi
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 /* Override any gcc2 internal prototype to avoid an error.  */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 /* We use char because int might match the return type of a gcc2
12832    builtin and then its argument prototype would still apply.  */
12833 char deflate ();
12834 int
12835 main ()
12836 {
12837 deflate ();
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844   (eval $ac_link) 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } &&
12851          { ac_try='test -z "$ac_c_werror_flag"
12852                          || test ! -s conftest.err'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; } &&
12858          { ac_try='test -s conftest$ac_exeext'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; }; then
12864   ac_cv_lib_z_deflate=yes
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 ac_cv_lib_z_deflate=no
12870 fi
12871 rm -f conftest.err conftest.$ac_objext \
12872       conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12874 fi
12875 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12876 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12877 if test $ac_cv_lib_z_deflate = yes; then
12878   ZLIBSPEC=-lz
12879 else
12880   ZLIBSPEC=
12881 fi
12882
12883    fi
12884
12885    # Test for Gtk stuff, if asked for.
12886    if test "$use_gtk_awt" = yes; then
12887
12888   succeeded=no
12889
12890   if test -z "$PKG_CONFIG"; then
12891     # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config; ac_word=$2
12893 echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898   case $PKG_CONFIG in
12899   [\\/]* | ?:[\\/]*)
12900   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12901   ;;
12902   *)
12903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906   IFS=$as_save_IFS
12907   test -z "$as_dir" && as_dir=.
12908   for ac_exec_ext in '' $ac_executable_extensions; do
12909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912     break 2
12913   fi
12914 done
12915 done
12916
12917   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12918   ;;
12919 esac
12920 fi
12921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12922
12923 if test -n "$PKG_CONFIG"; then
12924   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6
12926 else
12927   echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6
12929 fi
12930
12931   fi
12932
12933   if test "$PKG_CONFIG" = "no" ; then
12934      echo "*** The pkg-config script could not be found. Make sure it is"
12935      echo "*** in your path, or set the PKG_CONFIG environment variable"
12936      echo "*** to the full path to pkg-config."
12937      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12938   else
12939      PKG_CONFIG_MIN_VERSION=0.9.0
12940      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12941         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12942 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12943
12944         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12945             echo "$as_me:$LINENO: result: yes" >&5
12946 echo "${ECHO_T}yes" >&6
12947             succeeded=yes
12948
12949             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12950 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12951             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12952             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12953 echo "${ECHO_T}$GTK_CFLAGS" >&6
12954
12955             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12956 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12957             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12958             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12959 echo "${ECHO_T}$GTK_LIBS" >&6
12960         else
12961             GTK_CFLAGS=""
12962             GTK_LIBS=""
12963             ## If we have a custom action on failure, don't print errors, but
12964             ## do set a variable so people can do so.
12965             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12966             echo $GTK_PKG_ERRORS
12967         fi
12968
12969
12970
12971      else
12972         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12973         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12974      fi
12975   fi
12976
12977   if test $succeeded = yes; then
12978      :
12979   else
12980      { { 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
12981 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;}
12982    { (exit 1); exit 1; }; }
12983   fi
12984
12985
12986
12987
12988
12989   succeeded=no
12990
12991   if test -z "$PKG_CONFIG"; then
12992     # Extract the first word of "pkg-config", so it can be a program name with args.
12993 set dummy pkg-config; ac_word=$2
12994 echo "$as_me:$LINENO: checking for $ac_word" >&5
12995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   case $PKG_CONFIG in
13000   [\\/]* | ?:[\\/]*)
13001   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13002   ;;
13003   *)
13004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007   IFS=$as_save_IFS
13008   test -z "$as_dir" && as_dir=.
13009   for ac_exec_ext in '' $ac_executable_extensions; do
13010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13013     break 2
13014   fi
13015 done
13016 done
13017
13018   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13019   ;;
13020 esac
13021 fi
13022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13023
13024 if test -n "$PKG_CONFIG"; then
13025   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13026 echo "${ECHO_T}$PKG_CONFIG" >&6
13027 else
13028   echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6
13030 fi
13031
13032   fi
13033
13034   if test "$PKG_CONFIG" = "no" ; then
13035      echo "*** The pkg-config script could not be found. Make sure it is"
13036      echo "*** in your path, or set the PKG_CONFIG environment variable"
13037      echo "*** to the full path to pkg-config."
13038      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13039   else
13040      PKG_CONFIG_MIN_VERSION=0.9.0
13041      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13042         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13043 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13044
13045         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13046             echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6
13048             succeeded=yes
13049
13050             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13051 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13052             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13053             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13054 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13055
13056             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13057 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13058             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13059             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13060 echo "${ECHO_T}$GLIB_LIBS" >&6
13061         else
13062             GLIB_CFLAGS=""
13063             GLIB_LIBS=""
13064             ## If we have a custom action on failure, don't print errors, but
13065             ## do set a variable so people can do so.
13066             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13067             echo $GLIB_PKG_ERRORS
13068         fi
13069
13070
13071
13072      else
13073         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13074         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13075      fi
13076   fi
13077
13078   if test $succeeded = yes; then
13079      :
13080   else
13081      { { 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
13082 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;}
13083    { (exit 1); exit 1; }; }
13084   fi
13085
13086
13087
13088
13089
13090   succeeded=no
13091
13092   if test -z "$PKG_CONFIG"; then
13093     # Extract the first word of "pkg-config", so it can be a program name with args.
13094 set dummy pkg-config; ac_word=$2
13095 echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   case $PKG_CONFIG in
13101   [\\/]* | ?:[\\/]*)
13102   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13103   ;;
13104   *)
13105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13107 do
13108   IFS=$as_save_IFS
13109   test -z "$as_dir" && as_dir=.
13110   for ac_exec_ext in '' $ac_executable_extensions; do
13111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114     break 2
13115   fi
13116 done
13117 done
13118
13119   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13120   ;;
13121 esac
13122 fi
13123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13124
13125 if test -n "$PKG_CONFIG"; then
13126   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13127 echo "${ECHO_T}$PKG_CONFIG" >&6
13128 else
13129   echo "$as_me:$LINENO: result: no" >&5
13130 echo "${ECHO_T}no" >&6
13131 fi
13132
13133   fi
13134
13135   if test "$PKG_CONFIG" = "no" ; then
13136      echo "*** The pkg-config script could not be found. Make sure it is"
13137      echo "*** in your path, or set the PKG_CONFIG environment variable"
13138      echo "*** to the full path to pkg-config."
13139      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13140   else
13141      PKG_CONFIG_MIN_VERSION=0.9.0
13142      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13143         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13144 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13145
13146         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13147             echo "$as_me:$LINENO: result: yes" >&5
13148 echo "${ECHO_T}yes" >&6
13149             succeeded=yes
13150
13151             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13152 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13153             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13154             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13155 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13156
13157             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13158 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13159             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13160             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13161 echo "${ECHO_T}$LIBART_LIBS" >&6
13162         else
13163             LIBART_CFLAGS=""
13164             LIBART_LIBS=""
13165             ## If we have a custom action on failure, don't print errors, but
13166             ## do set a variable so people can do so.
13167             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13168             echo $LIBART_PKG_ERRORS
13169         fi
13170
13171
13172
13173      else
13174         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13175         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13176      fi
13177   fi
13178
13179   if test $succeeded = yes; then
13180      :
13181   else
13182      { { 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
13183 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;}
13184    { (exit 1); exit 1; }; }
13185   fi
13186
13187
13188
13189    fi
13190
13191    # On Solaris, and maybe other architectures, the Boehm collector
13192    # requires -ldl.
13193    if test "$GC" = boehm; then
13194       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13195 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13196 if test "${ac_cv_lib_dl_main+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ldl  $LIBS"
13201 if test x$gcc_no_link = xyes; then
13202   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13204    { (exit 1); exit 1; }; }
13205 fi
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212
13213
13214 int
13215 main ()
13216 {
13217 main ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13224   (eval $ac_link) 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag"
13232                          || test ! -s conftest.err'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; } &&
13238          { ac_try='test -s conftest$ac_exeext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   ac_cv_lib_dl_main=yes
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_cv_lib_dl_main=no
13250 fi
13251 rm -f conftest.err conftest.$ac_objext \
13252       conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13254 fi
13255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13256 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13257 if test $ac_cv_lib_dl_main = yes; then
13258   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13259 fi
13260
13261    fi
13262 fi
13263
13264
13265 if test "$supply_backtrace" = yes; then
13266   SUPPLY_BACKTRACE_TRUE=
13267   SUPPLY_BACKTRACE_FALSE='#'
13268 else
13269   SUPPLY_BACKTRACE_TRUE='#'
13270   SUPPLY_BACKTRACE_FALSE=
13271 fi
13272
13273
13274 if test -z "${with_multisubdir}"; then
13275    builddotdot=.
13276 else
13277    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13278 fi
13279
13280 NATIVE=yes
13281
13282 # Which gcj do we use?
13283 which_gcj=default
13284 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13285 if test -n "${with_cross_host}"; then
13286   # We are being configured with a cross compiler. We can't
13287   # use ac_exeext, because that is for the target platform.
13288   NATIVE=no
13289   cross_host_exeext=
13290   case "${with_cross_host}" in
13291      *mingw* | *cygwin*)
13292          cross_host_exeext=.exe
13293      ;;
13294   esac
13295   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13296      if test x"$build_noncanonical" = x"$with_cross_host"; then
13297         # Ordinary cross (host!=target and host=build)
13298         which_gcj=built
13299      else
13300         # Canadian cross (host!=target and host!=build)
13301         which_gcj=cross
13302      fi
13303   else
13304      which_gcj=cross
13305   fi
13306 else
13307   # We are being configured with a native or crossed-native compiler
13308   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13309      if test x"$build" = x"$host"; then
13310         # True native build (host=target and host=build)
13311         which_gcj=built
13312      else
13313         # Crossed-native build (host=target and host!=build)
13314         which_gcj=cross
13315      fi
13316   else
13317      which_gcj=path
13318   fi
13319 fi
13320 case "${which_gcj}" in
13321    built)
13322       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13323       GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13324       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13325    ;;
13326    cross)
13327       if test "x${with_newlib}" = "xyes"; then
13328          # FIXME (comment): Why is this needed?
13329          GCC_UNWIND_INCLUDE=
13330          GCJ="${target_noncanonical}-gcj"
13331       else
13332          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13333       fi
13334       ZIP=jar
13335       GCJH='$(target_noncanonical)-gcjh'
13336    ;;
13337    path)
13338       GCJ="gcj -B`${PWDCMD-pwd}`/"
13339       ## In this case, gcj is found outside the build tree.  However, zip is
13340       ## found in the build tree.
13341       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13342       GCJH=gcjh
13343    ;;
13344 esac
13345
13346
13347
13348
13349 # Create it, so that compile/link tests don't fail
13350 test -f libgcj.spec || touch libgcj.spec
13351
13352 # We must search the source tree for java.lang, since we still don't
13353 # have libgcj.jar nor java/lang/*.class
13354 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13355 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13356
13357 # Since some classes depend on this one, we need its source available
13358 # before we can do any GCJ compilation test :-(
13359 if test ! -f gnu/classpath/Configuration.java; then
13360   test -d gnu || mkdir gnu
13361   test -d gnu/classpath || mkdir gnu/classpath
13362   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13363       -e 's,@TOOLKIT@,$TOOLKIT,' \
13364         < $srcdir/gnu/classpath/Configuration.java.in \
13365         > gnu/classpath/Configuration.java
13366   # We do not want to redirect the output of the grep below to /dev/null,
13367   # but we add /dev/null to the input list so that grep will print the
13368   # filename of Configuration.java in case it finds any matches.
13369   if grep @ gnu/classpath/Configuration.java /dev/null; then
13370     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13371 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13372    { (exit 1); exit 1; }; }
13373   fi
13374 fi
13375
13376 if test -n "$ac_tool_prefix"; then
13377   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13378 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13379 echo "$as_me:$LINENO: checking for $ac_word" >&5
13380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13381 if test "${ac_cv_prog_GCJ+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   if test -n "$GCJ"; then
13385   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390   IFS=$as_save_IFS
13391   test -z "$as_dir" && as_dir=.
13392   for ac_exec_ext in '' $ac_executable_extensions; do
13393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13396     break 2
13397   fi
13398 done
13399 done
13400
13401 fi
13402 fi
13403 GCJ=$ac_cv_prog_GCJ
13404 if test -n "$GCJ"; then
13405   echo "$as_me:$LINENO: result: $GCJ" >&5
13406 echo "${ECHO_T}$GCJ" >&6
13407 else
13408   echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13410 fi
13411
13412 fi
13413 if test -z "$ac_cv_prog_GCJ"; then
13414   ac_ct_GCJ=$GCJ
13415   # Extract the first word of "gcj", so it can be a program name with args.
13416 set dummy gcj; ac_word=$2
13417 echo "$as_me:$LINENO: checking for $ac_word" >&5
13418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13419 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   if test -n "$ac_ct_GCJ"; then
13423   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13424 else
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428   IFS=$as_save_IFS
13429   test -z "$as_dir" && as_dir=.
13430   for ac_exec_ext in '' $ac_executable_extensions; do
13431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432     ac_cv_prog_ac_ct_GCJ="gcj"
13433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13434     break 2
13435   fi
13436 done
13437 done
13438
13439   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13440 fi
13441 fi
13442 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13443 if test -n "$ac_ct_GCJ"; then
13444   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13445 echo "${ECHO_T}$ac_ct_GCJ" >&6
13446 else
13447   echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13449 fi
13450
13451   GCJ=$ac_ct_GCJ
13452 else
13453   GCJ="$ac_cv_prog_GCJ"
13454 fi
13455
13456   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13457
13458
13459
13460
13461 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13462
13463 echo "$as_me:$LINENO: checking size of void *" >&5
13464 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13465 if test "${ac_cv_sizeof_void_p+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13469   cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 #include "confdefs.h"
13476 #include <sys/types.h>
13477
13478
13479 int
13480 main ()
13481 {
13482 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"
13497                          || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_sizeof_void_p=$ac_size
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 fi
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13517 done
13518
13519 fi
13520
13521 if test x$ac_cv_sizeof_void_p = x ; then
13522   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13523 echo "$as_me: error: cannot determine a size for void *" >&2;}
13524    { (exit 1); exit 1; }; }
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13527 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13531 _ACEOF
13532
13533
13534
13535 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13536 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13537 if test "${ac_cv_c_bigendian+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   ac_cv_c_bigendian=unknown
13541 # See if sys/param.h defines the BYTE_ORDER macro.
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548 #include <sys/types.h>
13549 #include <sys/param.h>
13550 int
13551 main ()
13552 {
13553
13554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13555  bogus endian macros
13556 #endif
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563   (eval $ac_compile) 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag"
13571                          || test ! -s conftest.err'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   # It does; now see whether it defined to BIG_ENDIAN or not.
13584 cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590 #include <sys/types.h>
13591 #include <sys/param.h>
13592 int
13593 main ()
13594 {
13595
13596 #if BYTE_ORDER != BIG_ENDIAN
13597  not big endian
13598 #endif
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605   (eval $ac_compile) 2>conftest.er1
13606   ac_status=$?
13607   grep -v '^ *+' conftest.er1 >conftest.err
13608   rm -f conftest.er1
13609   cat conftest.err >&5
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -z "$ac_c_werror_flag"
13613                          || test ! -s conftest.err'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; } &&
13619          { ac_try='test -s conftest.$ac_objext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   ac_cv_c_bigendian=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_cv_c_bigendian=no
13631 fi
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 fi
13638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13639 if test $ac_cv_c_bigendian = unknown; then
13640 if test "$cross_compiling" = yes; then
13641    echo $ac_n "cross-compiling... " 2>&6
13642 else
13643   cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649 main () {
13650   /* Are we little or big endian?  From Harbison&Steele.  */
13651   union
13652   {
13653     long l;
13654     char c[sizeof (long)];
13655   } u;
13656   u.l = 1;
13657   exit (u.c[sizeof (long) - 1] == 1);
13658 }
13659 _ACEOF
13660 rm -f conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662   (eval $ac_link) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_cv_c_bigendian=no
13672 else
13673   echo "$as_me: program exited with status $ac_status" >&5
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ( exit $ac_status )
13678 ac_cv_c_bigendian=yes
13679 fi
13680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13681 fi
13682 fi
13683 fi
13684 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13685 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13686 if test $ac_cv_c_bigendian = unknown; then
13687 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13688 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13689
13690 cat >conftest.c <<EOF
13691 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13692 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13693 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13694 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13695 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13696 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13697 int main() { _ascii (); _ebcdic (); return 0; }
13698 EOF
13699  if test -f conftest.c ; then
13700      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13701         if test `grep -l BIGenDianSyS conftest.o` ; then
13702            echo $ac_n ' big endian probe OK, ' 1>&6
13703            ac_cv_c_bigendian=yes
13704         fi
13705         if test `grep -l LiTTleEnDian conftest.o` ; then
13706            echo $ac_n ' little endian probe OK, ' 1>&6
13707            if test $ac_cv_c_bigendian = yes ; then
13708             ac_cv_c_bigendian=unknown;
13709            else
13710             ac_cv_c_bigendian=no
13711            fi
13712         fi
13713         echo $ac_n 'guessing bigendian ...  ' >&6
13714      fi
13715   fi
13716 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13717 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13718 fi
13719 if test $ac_cv_c_bigendian = yes; then
13720
13721 cat >>confdefs.h <<\_ACEOF
13722 #define WORDS_BIGENDIAN 1
13723 _ACEOF
13724
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HOST_WORDS_BIG_ENDIAN 1
13728 _ACEOF
13729
13730   BYTEORDER=4321
13731 else
13732   BYTEORDER=1234
13733 fi
13734
13735 cat >>confdefs.h <<_ACEOF
13736 #define BYTEORDER $BYTEORDER
13737 _ACEOF
13738
13739 if test $ac_cv_c_bigendian = unknown; then
13740   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13741 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13742    { (exit 1); exit 1; }; }
13743 fi
13744
13745
13746 ZLIBS=
13747 SYS_ZLIBS=
13748 ZINCS=
13749
13750 if test -z "$ZLIBSPEC"; then
13751    # Use zlib from the GCC tree.
13752    ZINCS='-I$(top_srcdir)/../zlib'
13753    ZLIBS=../zlib/libzgcj_convenience.la
13754 else
13755    # System's zlib.
13756    SYS_ZLIBS="$ZLIBSPEC"
13757 fi
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768 if test "$NATIVE" = yes; then
13769   NATIVE_TRUE=
13770   NATIVE_FALSE='#'
13771 else
13772   NATIVE_TRUE='#'
13773   NATIVE_FALSE=
13774 fi
13775
13776
13777
13778 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13779   NEEDS_DATA_START_TRUE=
13780   NEEDS_DATA_START_FALSE='#'
13781 else
13782   NEEDS_DATA_START_TRUE='#'
13783   NEEDS_DATA_START_FALSE=
13784 fi
13785
13786
13787
13788 # Process the option "--enable-version-specific-runtime-libs"
13789 # Calculate toolexeclibdir
13790 case ${version_specific_libs} in
13791   yes)
13792     # Need the gcc compiler version to know where to install libraries
13793     # and header files if --enable-version-specific-runtime-libs option
13794     # is selected.
13795     includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13796     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13797     toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13798     toolexeclibdir=$toolexecmainlibdir
13799     ;;
13800   no)
13801     if test -n "$with_cross_host" &&
13802        test x"$with_cross_host" != x"no"; then
13803       # Install a library built with a cross compiler in tooldir, not libdir.
13804       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13805       toolexecmainlibdir='$(toolexecdir)/lib'
13806     else
13807       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13808       toolexecmainlibdir='$(libdir)'
13809     fi
13810     multi_os_directory=`$CC -print-multi-os-directory`
13811     case $multi_os_directory in
13812       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13813       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13814     esac
13815     ;;
13816 esac
13817
13818
13819
13820
13821 # Determine gcj version number.
13822 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13823 GCJVERSION=$gcjversion
13824
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define GCJVERSION "$GCJVERSION"
13828 _ACEOF
13829
13830
13831 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13832 # On that system, sys/ioctl.h will not include sys/filio.h unless
13833 # BSD_COMP is defined; just including sys/filio.h is simpler.
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853 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
13854 do
13855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857   echo "$as_me:$LINENO: checking for $ac_header" >&5
13858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 fi
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13864 else
13865   # Is the header compilable?
13866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 $ac_includes_default
13875 #include <$ac_header>
13876 _ACEOF
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879   (eval $ac_compile) 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag"
13887                          || test ! -s conftest.err'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; } &&
13893          { ac_try='test -s conftest.$ac_objext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_header_compiler=yes
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_header_compiler=no
13905 fi
13906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13908 echo "${ECHO_T}$ac_header_compiler" >&6
13909
13910 # Is the header present?
13911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 #include <$ac_header>
13920 _ACEOF
13921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13923   ac_status=$?
13924   grep -v '^ *+' conftest.er1 >conftest.err
13925   rm -f conftest.er1
13926   cat conftest.err >&5
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); } >/dev/null; then
13929   if test -s conftest.err; then
13930     ac_cpp_err=$ac_c_preproc_warn_flag
13931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13932   else
13933     ac_cpp_err=
13934   fi
13935 else
13936   ac_cpp_err=yes
13937 fi
13938 if test -z "$ac_cpp_err"; then
13939   ac_header_preproc=yes
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944   ac_header_preproc=no
13945 fi
13946 rm -f conftest.err conftest.$ac_ext
13947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6
13949
13950 # So?  What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13952   yes:no: )
13953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13957     ac_header_preproc=yes
13958     ;;
13959   no:yes:* )
13960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13972     (
13973       cat <<\_ASBOX
13974 ## ---------------------------------- ##
13975 ## Report this to the libjava lists.  ##
13976 ## ---------------------------------- ##
13977 _ASBOX
13978     ) |
13979       sed "s/^/$as_me: WARNING:     /" >&2
13980     ;;
13981 esac
13982 echo "$as_me:$LINENO: checking for $ac_header" >&5
13983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13985   echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987   eval "$as_ac_Header=\$ac_header_preproc"
13988 fi
13989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13991
13992 fi
13993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13994   cat >>confdefs.h <<_ACEOF
13995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13996 _ACEOF
13997
13998 fi
13999
14000 done
14001
14002 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14003 # for now.  If you change this, you also must update natFile.cc.
14004
14005 for ac_header in dirent.h
14006 do
14007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14009   echo "$as_me:$LINENO: checking for $ac_header" >&5
14010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012   echo $ECHO_N "(cached) $ECHO_C" >&6
14013 fi
14014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 else
14017   # Is the header compilable?
14018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026 $ac_includes_default
14027 #include <$ac_header>
14028 _ACEOF
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031   (eval $ac_compile) 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } &&
14038          { ac_try='test -z "$ac_c_werror_flag"
14039                          || test ! -s conftest.err'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; } &&
14045          { ac_try='test -s conftest.$ac_objext'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051   ac_header_compiler=yes
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056 ac_header_compiler=no
14057 fi
14058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14060 echo "${ECHO_T}$ac_header_compiler" >&6
14061
14062 # Is the header present?
14063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 #include <$ac_header>
14072 _ACEOF
14073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } >/dev/null; then
14081   if test -s conftest.err; then
14082     ac_cpp_err=$ac_c_preproc_warn_flag
14083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14084   else
14085     ac_cpp_err=
14086   fi
14087 else
14088   ac_cpp_err=yes
14089 fi
14090 if test -z "$ac_cpp_err"; then
14091   ac_header_preproc=yes
14092 else
14093   echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096   ac_header_preproc=no
14097 fi
14098 rm -f conftest.err conftest.$ac_ext
14099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14100 echo "${ECHO_T}$ac_header_preproc" >&6
14101
14102 # So?  What about this header?
14103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14104   yes:no: )
14105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14109     ac_header_preproc=yes
14110     ;;
14111   no:yes:* )
14112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14124     (
14125       cat <<\_ASBOX
14126 ## ---------------------------------- ##
14127 ## Report this to the libjava lists.  ##
14128 ## ---------------------------------- ##
14129 _ASBOX
14130     ) |
14131       sed "s/^/$as_me: WARNING:     /" >&2
14132     ;;
14133 esac
14134 echo "$as_me:$LINENO: checking for $ac_header" >&5
14135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   eval "$as_ac_Header=\$ac_header_preproc"
14140 fi
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143
14144 fi
14145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14146   cat >>confdefs.h <<_ACEOF
14147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14148 _ACEOF
14149
14150 fi
14151
14152 done
14153
14154
14155 for ac_header in inttypes.h
14156 do
14157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14159   echo "$as_me:$LINENO: checking for $ac_header" >&5
14160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14162   echo $ECHO_N "(cached) $ECHO_C" >&6
14163 fi
14164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14166 else
14167   # Is the header compilable?
14168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176 $ac_includes_default
14177 #include <$ac_header>
14178 _ACEOF
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181   (eval $ac_compile) 2>conftest.er1
14182   ac_status=$?
14183   grep -v '^ *+' conftest.er1 >conftest.err
14184   rm -f conftest.er1
14185   cat conftest.err >&5
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } &&
14188          { ac_try='test -z "$ac_c_werror_flag"
14189                          || test ! -s conftest.err'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; } &&
14195          { ac_try='test -s conftest.$ac_objext'
14196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197   (eval $ac_try) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; }; then
14201   ac_header_compiler=yes
14202 else
14203   echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14205
14206 ac_header_compiler=no
14207 fi
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14210 echo "${ECHO_T}$ac_header_compiler" >&6
14211
14212 # Is the header present?
14213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14215 cat >conftest.$ac_ext <<_ACEOF
14216 /* confdefs.h.  */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h.  */
14221 #include <$ac_header>
14222 _ACEOF
14223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } >/dev/null; then
14231   if test -s conftest.err; then
14232     ac_cpp_err=$ac_c_preproc_warn_flag
14233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14234   else
14235     ac_cpp_err=
14236   fi
14237 else
14238   ac_cpp_err=yes
14239 fi
14240 if test -z "$ac_cpp_err"; then
14241   ac_header_preproc=yes
14242 else
14243   echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246   ac_header_preproc=no
14247 fi
14248 rm -f conftest.err conftest.$ac_ext
14249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14250 echo "${ECHO_T}$ac_header_preproc" >&6
14251
14252 # So?  What about this header?
14253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14254   yes:no: )
14255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14259     ac_header_preproc=yes
14260     ;;
14261   no:yes:* )
14262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14274     (
14275       cat <<\_ASBOX
14276 ## ---------------------------------- ##
14277 ## Report this to the libjava lists.  ##
14278 ## ---------------------------------- ##
14279 _ASBOX
14280     ) |
14281       sed "s/^/$as_me: WARNING:     /" >&2
14282     ;;
14283 esac
14284 echo "$as_me:$LINENO: checking for $ac_header" >&5
14285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   eval "$as_ac_Header=\$ac_header_preproc"
14290 fi
14291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14293
14294 fi
14295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14296   cat >>confdefs.h <<_ACEOF
14297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 _ACEOF
14299
14300
14301 cat >>confdefs.h <<\_ACEOF
14302 #define HAVE_INTTYPES_H 1
14303 _ACEOF
14304
14305
14306 cat >>confdefs.h <<\_ACEOF
14307 #define JV_HAVE_INTTYPES_H 1
14308 _ACEOF
14309
14310
14311 fi
14312
14313 done
14314
14315 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14316 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14317 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 #include <sys/types.h>
14327 #include <sys/wait.h>
14328 #ifndef WEXITSTATUS
14329 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14330 #endif
14331 #ifndef WIFEXITED
14332 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14333 #endif
14334
14335 int
14336 main ()
14337 {
14338   int s;
14339   wait (&s);
14340   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347   (eval $ac_compile) 2>conftest.er1
14348   ac_status=$?
14349   grep -v '^ *+' conftest.er1 >conftest.err
14350   rm -f conftest.er1
14351   cat conftest.err >&5
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } &&
14354          { ac_try='test -z "$ac_c_werror_flag"
14355                          || test ! -s conftest.err'
14356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357   (eval $ac_try) 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; } &&
14361          { ac_try='test -s conftest.$ac_objext'
14362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363   (eval $ac_try) 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; }; then
14367   ac_cv_header_sys_wait_h=yes
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372 ac_cv_header_sys_wait_h=no
14373 fi
14374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14377 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14378 if test $ac_cv_header_sys_wait_h = yes; then
14379
14380 cat >>confdefs.h <<\_ACEOF
14381 #define HAVE_SYS_WAIT_H 1
14382 _ACEOF
14383
14384 fi
14385
14386
14387 echo "$as_me:$LINENO: checking for ssize_t" >&5
14388 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14389 if test "${ac_cv_type_ssize_t+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392   cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 $ac_includes_default
14399 int
14400 main ()
14401 {
14402 if ((ssize_t *) 0)
14403   return 0;
14404 if (sizeof (ssize_t))
14405   return 0;
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412   (eval $ac_compile) 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag"
14420                          || test ! -s conftest.err'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest.$ac_objext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_type_ssize_t=yes
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437 ac_cv_type_ssize_t=no
14438 fi
14439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 fi
14441 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14442 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14443 if test $ac_cv_type_ssize_t = yes; then
14444   :
14445 else
14446
14447 cat >>confdefs.h <<_ACEOF
14448 #define ssize_t int
14449 _ACEOF
14450
14451 fi
14452
14453
14454 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14455 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462 #include <sys/types.h>
14463 #if STDC_HEADERS
14464 #include <stdlib.h>
14465 #include <stddef.h>
14466 #endif
14467 #if HAVE_NETINET_IN_H
14468 #include <netinet/in.h>
14469 #endif
14470 int
14471 main ()
14472 {
14473 in_addr_t foo;
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14480   (eval $ac_compile) 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag"
14488                          || test ! -s conftest.err'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; } &&
14494          { ac_try='test -s conftest.$ac_objext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500
14501 cat >>confdefs.h <<\_ACEOF
14502 #define HAVE_IN_ADDR_T 1
14503 _ACEOF
14504
14505    echo "$as_me:$LINENO: result: yes" >&5
14506 echo "${ECHO_T}yes" >&6
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511 echo "$as_me:$LINENO: result: no" >&5
14512 echo "${ECHO_T}no" >&6
14513 fi
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515
14516 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14517 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524 #include <netinet/in.h>
14525 int
14526 main ()
14527 {
14528 struct ip_mreq mreq;
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535   (eval $ac_compile) 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag"
14543                          || test ! -s conftest.err'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_STRUCT_IP_MREQ 1
14558 _ACEOF
14559
14560    echo "$as_me:$LINENO: result: yes" >&5
14561 echo "${ECHO_T}yes" >&6
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 echo "$as_me:$LINENO: result: no" >&5
14567 echo "${ECHO_T}no" >&6
14568 fi
14569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570
14571 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14572 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579 #include <netinet/in.h>
14580 int
14581 main ()
14582 {
14583 struct ipv6_mreq mreq6;
14584   ;
14585   return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590   (eval $ac_compile) 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -z "$ac_c_werror_flag"
14598                          || test ! -s conftest.err'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; } &&
14604          { ac_try='test -s conftest.$ac_objext'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_STRUCT_IPV6_MREQ 1
14613 _ACEOF
14614
14615    echo "$as_me:$LINENO: result: yes" >&5
14616 echo "${ECHO_T}yes" >&6
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 echo "$as_me:$LINENO: result: no" >&5
14622 echo "${ECHO_T}no" >&6
14623 fi
14624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14625
14626 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14627 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634 #include <netinet/in.h>
14635 int
14636 main ()
14637 {
14638 struct sockaddr_in6 addr6;
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645   (eval $ac_compile) 2>conftest.er1
14646   ac_status=$?
14647   grep -v '^ *+' conftest.er1 >conftest.err
14648   rm -f conftest.er1
14649   cat conftest.err >&5
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); } &&
14652          { ac_try='test -z "$ac_c_werror_flag"
14653                          || test ! -s conftest.err'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_INET6 1
14668 _ACEOF
14669
14670    echo "$as_me:$LINENO: result: yes" >&5
14671 echo "${ECHO_T}yes" >&6
14672 else
14673   echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676 echo "$as_me:$LINENO: result: no" >&5
14677 echo "${ECHO_T}no" >&6
14678 fi
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680
14681 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14682 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14683 cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689 #define _POSIX_PII_SOCKET
14690 #include <sys/types.h>
14691 #include <sys/socket.h>
14692 int
14693 main ()
14694 {
14695 socklen_t x = 5;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702   (eval $ac_compile) 2>conftest.er1
14703   ac_status=$?
14704   grep -v '^ *+' conftest.er1 >conftest.err
14705   rm -f conftest.er1
14706   cat conftest.err >&5
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } &&
14709          { ac_try='test -z "$ac_c_werror_flag"
14710                          || test ! -s conftest.err'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; } &&
14716          { ac_try='test -s conftest.$ac_objext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_SOCKLEN_T 1
14725 _ACEOF
14726
14727    echo "$as_me:$LINENO: result: yes" >&5
14728 echo "${ECHO_T}yes" >&6
14729 else
14730   echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 echo "$as_me:$LINENO: result: no" >&5
14734 echo "${ECHO_T}no" >&6
14735 fi
14736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737
14738 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14739 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h.  */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h.  */
14746 #include <time.h>
14747 int
14748 main ()
14749 {
14750 struct tm tim; tim.tm_gmtoff = 0;
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757   (eval $ac_compile) 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -z "$ac_c_werror_flag"
14765                          || test ! -s conftest.err'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest.$ac_objext'
14772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773   (eval $ac_try) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777
14778 cat >>confdefs.h <<\_ACEOF
14779 #define STRUCT_TM_HAS_GMTOFF 1
14780 _ACEOF
14781
14782    echo "$as_me:$LINENO: result: yes" >&5
14783 echo "${ECHO_T}yes" >&6
14784 else
14785   echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 echo "$as_me:$LINENO: result: no" >&5
14789 echo "${ECHO_T}no" >&6
14790    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14791 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14792                cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798 #include <time.h>
14799 int
14800 main ()
14801 {
14802 void i(){long z2 = 2*timezone;}
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809   (eval $ac_compile) 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -z "$ac_c_werror_flag"
14817                          || test ! -s conftest.err'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829
14830 cat >>confdefs.h <<\_ACEOF
14831 #define HAVE_TIMEZONE 1
14832 _ACEOF
14833
14834       echo "$as_me:$LINENO: result: yes" >&5
14835 echo "${ECHO_T}yes" >&6
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 echo "$as_me:$LINENO: result: no" >&5
14841 echo "${ECHO_T}no" >&6
14842        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14843 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14844               cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850 #include <time.h>
14851 int
14852 main ()
14853 {
14854 long z2 = _timezone;
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861   (eval $ac_compile) 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_c_werror_flag"
14869                          || test ! -s conftest.err'
14870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871   (eval $ac_try) 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); }; } &&
14875          { ac_try='test -s conftest.$ac_objext'
14876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877   (eval $ac_try) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); }; }; then
14881
14882 cat >>confdefs.h <<\_ACEOF
14883 #define HAVE_UNDERSCORE_TIMEZONE 1
14884 _ACEOF
14885
14886           echo "$as_me:$LINENO: result: yes" >&5
14887 echo "${ECHO_T}yes" >&6
14888 else
14889   echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892 echo "$as_me:$LINENO: result: no" >&5
14893 echo "${ECHO_T}no" >&6
14894 fi
14895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14896 fi
14897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14898 fi
14899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14900
14901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14902 # for constant arguments.  Useless!
14903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14905 if test "${ac_cv_working_alloca_h+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   if test x$gcc_no_link = xyes; then
14909   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14911    { (exit 1); exit 1; }; }
14912 fi
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 #include <alloca.h>
14920 int
14921 main ()
14922 {
14923 char *p = (char *) alloca (2 * sizeof (int));
14924   ;
14925   return 0;
14926 }
14927 _ACEOF
14928 rm -f conftest.$ac_objext conftest$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930   (eval $ac_link) 2>conftest.er1
14931   ac_status=$?
14932   grep -v '^ *+' conftest.er1 >conftest.err
14933   rm -f conftest.er1
14934   cat conftest.err >&5
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } &&
14937          { ac_try='test -z "$ac_c_werror_flag"
14938                          || test ! -s conftest.err'
14939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940   (eval $ac_try) 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); }; } &&
14944          { ac_try='test -s conftest$ac_exeext'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; }; then
14950   ac_cv_working_alloca_h=yes
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_cv_working_alloca_h=no
14956 fi
14957 rm -f conftest.err conftest.$ac_objext \
14958       conftest$ac_exeext conftest.$ac_ext
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14961 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14962 if test $ac_cv_working_alloca_h = yes; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_ALLOCA_H 1
14966 _ACEOF
14967
14968 fi
14969
14970 echo "$as_me:$LINENO: checking for alloca" >&5
14971 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14972 if test "${ac_cv_func_alloca_works+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   if test x$gcc_no_link = xyes; then
14976   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14978    { (exit 1); exit 1; }; }
14979 fi
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 #ifdef __GNUC__
14987 # define alloca __builtin_alloca
14988 #else
14989 # ifdef _MSC_VER
14990 #  include <malloc.h>
14991 #  define alloca _alloca
14992 # else
14993 #  if HAVE_ALLOCA_H
14994 #   include <alloca.h>
14995 #  else
14996 #   ifdef _AIX
14997  #pragma alloca
14998 #   else
14999 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15000 char *alloca ();
15001 #    endif
15002 #   endif
15003 #  endif
15004 # endif
15005 #endif
15006
15007 int
15008 main ()
15009 {
15010 char *p = (char *) alloca (1);
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017   (eval $ac_link) 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"
15025                          || test ! -s conftest.err'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; } &&
15031          { ac_try='test -s conftest$ac_exeext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   ac_cv_func_alloca_works=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 ac_cv_func_alloca_works=no
15043 fi
15044 rm -f conftest.err conftest.$ac_objext \
15045       conftest$ac_exeext conftest.$ac_ext
15046 fi
15047 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15048 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15049
15050 if test $ac_cv_func_alloca_works = yes; then
15051
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_ALLOCA 1
15054 _ACEOF
15055
15056 else
15057   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15058 # that cause trouble.  Some versions do not even contain alloca or
15059 # contain a buggy version.  If you still want to use their alloca,
15060 # use ar to extract alloca.o from them instead of compiling alloca.c.
15061
15062 ALLOCA=alloca.$ac_objext
15063
15064 cat >>confdefs.h <<\_ACEOF
15065 #define C_ALLOCA 1
15066 _ACEOF
15067
15068
15069 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15070 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15071 if test "${ac_cv_os_cray+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #if defined(CRAY) && ! defined(CRAY2)
15081 webecray
15082 #else
15083 wenotbecray
15084 #endif
15085
15086 _ACEOF
15087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15088   $EGREP "webecray" >/dev/null 2>&1; then
15089   ac_cv_os_cray=yes
15090 else
15091   ac_cv_os_cray=no
15092 fi
15093 rm -f conftest*
15094
15095 fi
15096 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15097 echo "${ECHO_T}$ac_cv_os_cray" >&6
15098 if test $ac_cv_os_cray = yes; then
15099   for ac_func in _getb67 GETB67 getb67; do
15100     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 echo "$as_me:$LINENO: checking for $ac_func" >&5
15102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15103 if eval "test \"\${$as_ac_var+set}\" = set"; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106   if test x$gcc_no_link = xyes; then
15107   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15109    { (exit 1); exit 1; }; }
15110 fi
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15119 #define $ac_func innocuous_$ac_func
15120
15121 /* System header to define __stub macros and hopefully few prototypes,
15122     which can conflict with char $ac_func (); below.
15123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15124     <limits.h> exists even on freestanding compilers.  */
15125
15126 #ifdef __STDC__
15127 # include <limits.h>
15128 #else
15129 # include <assert.h>
15130 #endif
15131
15132 #undef $ac_func
15133
15134 /* Override any gcc2 internal prototype to avoid an error.  */
15135 #ifdef __cplusplus
15136 extern "C"
15137 {
15138 #endif
15139 /* We use char because int might match the return type of a gcc2
15140    builtin and then its argument prototype would still apply.  */
15141 char $ac_func ();
15142 /* The GNU C library defines this for functions which it implements
15143     to always fail with ENOSYS.  Some functions are actually named
15144     something starting with __ and the normal name is an alias.  */
15145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15146 choke me
15147 #else
15148 char (*f) () = $ac_func;
15149 #endif
15150 #ifdef __cplusplus
15151 }
15152 #endif
15153
15154 int
15155 main ()
15156 {
15157 return f != $ac_func;
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164   (eval $ac_link) 2>conftest.er1
15165   ac_status=$?
15166   grep -v '^ *+' conftest.er1 >conftest.err
15167   rm -f conftest.er1
15168   cat conftest.err >&5
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } &&
15171          { ac_try='test -z "$ac_c_werror_flag"
15172                          || test ! -s conftest.err'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest$ac_exeext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   eval "$as_ac_var=yes"
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 eval "$as_ac_var=no"
15190 fi
15191 rm -f conftest.err conftest.$ac_objext \
15192       conftest$ac_exeext conftest.$ac_ext
15193 fi
15194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15196 if test `eval echo '${'$as_ac_var'}'` = yes; then
15197
15198 cat >>confdefs.h <<_ACEOF
15199 #define CRAY_STACKSEG_END $ac_func
15200 _ACEOF
15201
15202     break
15203 fi
15204
15205   done
15206 fi
15207
15208 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15209 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15210 if test "${ac_cv_c_stack_direction+set}" = set; then
15211   echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213   if test "$cross_compiling" = yes; then
15214   ac_cv_c_stack_direction=0
15215 else
15216   cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 int
15223 find_stack_direction ()
15224 {
15225   static char *addr = 0;
15226   auto char dummy;
15227   if (addr == 0)
15228     {
15229       addr = &dummy;
15230       return find_stack_direction ();
15231     }
15232   else
15233     return (&dummy > addr) ? 1 : -1;
15234 }
15235
15236 int
15237 main ()
15238 {
15239   exit (find_stack_direction () < 0);
15240 }
15241 _ACEOF
15242 rm -f conftest$ac_exeext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15244   (eval $ac_link) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   ac_cv_c_stack_direction=1
15254 else
15255   echo "$as_me: program exited with status $ac_status" >&5
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 ( exit $ac_status )
15260 ac_cv_c_stack_direction=-1
15261 fi
15262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15263 fi
15264 fi
15265 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15266 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15267
15268 cat >>confdefs.h <<_ACEOF
15269 #define STACK_DIRECTION $ac_cv_c_stack_direction
15270 _ACEOF
15271
15272
15273 fi
15274
15275 if test x$gcc_no_link = xyes; then
15276   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15277     ac_cv_func_mmap_fixed_mapped=no
15278   fi
15279 fi
15280 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15281
15282
15283 for ac_header in stdlib.h unistd.h
15284 do
15285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15287   echo "$as_me:$LINENO: checking for $ac_header" >&5
15288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 fi
15292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15294 else
15295   # Is the header compilable?
15296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15298 cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304 $ac_includes_default
15305 #include <$ac_header>
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309   (eval $ac_compile) 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag"
15317                          || test ! -s conftest.err'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_header_compiler=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ac_header_compiler=no
15335 fi
15336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 echo "${ECHO_T}$ac_header_compiler" >&6
15339
15340 # Is the header present?
15341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h.  */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h.  */
15349 #include <$ac_header>
15350 _ACEOF
15351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } >/dev/null; then
15359   if test -s conftest.err; then
15360     ac_cpp_err=$ac_c_preproc_warn_flag
15361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15362   else
15363     ac_cpp_err=
15364   fi
15365 else
15366   ac_cpp_err=yes
15367 fi
15368 if test -z "$ac_cpp_err"; then
15369   ac_header_preproc=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374   ac_header_preproc=no
15375 fi
15376 rm -f conftest.err conftest.$ac_ext
15377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15378 echo "${ECHO_T}$ac_header_preproc" >&6
15379
15380 # So?  What about this header?
15381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15382   yes:no: )
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15387     ac_header_preproc=yes
15388     ;;
15389   no:yes:* )
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15402     (
15403       cat <<\_ASBOX
15404 ## ---------------------------------- ##
15405 ## Report this to the libjava lists.  ##
15406 ## ---------------------------------- ##
15407 _ASBOX
15408     ) |
15409       sed "s/^/$as_me: WARNING:     /" >&2
15410     ;;
15411 esac
15412 echo "$as_me:$LINENO: checking for $ac_header" >&5
15413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15415   echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417   eval "$as_ac_Header=\$ac_header_preproc"
15418 fi
15419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15421
15422 fi
15423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15424   cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15426 _ACEOF
15427
15428 fi
15429
15430 done
15431
15432
15433 for ac_func in getpagesize
15434 do
15435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15436 echo "$as_me:$LINENO: checking for $ac_func" >&5
15437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_var+set}\" = set"; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   if test x$gcc_no_link = xyes; then
15442   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15444    { (exit 1); exit 1; }; }
15445 fi
15446 cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15454 #define $ac_func innocuous_$ac_func
15455
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char $ac_func (); below.
15458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459     <limits.h> exists even on freestanding compilers.  */
15460
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15466
15467 #undef $ac_func
15468
15469 /* Override any gcc2 internal prototype to avoid an error.  */
15470 #ifdef __cplusplus
15471 extern "C"
15472 {
15473 #endif
15474 /* We use char because int might match the return type of a gcc2
15475    builtin and then its argument prototype would still apply.  */
15476 char $ac_func ();
15477 /* The GNU C library defines this for functions which it implements
15478     to always fail with ENOSYS.  Some functions are actually named
15479     something starting with __ and the normal name is an alias.  */
15480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15481 choke me
15482 #else
15483 char (*f) () = $ac_func;
15484 #endif
15485 #ifdef __cplusplus
15486 }
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492 return f != $ac_func;
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499   (eval $ac_link) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest$ac_exeext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   eval "$as_ac_var=yes"
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 eval "$as_ac_var=no"
15525 fi
15526 rm -f conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 fi
15529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15531 if test `eval echo '${'$as_ac_var'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536 fi
15537 done
15538
15539 echo "$as_me:$LINENO: checking for working mmap" >&5
15540 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15541 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   if test "$cross_compiling" = yes; then
15545   ac_cv_func_mmap_fixed_mapped=no
15546 else
15547   cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 $ac_includes_default
15554 /* malloc might have been renamed as rpl_malloc. */
15555 #undef malloc
15556
15557 /* Thanks to Mike Haertel and Jim Avera for this test.
15558    Here is a matrix of mmap possibilities:
15559         mmap private not fixed
15560         mmap private fixed at somewhere currently unmapped
15561         mmap private fixed at somewhere already mapped
15562         mmap shared not fixed
15563         mmap shared fixed at somewhere currently unmapped
15564         mmap shared fixed at somewhere already mapped
15565    For private mappings, we should verify that changes cannot be read()
15566    back from the file, nor mmap's back from the file at a different
15567    address.  (There have been systems where private was not correctly
15568    implemented like the infamous i386 svr4.0, and systems where the
15569    VM page cache was not coherent with the file system buffer cache
15570    like early versions of FreeBSD and possibly contemporary NetBSD.)
15571    For shared mappings, we should conversely verify that changes get
15572    propagated back to all the places they're supposed to be.
15573
15574    Grep wants private fixed already mapped.
15575    The main things grep needs to know about mmap are:
15576    * does it exist and is it safe to write into the mmap'd area
15577    * how to use it (BSD variants)  */
15578
15579 #include <fcntl.h>
15580 #include <sys/mman.h>
15581
15582 #if !STDC_HEADERS && !HAVE_STDLIB_H
15583 char *malloc ();
15584 #endif
15585
15586 /* This mess was copied from the GNU getpagesize.h.  */
15587 #if !HAVE_GETPAGESIZE
15588 /* Assume that all systems that can run configure have sys/param.h.  */
15589 # if !HAVE_SYS_PARAM_H
15590 #  define HAVE_SYS_PARAM_H 1
15591 # endif
15592
15593 # ifdef _SC_PAGESIZE
15594 #  define getpagesize() sysconf(_SC_PAGESIZE)
15595 # else /* no _SC_PAGESIZE */
15596 #  if HAVE_SYS_PARAM_H
15597 #   include <sys/param.h>
15598 #   ifdef EXEC_PAGESIZE
15599 #    define getpagesize() EXEC_PAGESIZE
15600 #   else /* no EXEC_PAGESIZE */
15601 #    ifdef NBPG
15602 #     define getpagesize() NBPG * CLSIZE
15603 #     ifndef CLSIZE
15604 #      define CLSIZE 1
15605 #     endif /* no CLSIZE */
15606 #    else /* no NBPG */
15607 #     ifdef NBPC
15608 #      define getpagesize() NBPC
15609 #     else /* no NBPC */
15610 #      ifdef PAGESIZE
15611 #       define getpagesize() PAGESIZE
15612 #      endif /* PAGESIZE */
15613 #     endif /* no NBPC */
15614 #    endif /* no NBPG */
15615 #   endif /* no EXEC_PAGESIZE */
15616 #  else /* no HAVE_SYS_PARAM_H */
15617 #   define getpagesize() 8192   /* punt totally */
15618 #  endif /* no HAVE_SYS_PARAM_H */
15619 # endif /* no _SC_PAGESIZE */
15620
15621 #endif /* no HAVE_GETPAGESIZE */
15622
15623 int
15624 main ()
15625 {
15626   char *data, *data2, *data3;
15627   int i, pagesize;
15628   int fd;
15629
15630   pagesize = getpagesize ();
15631
15632   /* First, make a file with some known garbage in it. */
15633   data = (char *) malloc (pagesize);
15634   if (!data)
15635     exit (1);
15636   for (i = 0; i < pagesize; ++i)
15637     *(data + i) = rand ();
15638   umask (0);
15639   fd = creat ("conftest.mmap", 0600);
15640   if (fd < 0)
15641     exit (1);
15642   if (write (fd, data, pagesize) != pagesize)
15643     exit (1);
15644   close (fd);
15645
15646   /* Next, try to mmap the file at a fixed address which already has
15647      something else allocated at it.  If we can, also make sure that
15648      we see the same garbage.  */
15649   fd = open ("conftest.mmap", O_RDWR);
15650   if (fd < 0)
15651     exit (1);
15652   data2 = (char *) malloc (2 * pagesize);
15653   if (!data2)
15654     exit (1);
15655   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15656   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15657                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15658     exit (1);
15659   for (i = 0; i < pagesize; ++i)
15660     if (*(data + i) != *(data2 + i))
15661       exit (1);
15662
15663   /* Finally, make sure that changes to the mapped area do not
15664      percolate back to the file as seen by read().  (This is a bug on
15665      some variants of i386 svr4.0.)  */
15666   for (i = 0; i < pagesize; ++i)
15667     *(data2 + i) = *(data2 + i) + 1;
15668   data3 = (char *) malloc (pagesize);
15669   if (!data3)
15670     exit (1);
15671   if (read (fd, data3, pagesize) != pagesize)
15672     exit (1);
15673   for (i = 0; i < pagesize; ++i)
15674     if (*(data + i) != *(data3 + i))
15675       exit (1);
15676   close (fd);
15677   exit (0);
15678 }
15679 _ACEOF
15680 rm -f conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; }; then
15691   ac_cv_func_mmap_fixed_mapped=yes
15692 else
15693   echo "$as_me: program exited with status $ac_status" >&5
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ( exit $ac_status )
15698 ac_cv_func_mmap_fixed_mapped=no
15699 fi
15700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15701 fi
15702 fi
15703 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15704 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15705 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15706
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_MMAP 1
15709 _ACEOF
15710
15711 fi
15712 rm -f conftest.mmap
15713
15714 fi
15715
15716 for ac_prog in perl
15717 do
15718   # Extract the first word of "$ac_prog", so it can be a program name with args.
15719 set dummy $ac_prog; ac_word=$2
15720 echo "$as_me:$LINENO: checking for $ac_word" >&5
15721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15722 if test "${ac_cv_prog_PERL+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   if test -n "$PERL"; then
15726   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15727 else
15728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729 for as_dir in $PATH
15730 do
15731   IFS=$as_save_IFS
15732   test -z "$as_dir" && as_dir=.
15733   for ac_exec_ext in '' $ac_executable_extensions; do
15734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15735     ac_cv_prog_PERL="$ac_prog"
15736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15737     break 2
15738   fi
15739 done
15740 done
15741
15742 fi
15743 fi
15744 PERL=$ac_cv_prog_PERL
15745 if test -n "$PERL"; then
15746   echo "$as_me:$LINENO: result: $PERL" >&5
15747 echo "${ECHO_T}$PERL" >&6
15748 else
15749   echo "$as_me:$LINENO: result: no" >&5
15750 echo "${ECHO_T}no" >&6
15751 fi
15752
15753   test -n "$PERL" && break
15754 done
15755 test -n "$PERL" || PERL="false"
15756
15757
15758 SYSDEP_SOURCES=
15759 SIGNAL_HANDLER_AUX=
15760
15761 case "${host}" in
15762  i?86-*-linux*)
15763     SIGNAL_HANDLER=include/i386-signal.h
15764     ;;
15765  sparc*-sun-solaris*)
15766     SIGNAL_HANDLER=include/sparc-signal.h
15767     ;;
15768 # ia64-*)
15769 #    SYSDEP_SOURCES=sysdep/ia64.c
15770 #    test -d sysdep || mkdir sysdep
15771 #    ;;
15772  hppa*-*-linux*)
15773     SIGNAL_HANDLER=include/pa-signal.h
15774     ;;
15775  ia64-*-linux*)
15776     SIGNAL_HANDLER=include/dwarf2-signal.h
15777     ;;
15778  powerpc*-*-linux*)
15779     SIGNAL_HANDLER=include/powerpc-signal.h
15780     ;;
15781  alpha*-*-linux*)
15782     SIGNAL_HANDLER=include/dwarf2-signal.h
15783     ;;
15784  s390*-*-linux*)
15785     SIGNAL_HANDLER=include/s390-signal.h
15786     ;;
15787  x86_64*-*-linux*)
15788     SIGNAL_HANDLER=include/x86_64-signal.h
15789     SIGNAL_HANDLER_AUX=include/i386-signal.h
15790     ;;
15791  sparc*-*-linux*)
15792     SIGNAL_HANDLER=include/dwarf2-signal.h
15793     ;;
15794  sh-*-linux* | sh[34]*-*-linux*)
15795     SIGNAL_HANDLER=include/dwarf2-signal.h
15796     ;;
15797  *mingw*)
15798     SIGNAL_HANDLER=include/win32-signal.h
15799     ;;
15800  mips*-*-linux*)
15801     SIGNAL_HANDLER=include/mips-signal.h
15802     ;;
15803  *-*-darwin*)
15804     SIGNAL_HANDLER=include/darwin-signal.h
15805     ;;
15806  *)
15807     SIGNAL_HANDLER=include/default-signal.h
15808     ;;
15809 esac
15810
15811 # If we're using sjlj exceptions, forget what we just learned.
15812 if test "$enable_sjlj_exceptions" = yes; then
15813    SIGNAL_HANDLER=include/default-signal.h
15814    SIGNAL_HANDLER_AUX=
15815 fi
15816
15817 # Define here any compiler flags that you need in order to make backtrace() work.
15818 BACKTRACESPEC=
15819 case "${host}" in
15820  x86_64*-*-linux*|i?86-*)
15821     BACKTRACESPEC=-fno-omit-frame-pointer
15822     ;;
15823 esac
15824
15825
15826
15827
15828 if test -z "$SIGNAL_HANDLER_AUX"; then
15829   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15830 fi
15831
15832                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15833
15834
15835 if test "${multilib}" = "yes"; then
15836   multilib_arg="--enable-multilib"
15837 else
15838   multilib_arg=
15839 fi
15840
15841
15842
15843 here=`${PWDCMD-pwd}`
15844
15845
15846 # We get this from the environment.
15847
15848
15849                                                                                 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15850
15851
15852           ac_config_commands="$ac_config_commands default"
15853
15854
15855 cat >confcache <<\_ACEOF
15856 # This file is a shell script that caches the results of configure
15857 # tests run on this system so they can be shared between configure
15858 # scripts and configure runs, see configure's option --config-cache.
15859 # It is not useful on other systems.  If it contains results you don't
15860 # want to keep, you may remove or edit it.
15861 #
15862 # config.status only pays attention to the cache file if you give it
15863 # the --recheck option to rerun configure.
15864 #
15865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15867 # following values.
15868
15869 _ACEOF
15870
15871 # The following way of writing the cache mishandles newlines in values,
15872 # but we know of no workaround that is simple, portable, and efficient.
15873 # So, don't put newlines in cache variables' values.
15874 # Ultrix sh set writes to stderr and can't be redirected directly,
15875 # and sets the high bit in the cache file unless we assign to the vars.
15876 {
15877   (set) 2>&1 |
15878     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15879     *ac_space=\ *)
15880       # `set' does not quote correctly, so add quotes (double-quote
15881       # substitution turns \\\\ into \\, and sed turns \\ into \).
15882       sed -n \
15883         "s/'/'\\\\''/g;
15884           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15885       ;;
15886     *)
15887       # `set' quotes correctly as required by POSIX, so do not add quotes.
15888       sed -n \
15889         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15890       ;;
15891     esac;
15892 } |
15893   sed '
15894      t clear
15895      : clear
15896      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15897      t end
15898      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15899      : end' >>confcache
15900 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15901   if test -w $cache_file; then
15902     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15903     cat confcache >$cache_file
15904   else
15905     echo "not updating unwritable cache $cache_file"
15906   fi
15907 fi
15908 rm -f confcache
15909
15910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15911 # Let make expand exec_prefix.
15912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15913
15914 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15915 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15916 # trailing colons and then remove the whole line if VPATH becomes empty
15917 # (actually we leave an empty line to preserve line numbers).
15918 if test "x$srcdir" = x.; then
15919   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15920 s/:*\$(srcdir):*/:/;
15921 s/:*\${srcdir}:*/:/;
15922 s/:*@srcdir@:*/:/;
15923 s/^\([^=]*=[     ]*\):*/\1/;
15924 s/:*$//;
15925 s/^[^=]*=[       ]*$//;
15926 }'
15927 fi
15928
15929 DEFS=-DHAVE_CONFIG_H
15930
15931 ac_libobjs=
15932 ac_ltlibobjs=
15933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15934   # 1. Remove the extension, and $U if already installed.
15935   ac_i=`echo "$ac_i" |
15936          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15937   # 2. Add them.
15938   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15939   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15940 done
15941 LIBOBJS=$ac_libobjs
15942
15943 LTLIBOBJS=$ac_ltlibobjs
15944
15945
15946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15947   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15948 Usually this means the macro was only invoked conditionally." >&5
15949 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15950 Usually this means the macro was only invoked conditionally." >&2;}
15951    { (exit 1); exit 1; }; }
15952 fi
15953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15954   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15955 Usually this means the macro was only invoked conditionally." >&5
15956 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15957 Usually this means the macro was only invoked conditionally." >&2;}
15958    { (exit 1); exit 1; }; }
15959 fi
15960 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15961   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15962 Usually this means the macro was only invoked conditionally." >&5
15963 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15964 Usually this means the macro was only invoked conditionally." >&2;}
15965    { (exit 1); exit 1; }; }
15966 fi
15967 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15968   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15969 Usually this means the macro was only invoked conditionally." >&5
15970 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15971 Usually this means the macro was only invoked conditionally." >&2;}
15972    { (exit 1); exit 1; }; }
15973 fi
15974 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15975   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15976 Usually this means the macro was only invoked conditionally." >&5
15977 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15978 Usually this means the macro was only invoked conditionally." >&2;}
15979    { (exit 1); exit 1; }; }
15980 fi
15981 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15982   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15983 Usually this means the macro was only invoked conditionally." >&5
15984 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15985 Usually this means the macro was only invoked conditionally." >&2;}
15986    { (exit 1); exit 1; }; }
15987 fi
15988 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15989   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15990 Usually this means the macro was only invoked conditionally." >&5
15991 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15992 Usually this means the macro was only invoked conditionally." >&2;}
15993    { (exit 1); exit 1; }; }
15994 fi
15995 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15996   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15997 Usually this means the macro was only invoked conditionally." >&5
15998 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15999 Usually this means the macro was only invoked conditionally." >&2;}
16000    { (exit 1); exit 1; }; }
16001 fi
16002 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16003   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16004 Usually this means the macro was only invoked conditionally." >&5
16005 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16006 Usually this means the macro was only invoked conditionally." >&2;}
16007    { (exit 1); exit 1; }; }
16008 fi
16009 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16010   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16011 Usually this means the macro was only invoked conditionally." >&5
16012 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16013 Usually this means the macro was only invoked conditionally." >&2;}
16014    { (exit 1); exit 1; }; }
16015 fi
16016 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16017   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16018 Usually this means the macro was only invoked conditionally." >&5
16019 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16020 Usually this means the macro was only invoked conditionally." >&2;}
16021    { (exit 1); exit 1; }; }
16022 fi
16023 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16024   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16025 Usually this means the macro was only invoked conditionally." >&5
16026 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16027 Usually this means the macro was only invoked conditionally." >&2;}
16028    { (exit 1); exit 1; }; }
16029 fi
16030 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16031   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16032 Usually this means the macro was only invoked conditionally." >&5
16033 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16034 Usually this means the macro was only invoked conditionally." >&2;}
16035    { (exit 1); exit 1; }; }
16036 fi
16037 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16038   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16039 Usually this means the macro was only invoked conditionally." >&5
16040 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16041 Usually this means the macro was only invoked conditionally." >&2;}
16042    { (exit 1); exit 1; }; }
16043 fi
16044 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16045   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16046 Usually this means the macro was only invoked conditionally." >&5
16047 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16048 Usually this means the macro was only invoked conditionally." >&2;}
16049    { (exit 1); exit 1; }; }
16050 fi
16051 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16052   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16053 Usually this means the macro was only invoked conditionally." >&5
16054 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16055 Usually this means the macro was only invoked conditionally." >&2;}
16056    { (exit 1); exit 1; }; }
16057 fi
16058 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16059   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16060 Usually this means the macro was only invoked conditionally." >&5
16061 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16062 Usually this means the macro was only invoked conditionally." >&2;}
16063    { (exit 1); exit 1; }; }
16064 fi
16065 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16066   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16067 Usually this means the macro was only invoked conditionally." >&5
16068 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16069 Usually this means the macro was only invoked conditionally." >&2;}
16070    { (exit 1); exit 1; }; }
16071 fi
16072 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16073   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16074 Usually this means the macro was only invoked conditionally." >&5
16075 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16076 Usually this means the macro was only invoked conditionally." >&2;}
16077    { (exit 1); exit 1; }; }
16078 fi
16079 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16080   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16081 Usually this means the macro was only invoked conditionally." >&5
16082 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16083 Usually this means the macro was only invoked conditionally." >&2;}
16084    { (exit 1); exit 1; }; }
16085 fi
16086 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16087   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16088 Usually this means the macro was only invoked conditionally." >&5
16089 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16090 Usually this means the macro was only invoked conditionally." >&2;}
16091    { (exit 1); exit 1; }; }
16092 fi
16093 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16094   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16095 Usually this means the macro was only invoked conditionally." >&5
16096 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16097 Usually this means the macro was only invoked conditionally." >&2;}
16098    { (exit 1); exit 1; }; }
16099 fi
16100
16101 : ${CONFIG_STATUS=./config.status}
16102 ac_clean_files_save=$ac_clean_files
16103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16104 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16105 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16106 cat >$CONFIG_STATUS <<_ACEOF
16107 #! $SHELL
16108 # Generated by $as_me.
16109 # Run this file to recreate the current configuration.
16110 # Compiler output produced by configure, useful for debugging
16111 # configure, is in config.log if it exists.
16112
16113 debug=false
16114 ac_cs_recheck=false
16115 ac_cs_silent=false
16116 SHELL=\${CONFIG_SHELL-$SHELL}
16117 _ACEOF
16118
16119 cat >>$CONFIG_STATUS <<\_ACEOF
16120 ## --------------------- ##
16121 ## M4sh Initialization.  ##
16122 ## --------------------- ##
16123
16124 # Be Bourne compatible
16125 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16126   emulate sh
16127   NULLCMD=:
16128   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16129   # is contrary to our usage.  Disable this feature.
16130   alias -g '${1+"$@"}'='"$@"'
16131 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16132   set -o posix
16133 fi
16134 DUALCASE=1; export DUALCASE # for MKS sh
16135
16136 # Support unset when possible.
16137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16138   as_unset=unset
16139 else
16140   as_unset=false
16141 fi
16142
16143
16144 # Work around bugs in pre-3.0 UWIN ksh.
16145 $as_unset ENV MAIL MAILPATH
16146 PS1='$ '
16147 PS2='> '
16148 PS4='+ '
16149
16150 # NLS nuisances.
16151 for as_var in \
16152   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16153   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16154   LC_TELEPHONE LC_TIME
16155 do
16156   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16157     eval $as_var=C; export $as_var
16158   else
16159     $as_unset $as_var
16160   fi
16161 done
16162
16163 # Required to use basename.
16164 if expr a : '\(a\)' >/dev/null 2>&1; then
16165   as_expr=expr
16166 else
16167   as_expr=false
16168 fi
16169
16170 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16171   as_basename=basename
16172 else
16173   as_basename=false
16174 fi
16175
16176
16177 # Name of the executable.
16178 as_me=`$as_basename "$0" ||
16179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16180          X"$0" : 'X\(//\)$' \| \
16181          X"$0" : 'X\(/\)$' \| \
16182          .     : '\(.\)' 2>/dev/null ||
16183 echo X/"$0" |
16184     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16185           /^X\/\(\/\/\)$/{ s//\1/; q; }
16186           /^X\/\(\/\).*/{ s//\1/; q; }
16187           s/.*/./; q'`
16188
16189
16190 # PATH needs CR, and LINENO needs CR and PATH.
16191 # Avoid depending upon Character Ranges.
16192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16195 as_cr_digits='0123456789'
16196 as_cr_alnum=$as_cr_Letters$as_cr_digits
16197
16198 # The user is always right.
16199 if test "${PATH_SEPARATOR+set}" != set; then
16200   echo "#! /bin/sh" >conf$$.sh
16201   echo  "exit 0"   >>conf$$.sh
16202   chmod +x conf$$.sh
16203   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16204     PATH_SEPARATOR=';'
16205   else
16206     PATH_SEPARATOR=:
16207   fi
16208   rm -f conf$$.sh
16209 fi
16210
16211
16212   as_lineno_1=$LINENO
16213   as_lineno_2=$LINENO
16214   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16215   test "x$as_lineno_1" != "x$as_lineno_2" &&
16216   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16217   # Find who we are.  Look in the path if we contain no path at all
16218   # relative or not.
16219   case $0 in
16220     *[\\/]* ) as_myself=$0 ;;
16221     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $PATH
16223 do
16224   IFS=$as_save_IFS
16225   test -z "$as_dir" && as_dir=.
16226   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16227 done
16228
16229        ;;
16230   esac
16231   # We did not find ourselves, most probably we were run as `sh COMMAND'
16232   # in which case we are not to be found in the path.
16233   if test "x$as_myself" = x; then
16234     as_myself=$0
16235   fi
16236   if test ! -f "$as_myself"; then
16237     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16238 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16239    { (exit 1); exit 1; }; }
16240   fi
16241   case $CONFIG_SHELL in
16242   '')
16243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16245 do
16246   IFS=$as_save_IFS
16247   test -z "$as_dir" && as_dir=.
16248   for as_base in sh bash ksh sh5; do
16249          case $as_dir in
16250          /*)
16251            if ("$as_dir/$as_base" -c '
16252   as_lineno_1=$LINENO
16253   as_lineno_2=$LINENO
16254   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16255   test "x$as_lineno_1" != "x$as_lineno_2" &&
16256   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16257              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16258              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16259              CONFIG_SHELL=$as_dir/$as_base
16260              export CONFIG_SHELL
16261              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16262            fi;;
16263          esac
16264        done
16265 done
16266 ;;
16267   esac
16268
16269   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16270   # uniformly replaced by the line number.  The first 'sed' inserts a
16271   # line-number line before each line; the second 'sed' does the real
16272   # work.  The second script uses 'N' to pair each line-number line
16273   # with the numbered line, and appends trailing '-' during
16274   # substitution so that $LINENO is not a special case at line end.
16275   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16276   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16277   sed '=' <$as_myself |
16278     sed '
16279       N
16280       s,$,-,
16281       : loop
16282       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16283       t loop
16284       s,-$,,
16285       s,^['$as_cr_digits']*\n,,
16286     ' >$as_me.lineno &&
16287   chmod +x $as_me.lineno ||
16288     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16289 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16290    { (exit 1); exit 1; }; }
16291
16292   # Don't try to exec as it changes $[0], causing all sort of problems
16293   # (the dirname of $[0] is not the place where we might find the
16294   # original and so on.  Autoconf is especially sensible to this).
16295   . ./$as_me.lineno
16296   # Exit status is that of the last command.
16297   exit
16298 }
16299
16300
16301 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16302   *c*,-n*) ECHO_N= ECHO_C='
16303 ' ECHO_T='      ' ;;
16304   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16305   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16306 esac
16307
16308 if expr a : '\(a\)' >/dev/null 2>&1; then
16309   as_expr=expr
16310 else
16311   as_expr=false
16312 fi
16313
16314 rm -f conf$$ conf$$.exe conf$$.file
16315 echo >conf$$.file
16316 if ln -s conf$$.file conf$$ 2>/dev/null; then
16317   # We could just check for DJGPP; but this test a) works b) is more generic
16318   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16319   if test -f conf$$.exe; then
16320     # Don't use ln at all; we don't have any links
16321     as_ln_s='cp -p'
16322   else
16323     as_ln_s='ln -s'
16324   fi
16325 elif ln conf$$.file conf$$ 2>/dev/null; then
16326   as_ln_s=ln
16327 else
16328   as_ln_s='cp -p'
16329 fi
16330 rm -f conf$$ conf$$.exe conf$$.file
16331
16332 if mkdir -p . 2>/dev/null; then
16333   as_mkdir_p=:
16334 else
16335   test -d ./-p && rmdir ./-p
16336   as_mkdir_p=false
16337 fi
16338
16339 as_executable_p="test -f"
16340
16341 # Sed expression to map a string onto a valid CPP name.
16342 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16343
16344 # Sed expression to map a string onto a valid variable name.
16345 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16346
16347
16348 # IFS
16349 # We need space, tab and new line, in precisely that order.
16350 as_nl='
16351 '
16352 IFS="   $as_nl"
16353
16354 # CDPATH.
16355 $as_unset CDPATH
16356
16357 exec 6>&1
16358
16359 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16360 # report actual input values of CONFIG_FILES etc. instead of their
16361 # values after options handling.  Logging --version etc. is OK.
16362 exec 5>>config.log
16363 {
16364   echo
16365   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16366 ## Running $as_me. ##
16367 _ASBOX
16368 } >&5
16369 cat >&5 <<_CSEOF
16370
16371 This file was extended by libjava $as_me version-unused, which was
16372 generated by GNU Autoconf 2.59.  Invocation command line was
16373
16374   CONFIG_FILES    = $CONFIG_FILES
16375   CONFIG_HEADERS  = $CONFIG_HEADERS
16376   CONFIG_LINKS    = $CONFIG_LINKS
16377   CONFIG_COMMANDS = $CONFIG_COMMANDS
16378   $ $0 $@
16379
16380 _CSEOF
16381 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16382 echo >&5
16383 _ACEOF
16384
16385 # Files that config.status was made for.
16386 if test -n "$ac_config_files"; then
16387   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16388 fi
16389
16390 if test -n "$ac_config_headers"; then
16391   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16392 fi
16393
16394 if test -n "$ac_config_links"; then
16395   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16396 fi
16397
16398 if test -n "$ac_config_commands"; then
16399   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16400 fi
16401
16402 cat >>$CONFIG_STATUS <<\_ACEOF
16403
16404 ac_cs_usage="\
16405 \`$as_me' instantiates files from templates according to the
16406 current configuration.
16407
16408 Usage: $0 [OPTIONS] [FILE]...
16409
16410   -h, --help       print this help, then exit
16411   -V, --version    print version number, then exit
16412   -q, --quiet      do not print progress messages
16413   -d, --debug      don't remove temporary files
16414       --recheck    update $as_me by reconfiguring in the same conditions
16415   --file=FILE[:TEMPLATE]
16416                    instantiate the configuration file FILE
16417   --header=FILE[:TEMPLATE]
16418                    instantiate the configuration header FILE
16419
16420 Configuration files:
16421 $config_files
16422
16423 Configuration headers:
16424 $config_headers
16425
16426 Configuration links:
16427 $config_links
16428
16429 Configuration commands:
16430 $config_commands
16431
16432 Report bugs to <bug-autoconf@gnu.org>."
16433 _ACEOF
16434
16435 cat >>$CONFIG_STATUS <<_ACEOF
16436 ac_cs_version="\\
16437 libjava config.status version-unused
16438 configured by $0, generated by GNU Autoconf 2.59,
16439   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16440
16441 Copyright (C) 2003 Free Software Foundation, Inc.
16442 This config.status script is free software; the Free Software Foundation
16443 gives unlimited permission to copy, distribute and modify it."
16444 srcdir=$srcdir
16445 INSTALL="$INSTALL"
16446 _ACEOF
16447
16448 cat >>$CONFIG_STATUS <<\_ACEOF
16449 # If no file are specified by the user, then we need to provide default
16450 # value.  By we need to know if files were specified by the user.
16451 ac_need_defaults=:
16452 while test $# != 0
16453 do
16454   case $1 in
16455   --*=*)
16456     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16457     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16458     ac_shift=:
16459     ;;
16460   -*)
16461     ac_option=$1
16462     ac_optarg=$2
16463     ac_shift=shift
16464     ;;
16465   *) # This is not an option, so the user has probably given explicit
16466      # arguments.
16467      ac_option=$1
16468      ac_need_defaults=false;;
16469   esac
16470
16471   case $ac_option in
16472   # Handling of the options.
16473 _ACEOF
16474 cat >>$CONFIG_STATUS <<\_ACEOF
16475   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16476     ac_cs_recheck=: ;;
16477   --version | --vers* | -V )
16478     echo "$ac_cs_version"; exit 0 ;;
16479   --he | --h)
16480     # Conflict between --help and --header
16481     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16482 Try \`$0 --help' for more information." >&5
16483 echo "$as_me: error: ambiguous option: $1
16484 Try \`$0 --help' for more information." >&2;}
16485    { (exit 1); exit 1; }; };;
16486   --help | --hel | -h )
16487     echo "$ac_cs_usage"; exit 0 ;;
16488   --debug | --d* | -d )
16489     debug=: ;;
16490   --file | --fil | --fi | --f )
16491     $ac_shift
16492     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16493     ac_need_defaults=false;;
16494   --header | --heade | --head | --hea )
16495     $ac_shift
16496     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16497     ac_need_defaults=false;;
16498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16499   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16500     ac_cs_silent=: ;;
16501
16502   # This is an error.
16503   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16504 Try \`$0 --help' for more information." >&5
16505 echo "$as_me: error: unrecognized option: $1
16506 Try \`$0 --help' for more information." >&2;}
16507    { (exit 1); exit 1; }; } ;;
16508
16509   *) ac_config_targets="$ac_config_targets $1" ;;
16510
16511   esac
16512   shift
16513 done
16514
16515 ac_configure_extra_args=
16516
16517 if $ac_cs_silent; then
16518   exec 6>/dev/null
16519   ac_configure_extra_args="$ac_configure_extra_args --silent"
16520 fi
16521
16522 _ACEOF
16523 cat >>$CONFIG_STATUS <<_ACEOF
16524 if \$ac_cs_recheck; then
16525   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16526   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16527 fi
16528
16529 _ACEOF
16530
16531 cat >>$CONFIG_STATUS <<_ACEOF
16532 #
16533 # INIT-COMMANDS section.
16534 #
16535
16536 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16537 srcdir=${srcdir}
16538 host=${host}
16539 target=${target}
16540 with_multisubdir=${with_multisubdir}
16541 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16542 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16543 libgcj_basedir=${libgcj_basedir}
16544 CC="${CC}"
16545 CXX="${CXX}"
16546 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16547
16548
16549 _ACEOF
16550
16551
16552
16553 cat >>$CONFIG_STATUS <<\_ACEOF
16554 for ac_config_target in $ac_config_targets
16555 do
16556   case "$ac_config_target" in
16557   # Handling of arguments.
16558   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16559   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16560   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16561   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16562   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16563   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16564   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16565   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16566   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16567   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16568   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16569   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16570   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16571   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16572   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16573   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16574   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16575   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16576   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16577   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16578   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16579   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16580   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16581   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16582   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16583   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16584   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16585   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16586   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16587 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16588    { (exit 1); exit 1; }; };;
16589   esac
16590 done
16591
16592 # If the user did not use the arguments to specify the items to instantiate,
16593 # then the envvar interface is used.  Set only those that are not.
16594 # We use the long form for the default assignment because of an extremely
16595 # bizarre bug on SunOS 4.1.3.
16596 if $ac_need_defaults; then
16597   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16598   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16599   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16600   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16601 fi
16602
16603 # Have a temporary directory for convenience.  Make it in the build tree
16604 # simply because there is no reason to put it here, and in addition,
16605 # creating and moving files from /tmp can sometimes cause problems.
16606 # Create a temporary directory, and hook for its removal unless debugging.
16607 $debug ||
16608 {
16609   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16610   trap '{ (exit 1); exit 1; }' 1 2 13 15
16611 }
16612
16613 # Create a (secure) tmp directory for tmp files.
16614
16615 {
16616   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16617   test -n "$tmp" && test -d "$tmp"
16618 }  ||
16619 {
16620   tmp=./confstat$$-$RANDOM
16621   (umask 077 && mkdir $tmp)
16622 } ||
16623 {
16624    echo "$me: cannot create a temporary directory in ." >&2
16625    { (exit 1); exit 1; }
16626 }
16627
16628 _ACEOF
16629
16630 cat >>$CONFIG_STATUS <<_ACEOF
16631
16632 #
16633 # CONFIG_FILES section.
16634 #
16635
16636 # No need to generate the scripts if there are no CONFIG_FILES.
16637 # This happens for instance when ./config.status config.h
16638 if test -n "\$CONFIG_FILES"; then
16639   # Protect against being on the right side of a sed subst in config.status.
16640   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16641    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16642 s,@SHELL@,$SHELL,;t t
16643 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16644 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16645 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16646 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16647 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16648 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16649 s,@exec_prefix@,$exec_prefix,;t t
16650 s,@prefix@,$prefix,;t t
16651 s,@program_transform_name@,$program_transform_name,;t t
16652 s,@bindir@,$bindir,;t t
16653 s,@sbindir@,$sbindir,;t t
16654 s,@libexecdir@,$libexecdir,;t t
16655 s,@datadir@,$datadir,;t t
16656 s,@sysconfdir@,$sysconfdir,;t t
16657 s,@sharedstatedir@,$sharedstatedir,;t t
16658 s,@localstatedir@,$localstatedir,;t t
16659 s,@libdir@,$libdir,;t t
16660 s,@includedir@,$includedir,;t t
16661 s,@oldincludedir@,$oldincludedir,;t t
16662 s,@infodir@,$infodir,;t t
16663 s,@mandir@,$mandir,;t t
16664 s,@build_alias@,$build_alias,;t t
16665 s,@host_alias@,$host_alias,;t t
16666 s,@target_alias@,$target_alias,;t t
16667 s,@DEFS@,$DEFS,;t t
16668 s,@ECHO_C@,$ECHO_C,;t t
16669 s,@ECHO_N@,$ECHO_N,;t t
16670 s,@ECHO_T@,$ECHO_T,;t t
16671 s,@LIBS@,$LIBS,;t t
16672 s,@libgcj_basedir@,$libgcj_basedir,;t t
16673 s,@build@,$build,;t t
16674 s,@build_cpu@,$build_cpu,;t t
16675 s,@build_vendor@,$build_vendor,;t t
16676 s,@build_os@,$build_os,;t t
16677 s,@host@,$host,;t t
16678 s,@host_cpu@,$host_cpu,;t t
16679 s,@host_vendor@,$host_vendor,;t t
16680 s,@host_os@,$host_os,;t t
16681 s,@target@,$target,;t t
16682 s,@target_cpu@,$target_cpu,;t t
16683 s,@target_vendor@,$target_vendor,;t t
16684 s,@target_os@,$target_os,;t t
16685 s,@target_noncanonical@,$target_noncanonical,;t t
16686 s,@LN_S@,$LN_S,;t t
16687 s,@mkinstalldirs@,$mkinstalldirs,;t t
16688 s,@CC@,$CC,;t t
16689 s,@ac_ct_CC@,$ac_ct_CC,;t t
16690 s,@EXEEXT@,$EXEEXT,;t t
16691 s,@OBJEXT@,$OBJEXT,;t t
16692 s,@CXX@,$CXX,;t t
16693 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16694 s,@CFLAGS@,$CFLAGS,;t t
16695 s,@CXXFLAGS@,$CXXFLAGS,;t t
16696 s,@LDFLAGS@,$LDFLAGS,;t t
16697 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16698 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16699 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16700 s,@CYGPATH_W@,$CYGPATH_W,;t t
16701 s,@PACKAGE@,$PACKAGE,;t t
16702 s,@VERSION@,$VERSION,;t t
16703 s,@ACLOCAL@,$ACLOCAL,;t t
16704 s,@AUTOCONF@,$AUTOCONF,;t t
16705 s,@AUTOMAKE@,$AUTOMAKE,;t t
16706 s,@AUTOHEADER@,$AUTOHEADER,;t t
16707 s,@MAKEINFO@,$MAKEINFO,;t t
16708 s,@install_sh@,$install_sh,;t t
16709 s,@STRIP@,$STRIP,;t t
16710 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16711 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16712 s,@mkdir_p@,$mkdir_p,;t t
16713 s,@AWK@,$AWK,;t t
16714 s,@SET_MAKE@,$SET_MAKE,;t t
16715 s,@am__leading_dot@,$am__leading_dot,;t t
16716 s,@AMTAR@,$AMTAR,;t t
16717 s,@am__tar@,$am__tar,;t t
16718 s,@am__untar@,$am__untar,;t t
16719 s,@DEPDIR@,$DEPDIR,;t t
16720 s,@am__include@,$am__include,;t t
16721 s,@am__quote@,$am__quote,;t t
16722 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16723 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16724 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16725 s,@CCDEPMODE@,$CCDEPMODE,;t t
16726 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16727 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16728 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16729 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16730 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16731 s,@AS@,$AS,;t t
16732 s,@ac_ct_AS@,$ac_ct_AS,;t t
16733 s,@AR@,$AR,;t t
16734 s,@ac_ct_AR@,$ac_ct_AR,;t t
16735 s,@RANLIB@,$RANLIB,;t t
16736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16737 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16738 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16739 s,@MAINT@,$MAINT,;t t
16740 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16741 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16742 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16743 s,@INCLTDL@,$INCLTDL,;t t
16744 s,@LIBLTDL@,$LIBLTDL,;t t
16745 s,@DIRLTDL@,$DIRLTDL,;t t
16746 s,@LIBTOOL@,$LIBTOOL,;t t
16747 s,@CXXCPP@,$CXXCPP,;t t
16748 s,@CPPFLAGS@,$CPPFLAGS,;t t
16749 s,@GCJ@,$GCJ,;t t
16750 s,@GCJFLAGS@,$GCJFLAGS,;t t
16751 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16752 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16753 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16754 s,@subdirs@,$subdirs,;t t
16755 s,@COMPPATH@,$COMPPATH,;t t
16756 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16757 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16758 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16759 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16760 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16761 s,@INTERPRETER@,$INTERPRETER,;t t
16762 s,@LIBFFI@,$LIBFFI,;t t
16763 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16764 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16765 s,@CPP@,$CPP,;t t
16766 s,@EGREP@,$EGREP,;t t
16767 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16768 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16769 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16770 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16771 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16772 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16773 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16774 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16775 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16776 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16777 s,@X_CFLAGS@,$X_CFLAGS,;t t
16778 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16779 s,@X_LIBS@,$X_LIBS,;t t
16780 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16781 s,@TOOLKIT@,$TOOLKIT,;t t
16782 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16783 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16784 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16785 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16786 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16787 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16788 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16789 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16790 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16791 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16792 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16793 s,@GCLIBS@,$GCLIBS,;t t
16794 s,@GCINCS@,$GCINCS,;t t
16795 s,@GCDEPS@,$GCDEPS,;t t
16796 s,@GCSPEC@,$GCSPEC,;t t
16797 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16798 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16799 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16800 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16801 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16802 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16803 s,@THREADLIBS@,$THREADLIBS,;t t
16804 s,@THREADINCS@,$THREADINCS,;t t
16805 s,@THREADDEPS@,$THREADDEPS,;t t
16806 s,@THREADSPEC@,$THREADSPEC,;t t
16807 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16808 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16809 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16810 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16811 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16812 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16813 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16814 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16815 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16816 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16817 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16818 s,@tool_include_dir@,$tool_include_dir,;t t
16819 s,@gcc_version@,$gcc_version,;t t
16820 s,@LIBICONV@,$LIBICONV,;t t
16821 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16822 s,@GTK_LIBS@,$GTK_LIBS,;t t
16823 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16824 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16825 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16826 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16827 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16828 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16829 s,@GCJH@,$GCJH,;t t
16830 s,@ZIP@,$ZIP,;t t
16831 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16832 s,@ZLIBS@,$ZLIBS,;t t
16833 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16834 s,@ZINCS@,$ZINCS,;t t
16835 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16836 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16837 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16838 s,@IEEESPEC@,$IEEESPEC,;t t
16839 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16840 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16841 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16842 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16843 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16844 s,@toolexecdir@,$toolexecdir,;t t
16845 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16846 s,@toolexeclibdir@,$toolexeclibdir,;t t
16847 s,@GCJVERSION@,$GCJVERSION,;t t
16848 s,@ALLOCA@,$ALLOCA,;t t
16849 s,@PERL@,$PERL,;t t
16850 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16851 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16852 s,@here@,$here,;t t
16853 s,@LIBOBJS@,$LIBOBJS,;t t
16854 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16855 CEOF
16856
16857 _ACEOF
16858
16859   cat >>$CONFIG_STATUS <<\_ACEOF
16860   # Split the substitutions into bite-sized pieces for seds with
16861   # small command number limits, like on Digital OSF/1 and HP-UX.
16862   ac_max_sed_lines=48
16863   ac_sed_frag=1 # Number of current file.
16864   ac_beg=1 # First line for current file.
16865   ac_end=$ac_max_sed_lines # Line after last line for current file.
16866   ac_more_lines=:
16867   ac_sed_cmds=
16868   while $ac_more_lines; do
16869     if test $ac_beg -gt 1; then
16870       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16871     else
16872       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16873     fi
16874     if test ! -s $tmp/subs.frag; then
16875       ac_more_lines=false
16876     else
16877       # The purpose of the label and of the branching condition is to
16878       # speed up the sed processing (if there are no `@' at all, there
16879       # is no need to browse any of the substitutions).
16880       # These are the two extra sed commands mentioned above.
16881       (echo ':t
16882   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16883       if test -z "$ac_sed_cmds"; then
16884         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16885       else
16886         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16887       fi
16888       ac_sed_frag=`expr $ac_sed_frag + 1`
16889       ac_beg=$ac_end
16890       ac_end=`expr $ac_end + $ac_max_sed_lines`
16891     fi
16892   done
16893   if test -z "$ac_sed_cmds"; then
16894     ac_sed_cmds=cat
16895   fi
16896 fi # test -n "$CONFIG_FILES"
16897
16898 _ACEOF
16899 cat >>$CONFIG_STATUS <<\_ACEOF
16900 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16901   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16902   case $ac_file in
16903   - | *:- | *:-:* ) # input from stdin
16904         cat >$tmp/stdin
16905         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16907   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16908         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16909   * )   ac_file_in=$ac_file.in ;;
16910   esac
16911
16912   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16913   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16915          X"$ac_file" : 'X\(//\)[^/]' \| \
16916          X"$ac_file" : 'X\(//\)$' \| \
16917          X"$ac_file" : 'X\(/\)' \| \
16918          .     : '\(.\)' 2>/dev/null ||
16919 echo X"$ac_file" |
16920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16921           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16922           /^X\(\/\/\)$/{ s//\1/; q; }
16923           /^X\(\/\).*/{ s//\1/; q; }
16924           s/.*/./; q'`
16925   { if $as_mkdir_p; then
16926     mkdir -p "$ac_dir"
16927   else
16928     as_dir="$ac_dir"
16929     as_dirs=
16930     while test ! -d "$as_dir"; do
16931       as_dirs="$as_dir $as_dirs"
16932       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16934          X"$as_dir" : 'X\(//\)[^/]' \| \
16935          X"$as_dir" : 'X\(//\)$' \| \
16936          X"$as_dir" : 'X\(/\)' \| \
16937          .     : '\(.\)' 2>/dev/null ||
16938 echo X"$as_dir" |
16939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16941           /^X\(\/\/\)$/{ s//\1/; q; }
16942           /^X\(\/\).*/{ s//\1/; q; }
16943           s/.*/./; q'`
16944     done
16945     test ! -n "$as_dirs" || mkdir $as_dirs
16946   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16948    { (exit 1); exit 1; }; }; }
16949
16950   ac_builddir=.
16951
16952 if test "$ac_dir" != .; then
16953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16954   # A "../" for each directory in $ac_dir_suffix.
16955   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16956 else
16957   ac_dir_suffix= ac_top_builddir=
16958 fi
16959
16960 case $srcdir in
16961   .)  # No --srcdir option.  We are building in place.
16962     ac_srcdir=.
16963     if test -z "$ac_top_builddir"; then
16964        ac_top_srcdir=.
16965     else
16966        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16967     fi ;;
16968   [\\/]* | ?:[\\/]* )  # Absolute path.
16969     ac_srcdir=$srcdir$ac_dir_suffix;
16970     ac_top_srcdir=$srcdir ;;
16971   *) # Relative path.
16972     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16973     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16974 esac
16975
16976 # Do not use `cd foo && pwd` to compute absolute paths, because
16977 # the directories may not exist.
16978 case `pwd` in
16979 .) ac_abs_builddir="$ac_dir";;
16980 *)
16981   case "$ac_dir" in
16982   .) ac_abs_builddir=`pwd`;;
16983   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16984   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16985   esac;;
16986 esac
16987 case $ac_abs_builddir in
16988 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16989 *)
16990   case ${ac_top_builddir}. in
16991   .) ac_abs_top_builddir=$ac_abs_builddir;;
16992   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16993   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16994   esac;;
16995 esac
16996 case $ac_abs_builddir in
16997 .) ac_abs_srcdir=$ac_srcdir;;
16998 *)
16999   case $ac_srcdir in
17000   .) ac_abs_srcdir=$ac_abs_builddir;;
17001   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17002   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17003   esac;;
17004 esac
17005 case $ac_abs_builddir in
17006 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17007 *)
17008   case $ac_top_srcdir in
17009   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17010   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17011   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17012   esac;;
17013 esac
17014
17015
17016   case $INSTALL in
17017   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17018   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17019   esac
17020
17021   if test x"$ac_file" != x-; then
17022     { echo "$as_me:$LINENO: creating $ac_file" >&5
17023 echo "$as_me: creating $ac_file" >&6;}
17024     rm -f "$ac_file"
17025   fi
17026   # Let's still pretend it is `configure' which instantiates (i.e., don't
17027   # use $as_me), people would be surprised to read:
17028   #    /* config.h.  Generated by config.status.  */
17029   if test x"$ac_file" = x-; then
17030     configure_input=
17031   else
17032     configure_input="$ac_file.  "
17033   fi
17034   configure_input=$configure_input"Generated from `echo $ac_file_in |
17035                                      sed 's,.*/,,'` by configure."
17036
17037   # First look for the input files in the build tree, otherwise in the
17038   # src tree.
17039   ac_file_inputs=`IFS=:
17040     for f in $ac_file_in; do
17041       case $f in
17042       -) echo $tmp/stdin ;;
17043       [\\/$]*)
17044          # Absolute (can't be DOS-style, as IFS=:)
17045          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17046 echo "$as_me: error: cannot find input file: $f" >&2;}
17047    { (exit 1); exit 1; }; }
17048          echo "$f";;
17049       *) # Relative
17050          if test -f "$f"; then
17051            # Build tree
17052            echo "$f"
17053          elif test -f "$srcdir/$f"; then
17054            # Source tree
17055            echo "$srcdir/$f"
17056          else
17057            # /dev/null tree
17058            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17059 echo "$as_me: error: cannot find input file: $f" >&2;}
17060    { (exit 1); exit 1; }; }
17061          fi;;
17062       esac
17063     done` || { (exit 1); exit 1; }
17064 _ACEOF
17065 cat >>$CONFIG_STATUS <<_ACEOF
17066   sed "$ac_vpsub
17067 $extrasub
17068 _ACEOF
17069 cat >>$CONFIG_STATUS <<\_ACEOF
17070 :t
17071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17072 s,@configure_input@,$configure_input,;t t
17073 s,@srcdir@,$ac_srcdir,;t t
17074 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17075 s,@top_srcdir@,$ac_top_srcdir,;t t
17076 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17077 s,@builddir@,$ac_builddir,;t t
17078 s,@abs_builddir@,$ac_abs_builddir,;t t
17079 s,@top_builddir@,$ac_top_builddir,;t t
17080 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17081 s,@INSTALL@,$ac_INSTALL,;t t
17082 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17083   rm -f $tmp/stdin
17084   if test x"$ac_file" != x-; then
17085     mv $tmp/out $ac_file
17086   else
17087     cat $tmp/out
17088     rm -f $tmp/out
17089   fi
17090
17091 done
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<\_ACEOF
17094
17095 #
17096 # CONFIG_HEADER section.
17097 #
17098
17099 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17100 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17101 #
17102 # ac_d sets the value in "#define NAME VALUE" lines.
17103 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17104 ac_dB='[         ].*$,\1#\2'
17105 ac_dC=' '
17106 ac_dD=',;t'
17107 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17108 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17109 ac_uB='$,\1#\2define\3'
17110 ac_uC=' '
17111 ac_uD=',;t'
17112
17113 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17114   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17115   case $ac_file in
17116   - | *:- | *:-:* ) # input from stdin
17117         cat >$tmp/stdin
17118         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17120   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17121         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17122   * )   ac_file_in=$ac_file.in ;;
17123   esac
17124
17125   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17126 echo "$as_me: creating $ac_file" >&6;}
17127
17128   # First look for the input files in the build tree, otherwise in the
17129   # src tree.
17130   ac_file_inputs=`IFS=:
17131     for f in $ac_file_in; do
17132       case $f in
17133       -) echo $tmp/stdin ;;
17134       [\\/$]*)
17135          # Absolute (can't be DOS-style, as IFS=:)
17136          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17137 echo "$as_me: error: cannot find input file: $f" >&2;}
17138    { (exit 1); exit 1; }; }
17139          # Do quote $f, to prevent DOS paths from being IFS'd.
17140          echo "$f";;
17141       *) # Relative
17142          if test -f "$f"; then
17143            # Build tree
17144            echo "$f"
17145          elif test -f "$srcdir/$f"; then
17146            # Source tree
17147            echo "$srcdir/$f"
17148          else
17149            # /dev/null tree
17150            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17151 echo "$as_me: error: cannot find input file: $f" >&2;}
17152    { (exit 1); exit 1; }; }
17153          fi;;
17154       esac
17155     done` || { (exit 1); exit 1; }
17156   # Remove the trailing spaces.
17157   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17158
17159 _ACEOF
17160
17161 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17162 # `conftest.undefs', that substitutes the proper values into
17163 # config.h.in to produce config.h.  The first handles `#define'
17164 # templates, and the second `#undef' templates.
17165 # And first: Protect against being on the right side of a sed subst in
17166 # config.status.  Protect against being in an unquoted here document
17167 # in config.status.
17168 rm -f conftest.defines conftest.undefs
17169 # Using a here document instead of a string reduces the quoting nightmare.
17170 # Putting comments in sed scripts is not portable.
17171 #
17172 # `end' is used to avoid that the second main sed command (meant for
17173 # 0-ary CPP macros) applies to n-ary macro definitions.
17174 # See the Autoconf documentation for `clear'.
17175 cat >confdef2sed.sed <<\_ACEOF
17176 s/[\\&,]/\\&/g
17177 s,[\\$`],\\&,g
17178 t clear
17179 : clear
17180 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17181 t end
17182 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17183 : end
17184 _ACEOF
17185 # If some macros were called several times there might be several times
17186 # the same #defines, which is useless.  Nevertheless, we may not want to
17187 # sort them, since we want the *last* AC-DEFINE to be honored.
17188 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17189 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17190 rm -f confdef2sed.sed
17191
17192 # This sed command replaces #undef with comments.  This is necessary, for
17193 # example, in the case of _POSIX_SOURCE, which is predefined and required
17194 # on some systems where configure will not decide to define it.
17195 cat >>conftest.undefs <<\_ACEOF
17196 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17197 _ACEOF
17198
17199 # Break up conftest.defines because some shells have a limit on the size
17200 # of here documents, and old seds have small limits too (100 cmds).
17201 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17202 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17203 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17204 echo '  :' >>$CONFIG_STATUS
17205 rm -f conftest.tail
17206 while grep . conftest.defines >/dev/null
17207 do
17208   # Write a limited-size here document to $tmp/defines.sed.
17209   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17210   # Speed up: don't consider the non `#define' lines.
17211   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17212   # Work around the forget-to-reset-the-flag bug.
17213   echo 't clr' >>$CONFIG_STATUS
17214   echo ': clr' >>$CONFIG_STATUS
17215   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17216   echo 'CEOF
17217   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17218   rm -f $tmp/in
17219   mv $tmp/out $tmp/in
17220 ' >>$CONFIG_STATUS
17221   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17222   rm -f conftest.defines
17223   mv conftest.tail conftest.defines
17224 done
17225 rm -f conftest.defines
17226 echo '  fi # grep' >>$CONFIG_STATUS
17227 echo >>$CONFIG_STATUS
17228
17229 # Break up conftest.undefs because some shells have a limit on the size
17230 # of here documents, and old seds have small limits too (100 cmds).
17231 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17232 rm -f conftest.tail
17233 while grep . conftest.undefs >/dev/null
17234 do
17235   # Write a limited-size here document to $tmp/undefs.sed.
17236   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17237   # Speed up: don't consider the non `#undef'
17238   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17239   # Work around the forget-to-reset-the-flag bug.
17240   echo 't clr' >>$CONFIG_STATUS
17241   echo ': clr' >>$CONFIG_STATUS
17242   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17243   echo 'CEOF
17244   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17245   rm -f $tmp/in
17246   mv $tmp/out $tmp/in
17247 ' >>$CONFIG_STATUS
17248   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17249   rm -f conftest.undefs
17250   mv conftest.tail conftest.undefs
17251 done
17252 rm -f conftest.undefs
17253
17254 cat >>$CONFIG_STATUS <<\_ACEOF
17255   # Let's still pretend it is `configure' which instantiates (i.e., don't
17256   # use $as_me), people would be surprised to read:
17257   #    /* config.h.  Generated by config.status.  */
17258   if test x"$ac_file" = x-; then
17259     echo "/* Generated by configure.  */" >$tmp/config.h
17260   else
17261     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17262   fi
17263   cat $tmp/in >>$tmp/config.h
17264   rm -f $tmp/in
17265   if test x"$ac_file" != x-; then
17266     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17267       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17268 echo "$as_me: $ac_file is unchanged" >&6;}
17269     else
17270       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17272          X"$ac_file" : 'X\(//\)[^/]' \| \
17273          X"$ac_file" : 'X\(//\)$' \| \
17274          X"$ac_file" : 'X\(/\)' \| \
17275          .     : '\(.\)' 2>/dev/null ||
17276 echo X"$ac_file" |
17277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17278           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17279           /^X\(\/\/\)$/{ s//\1/; q; }
17280           /^X\(\/\).*/{ s//\1/; q; }
17281           s/.*/./; q'`
17282       { if $as_mkdir_p; then
17283     mkdir -p "$ac_dir"
17284   else
17285     as_dir="$ac_dir"
17286     as_dirs=
17287     while test ! -d "$as_dir"; do
17288       as_dirs="$as_dir $as_dirs"
17289       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17291          X"$as_dir" : 'X\(//\)[^/]' \| \
17292          X"$as_dir" : 'X\(//\)$' \| \
17293          X"$as_dir" : 'X\(/\)' \| \
17294          .     : '\(.\)' 2>/dev/null ||
17295 echo X"$as_dir" |
17296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17298           /^X\(\/\/\)$/{ s//\1/; q; }
17299           /^X\(\/\).*/{ s//\1/; q; }
17300           s/.*/./; q'`
17301     done
17302     test ! -n "$as_dirs" || mkdir $as_dirs
17303   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17305    { (exit 1); exit 1; }; }; }
17306
17307       rm -f $ac_file
17308       mv $tmp/config.h $ac_file
17309     fi
17310   else
17311     cat $tmp/config.h
17312     rm -f $tmp/config.h
17313   fi
17314 # Compute $ac_file's index in $config_headers.
17315 _am_stamp_count=1
17316 for _am_header in $config_headers :; do
17317   case $_am_header in
17318     $ac_file | $ac_file:* )
17319       break ;;
17320     * )
17321       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17322   esac
17323 done
17324 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17325 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326          X$ac_file : 'X\(//\)[^/]' \| \
17327          X$ac_file : 'X\(//\)$' \| \
17328          X$ac_file : 'X\(/\)' \| \
17329          .     : '\(.\)' 2>/dev/null ||
17330 echo X$ac_file |
17331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17332           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17333           /^X\(\/\/\)$/{ s//\1/; q; }
17334           /^X\(\/\).*/{ s//\1/; q; }
17335           s/.*/./; q'`/stamp-h$_am_stamp_count
17336 done
17337 _ACEOF
17338 cat >>$CONFIG_STATUS <<\_ACEOF
17339
17340 #
17341 # CONFIG_LINKS section.
17342 #
17343
17344 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17345   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17346   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17347
17348   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17349 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17350
17351   if test ! -r $srcdir/$ac_source; then
17352     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17353 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17354    { (exit 1); exit 1; }; }
17355   fi
17356   rm -f $ac_dest
17357
17358   # Make relative symlinks.
17359   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17360 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17361          X"$ac_dest" : 'X\(//\)[^/]' \| \
17362          X"$ac_dest" : 'X\(//\)$' \| \
17363          X"$ac_dest" : 'X\(/\)' \| \
17364          .     : '\(.\)' 2>/dev/null ||
17365 echo X"$ac_dest" |
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   { if $as_mkdir_p; then
17372     mkdir -p "$ac_dest_dir"
17373   else
17374     as_dir="$ac_dest_dir"
17375     as_dirs=
17376     while test ! -d "$as_dir"; do
17377       as_dirs="$as_dir $as_dirs"
17378       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17380          X"$as_dir" : 'X\(//\)[^/]' \| \
17381          X"$as_dir" : 'X\(//\)$' \| \
17382          X"$as_dir" : 'X\(/\)' \| \
17383          .     : '\(.\)' 2>/dev/null ||
17384 echo X"$as_dir" |
17385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17387           /^X\(\/\/\)$/{ s//\1/; q; }
17388           /^X\(\/\).*/{ s//\1/; q; }
17389           s/.*/./; q'`
17390     done
17391     test ! -n "$as_dirs" || mkdir $as_dirs
17392   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17393 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17394    { (exit 1); exit 1; }; }; }
17395
17396   ac_builddir=.
17397
17398 if test "$ac_dest_dir" != .; then
17399   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17400   # A "../" for each directory in $ac_dir_suffix.
17401   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17402 else
17403   ac_dir_suffix= ac_top_builddir=
17404 fi
17405
17406 case $srcdir in
17407   .)  # No --srcdir option.  We are building in place.
17408     ac_srcdir=.
17409     if test -z "$ac_top_builddir"; then
17410        ac_top_srcdir=.
17411     else
17412        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17413     fi ;;
17414   [\\/]* | ?:[\\/]* )  # Absolute path.
17415     ac_srcdir=$srcdir$ac_dir_suffix;
17416     ac_top_srcdir=$srcdir ;;
17417   *) # Relative path.
17418     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17419     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17420 esac
17421
17422 # Do not use `cd foo && pwd` to compute absolute paths, because
17423 # the directories may not exist.
17424 case `pwd` in
17425 .) ac_abs_builddir="$ac_dest_dir";;
17426 *)
17427   case "$ac_dest_dir" in
17428   .) ac_abs_builddir=`pwd`;;
17429   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17430   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17431   esac;;
17432 esac
17433 case $ac_abs_builddir in
17434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17435 *)
17436   case ${ac_top_builddir}. in
17437   .) ac_abs_top_builddir=$ac_abs_builddir;;
17438   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17439   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17440   esac;;
17441 esac
17442 case $ac_abs_builddir in
17443 .) ac_abs_srcdir=$ac_srcdir;;
17444 *)
17445   case $ac_srcdir in
17446   .) ac_abs_srcdir=$ac_abs_builddir;;
17447   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17448   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17449   esac;;
17450 esac
17451 case $ac_abs_builddir in
17452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17453 *)
17454   case $ac_top_srcdir in
17455   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17456   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17457   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17458   esac;;
17459 esac
17460
17461
17462   case $srcdir in
17463   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17464       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17465   esac
17466
17467   # Try a symlink, then a hard link, then a copy.
17468   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17469     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17470     cp -p $srcdir/$ac_source $ac_dest ||
17471     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17472 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17473    { (exit 1); exit 1; }; }
17474 done
17475 _ACEOF
17476 cat >>$CONFIG_STATUS <<\_ACEOF
17477
17478 #
17479 # CONFIG_COMMANDS section.
17480 #
17481 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17482   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17483   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17484   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17485 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17486          X"$ac_dest" : 'X\(//\)[^/]' \| \
17487          X"$ac_dest" : 'X\(//\)$' \| \
17488          X"$ac_dest" : 'X\(/\)' \| \
17489          .     : '\(.\)' 2>/dev/null ||
17490 echo X"$ac_dest" |
17491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17493           /^X\(\/\/\)$/{ s//\1/; q; }
17494           /^X\(\/\).*/{ s//\1/; q; }
17495           s/.*/./; q'`
17496   { if $as_mkdir_p; then
17497     mkdir -p "$ac_dir"
17498   else
17499     as_dir="$ac_dir"
17500     as_dirs=
17501     while test ! -d "$as_dir"; do
17502       as_dirs="$as_dir $as_dirs"
17503       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17505          X"$as_dir" : 'X\(//\)[^/]' \| \
17506          X"$as_dir" : 'X\(//\)$' \| \
17507          X"$as_dir" : 'X\(/\)' \| \
17508          .     : '\(.\)' 2>/dev/null ||
17509 echo X"$as_dir" |
17510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17511           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17512           /^X\(\/\/\)$/{ s//\1/; q; }
17513           /^X\(\/\).*/{ s//\1/; q; }
17514           s/.*/./; q'`
17515     done
17516     test ! -n "$as_dirs" || mkdir $as_dirs
17517   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17518 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17519    { (exit 1); exit 1; }; }; }
17520
17521   ac_builddir=.
17522
17523 if test "$ac_dir" != .; then
17524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17525   # A "../" for each directory in $ac_dir_suffix.
17526   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17527 else
17528   ac_dir_suffix= ac_top_builddir=
17529 fi
17530
17531 case $srcdir in
17532   .)  # No --srcdir option.  We are building in place.
17533     ac_srcdir=.
17534     if test -z "$ac_top_builddir"; then
17535        ac_top_srcdir=.
17536     else
17537        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17538     fi ;;
17539   [\\/]* | ?:[\\/]* )  # Absolute path.
17540     ac_srcdir=$srcdir$ac_dir_suffix;
17541     ac_top_srcdir=$srcdir ;;
17542   *) # Relative path.
17543     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17544     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17545 esac
17546
17547 # Do not use `cd foo && pwd` to compute absolute paths, because
17548 # the directories may not exist.
17549 case `pwd` in
17550 .) ac_abs_builddir="$ac_dir";;
17551 *)
17552   case "$ac_dir" in
17553   .) ac_abs_builddir=`pwd`;;
17554   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17555   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17556   esac;;
17557 esac
17558 case $ac_abs_builddir in
17559 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17560 *)
17561   case ${ac_top_builddir}. in
17562   .) ac_abs_top_builddir=$ac_abs_builddir;;
17563   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17564   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17565   esac;;
17566 esac
17567 case $ac_abs_builddir in
17568 .) ac_abs_srcdir=$ac_srcdir;;
17569 *)
17570   case $ac_srcdir in
17571   .) ac_abs_srcdir=$ac_abs_builddir;;
17572   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17573   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17574   esac;;
17575 esac
17576 case $ac_abs_builddir in
17577 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17578 *)
17579   case $ac_top_srcdir in
17580   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17581   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17582   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17583   esac;;
17584 esac
17585
17586
17587   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17588 echo "$as_me: executing $ac_dest commands" >&6;}
17589   case $ac_dest in
17590     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17591   # Strip MF so we end up with the name of the file.
17592   mf=`echo "$mf" | sed -e 's/:.*$//'`
17593   # Check whether this is an Automake generated Makefile or not.
17594   # We used to match only the files named `Makefile.in', but
17595   # some people rename them; so instead we look at the file content.
17596   # Grep'ing the first line is not enough: some people post-process
17597   # each Makefile.in and add a new line on top of each file to say so.
17598   # So let's grep whole file.
17599   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17600     dirpart=`(dirname "$mf") 2>/dev/null ||
17601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17602          X"$mf" : 'X\(//\)[^/]' \| \
17603          X"$mf" : 'X\(//\)$' \| \
17604          X"$mf" : 'X\(/\)' \| \
17605          .     : '\(.\)' 2>/dev/null ||
17606 echo X"$mf" |
17607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17609           /^X\(\/\/\)$/{ s//\1/; q; }
17610           /^X\(\/\).*/{ s//\1/; q; }
17611           s/.*/./; q'`
17612   else
17613     continue
17614   fi
17615   # Extract the definition of DEPDIR, am__include, and am__quote
17616   # from the Makefile without running `make'.
17617   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17618   test -z "$DEPDIR" && continue
17619   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17620   test -z "am__include" && continue
17621   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17622   # When using ansi2knr, U may be empty or an underscore; expand it
17623   U=`sed -n 's/^U = //p' < "$mf"`
17624   # Find all dependency output files, they are included files with
17625   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17626   # simplest approach to changing $(DEPDIR) to its actual value in the
17627   # expansion.
17628   for file in `sed -n "
17629     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17630        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17631     # Make sure the directory exists.
17632     test -f "$dirpart/$file" && continue
17633     fdir=`(dirname "$file") 2>/dev/null ||
17634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635          X"$file" : 'X\(//\)[^/]' \| \
17636          X"$file" : 'X\(//\)$' \| \
17637          X"$file" : 'X\(/\)' \| \
17638          .     : '\(.\)' 2>/dev/null ||
17639 echo X"$file" |
17640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17642           /^X\(\/\/\)$/{ s//\1/; q; }
17643           /^X\(\/\).*/{ s//\1/; q; }
17644           s/.*/./; q'`
17645     { if $as_mkdir_p; then
17646     mkdir -p $dirpart/$fdir
17647   else
17648     as_dir=$dirpart/$fdir
17649     as_dirs=
17650     while test ! -d "$as_dir"; do
17651       as_dirs="$as_dir $as_dirs"
17652       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17654          X"$as_dir" : 'X\(//\)[^/]' \| \
17655          X"$as_dir" : 'X\(//\)$' \| \
17656          X"$as_dir" : 'X\(/\)' \| \
17657          .     : '\(.\)' 2>/dev/null ||
17658 echo X"$as_dir" |
17659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17661           /^X\(\/\/\)$/{ s//\1/; q; }
17662           /^X\(\/\).*/{ s//\1/; q; }
17663           s/.*/./; q'`
17664     done
17665     test ! -n "$as_dirs" || mkdir $as_dirs
17666   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17667 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17668    { (exit 1); exit 1; }; }; }
17669
17670     # echo "creating $dirpart/$file"
17671     echo '# dummy' > "$dirpart/$file"
17672   done
17673 done
17674  ;;
17675     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17676 case " $CONFIG_FILES " in
17677  *" Makefile "*)
17678    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17679    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17680    ;;
17681 esac
17682  ;;
17683   esac
17684 done
17685 _ACEOF
17686
17687 cat >>$CONFIG_STATUS <<\_ACEOF
17688
17689 { (exit 0); exit 0; }
17690 _ACEOF
17691 chmod +x $CONFIG_STATUS
17692 ac_clean_files=$ac_clean_files_save
17693
17694
17695 # configure is writing to config.log, and then calls config.status.
17696 # config.status does its own redirection, appending to config.log.
17697 # Unfortunately, on DOS this fails, as config.log is still kept open
17698 # by configure, so config.status won't be able to write to it; its
17699 # output is simply discarded.  So we exec the FD to /dev/null,
17700 # effectively closing config.log, so it can be properly (re)opened and
17701 # appended to by config.status.  When coming back to configure, we
17702 # need to make the FD available again.
17703 if test "$no_create" != yes; then
17704   ac_cs_success=:
17705   ac_config_status_args=
17706   test "$silent" = yes &&
17707     ac_config_status_args="$ac_config_status_args --quiet"
17708   exec 5>/dev/null
17709   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17710   exec 5>>config.log
17711   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17712   # would make configure fail if this is the last instruction.
17713   $ac_cs_success || { (exit 1); exit 1; }
17714 fi
17715
17716 #
17717 # CONFIG_SUBDIRS section.
17718 #
17719 if test "$no_recursion" != yes; then
17720
17721   # Remove --cache-file and --srcdir arguments so they do not pile up.
17722   ac_sub_configure_args=
17723   ac_prev=
17724   for ac_arg in $ac_configure_args; do
17725     if test -n "$ac_prev"; then
17726       ac_prev=
17727       continue
17728     fi
17729     case $ac_arg in
17730     -cache-file | --cache-file | --cache-fil | --cache-fi \
17731     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17732       ac_prev=cache_file ;;
17733     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17734     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17735     | --c=*)
17736       ;;
17737     --config-cache | -C)
17738       ;;
17739     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17740       ac_prev=srcdir ;;
17741     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17742       ;;
17743     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17744       ac_prev=prefix ;;
17745     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17746       ;;
17747     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17748     esac
17749   done
17750
17751   # Always prepend --prefix to ensure using the same prefix
17752   # in subdir configurations.
17753   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17754
17755   ac_popdir=`pwd`
17756   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17757
17758     # Do not complain, so a configure script can configure whichever
17759     # parts of a large source tree are present.
17760     test -d $srcdir/$ac_dir || continue
17761
17762     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17763 echo "$as_me: configuring in $ac_dir" >&6;}
17764     { if $as_mkdir_p; then
17765     mkdir -p "$ac_dir"
17766   else
17767     as_dir="$ac_dir"
17768     as_dirs=
17769     while test ! -d "$as_dir"; do
17770       as_dirs="$as_dir $as_dirs"
17771       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17773          X"$as_dir" : 'X\(//\)[^/]' \| \
17774          X"$as_dir" : 'X\(//\)$' \| \
17775          X"$as_dir" : 'X\(/\)' \| \
17776          .     : '\(.\)' 2>/dev/null ||
17777 echo X"$as_dir" |
17778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17779           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17780           /^X\(\/\/\)$/{ s//\1/; q; }
17781           /^X\(\/\).*/{ s//\1/; q; }
17782           s/.*/./; q'`
17783     done
17784     test ! -n "$as_dirs" || mkdir $as_dirs
17785   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17787    { (exit 1); exit 1; }; }; }
17788
17789     ac_builddir=.
17790
17791 if test "$ac_dir" != .; then
17792   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17793   # A "../" for each directory in $ac_dir_suffix.
17794   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17795 else
17796   ac_dir_suffix= ac_top_builddir=
17797 fi
17798
17799 case $srcdir in
17800   .)  # No --srcdir option.  We are building in place.
17801     ac_srcdir=.
17802     if test -z "$ac_top_builddir"; then
17803        ac_top_srcdir=.
17804     else
17805        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17806     fi ;;
17807   [\\/]* | ?:[\\/]* )  # Absolute path.
17808     ac_srcdir=$srcdir$ac_dir_suffix;
17809     ac_top_srcdir=$srcdir ;;
17810   *) # Relative path.
17811     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17812     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17813 esac
17814
17815 # Do not use `cd foo && pwd` to compute absolute paths, because
17816 # the directories may not exist.
17817 case `pwd` in
17818 .) ac_abs_builddir="$ac_dir";;
17819 *)
17820   case "$ac_dir" in
17821   .) ac_abs_builddir=`pwd`;;
17822   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17823   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17824   esac;;
17825 esac
17826 case $ac_abs_builddir in
17827 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17828 *)
17829   case ${ac_top_builddir}. in
17830   .) ac_abs_top_builddir=$ac_abs_builddir;;
17831   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17832   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17833   esac;;
17834 esac
17835 case $ac_abs_builddir in
17836 .) ac_abs_srcdir=$ac_srcdir;;
17837 *)
17838   case $ac_srcdir in
17839   .) ac_abs_srcdir=$ac_abs_builddir;;
17840   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17841   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17842   esac;;
17843 esac
17844 case $ac_abs_builddir in
17845 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17846 *)
17847   case $ac_top_srcdir in
17848   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17849   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17850   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17851   esac;;
17852 esac
17853
17854
17855     cd $ac_dir
17856
17857     # Check for guested configure; otherwise get Cygnus style configure.
17858     if test -f $ac_srcdir/configure.gnu; then
17859       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17860     elif test -f $ac_srcdir/configure; then
17861       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17862     elif test -f $ac_srcdir/configure.in; then
17863       ac_sub_configure=$ac_configure
17864     else
17865       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17866 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17867       ac_sub_configure=
17868     fi
17869
17870     # The recursion is here.
17871     if test -n "$ac_sub_configure"; then
17872       # Make the cache file name correct relative to the subdirectory.
17873       case $cache_file in
17874       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17875       *) # Relative path.
17876         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17877       esac
17878
17879       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17880 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17881       # The eval makes quoting arguments work.
17882       eval $ac_sub_configure $ac_sub_configure_args \
17883            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17884         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17885 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17886    { (exit 1); exit 1; }; }
17887     fi
17888
17889     cd $ac_popdir
17890   done
17891 fi
17892