OSDN Git Service

* configure: Regenerate.
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir 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 LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME 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 USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_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 LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR 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 gxx_include_dir libstdcxx_incdir 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   --disable-rpath         do not hardcode runtime library paths
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438   # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442    || test -d $srcdir/../host-${host_noncanonical}; then
1443   host_subdir="host-${host_noncanonical}"
1444 else
1445   host_subdir=.
1446 fi
1447 # No prefix.
1448 target_subdir=${target_noncanonical}
1449
1450
1451 # We use these options to decide which functions to include.
1452
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455   withval="$with_target_subdir"
1456
1457 fi;
1458
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir.  We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1466 # source directory.
1467 if test "${srcdir}" = "."; then
1468   if test -z "${with_target_subdir}"; then
1469     toprel=".."
1470   else
1471     if test "${with_target_subdir}" != "."; then
1472       toprel="${with_multisrctop}../.."
1473     else
1474       toprel="${with_multisrctop}.."
1475     fi
1476   fi
1477 else
1478   toprel=".."
1479 fi
1480
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1482
1483
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491   ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1500 host=$ac_cv_host
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513   ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531   test "$program_prefix$program_suffix$program_transform_name" = \
1532     NONENONEs,x,x, &&
1533   program_prefix=${target_alias}-
1534  case ${build_alias} in
1535   "") build_noncanonical=${build} ;;
1536   *) build_noncanonical=${build_alias} ;;
1537 esac
1538
1539  case ${target_alias} in
1540   "") target_noncanonical=${host_noncanonical} ;;
1541   *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545
1546
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1550 # exported.
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 LN_S=$as_ln_s
1556 if test "$LN_S" = "ln -s"; then
1557   echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1562 fi
1563
1564
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567
1568
1569
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572   withval="$with_cross_host"
1573
1574 fi;
1575
1576
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579   withval="$with_newlib"
1580
1581 fi;
1582
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585   enableval="$enable_version_specific_runtime_libs"
1586   case "$enableval" in
1587       yes) version_specific_libs=yes ;;
1588       no)  version_specific_libs=no ;;
1589       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591    { (exit 1); exit 1; }; };;
1592      esac
1593 else
1594   version_specific_libs=no
1595
1596 fi;
1597
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601   enableval="$enable_multilib"
1602   case "${enableval}" in
1603   yes) multilib=yes ;;
1604   no)  multilib=no ;;
1605   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607    { (exit 1); exit 1; }; } ;;
1608  esac
1609 else
1610   multilib=yes
1611 fi;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613
1614
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1621 # in Makefile.in.
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests.  This may not be necessary in libjava; I don't know.
1625
1626
1627
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1630 ac_ext=c
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="gcc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 if test -z "$CC"; then
1715   if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733     ac_cv_prog_CC="${ac_tool_prefix}cc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$ac_cv_prog_CC"; then
1753   ac_ct_CC=$CC
1754   # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$ac_ct_CC"; then
1762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_ac_ct_CC="cc"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789   CC=$ac_ct_CC
1790 else
1791   CC="$ac_cv_prog_CC"
1792 fi
1793
1794 fi
1795 if test -z "$CC"; then
1796   # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806   ac_prog_rejected=no
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815        ac_prog_rejected=yes
1816        continue
1817      fi
1818     ac_cv_prog_CC="cc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 if test $ac_prog_rejected = yes; then
1826   # We found a bogon in the path, so make sure we never use it.
1827   set dummy $ac_cv_prog_CC
1828   shift
1829   if test $# != 0; then
1830     # We chose a different compiler from the bogus one.
1831     # However, it has the same basename, so the bogon will be chosen
1832     # first if we set CC to just the basename; use the full file name.
1833     shift
1834     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1835   fi
1836 fi
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841   echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 fi
1849 if test -z "$CC"; then
1850   if test -n "$ac_tool_prefix"; then
1851   for ac_prog in cl
1852   do
1853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888     test -n "$CC" && break
1889   done
1890 fi
1891 if test -z "$CC"; then
1892   ac_ct_CC=$CC
1893   for ac_prog in cl
1894 do
1895   # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="$ac_prog"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   test -n "$ac_ct_CC" && break
1931 done
1932
1933   CC=$ac_ct_CC
1934 fi
1935
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947      "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950   (eval $ac_compiler --version </dev/null >&5) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955   (eval $ac_compiler -v </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960   (eval $ac_compiler -V </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 # FIXME: Cleanup?
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982   (eval $ac_link) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   gcc_no_link=no
1987 else
1988   gcc_no_link=yes
1989 fi
1990
1991 if test x$gcc_no_link = xyes; then
1992   # Setting cross_compile will disable run tests; it will
1993   # also disable AC_CHECK_FILE but that's generally
1994   # correct if we can't link.
1995   cross_compiling=yes
1996   EXEEXT=
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2017 # of exeext.
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022   (eval $ac_link_default) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   # Find the output, starting from the most likely.  This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028 # resort.
2029
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 ac_cv_exeext=
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 do
2036   test -f "$ac_file" || continue
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039         ;;
2040     conftest.$ac_ext )
2041         # This is the source file.
2042         ;;
2043     [ab].out )
2044         # We found the default executable, but exeext='' is most
2045         # certainly right.
2046         break;;
2047     *.* )
2048         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049         # FIXME: I believe we export ac_cv_exeext for Libtool,
2050         # but it would be cool to find out if it's true.  Does anybody
2051         # maintain Libtool? --akim.
2052         export ac_cv_exeext
2053         break;;
2054     * )
2055         break;;
2056   esac
2057 done
2058 else
2059   echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066    { (exit 77); exit 77; }; }
2067 fi
2068
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2072
2073 # Check the compiler produces executables we can run.  If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080   if { ac_try='./$ac_file'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086     cross_compiling=no
2087   else
2088     if test "$cross_compiling" = maybe; then
2089         cross_compiling=yes
2090     else
2091         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098     fi
2099   fi
2100 fi
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2103
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2112
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116   (eval $ac_link) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; then
2120   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 # `rm'.
2124 for ac_file in conftest.exe conftest conftest.*; do
2125   test -f "$ac_file" || continue
2126   case $ac_file in
2127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2145
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2148 ac_exeext=$EXEEXT
2149 fi
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191    { (exit 1); exit 1; }; }
2192 fi
2193
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 fi
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2199 ac_objext=$OBJEXT
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>conftest.er1
2226   ac_status=$?
2227   grep -v '^ *+' conftest.er1 >conftest.err
2228   rm -f conftest.er1
2229   cat conftest.err >&5
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -z "$ac_c_werror_flag"
2233                          || test ! -s conftest.err'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   ac_compiler_gnu=yes
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_compiler_gnu=no
2251 fi
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2261 CFLAGS="-g"
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h.  */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h.  */
2273
2274 int
2275 main ()
2276 {
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284   (eval $ac_compile) 2>conftest.er1
2285   ac_status=$?
2286   grep -v '^ *+' conftest.er1 >conftest.err
2287   rm -f conftest.er1
2288   cat conftest.err >&5
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -z "$ac_c_werror_flag"
2292                          || test ! -s conftest.err'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   ac_cv_prog_cc_g=yes
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_cv_prog_cc_g=no
2310 fi
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316   CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318   if test "$GCC" = yes; then
2319     CFLAGS="-g -O2"
2320   else
2321     CFLAGS="-g"
2322   fi
2323 else
2324   if test "$GCC" = yes; then
2325     CFLAGS="-O2"
2326   else
2327     CFLAGS=
2328   fi
2329 fi
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   ac_cv_prog_cc_stdc=no
2336 ac_save_CC=$CC
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 #include <stdarg.h>
2344 #include <stdio.h>
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2351      char **p;
2352      int i;
2353 {
2354   return p[i];
2355 }
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2357 {
2358   char *s;
2359   va_list v;
2360   va_start (v,p);
2361   s = g (p, va_arg (v,int));
2362   va_end (v);
2363   return s;
2364 }
2365
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2367    function prototypes and stuff, but not '\xHH' hex character constants.
2368    These don't provoke an error unfortunately, instead are silently treated
2369    as 'x'.  The following induces an error, until -std1 is added to get
2370    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2371    array size at least.  It's necessary to write '\x00'==0 to get something
2372    that's true only with -std1.  */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379 int argc;
2380 char **argv;
2381 int
2382 main ()
2383 {
2384 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX                   -qlanglvl=ansi
2392 # Ultrix and OSF/1      -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2395 # SVR4                  -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 do
2398   CC="$ac_save_CC $ac_arg"
2399   rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_stdc=$ac_arg
2422 break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext
2429 done
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2431 CC=$ac_save_CC
2432
2433 fi
2434
2435 case "x$ac_cv_prog_cc_stdc" in
2436   x|xno)
2437     echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2439   *)
2440     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442     CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 esac
2444
2445 # Some people use a C++ compiler to compile C.  Since we use `exit',
2446 # in C++ we need to declare it.  In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #ifndef __cplusplus
2451   choke me
2452 #endif
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456   (eval $ac_compile) 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag"
2464                          || test ! -s conftest.err'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   for ac_declaration in \
2477    '' \
2478    'extern "C" void std::exit (int) throw (); using std::exit;' \
2479    'extern "C" void std::exit (int); using std::exit;' \
2480    'extern "C" void exit (int) throw ();' \
2481    'extern "C" void exit (int);' \
2482    'void exit (int);'
2483 do
2484   cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 $ac_declaration
2491 #include <stdlib.h>
2492 int
2493 main ()
2494 {
2495 exit (42);
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"
2510                          || test ! -s conftest.err'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; }; then
2522   :
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 continue
2528 fi
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536 $ac_declaration
2537 int
2538 main ()
2539 {
2540 exit (42);
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   break
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577   echo '#ifdef __cplusplus' >>confdefs.h
2578   echo $ac_declaration      >>confdefs.h
2579   echo '#endif'             >>confdefs.h
2580 fi
2581
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 fi
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594 ac_ext=cc
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601   do
2602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$CXX"; then
2610   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625
2626 fi
2627 fi
2628 CXX=$glibcxx_cv_prog_CXX
2629 if test -n "$CXX"; then
2630   echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2632 else
2633   echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2635 fi
2636
2637     test -n "$CXX" && break
2638   done
2639 fi
2640 if test -z "$CXX"; then
2641   ac_ct_CXX=$CXX
2642   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 do
2644   # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CXX"; then
2652   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_ac_ct_CXX="$ac_prog"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667
2668 fi
2669 fi
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2674 else
2675   echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677 fi
2678
2679   test -n "$ac_ct_CXX" && break
2680 done
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682
2683   CXX=$ac_ct_CXX
2684 fi
2685
2686
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689      "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692   (eval $ac_compiler --version </dev/null >&5) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697   (eval $ac_compiler -v </dev/null >&5) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702   (eval $ac_compiler -V </dev/null >&5) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718
2719 int
2720 main ()
2721 {
2722 #ifndef __GNUC__
2723        choke me
2724 #endif
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_cxx_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   ac_compiler_gnu=yes
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_compiler_gnu=no
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2768 CXXFLAGS="-g"
2769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_cxx_werror_flag"
2799                          || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cxx_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ac_cv_prog_cxx_g=no
2817 fi
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2822 if test "$ac_test_CXXFLAGS" = set; then
2823   CXXFLAGS=$ac_save_CXXFLAGS
2824 elif test $ac_cv_prog_cxx_g = yes; then
2825   if test "$GXX" = yes; then
2826     CXXFLAGS="-g -O2"
2827   else
2828     CXXFLAGS="-g"
2829   fi
2830 else
2831   if test "$GXX" = yes; then
2832     CXXFLAGS="-O2"
2833   else
2834     CXXFLAGS=
2835   fi
2836 fi
2837 for ac_declaration in \
2838    '' \
2839    'extern "C" void std::exit (int) throw (); using std::exit;' \
2840    'extern "C" void std::exit (int); using std::exit;' \
2841    'extern "C" void exit (int) throw ();' \
2842    'extern "C" void exit (int);' \
2843    'void exit (int);'
2844 do
2845   cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851 $ac_declaration
2852 #include <stdlib.h>
2853 int
2854 main ()
2855 {
2856 exit (42);
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   :
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 continue
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897 $ac_declaration
2898 int
2899 main ()
2900 {
2901 exit (42);
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_cxx_werror_flag"
2916                          || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   break
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 fi
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936 rm -f conftest*
2937 if test -n "$ac_declaration"; then
2938   echo '#ifdef __cplusplus' >>confdefs.h
2939   echo $ac_declaration      >>confdefs.h
2940   echo '#endif'             >>confdefs.h
2941 fi
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949 CXXFLAGS="$save_CXXFLAGS"
2950
2951
2952
2953
2954
2955 am__api_version="1.9"
2956 # Find a good install program.  We prefer a C program (faster),
2957 # so one script is as good as another.  But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2962 # AIX /bin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   # Account for people who put trailing slashes in PATH elements.
2981 case $as_dir/ in
2982   ./ | .// | /cC/* | \
2983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2985   /usr/ucb/* ) ;;
2986   *)
2987     # OSF1 and SCO ODT 3.0 have their own names for install.
2988     # Don't use installbsd from OSF since it installs stuff as root
2989     # by default.
2990     for ac_prog in ginstall scoinst install; do
2991       for ac_exec_ext in '' $ac_executable_extensions; do
2992         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993           if test $ac_prog = install &&
2994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995             # AIX install.  It has an incompatible calling convention.
2996             :
2997           elif test $ac_prog = install &&
2998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999             # program-specific install script used by HP pwplus--don't use.
3000             :
3001           else
3002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003             break 3
3004           fi
3005         fi
3006       done
3007     done
3008     ;;
3009 esac
3010 done
3011
3012
3013 fi
3014   if test "${ac_cv_path_install+set}" = set; then
3015     INSTALL=$ac_cv_path_install
3016   else
3017     # As a last resort, use the slow shell script.  We don't cache a
3018     # path for INSTALL within a source directory, because that will
3019     # break other packages using the cache if that directory is
3020     # removed, or if the path is relative.
3021     INSTALL=$ac_install_sh
3022   fi
3023 fi
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3026
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
3035 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3036 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Do `set' in a subshell so we don't clobber the current shell's
3041 # arguments.  Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3044 # directory).
3045 if (
3046    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3047    if test "$*" = "X"; then
3048       # -L didn't work.
3049       set X `ls -t $srcdir/configure conftest.file`
3050    fi
3051    rm -f conftest.file
3052    if test "$*" != "X $srcdir/configure conftest.file" \
3053       && test "$*" != "X conftest.file $srcdir/configure"; then
3054
3055       # If neither matched, then we have a broken ls.  This can happen
3056       # if, for instance, CONFIG_SHELL is bash and it inherits a
3057       # broken ls alias from the environment.  This has actually
3058       # happened.  Such a system could not be considered "sane".
3059       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3060 alias in your environment" >&5
3061 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3062 alias in your environment" >&2;}
3063    { (exit 1); exit 1; }; }
3064    fi
3065
3066    test "$2" = conftest.file
3067    )
3068 then
3069    # Ok.
3070    :
3071 else
3072    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3073 Check your system clock" >&5
3074 echo "$as_me: error: newly created file is older than distributed files!
3075 Check your system clock" >&2;}
3076    { (exit 1); exit 1; }; }
3077 fi
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 test "$program_prefix" != NONE &&
3081   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3085 # Double any \ or $.  echo might interpret backslashes.
3086 # By default was `s,x,x', remove it if useless.
3087 cat <<\_ACEOF >conftest.sed
3088 s/[\\$]/&&/g;s/;s,x,x,$//
3089 _ACEOF
3090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3091 rm conftest.sed
3092
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3095
3096 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099   am_missing_run="$MISSING --run "
3100 else
3101   am_missing_run=
3102   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3103 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 fi
3105
3106 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3107   # We used to keeping the `.' as first argument, in order to
3108   # allow $(mkdir_p) to be used without argument.  As in
3109   #   $(mkdir_p) $(somedir)
3110   # where $(somedir) is conditionally defined.  However this is wrong
3111   # for two reasons:
3112   #  1. if the package is installed by a user who cannot write `.'
3113   #     make install will fail,
3114   #  2. the above comment should most certainly read
3115   #     $(mkdir_p) $(DESTDIR)$(somedir)
3116   #     so it does not work when $(somedir) is undefined and
3117   #     $(DESTDIR) is not.
3118   #  To support the latter case, we have to write
3119   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3120   #  so the `.' trick is pointless.
3121   mkdir_p='mkdir -p --'
3122 else
3123   # On NextStep and OpenStep, the `mkdir' command does not
3124   # recognize any option.  It will interpret all options as
3125   # directories to create, and then abort because `.' already
3126   # exists.
3127   for d in ./-p ./--version;
3128   do
3129     test -d $d && rmdir $d
3130   done
3131   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3132   if test -f "$ac_aux_dir/mkinstalldirs"; then
3133     mkdir_p='$(mkinstalldirs)'
3134   else
3135     mkdir_p='$(install_sh) -d'
3136   fi
3137 fi
3138
3139 for ac_prog in gawk mawk nawk awk
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_AWK+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$AWK"; then
3149   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_AWK="$ac_prog"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164
3165 fi
3166 fi
3167 AWK=$ac_cv_prog_AWK
3168 if test -n "$AWK"; then
3169   echo "$as_me:$LINENO: result: $AWK" >&5
3170 echo "${ECHO_T}$AWK" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   test -n "$AWK" && break
3177 done
3178
3179 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 all:
3187         @echo 'ac_maketemp="$(MAKE)"'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3191 if test -n "$ac_maketemp"; then
3192   eval ac_cv_prog_make_${ac_make}_set=yes
3193 else
3194   eval ac_cv_prog_make_${ac_make}_set=no
3195 fi
3196 rm -f conftest.make
3197 fi
3198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3199   echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201   SET_MAKE=
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205   SET_MAKE="MAKE=${MAKE-make}"
3206 fi
3207
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211   am__leading_dot=.
3212 else
3213   am__leading_dot=_
3214 fi
3215 rmdir .tst 2>/dev/null
3216
3217 DEPDIR="${am__leading_dot}deps"
3218
3219           ac_config_commands="$ac_config_commands depfiles"
3220
3221
3222 am_make=${MAKE-make}
3223 cat > confinc << 'END'
3224 am__doit:
3225         @echo done
3226 .PHONY: am__doit
3227 END
3228 # If we don't find an include directive, just comment out the code.
3229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3231 am__include="#"
3232 am__quote=
3233 _am_result=none
3234 # First try GNU make style include.
3235 echo "include confinc" > confmf
3236 # We grep out `Entering directory' and `Leaving directory'
3237 # messages which can occur if `w' ends up in MAKEFLAGS.
3238 # In particular we don't look at `^make:' because GNU make might
3239 # be invoked under some other name (usually "gmake"), in which
3240 # case it prints its new name instead of `make'.
3241 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3242    am__include=include
3243    am__quote=
3244    _am_result=GNU
3245 fi
3246 # Now try BSD make style include.
3247 if test "$am__include" = "#"; then
3248    echo '.include "confinc"' > confmf
3249    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3250       am__include=.include
3251       am__quote="\""
3252       _am_result=BSD
3253    fi
3254 fi
3255
3256
3257 echo "$as_me:$LINENO: result: $_am_result" >&5
3258 echo "${ECHO_T}$_am_result" >&6
3259 rm -f confinc confmf
3260
3261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then
3263   enableval="$enable_dependency_tracking"
3264
3265 fi;
3266 if test "x$enable_dependency_tracking" != xno; then
3267   am_depcomp="$ac_aux_dir/depcomp"
3268   AMDEPBACKSLASH='\'
3269 fi
3270
3271
3272 if test "x$enable_dependency_tracking" != xno; then
3273   AMDEP_TRUE=
3274   AMDEP_FALSE='#'
3275 else
3276   AMDEP_TRUE='#'
3277   AMDEP_FALSE=
3278 fi
3279
3280
3281
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284    test -f $srcdir/config.status; then
3285   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3287    { (exit 1); exit 1; }; }
3288 fi
3289
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292   if (cygpath --version) >/dev/null 2>/dev/null; then
3293     CYGPATH_W='cygpath -w'
3294   else
3295     CYGPATH_W=echo
3296   fi
3297 fi
3298
3299
3300 # Define the identity of the package.
3301  PACKAGE='libjava'
3302  VERSION='version-unused'
3303
3304
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3307 _ACEOF
3308
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3312 _ACEOF
3313
3314 # Some tools Automake needs.
3315
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317
3318
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3320
3321
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323
3324
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3326
3327
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329
3330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331
3332 # Installed binaries are usually stripped using `strip' when the user
3333 # run `make install-strip'.  However `strip' might not be the right
3334 # tool to use in cross-compilation environments, therefore Automake
3335 # will honor the `STRIP' environment variable to overrule this program.
3336 if test "$cross_compiling" != no; then
3337   if test -n "$ac_tool_prefix"; then
3338   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   if test -n "$STRIP"; then
3346   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   for ac_exec_ext in '' $ac_executable_extensions; do
3354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360 done
3361
3362 fi
3363 fi
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366   echo "$as_me:$LINENO: result: $STRIP" >&5
3367 echo "${ECHO_T}$STRIP" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3371 fi
3372
3373 fi
3374 if test -z "$ac_cv_prog_STRIP"; then
3375   ac_ct_STRIP=$STRIP
3376   # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$ac_ct_STRIP"; then
3384   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_STRIP="strip"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3401 fi
3402 fi
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3406 echo "${ECHO_T}$ac_ct_STRIP" >&6
3407 else
3408   echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3410 fi
3411
3412   STRIP=$ac_ct_STRIP
3413 else
3414   STRIP="$ac_cv_prog_STRIP"
3415 fi
3416
3417 fi
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419
3420 # We need awk for the "check" target.  The system "awk" is bad on
3421 # some platforms.
3422 # Always define AMTAR for backward compatibility.
3423
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3427
3428
3429
3430
3431 depcc="$CC"   am_compiler_list=
3432
3433 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3434 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3435 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3439   # We make a subdir and do the tests there.  Otherwise we can end up
3440   # making bogus files that we don't know about and never remove.  For
3441   # instance it was reported that on HP-UX the gcc test will end up
3442   # making a dummy file named `D' -- because `-MD' means `put the output
3443   # in D'.
3444   mkdir conftest.dir
3445   # Copy depcomp to subdir because otherwise we won't find it if we're
3446   # using a relative directory.
3447   cp "$am_depcomp" conftest.dir
3448   cd conftest.dir
3449   # We will build objects and dependencies in a subdirectory because
3450   # it helps to detect inapplicable dependency modes.  For instance
3451   # both Tru64's cc and ICC support -MD to output dependencies as a
3452   # side effect of compilation, but ICC will put the dependencies in
3453   # the current directory while Tru64 will put them in the object
3454   # directory.
3455   mkdir sub
3456
3457   am_cv_CC_dependencies_compiler_type=none
3458   if test "$am_compiler_list" = ""; then
3459      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460   fi
3461   for depmode in $am_compiler_list; do
3462     # Setup a source with many dependencies, because some compilers
3463     # like to wrap large dependency lists on column 80 (with \), and
3464     # we should not choose a depcomp mode which is confused by this.
3465     #
3466     # We need to recreate these files for each test, as the compiler may
3467     # overwrite some of them when testing with obscure command lines.
3468     # This happens at least with the AIX C compiler.
3469     : > sub/conftest.c
3470     for i in 1 2 3 4 5 6; do
3471       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3472       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3473       # Solaris 8's {/usr,}/bin/sh.
3474       touch sub/conftst$i.h
3475     done
3476     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477
3478     case $depmode in
3479     nosideeffect)
3480       # after this tag, mechanisms are not by side-effect, so they'll
3481       # only be used when explicitly requested
3482       if test "x$enable_dependency_tracking" = xyes; then
3483         continue
3484       else
3485         break
3486       fi
3487       ;;
3488     none) break ;;
3489     esac
3490     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491     # mode.  It turns out that the SunPro C++ compiler does not properly
3492     # handle `-M -o', and we need to detect this.
3493     if depmode=$depmode \
3494        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3495        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3496        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3497          >/dev/null 2>conftest.err &&
3498        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3499        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3500        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501       # icc doesn't choke on unknown options, it will just issue warnings
3502       # or remarks (even with -Werror).  So we grep stderr for any message
3503       # that says an option was ignored or not supported.
3504       # When given -MP, icc 7.0 and 7.1 complain thusly:
3505       #   icc: Command line warning: ignoring option '-M'; no argument required
3506       # The diagnosis changed in icc 8.0:
3507       #   icc: Command line remark: option '-MP' not supported
3508       if (grep 'ignoring option' conftest.err ||
3509           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3510         am_cv_CC_dependencies_compiler_type=$depmode
3511         break
3512       fi
3513     fi
3514   done
3515
3516   cd ..
3517   rm -rf conftest.dir
3518 else
3519   am_cv_CC_dependencies_compiler_type=none
3520 fi
3521
3522 fi
3523 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3526
3527
3528
3529 if
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCC_TRUE=
3533   am__fastdepCC_FALSE='#'
3534 else
3535   am__fastdepCC_TRUE='#'
3536   am__fastdepCC_FALSE=
3537 fi
3538
3539
3540 depcc="$CXX"  am_compiler_list=
3541
3542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548   # We make a subdir and do the tests there.  Otherwise we can end up
3549   # making bogus files that we don't know about and never remove.  For
3550   # instance it was reported that on HP-UX the gcc test will end up
3551   # making a dummy file named `D' -- because `-MD' means `put the output
3552   # in D'.
3553   mkdir conftest.dir
3554   # Copy depcomp to subdir because otherwise we won't find it if we're
3555   # using a relative directory.
3556   cp "$am_depcomp" conftest.dir
3557   cd conftest.dir
3558   # We will build objects and dependencies in a subdirectory because
3559   # it helps to detect inapplicable dependency modes.  For instance
3560   # both Tru64's cc and ICC support -MD to output dependencies as a
3561   # side effect of compilation, but ICC will put the dependencies in
3562   # the current directory while Tru64 will put them in the object
3563   # directory.
3564   mkdir sub
3565
3566   am_cv_CXX_dependencies_compiler_type=none
3567   if test "$am_compiler_list" = ""; then
3568      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569   fi
3570   for depmode in $am_compiler_list; do
3571     # Setup a source with many dependencies, because some compilers
3572     # like to wrap large dependency lists on column 80 (with \), and
3573     # we should not choose a depcomp mode which is confused by this.
3574     #
3575     # We need to recreate these files for each test, as the compiler may
3576     # overwrite some of them when testing with obscure command lines.
3577     # This happens at least with the AIX C compiler.
3578     : > sub/conftest.c
3579     for i in 1 2 3 4 5 6; do
3580       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582       # Solaris 8's {/usr,}/bin/sh.
3583       touch sub/conftst$i.h
3584     done
3585     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586
3587     case $depmode in
3588     nosideeffect)
3589       # after this tag, mechanisms are not by side-effect, so they'll
3590       # only be used when explicitly requested
3591       if test "x$enable_dependency_tracking" = xyes; then
3592         continue
3593       else
3594         break
3595       fi
3596       ;;
3597     none) break ;;
3598     esac
3599     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600     # mode.  It turns out that the SunPro C++ compiler does not properly
3601     # handle `-M -o', and we need to detect this.
3602     if depmode=$depmode \
3603        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606          >/dev/null 2>conftest.err &&
3607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610       # icc doesn't choke on unknown options, it will just issue warnings
3611       # or remarks (even with -Werror).  So we grep stderr for any message
3612       # that says an option was ignored or not supported.
3613       # When given -MP, icc 7.0 and 7.1 complain thusly:
3614       #   icc: Command line warning: ignoring option '-M'; no argument required
3615       # The diagnosis changed in icc 8.0:
3616       #   icc: Command line remark: option '-MP' not supported
3617       if (grep 'ignoring option' conftest.err ||
3618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619         am_cv_CXX_dependencies_compiler_type=$depmode
3620         break
3621       fi
3622     fi
3623   done
3624
3625   cd ..
3626   rm -rf conftest.dir
3627 else
3628   am_cv_CXX_dependencies_compiler_type=none
3629 fi
3630
3631 fi
3632 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3635
3636
3637
3638 if
3639   test "x$enable_dependency_tracking" != xno \
3640   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3641   am__fastdepCXX_TRUE=
3642   am__fastdepCXX_FALSE='#'
3643 else
3644   am__fastdepCXX_TRUE='#'
3645   am__fastdepCXX_FALSE=
3646 fi
3647
3648
3649
3650
3651 if test -n "$ac_tool_prefix"; then
3652   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}as; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_AS+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$AS"; then
3660   ac_cv_prog_AS="$AS" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_exec_ext in '' $ac_executable_extensions; do
3668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     ac_cv_prog_AS="${ac_tool_prefix}as"
3670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674 done
3675
3676 fi
3677 fi
3678 AS=$ac_cv_prog_AS
3679 if test -n "$AS"; then
3680   echo "$as_me:$LINENO: result: $AS" >&5
3681 echo "${ECHO_T}$AS" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687 fi
3688 if test -z "$ac_cv_prog_AS"; then
3689   ac_ct_AS=$AS
3690   # Extract the first word of "as", so it can be a program name with args.
3691 set dummy as; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   if test -n "$ac_ct_AS"; then
3698   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_exec_ext in '' $ac_executable_extensions; do
3706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707     ac_cv_prog_ac_ct_AS="as"
3708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712 done
3713
3714 fi
3715 fi
3716 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3717 if test -n "$ac_ct_AS"; then
3718   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3719 echo "${ECHO_T}$ac_ct_AS" >&6
3720 else
3721   echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3723 fi
3724
3725   AS=$ac_ct_AS
3726 else
3727   AS="$ac_cv_prog_AS"
3728 fi
3729
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ar; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_AR+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$AR"; then
3739   ac_cv_prog_AR="$AR" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_AR="${ac_tool_prefix}ar"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755 fi
3756 fi
3757 AR=$ac_cv_prog_AR
3758 if test -n "$AR"; then
3759   echo "$as_me:$LINENO: result: $AR" >&5
3760 echo "${ECHO_T}$AR" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 fi
3767 if test -z "$ac_cv_prog_AR"; then
3768   ac_ct_AR=$AR
3769   # Extract the first word of "ar", so it can be a program name with args.
3770 set dummy ar; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$ac_ct_AR"; then
3777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_ac_ct_AR="ar"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793 fi
3794 fi
3795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3796 if test -n "$ac_ct_AR"; then
3797   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3798 echo "${ECHO_T}$ac_ct_AR" >&6
3799 else
3800   echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3802 fi
3803
3804   AR=$ac_ct_AR
3805 else
3806   AR="$ac_cv_prog_AR"
3807 fi
3808
3809 if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$RANLIB"; then
3818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834 fi
3835 fi
3836 RANLIB=$ac_cv_prog_RANLIB
3837 if test -n "$RANLIB"; then
3838   echo "$as_me:$LINENO: result: $RANLIB" >&5
3839 echo "${ECHO_T}$RANLIB" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845 fi
3846 if test -z "$ac_cv_prog_RANLIB"; then
3847   ac_ct_RANLIB=$RANLIB
3848   # Extract the first word of "ranlib", so it can be a program name with args.
3849 set dummy ranlib; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if test -n "$ac_ct_RANLIB"; then
3856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_exec_ext in '' $ac_executable_extensions; do
3864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865     ac_cv_prog_ac_ct_RANLIB="ranlib"
3866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870 done
3871
3872   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3873 fi
3874 fi
3875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3876 if test -n "$ac_ct_RANLIB"; then
3877   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883
3884   RANLIB=$ac_ct_RANLIB
3885 else
3886   RANLIB="$ac_cv_prog_RANLIB"
3887 fi
3888
3889
3890 # Find a good install program.  We prefer a C program (faster),
3891 # so one script is as good as another.  But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3896 # AIX /bin/install
3897 # AmigaOS /C/install, which installs bootblocks on floppy discs
3898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901 # OS/2's system install, which has a completely different semantic
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3919   /usr/ucb/* ) ;;
3920   *)
3921     # OSF1 and SCO ODT 3.0 have their own names for install.
3922     # Don't use installbsd from OSF since it installs stuff as root
3923     # by default.
3924     for ac_prog in ginstall scoinst install; do
3925       for ac_exec_ext in '' $ac_executable_extensions; do
3926         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927           if test $ac_prog = install &&
3928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # AIX install.  It has an incompatible calling convention.
3930             :
3931           elif test $ac_prog = install &&
3932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933             # program-specific install script used by HP pwplus--don't use.
3934             :
3935           else
3936             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3937             break 3
3938           fi
3939         fi
3940       done
3941     done
3942     ;;
3943 esac
3944 done
3945
3946
3947 fi
3948   if test "${ac_cv_path_install+set}" = set; then
3949     INSTALL=$ac_cv_path_install
3950   else
3951     # As a last resort, use the slow shell script.  We don't cache a
3952     # path for INSTALL within a source directory, because that will
3953     # break other packages using the cache if that directory is
3954     # removed, or if the path is relative.
3955     INSTALL=$ac_install_sh
3956   fi
3957 fi
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969
3970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3972     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3973 if test "${enable_maintainer_mode+set}" = set; then
3974   enableval="$enable_maintainer_mode"
3975   USE_MAINTAINER_MODE=$enableval
3976 else
3977   USE_MAINTAINER_MODE=no
3978 fi;
3979   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3981
3982
3983 if test $USE_MAINTAINER_MODE = yes; then
3984   MAINTAINER_MODE_TRUE=
3985   MAINTAINER_MODE_FALSE='#'
3986 else
3987   MAINTAINER_MODE_TRUE='#'
3988   MAINTAINER_MODE_FALSE=
3989 fi
3990
3991   MAINT=$MAINTAINER_MODE_TRUE
3992
3993
3994
3995
3996
3997 # configure.host sets the following important variables
3998 #       libgcj_cflags    - host specific C compiler flags
3999 #       libgcj_cxxflags  - host specific C++ compiler flags
4000 #       libgcj_javaflags - host specific Java compiler flags
4001
4002 libgcj_cflags=
4003 libgcj_cxxflags=
4004 libgcj_javaflags=
4005
4006 . ${srcdir}/configure.host
4007
4008 LIBGCJ_CFLAGS="${libgcj_cflags}"
4009 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4010 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4011 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4012
4013
4014
4015
4016
4017                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018
4019
4020 # Only use libltdl for non-newlib builds.
4021 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4022      case $enable_ltdl_convenience in
4023   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4024 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4025    { (exit 1); exit 1; }; } ;;
4026   "") enable_ltdl_convenience=yes
4027       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4028   esac
4029   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4030   INCLTDL='-I${top_srcdir}/''libltdl'
4031
4032
4033    DIRLTDL=libltdl
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define USE_LTDL 1
4037 _ACEOF
4038
4039    # Sigh.  Libtool's macro doesn't do the right thing.
4040    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4041    # FIXME: this is a hack.
4042    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4043    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4044 fi
4045
4046
4047
4048 # Check whether --enable-shared or --disable-shared was given.
4049 if test "${enable_shared+set}" = set; then
4050   enableval="$enable_shared"
4051   p=${PACKAGE-default}
4052 case $enableval in
4053 yes) enable_shared=yes ;;
4054 no) enable_shared=no ;;
4055 *)
4056   enable_shared=no
4057   # Look at the argument we got.  We use all the common list separators.
4058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4059   for pkg in $enableval; do
4060     if test "X$pkg" = "X$p"; then
4061       enable_shared=yes
4062     fi
4063   done
4064   IFS="$ac_save_ifs"
4065   ;;
4066 esac
4067 else
4068   enable_shared=yes
4069 fi;
4070 # Check whether --enable-static or --disable-static was given.
4071 if test "${enable_static+set}" = set; then
4072   enableval="$enable_static"
4073   p=${PACKAGE-default}
4074 case $enableval in
4075 yes) enable_static=yes ;;
4076 no) enable_static=no ;;
4077 *)
4078   enable_static=no
4079   # Look at the argument we got.  We use all the common list separators.
4080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4081   for pkg in $enableval; do
4082     if test "X$pkg" = "X$p"; then
4083       enable_static=yes
4084     fi
4085   done
4086   IFS="$ac_save_ifs"
4087   ;;
4088 esac
4089 else
4090   enable_static=yes
4091 fi;
4092 # Check whether --enable-fast-install or --disable-fast-install was given.
4093 if test "${enable_fast_install+set}" = set; then
4094   enableval="$enable_fast_install"
4095   p=${PACKAGE-default}
4096 case $enableval in
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4099 *)
4100   enable_fast_install=no
4101   # Look at the argument we got.  We use all the common list separators.
4102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4103   for pkg in $enableval; do
4104     if test "X$pkg" = "X$p"; then
4105       enable_fast_install=yes
4106     fi
4107   done
4108   IFS="$ac_save_ifs"
4109   ;;
4110 esac
4111 else
4112   enable_fast_install=yes
4113 fi;
4114
4115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4116 if test "${with_gnu_ld+set}" = set; then
4117   withval="$with_gnu_ld"
4118   test "$withval" = no || with_gnu_ld=yes
4119 else
4120   with_gnu_ld=no
4121 fi;
4122 ac_prog=ld
4123 if test "$GCC" = yes; then
4124   # Check if gcc -print-prog-name=ld gives a path.
4125   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4126 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4127   case $host in
4128   *-*-mingw*)
4129     # gcc leaves a trailing carriage return which upsets mingw
4130     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4131   *)
4132     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4133   esac
4134   case $ac_prog in
4135     # Accept absolute paths.
4136     [\\/]* | [A-Za-z]:[\\/]*)
4137       re_direlt='/[^/][^/]*/\.\./'
4138       # Canonicalize the path of ld
4139       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4140       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4141         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4142       done
4143       test -z "$LD" && LD="$ac_prog"
4144       ;;
4145   "")
4146     # If it fails, then pretend we aren't using GCC.
4147     ac_prog=ld
4148     ;;
4149   *)
4150     # If it is relative, then search for the first ld in PATH.
4151     with_gnu_ld=unknown
4152     ;;
4153   esac
4154 elif test "$with_gnu_ld" = yes; then
4155   echo "$as_me:$LINENO: checking for GNU ld" >&5
4156 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4157 else
4158   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4159 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4160 fi
4161 if test "${lt_cv_path_LD+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -z "$LD"; then
4165   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166   for ac_dir in $PATH; do
4167     test -z "$ac_dir" && ac_dir=.
4168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169       lt_cv_path_LD="$ac_dir/$ac_prog"
4170       # Check to see if the program is GNU ld.  I'd rather use --version,
4171       # but apparently some GNU ld's only accept -v.
4172       # Break only if it was the GNU/non-GNU ld that we prefer.
4173       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4174         test "$with_gnu_ld" != no && break
4175       else
4176         test "$with_gnu_ld" != yes && break
4177       fi
4178     fi
4179   done
4180   IFS="$ac_save_ifs"
4181 else
4182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4183 fi
4184 fi
4185
4186 LD="$lt_cv_path_LD"
4187 if test -n "$LD"; then
4188   echo "$as_me:$LINENO: result: $LD" >&5
4189 echo "${ECHO_T}$LD" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4196    { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4204   lt_cv_prog_gnu_ld=yes
4205 else
4206   lt_cv_prog_gnu_ld=no
4207 fi
4208 fi
4209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4212
4213
4214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   lt_cv_ld_reload_flag='-r'
4220 fi
4221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4223 reload_flag=$lt_cv_ld_reload_flag
4224 test -n "$reload_flag" && reload_flag=" $reload_flag"
4225
4226 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4227 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4228 if test "${lt_cv_path_NM+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$NM"; then
4232   # Let the user override the test.
4233   lt_cv_path_NM="$NM"
4234 else
4235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4236   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4237     test -z "$ac_dir" && ac_dir=.
4238     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4239     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4240       # Check to see if the nm accepts a BSD-compat flag.
4241       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242       #   nm: unknown option "B" ignored
4243       # Tru64's nm complains that /dev/null is an invalid object file
4244       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4245         lt_cv_path_NM="$tmp_nm -B"
4246         break
4247       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4248         lt_cv_path_NM="$tmp_nm -p"
4249         break
4250       else
4251         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4252         continue # so that we can try to find one that supports BSD flags
4253       fi
4254     fi
4255   done
4256   IFS="$ac_save_ifs"
4257   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4258 fi
4259 fi
4260
4261 NM="$lt_cv_path_NM"
4262 echo "$as_me:$LINENO: result: $NM" >&5
4263 echo "${ECHO_T}$NM" >&6
4264
4265 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4266 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4267 if test "${lt_cv_deplibs_check_method+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   lt_cv_file_magic_cmd='$MAGIC_CMD'
4271 lt_cv_file_magic_test_file=
4272 lt_cv_deplibs_check_method='unknown'
4273 # Need to set the preceding variable on all platforms that support
4274 # interlibrary dependencies.
4275 # 'none' -- dependencies not supported.
4276 # `unknown' -- same as none, but documents that we really don't know.
4277 # 'pass_all' -- all dependencies passed with no checks.
4278 # 'test_compile' -- check by making test program.
4279 # 'file_magic [regex]' -- check by looking for files in library path
4280 # which responds to the $file_magic_cmd with a given egrep regex.
4281 # If you have `file' or equivalent on your system and you're not sure
4282 # whether `pass_all' will *always* work, you probably want this one.
4283
4284 case $host_os in
4285 aix*)
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4288
4289 beos*)
4290   lt_cv_deplibs_check_method=pass_all
4291   ;;
4292
4293 bsdi4*)
4294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4295   lt_cv_file_magic_cmd='/usr/bin/file -L'
4296   lt_cv_file_magic_test_file=/shlib/libc.so
4297   ;;
4298
4299 cygwin* | mingw* |pw32*)
4300   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301   lt_cv_file_magic_cmd='$OBJDUMP -f'
4302   ;;
4303
4304 darwin* | rhapsody*)
4305   # this will be overwritten by pass_all, but leave it in just in case
4306   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4307   lt_cv_file_magic_cmd='/usr/bin/file -L'
4308   case "$host_os" in
4309   rhapsody* | darwin1.012)
4310     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4311     ;;
4312   *) # Darwin 1.3 on
4313     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4314     ;;
4315   esac
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4318
4319 freebsd* | kfreebsd*-gnu)
4320   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321     case $host_cpu in
4322     i*86 )
4323       # Not sure whether the presence of OpenBSD here was a mistake.
4324       # Let's accept both of them until this is cleared up.
4325       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4326       lt_cv_file_magic_cmd=/usr/bin/file
4327       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328       ;;
4329     esac
4330   else
4331     lt_cv_deplibs_check_method=pass_all
4332   fi
4333   ;;
4334
4335 gnu*)
4336   lt_cv_deplibs_check_method=pass_all
4337   ;;
4338
4339 hpux10.20*|hpux11*)
4340   case $host_cpu in
4341   hppa*)
4342     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343     lt_cv_file_magic_cmd=/usr/bin/file
4344     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345     ;;
4346   ia64*)
4347     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348     lt_cv_file_magic_cmd=/usr/bin/file
4349     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350     ;;
4351   esac
4352   ;;
4353
4354 irix5* | irix6*)
4355   case $host_os in
4356   irix5*)
4357     # this will be overridden with pass_all, but let us keep it just in case
4358     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359     ;;
4360   *)
4361     case $LD in
4362     *-32|*"-32 ") libmagic=32-bit;;
4363     *-n32|*"-n32 ") libmagic=N32;;
4364     *-64|*"-64 ") libmagic=64-bit;;
4365     *) libmagic=never-match;;
4366     esac
4367     # this will be overridden with pass_all, but let us keep it just in case
4368     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4369     ;;
4370   esac
4371   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4372   lt_cv_deplibs_check_method=pass_all
4373   ;;
4374
4375 # This must be Linux ELF.
4376 linux-gnu*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 netbsd* | knetbsd*-gnu)
4381   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4382     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4383   else
4384     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4385   fi
4386   ;;
4387
4388 newsos6)
4389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4390   lt_cv_file_magic_cmd=/usr/bin/file
4391   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4392   ;;
4393
4394 osf3* | osf4* | osf5*)
4395   # this will be overridden with pass_all, but let us keep it just in case
4396   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4397   lt_cv_file_magic_test_file=/shlib/libc.so
4398   lt_cv_deplibs_check_method=pass_all
4399   ;;
4400
4401 sco3.2v5*)
4402   lt_cv_deplibs_check_method=pass_all
4403   ;;
4404
4405 solaris*)
4406   lt_cv_deplibs_check_method=pass_all
4407   lt_cv_file_magic_test_file=/lib/libc.so
4408   ;;
4409
4410 sysv5uw[78]* | sysv4*uw2*)
4411   lt_cv_deplibs_check_method=pass_all
4412   ;;
4413
4414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4415   case $host_vendor in
4416   ncr)
4417     lt_cv_deplibs_check_method=pass_all
4418     ;;
4419   motorola)
4420     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]'
4421     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422     ;;
4423   esac
4424   ;;
4425 esac
4426
4427 fi
4428 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4432
4433
4434
4435
4436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4437
4438 # find the maximum length of command line arguments
4439 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4440 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4441 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444     i=0
4445   teststring="ABCD"
4446
4447   case $build_os in
4448   msdosdjgpp*)
4449     # On DJGPP, this test can blow up pretty badly due to problems in libc
4450     # (any single argument exceeding 2000 bytes causes a buffer overrun
4451     # during glob expansion).  Even if it were fixed, the result of this
4452     # check would be larger than it should be.
4453     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4454     ;;
4455
4456   cygwin* | mingw*)
4457     # On Win9x/ME, this test blows up -- it succeeds, but takes
4458     # about 5 minutes as the teststring grows exponentially.
4459     # Worse, since 9x/ME are not pre-emptively multitasking,
4460     # you end up with a "frozen" computer, even though with patience
4461     # the test eventually succeeds (with a max line length of 256k).
4462     # Instead, let's just punt: use the minimum linelength reported by
4463     # all of the supported platforms: 8192 (on NT/2K/XP).
4464     lt_cv_sys_max_cmd_len=8192;
4465     ;;
4466
4467   amigaos*)
4468     # On AmigaOS with pdksh, this test takes hours, literally.
4469     # So we just punt and use a minimum line length of 8192.
4470     lt_cv_sys_max_cmd_len=8192;
4471     ;;
4472
4473   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4474     # This has been around since 386BSD, at least.  Likely further.
4475     if test -x /sbin/sysctl; then
4476       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4477     elif test -x /usr/sbin/sysctl; then
4478       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4479     else
4480       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4481     fi
4482     # And add a safety zone
4483     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4484     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4485     ;;
4486   *)
4487     # If test is not a shell built-in, we'll probably end up computing a
4488     # maximum length that is only half of the actual maximum length, but
4489     # we can't tell.
4490     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4491     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4492                = "XX$teststring") >/dev/null 2>&1 &&
4493             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4494             lt_cv_sys_max_cmd_len=$new_result &&
4495             test $i != 17 # 1/2 MB should be enough
4496     do
4497       i=`expr $i + 1`
4498       teststring=$teststring$teststring
4499     done
4500     teststring=
4501     # Add a significant safety factor because C++ compilers can tack on massive
4502     # amounts of additional arguments before passing them to the linker.
4503     # It appears as though 1/2 is a usable value.
4504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4505     ;;
4506   esac
4507
4508 fi
4509
4510 if test -n $lt_cv_sys_max_cmd_len ; then
4511   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4513 else
4514   echo "$as_me:$LINENO: result: none" >&5
4515 echo "${ECHO_T}none" >&6
4516 fi
4517
4518
4519 # Only perform the check for file, if the check method requires it
4520 case $deplibs_check_method in
4521 file_magic*)
4522   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4523     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4524 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4525 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   case $MAGIC_CMD in
4529   /*)
4530   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4531   ;;
4532   ?:/*)
4533   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4534   ;;
4535   *)
4536   ac_save_MAGIC_CMD="$MAGIC_CMD"
4537   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4538   ac_dummy="/usr/bin:$PATH"
4539   for ac_dir in $ac_dummy; do
4540     test -z "$ac_dir" && ac_dir=.
4541     if test -f $ac_dir/${ac_tool_prefix}file; then
4542       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4543       if test -n "$file_magic_test_file"; then
4544         case $deplibs_check_method in
4545         "file_magic "*)
4546           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4547           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4548           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4549             egrep "$file_magic_regex" > /dev/null; then
4550             :
4551           else
4552             cat <<EOF 1>&2
4553
4554 *** Warning: the command libtool uses to detect shared libraries,
4555 *** $file_magic_cmd, produces output that libtool cannot recognize.
4556 *** The result is that libtool may fail to recognize shared libraries
4557 *** as such.  This will affect the creation of libtool libraries that
4558 *** depend on shared libraries, but programs linked with such libtool
4559 *** libraries will work regardless of this problem.  Nevertheless, you
4560 *** may want to report the problem to your system manager and/or to
4561 *** bug-libtool@gnu.org
4562
4563 EOF
4564           fi ;;
4565         esac
4566       fi
4567       break
4568     fi
4569   done
4570   IFS="$ac_save_ifs"
4571   MAGIC_CMD="$ac_save_MAGIC_CMD"
4572   ;;
4573 esac
4574 fi
4575
4576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4577 if test -n "$MAGIC_CMD"; then
4578   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4579 echo "${ECHO_T}$MAGIC_CMD" >&6
4580 else
4581   echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583 fi
4584
4585 if test -z "$lt_cv_path_MAGIC_CMD"; then
4586   if test -n "$ac_tool_prefix"; then
4587     echo "$as_me:$LINENO: checking for file" >&5
4588 echo $ECHO_N "checking for file... $ECHO_C" >&6
4589 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   case $MAGIC_CMD in
4593   /*)
4594   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4595   ;;
4596   ?:/*)
4597   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4598   ;;
4599   *)
4600   ac_save_MAGIC_CMD="$MAGIC_CMD"
4601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4602   ac_dummy="/usr/bin:$PATH"
4603   for ac_dir in $ac_dummy; do
4604     test -z "$ac_dir" && ac_dir=.
4605     if test -f $ac_dir/file; then
4606       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4607       if test -n "$file_magic_test_file"; then
4608         case $deplibs_check_method in
4609         "file_magic "*)
4610           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4611           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4612           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4613             egrep "$file_magic_regex" > /dev/null; then
4614             :
4615           else
4616             cat <<EOF 1>&2
4617
4618 *** Warning: the command libtool uses to detect shared libraries,
4619 *** $file_magic_cmd, produces output that libtool cannot recognize.
4620 *** The result is that libtool may fail to recognize shared libraries
4621 *** as such.  This will affect the creation of libtool libraries that
4622 *** depend on shared libraries, but programs linked with such libtool
4623 *** libraries will work regardless of this problem.  Nevertheless, you
4624 *** may want to report the problem to your system manager and/or to
4625 *** bug-libtool@gnu.org
4626
4627 EOF
4628           fi ;;
4629         esac
4630       fi
4631       break
4632     fi
4633   done
4634   IFS="$ac_save_ifs"
4635   MAGIC_CMD="$ac_save_MAGIC_CMD"
4636   ;;
4637 esac
4638 fi
4639
4640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4641 if test -n "$MAGIC_CMD"; then
4642   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4643 echo "${ECHO_T}$MAGIC_CMD" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647 fi
4648
4649   else
4650     MAGIC_CMD=:
4651   fi
4652 fi
4653
4654   fi
4655   ;;
4656 esac
4657
4658 if test -n "$ac_tool_prefix"; then
4659   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4661 echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663 if test "${ac_cv_prog_RANLIB+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$RANLIB"; then
4667   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683 fi
4684 fi
4685 RANLIB=$ac_cv_prog_RANLIB
4686 if test -n "$RANLIB"; then
4687   echo "$as_me:$LINENO: result: $RANLIB" >&5
4688 echo "${ECHO_T}$RANLIB" >&6
4689 else
4690   echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 fi
4693
4694 fi
4695 if test -z "$ac_cv_prog_RANLIB"; then
4696   ac_ct_RANLIB=$RANLIB
4697   # Extract the first word of "ranlib", so it can be a program name with args.
4698 set dummy ranlib; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   if test -n "$ac_ct_RANLIB"; then
4705   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714     ac_cv_prog_ac_ct_RANLIB="ranlib"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720
4721   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4722 fi
4723 fi
4724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4725 if test -n "$ac_ct_RANLIB"; then
4726   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4728 else
4729   echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4731 fi
4732
4733   RANLIB=$ac_ct_RANLIB
4734 else
4735   RANLIB="$ac_cv_prog_RANLIB"
4736 fi
4737
4738 if test -n "$ac_tool_prefix"; then
4739   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}strip; ac_word=$2
4741 echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743 if test "${ac_cv_prog_STRIP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$STRIP"; then
4747   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763 fi
4764 fi
4765 STRIP=$ac_cv_prog_STRIP
4766 if test -n "$STRIP"; then
4767   echo "$as_me:$LINENO: result: $STRIP" >&5
4768 echo "${ECHO_T}$STRIP" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 fi
4775 if test -z "$ac_cv_prog_STRIP"; then
4776   ac_ct_STRIP=$STRIP
4777   # Extract the first word of "strip", so it can be a program name with args.
4778 set dummy strip; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$ac_ct_STRIP"; then
4785   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_ac_ct_STRIP="strip"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800
4801   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4802 fi
4803 fi
4804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4805 if test -n "$ac_ct_STRIP"; then
4806   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4807 echo "${ECHO_T}$ac_ct_STRIP" >&6
4808 else
4809   echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813   STRIP=$ac_ct_STRIP
4814 else
4815   STRIP="$ac_cv_prog_STRIP"
4816 fi
4817
4818
4819 # Check for any special flags to pass to ltconfig.
4820 libtool_flags="--cache-file=$cache_file"
4821 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4822 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4823 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4824 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4825 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4826
4827
4828 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4829 if test "${enable_libtool_lock+set}" = set; then
4830   enableval="$enable_libtool_lock"
4831
4832 fi;
4833 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4834 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4835
4836
4837 # Check whether --with-pic or --without-pic was given.
4838 if test "${with_pic+set}" = set; then
4839   withval="$with_pic"
4840   pic_mode="$withval"
4841 else
4842   pic_mode=default
4843 fi;
4844 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4845 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4846
4847 # Some flags need to be propagated to the compiler or linker for good
4848 # libtool support.
4849 case $host in
4850 *-*-irix6*)
4851   # Find out which ABI we are using.
4852   echo '#line 4852 "configure"' > conftest.$ac_ext
4853   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854   (eval $ac_compile) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); }; then
4858    if test "$lt_cv_prog_gnu_ld" = yes; then
4859     case `/usr/bin/file conftest.$ac_objext` in
4860     *32-bit*)
4861       LD="${LD-ld} -melf32bsmip"
4862       ;;
4863     *N32*)
4864       LD="${LD-ld} -melf32bmipn32"
4865       ;;
4866     *64-bit*)
4867       LD="${LD-ld} -melf64bmip"
4868       ;;
4869     esac
4870    else
4871     case `/usr/bin/file conftest.$ac_objext` in
4872     *32-bit*)
4873       LD="${LD-ld} -32"
4874       ;;
4875     *N32*)
4876       LD="${LD-ld} -n32"
4877       ;;
4878     *64-bit*)
4879       LD="${LD-ld} -64"
4880       ;;
4881     esac
4882    fi
4883   fi
4884   rm -rf conftest*
4885   ;;
4886
4887 ia64-*-hpux*)
4888   # Find out which ABI we are using.
4889   echo 'int i;' > conftest.$ac_ext
4890   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891   (eval $ac_compile) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; then
4895     case "`/usr/bin/file conftest.o`" in
4896     *ELF-32*)
4897       HPUX_IA64_MODE="32"
4898       ;;
4899     *ELF-64*)
4900       HPUX_IA64_MODE="64"
4901       ;;
4902     esac
4903   fi
4904   rm -rf conftest*
4905   ;;
4906
4907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4908   # Find out which ABI we are using.
4909   echo 'int i;' > conftest.$ac_ext
4910   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911   (eval $ac_compile) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; then
4915     case "`/usr/bin/file conftest.o`" in
4916     *32-bit*)
4917       case $host in
4918         x86_64-*linux*)
4919           LD="${LD-ld} -m elf_i386"
4920           ;;
4921         ppc64-*linux*|powerpc64-*linux*)
4922           LD="${LD-ld} -m elf32ppclinux"
4923           ;;
4924         s390x-*linux*)
4925           LD="${LD-ld} -m elf_s390"
4926           ;;
4927         sparc64-*linux*)
4928           LD="${LD-ld} -m elf32_sparc"
4929           ;;
4930       esac
4931       ;;
4932     *64-bit*)
4933       case $host in
4934         x86_64-*linux*)
4935           LD="${LD-ld} -m elf_x86_64"
4936           ;;
4937         ppc*-*linux*|powerpc*-*linux*)
4938           LD="${LD-ld} -m elf64ppc"
4939           ;;
4940         s390*-*linux*)
4941           LD="${LD-ld} -m elf64_s390"
4942           ;;
4943         sparc*-*linux*)
4944           LD="${LD-ld} -m elf64_sparc"
4945           ;;
4946       esac
4947       ;;
4948     esac
4949   fi
4950   rm -rf conftest*
4951   ;;
4952
4953 *-*-sco3.2v5*)
4954   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4955   SAVE_CFLAGS="$CFLAGS"
4956   CFLAGS="$CFLAGS -belf"
4957   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4958 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4959 if test "${lt_cv_cc_needs_belf+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962
4963
4964      ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969
4970      if test x$gcc_no_link = xyes; then
4971   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4973    { (exit 1); exit 1; }; }
4974 fi
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981
4982 int
4983 main ()
4984 {
4985
4986   ;
4987   return 0;
4988 }
4989 _ACEOF
4990 rm -f conftest.$ac_objext conftest$ac_exeext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4992   (eval $ac_link) 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } &&
4999          { ac_try='test -z "$ac_c_werror_flag"
5000                          || test ! -s conftest.err'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; } &&
5006          { ac_try='test -s conftest$ac_exeext'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; }; then
5012   lt_cv_cc_needs_belf=yes
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017 lt_cv_cc_needs_belf=no
5018 fi
5019 rm -f conftest.err conftest.$ac_objext \
5020       conftest$ac_exeext conftest.$ac_ext
5021      ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 fi
5028 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5029 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5030   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5031     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5032     CFLAGS="$SAVE_CFLAGS"
5033   fi
5034   ;;
5035
5036
5037 esac
5038
5039
5040 # Save cache, so that ltconfig can load it
5041 cat >confcache <<\_ACEOF
5042 # This file is a shell script that caches the results of configure
5043 # tests run on this system so they can be shared between configure
5044 # scripts and configure runs, see configure's option --config-cache.
5045 # It is not useful on other systems.  If it contains results you don't
5046 # want to keep, you may remove or edit it.
5047 #
5048 # config.status only pays attention to the cache file if you give it
5049 # the --recheck option to rerun configure.
5050 #
5051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5053 # following values.
5054
5055 _ACEOF
5056
5057 # The following way of writing the cache mishandles newlines in values,
5058 # but we know of no workaround that is simple, portable, and efficient.
5059 # So, don't put newlines in cache variables' values.
5060 # Ultrix sh set writes to stderr and can't be redirected directly,
5061 # and sets the high bit in the cache file unless we assign to the vars.
5062 {
5063   (set) 2>&1 |
5064     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5065     *ac_space=\ *)
5066       # `set' does not quote correctly, so add quotes (double-quote
5067       # substitution turns \\\\ into \\, and sed turns \\ into \).
5068       sed -n \
5069         "s/'/'\\\\''/g;
5070           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5071       ;;
5072     *)
5073       # `set' quotes correctly as required by POSIX, so do not add quotes.
5074       sed -n \
5075         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5076       ;;
5077     esac;
5078 } |
5079   sed '
5080      t clear
5081      : clear
5082      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5083      t end
5084      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5085      : end' >>confcache
5086 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5087   if test -w $cache_file; then
5088     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5089     cat confcache >$cache_file
5090   else
5091     echo "not updating unwritable cache $cache_file"
5092   fi
5093 fi
5094 rm -f confcache
5095
5096 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5097 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5098 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5099 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5100 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5101 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5102 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5103 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5104 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5105 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5106 echo "$as_me: error: libtool configure failed" >&2;}
5107    { (exit 1); exit 1; }; }
5108
5109 # Reload cache, that may have been modified by ltconfig
5110 if test -r "$cache_file"; then
5111   # Some versions of bash will fail to source /dev/null (special
5112   # files actually), so we avoid doing that.
5113   if test -f "$cache_file"; then
5114     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5115 echo "$as_me: loading cache $cache_file" >&6;}
5116     case $cache_file in
5117       [\\/]* | ?:[\\/]* ) . $cache_file;;
5118       *)                      . ./$cache_file;;
5119     esac
5120   fi
5121 else
5122   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5123 echo "$as_me: creating cache $cache_file" >&6;}
5124   >$cache_file
5125 fi
5126
5127
5128 # This can be used to rebuild libtool when needed
5129 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5130
5131 # Always use our own libtool.
5132 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5133
5134 # Redirect the config.log output again, so that the ltconfig log is not
5135 # clobbered by the next message.
5136 exec 5>>./config.log
5137
5138 ac_ext=cc
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5144 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5145 if test -z "$CXXCPP"; then
5146   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149       # Double quotes because CXXCPP needs to be expanded
5150     for CXXCPP in "$CXX -E" "/lib/cpp"
5151     do
5152       ac_preproc_ok=false
5153 for ac_cxx_preproc_warn_flag in '' yes
5154 do
5155   # Use a header file that comes with gcc, so configuring glibc
5156   # with a fresh cross-compiler works.
5157   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158   # <limits.h> exists even on freestanding compilers.
5159   # On the NeXT, cc -E runs the code through the compiler's parser,
5160   # not just through cpp. "Syntax error" is here to catch this case.
5161   cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172                      Syntax error
5173 _ACEOF
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } >/dev/null; then
5182   if test -s conftest.err; then
5183     ac_cpp_err=$ac_cxx_preproc_warn_flag
5184     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5185   else
5186     ac_cpp_err=
5187   fi
5188 else
5189   ac_cpp_err=yes
5190 fi
5191 if test -z "$ac_cpp_err"; then
5192   :
5193 else
5194   echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197   # Broken: fails on valid input.
5198 continue
5199 fi
5200 rm -f conftest.err conftest.$ac_ext
5201
5202   # OK, works on sane cases.  Now check whether non-existent headers
5203   # can be detected and how.
5204   cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 #include <ac_nonexistent.h>
5211 _ACEOF
5212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } >/dev/null; then
5220   if test -s conftest.err; then
5221     ac_cpp_err=$ac_cxx_preproc_warn_flag
5222     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5223   else
5224     ac_cpp_err=
5225   fi
5226 else
5227   ac_cpp_err=yes
5228 fi
5229 if test -z "$ac_cpp_err"; then
5230   # Broken: success on invalid input.
5231 continue
5232 else
5233   echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236   # Passes both tests.
5237 ac_preproc_ok=:
5238 break
5239 fi
5240 rm -f conftest.err conftest.$ac_ext
5241
5242 done
5243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5244 rm -f conftest.err conftest.$ac_ext
5245 if $ac_preproc_ok; then
5246   break
5247 fi
5248
5249     done
5250     ac_cv_prog_CXXCPP=$CXXCPP
5251
5252 fi
5253   CXXCPP=$ac_cv_prog_CXXCPP
5254 else
5255   ac_cv_prog_CXXCPP=$CXXCPP
5256 fi
5257 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5258 echo "${ECHO_T}$CXXCPP" >&6
5259 ac_preproc_ok=false
5260 for ac_cxx_preproc_warn_flag in '' yes
5261 do
5262   # Use a header file that comes with gcc, so configuring glibc
5263   # with a fresh cross-compiler works.
5264   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5265   # <limits.h> exists even on freestanding compilers.
5266   # On the NeXT, cc -E runs the code through the compiler's parser,
5267   # not just through cpp. "Syntax error" is here to catch this case.
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #ifdef __STDC__
5275 # include <limits.h>
5276 #else
5277 # include <assert.h>
5278 #endif
5279                      Syntax error
5280 _ACEOF
5281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } >/dev/null; then
5289   if test -s conftest.err; then
5290     ac_cpp_err=$ac_cxx_preproc_warn_flag
5291     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5292   else
5293     ac_cpp_err=
5294   fi
5295 else
5296   ac_cpp_err=yes
5297 fi
5298 if test -z "$ac_cpp_err"; then
5299   :
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304   # Broken: fails on valid input.
5305 continue
5306 fi
5307 rm -f conftest.err conftest.$ac_ext
5308
5309   # OK, works on sane cases.  Now check whether non-existent headers
5310   # can be detected and how.
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 #include <ac_nonexistent.h>
5318 _ACEOF
5319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5321   ac_status=$?
5322   grep -v '^ *+' conftest.er1 >conftest.err
5323   rm -f conftest.er1
5324   cat conftest.err >&5
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); } >/dev/null; then
5327   if test -s conftest.err; then
5328     ac_cpp_err=$ac_cxx_preproc_warn_flag
5329     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5330   else
5331     ac_cpp_err=
5332   fi
5333 else
5334   ac_cpp_err=yes
5335 fi
5336 if test -z "$ac_cpp_err"; then
5337   # Broken: success on invalid input.
5338 continue
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343   # Passes both tests.
5344 ac_preproc_ok=:
5345 break
5346 fi
5347 rm -f conftest.err conftest.$ac_ext
5348
5349 done
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then
5353   :
5354 else
5355   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5356 See \`config.log' for more details." >&5
5357 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5358 See \`config.log' for more details." >&2;}
5359    { (exit 1); exit 1; }; }
5360 fi
5361
5362 ac_ext=c
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368
5369
5370 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5371 lt_save_CC="$CC"
5372 lt_save_CFLAGS="$CFLAGS"
5373 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5374 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5375 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5376 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5377 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5378 deplibs_check_method="$deplibs_check_method" \
5379 file_magic_cmd="$file_magic_cmd" \
5380 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5381 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5382 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5383 echo "$as_me: error: libtool tag configuration failed" >&2;}
5384    { (exit 1); exit 1; }; }
5385 CC="$lt_save_CC"
5386 CFLAGS="$lt_save_CFLAGS"
5387
5388 # Redirect the config.log output again, so that the ltconfig log is not
5389 # clobbered by the next message.
5390 exec 5>>./config.log
5391
5392
5393
5394
5395
5396
5397
5398 for ac_prog in gcj
5399 do
5400   # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5404 if test "${ac_cv_prog_GCJ+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   if test -n "$GCJ"; then
5408   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415   for ac_exec_ext in '' $ac_executable_extensions; do
5416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417     ac_cv_prog_GCJ="$ac_prog"
5418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422 done
5423
5424 fi
5425 fi
5426 GCJ=$ac_cv_prog_GCJ
5427 if test -n "$GCJ"; then
5428   echo "$as_me:$LINENO: result: $GCJ" >&5
5429 echo "${ECHO_T}$GCJ" >&6
5430 else
5431   echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5433 fi
5434
5435   test -n "$GCJ" && break
5436 done
5437 test -n "$GCJ" || GCJ="gcj"
5438
5439 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5440 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5441    { (exit 1); exit 1; }; }
5442 if test "x${GCJFLAGS-unset}" = xunset; then
5443    GCJFLAGS="-g -O2"
5444 fi
5445
5446
5447 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5448
5449 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5450 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5451 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5452   echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5455   # We make a subdir and do the tests there.  Otherwise we can end up
5456   # making bogus files that we don't know about and never remove.  For
5457   # instance it was reported that on HP-UX the gcc test will end up
5458   # making a dummy file named `D' -- because `-MD' means `put the output
5459   # in D'.
5460   mkdir conftest.dir
5461   # Copy depcomp to subdir because otherwise we won't find it if we're
5462   # using a relative directory.
5463   cp "$am_depcomp" conftest.dir
5464   cd conftest.dir
5465   # We will build objects and dependencies in a subdirectory because
5466   # it helps to detect inapplicable dependency modes.  For instance
5467   # both Tru64's cc and ICC support -MD to output dependencies as a
5468   # side effect of compilation, but ICC will put the dependencies in
5469   # the current directory while Tru64 will put them in the object
5470   # directory.
5471   mkdir sub
5472
5473   am_cv_GCJ_dependencies_compiler_type=none
5474   if test "$am_compiler_list" = ""; then
5475      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5476   fi
5477   for depmode in $am_compiler_list; do
5478     # Setup a source with many dependencies, because some compilers
5479     # like to wrap large dependency lists on column 80 (with \), and
5480     # we should not choose a depcomp mode which is confused by this.
5481     #
5482     # We need to recreate these files for each test, as the compiler may
5483     # overwrite some of them when testing with obscure command lines.
5484     # This happens at least with the AIX C compiler.
5485     : > sub/conftest.c
5486     for i in 1 2 3 4 5 6; do
5487       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5488       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5489       # Solaris 8's {/usr,}/bin/sh.
5490       touch sub/conftst$i.h
5491     done
5492     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5493
5494     case $depmode in
5495     nosideeffect)
5496       # after this tag, mechanisms are not by side-effect, so they'll
5497       # only be used when explicitly requested
5498       if test "x$enable_dependency_tracking" = xyes; then
5499         continue
5500       else
5501         break
5502       fi
5503       ;;
5504     none) break ;;
5505     esac
5506     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5507     # mode.  It turns out that the SunPro C++ compiler does not properly
5508     # handle `-M -o', and we need to detect this.
5509     if depmode=$depmode \
5510        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5511        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5512        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5513          >/dev/null 2>conftest.err &&
5514        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5515        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5516        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5517       # icc doesn't choke on unknown options, it will just issue warnings
5518       # or remarks (even with -Werror).  So we grep stderr for any message
5519       # that says an option was ignored or not supported.
5520       # When given -MP, icc 7.0 and 7.1 complain thusly:
5521       #   icc: Command line warning: ignoring option '-M'; no argument required
5522       # The diagnosis changed in icc 8.0:
5523       #   icc: Command line remark: option '-MP' not supported
5524       if (grep 'ignoring option' conftest.err ||
5525           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5526         am_cv_GCJ_dependencies_compiler_type=$depmode
5527         break
5528       fi
5529     fi
5530   done
5531
5532   cd ..
5533   rm -rf conftest.dir
5534 else
5535   am_cv_GCJ_dependencies_compiler_type=none
5536 fi
5537
5538 fi
5539 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5540 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5541 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5542
5543
5544
5545 if
5546   test "x$enable_dependency_tracking" != xno \
5547   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5548   am__fastdepGCJ_TRUE=
5549   am__fastdepGCJ_FALSE='#'
5550 else
5551   am__fastdepGCJ_TRUE='#'
5552   am__fastdepGCJ_FALSE=
5553 fi
5554
5555
5556
5557
5558 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5559 lt_save_CC="$CC"
5560 lt_save_CFLAGS="$CFLAGS"
5561 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5562 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5563 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5564 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5565 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5566 deplibs_check_method="$deplibs_check_method" \
5567 file_magic_cmd="$file_magic_cmd" \
5568 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5569 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5570 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5571 echo "$as_me: error: libtool tag configuration failed" >&2;}
5572    { (exit 1); exit 1; }; }
5573 CC="$lt_save_CC"
5574 CFLAGS="$lt_save_CFLAGS"
5575
5576 # Redirect the config.log output again, so that the ltconfig log is not
5577 # clobbered by the next message.
5578 exec 5>>./config.log
5579
5580
5581
5582 if test "x$CC" != xcc; then
5583   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5584 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5585 else
5586   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5587 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5588 fi
5589 set dummy $CC; ac_cc=`echo $2 |
5590                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5591 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600
5601 int
5602 main ()
5603 {
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 # Make sure it works both with $CC and with simple cc.
5610 # We do the test twice because some compilers refuse to overwrite an
5611 # existing .o file with -o, though they will create one.
5612 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5613 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); };
5623 then
5624   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5625   if test "x$CC" != xcc; then
5626     # Test first that cc exists at all.
5627     if { ac_try='cc -c conftest.$ac_ext >&5'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5634       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } &&
5639          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); };
5644       then
5645         # cc works too.
5646         :
5647       else
5648         # cc exists but doesn't like -o.
5649         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5650       fi
5651     fi
5652   fi
5653 else
5654   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5655 fi
5656 rm -f conftest*
5657
5658 fi
5659 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5660   echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6
5662 else
5663   echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6
5665
5666 cat >>confdefs.h <<\_ACEOF
5667 #define NO_MINUS_C_MINUS_O 1
5668 _ACEOF
5669
5670 fi
5671
5672 # FIXME: we rely on the cache variable name because
5673 # there is no other way.
5674 set dummy $CC
5675 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5676 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5677    # Losing compiler, so override with the script.
5678    # FIXME: It is wrong to rewrite CC.
5679    # But if we don't then we get into trouble of one sort or another.
5680    # A longer-term fix would be to have automake use am__CC in this case,
5681    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5682    CC="$am_aux_dir/compile $CC"
5683 fi
5684
5685
5686
5687 subdirs="$subdirs libltdl"
5688
5689
5690 # The -no-testsuite modules omit the test subdir.
5691
5692
5693 if test -d $srcdir/testsuite; then
5694   TESTSUBDIR_TRUE=
5695   TESTSUBDIR_FALSE='#'
5696 else
5697   TESTSUBDIR_TRUE='#'
5698   TESTSUBDIR_FALSE=
5699 fi
5700
5701
5702 # Should the runtime set system properties by examining the
5703 # environment variable GCJ_PROPERTIES?
5704 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5705 if test "${enable_getenv_properties+set}" = set; then
5706   enableval="$enable_getenv_properties"
5707
5708 fi;
5709
5710 # Whether GCJ_PROPERTIES is used depends on the target.
5711 if test -z "$enable_getenv_properties"; then
5712    enable_getenv_properties=${enable_getenv_properties_default-yes}
5713 fi
5714 if test "$enable_getenv_properties" = no; then
5715
5716 cat >>confdefs.h <<\_ACEOF
5717 #define DISABLE_GETENV_PROPERTIES 1
5718 _ACEOF
5719
5720 fi
5721
5722 # Whether we should use arguments to main()
5723 if test -z "$enable_main_args"; then
5724    enable_main_args=${enable_main_args_default-yes}
5725 fi
5726 if test "$enable_main_args" = no; then
5727
5728 cat >>confdefs.h <<\_ACEOF
5729 #define DISABLE_MAIN_ARGS 1
5730 _ACEOF
5731
5732 fi
5733
5734
5735 # Should we use hashtable-based synchronization?
5736 # Currently works only for Linux X86/ia64
5737 # Typically faster and more space-efficient
5738 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5739 if test "${enable_hash_synchronization+set}" = set; then
5740   enableval="$enable_hash_synchronization"
5741
5742 fi;
5743
5744 if test -z "$enable_hash_synchronization"; then
5745    enable_hash_synchronization=$enable_hash_synchronization_default
5746 fi
5747
5748 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5749 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5750 if test "${enable_libgcj_multifile+set}" = set; then
5751   enableval="$enable_libgcj_multifile"
5752   case "${enableval}" in
5753   yes) enable_libgcj_multifile=yes ;;
5754   no)  enable_libgcj_multifile=no ;;
5755   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5756 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5757    { (exit 1); exit 1; }; } ;;
5758 esac
5759 else
5760   enable_libgcj_multifile=no
5761 fi;
5762
5763
5764 if test "$enable_libgcj_multifile" = yes; then
5765   ONESTEP_TRUE=
5766   ONESTEP_FALSE='#'
5767 else
5768   ONESTEP_TRUE='#'
5769   ONESTEP_FALSE=
5770 fi
5771
5772
5773
5774 # Check whether --with-java-home or --without-java-home was given.
5775 if test "${with_java_home+set}" = set; then
5776   withval="$with_java_home"
5777   JAVA_HOME="${withval}"
5778 else
5779   JAVA_HOME=""
5780 fi;
5781
5782
5783 if test ! -z "$JAVA_HOME"; then
5784   JAVA_HOME_SET_TRUE=
5785   JAVA_HOME_SET_FALSE='#'
5786 else
5787   JAVA_HOME_SET_TRUE='#'
5788   JAVA_HOME_SET_FALSE=
5789 fi
5790
5791
5792
5793 # What is the native OS API for MinGW?
5794
5795 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5796 if test "${with_win32_nlsapi+set}" = set; then
5797   withval="$with_win32_nlsapi"
5798   case "${withval}" in
5799   ansi) with_win32_nlsapi=ansi ;;
5800   unicows) with_win32_nlsapi=unicows ;;
5801   unicode) with_win32_nlsapi=unicode ;;
5802   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5803 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5804    { (exit 1); exit 1; }; } ;;
5805 esac
5806 else
5807   with_win32_nlsapi=ansi
5808 fi;
5809
5810 case "${with_win32_nlsapi}" in
5811   unicows | unicode)
5812
5813 cat >>confdefs.h <<\_ACEOF
5814 #define MINGW_LIBGCJ_UNICODE 1
5815 _ACEOF
5816
5817     ;;
5818 esac
5819
5820 # configure.host sets slow_pthread_self if the synchronization code should
5821 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5822 if test "${slow_pthread_self}" = "yes"; then
5823
5824 cat >>confdefs.h <<\_ACEOF
5825 #define SLOW_PTHREAD_SELF 1
5826 _ACEOF
5827
5828 fi
5829
5830
5831 # See if the user has requested runtime debugging.
5832 LIBGCJDEBUG="false"
5833
5834 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5835 if test "${enable_libgcj_debug+set}" = set; then
5836   enableval="$enable_libgcj_debug"
5837   if test "$enable_libgcj_debug" = yes; then
5838
5839 cat >>confdefs.h <<\_ACEOF
5840 #define DEBUG 1
5841 _ACEOF
5842
5843     LIBGCJDEBUG="true"
5844   fi
5845 fi;
5846
5847 # Check for gc debugging.  This option is handled both here and in the GC.
5848 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5849 if test "${enable_gc_debug+set}" = set; then
5850   enableval="$enable_gc_debug"
5851    if test "$enable_gc_debug" = "yes"; then
5852
5853 cat >>confdefs.h <<\_ACEOF
5854 #define LIBGCJ_GC_DEBUG 1
5855 _ACEOF
5856
5857   fi
5858 fi;
5859
5860 # See if the user has the interpreter included.
5861 # Check whether --enable-interpreter or --disable-interpreter was given.
5862 if test "${enable_interpreter+set}" = set; then
5863   enableval="$enable_interpreter"
5864   if test "$enable_interpreter" = yes; then
5865     # This can also be set in configure.host.
5866     libgcj_interpreter=yes
5867   elif test "$enable_interpreter" = no; then
5868     libgcj_interpreter=no
5869   fi
5870 fi;
5871
5872 if test "$libgcj_interpreter" = yes; then
5873
5874 cat >>confdefs.h <<\_ACEOF
5875 #define INTERPRETER 1
5876 _ACEOF
5877
5878 fi
5879 INTERPRETER="$libgcj_interpreter"
5880
5881
5882 echo "$as_me:$LINENO: checking for exception model to use" >&5
5883 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5884 ac_ext=cc
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889
5890 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5891 if test "${enable_sjlj_exceptions+set}" = set; then
5892   enableval="$enable_sjlj_exceptions"
5893   :
5894 else
5895   cat > conftest.$ac_ext << EOF
5896 #line 5896 "configure"
5897 struct S { ~S(); };
5898 void bar();
5899 void foo()
5900 {
5901   S s;
5902   bar();
5903 }
5904 EOF
5905 old_CXXFLAGS="$CXXFLAGS"
5906 CXXFLAGS=-S
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908   (eval $ac_compile) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; then
5912   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5913     enable_sjlj_exceptions=yes
5914   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5915     enable_sjlj_exceptions=no
5916   fi
5917 fi
5918 CXXFLAGS="$old_CXXFLAGS"
5919 rm -f conftest*
5920 fi;
5921 if test x$enable_sjlj_exceptions = xyes; then
5922
5923 cat >>confdefs.h <<\_ACEOF
5924 #define SJLJ_EXCEPTIONS 1
5925 _ACEOF
5926
5927   ac_exception_model_name=sjlj
5928 elif test x$enable_sjlj_exceptions = xno; then
5929   ac_exception_model_name="call frame"
5930 else
5931   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5932 echo "$as_me: error: unable to detect exception model" >&2;}
5933    { (exit 1); exit 1; }; }
5934 fi
5935 ac_ext=c
5936 ac_cpp='$CPP $CPPFLAGS'
5937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940
5941 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5942 echo "${ECHO_T}$ac_exception_model_name" >&6
5943
5944 # If we are non using SJLJ exceptions, and this host does not have support
5945 # for unwinding from a signal handler, enable checked dereferences and divides.
5946 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5947   CHECKREFSPEC=-fcheck-references
5948   DIVIDESPEC=-fuse-divide-subroutine
5949   EXCEPTIONSPEC=
5950 fi
5951
5952 # See if the user wants to disable java.net.  This is the mildly
5953 # ugly way that we admit that target-side configuration sucks.
5954 # Check whether --enable-java-net or --disable-java-net was given.
5955 if test "${enable_java_net+set}" = set; then
5956   enableval="$enable_java_net"
5957
5958 fi;
5959
5960 # Whether java.net is built by default can depend on the target.
5961 if test -z "$enable_java_net"; then
5962    enable_java_net=${enable_java_net_default-yes}
5963 fi
5964 if test "$enable_java_net" = no; then
5965
5966 cat >>confdefs.h <<\_ACEOF
5967 #define DISABLE_JAVA_NET 1
5968 _ACEOF
5969
5970 fi
5971
5972 # See if the user wants to configure without libffi.  Some
5973 # architectures don't support it, and default values are set in
5974 # configure.host.
5975
5976 # Check whether --with-libffi or --without-libffi was given.
5977 if test "${with_libffi+set}" = set; then
5978   withval="$with_libffi"
5979   :
5980 else
5981   with_libffi=${with_libffi_default-yes}
5982 fi;
5983
5984 LIBFFI=
5985 LIBFFIINCS=
5986 if test "$with_libffi" != no; then
5987
5988 cat >>confdefs.h <<\_ACEOF
5989 #define USE_LIBFFI 1
5990 _ACEOF
5991
5992    LIBFFI=../libffi/libffi_convenience.la
5993    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5994 fi
5995
5996
5997
5998 # See if the user wants to disable JVMPI support.
5999 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6000 if test "${enable_jvmpi+set}" = set; then
6001   enableval="$enable_jvmpi"
6002
6003 fi;
6004
6005 if test "$enable_jvmpi" != no; then
6006
6007 cat >>confdefs.h <<\_ACEOF
6008 #define ENABLE_JVMPI 1
6009 _ACEOF
6010
6011 fi
6012
6013 # If the target is an eCos system, use the appropriate eCos
6014 # I/O routines.
6015 # FIXME: this should not be a local option but a global target
6016 # system; at present there is no eCos target.
6017 TARGET_ECOS=${PROCESS-"no"}
6018
6019 # Check whether --with-ecos or --without-ecos was given.
6020 if test "${with_ecos+set}" = set; then
6021   withval="$with_ecos"
6022   TARGET_ECOS="$with_ecos"
6023
6024 fi;
6025
6026 supply_backtrace=no
6027
6028 PLATFORM_INNER_NAT_HDRS=
6029 case "$TARGET_ECOS" in
6030    no) case "$host" in
6031       *mingw*)
6032             PLATFORM=Win32
6033             PLATFORMNET=Win32
6034             PLATFORMH=win32.h
6035
6036 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6037 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6038 LD_PROG=`$CC --print-prog-name=ld`
6039 LD_VERSION=`$LD_PROG --version`
6040 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6041 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6042 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6043   LD_OK="ok"
6044 else
6045   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6046     LD_OK="ok"
6047   fi
6048 fi
6049 if test "x$LD_OK" != x; then
6050   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6051 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6054 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6055   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6056 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6057
6058 cat >>confdefs.h <<\_ACEOF
6059 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6060 _ACEOF
6061
6062 fi
6063       ;;
6064       *)
6065             PLATFORM=Posix
6066             PLATFORMNET=Posix
6067             PLATFORMH=posix.h
6068             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6069       ;;
6070       esac
6071       ;;
6072    *)
6073       PLATFORM=Ecos
6074       PLATFORMNET=NoNet
6075
6076 cat >>confdefs.h <<\_ACEOF
6077 #define ECOS 1
6078 _ACEOF
6079
6080       PLATFORMH=posix.h
6081       ;;
6082 esac
6083
6084           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6085
6086
6087 ac_ext=c
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6093 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6094 # On Suns, sometimes $CPP names a directory.
6095 if test -n "$CPP" && test -d "$CPP"; then
6096   CPP=
6097 fi
6098 if test -z "$CPP"; then
6099   if test "${ac_cv_prog_CPP+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102       # Double quotes because CPP needs to be expanded
6103     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6104     do
6105       ac_preproc_ok=false
6106 for ac_c_preproc_warn_flag in '' yes
6107 do
6108   # Use a header file that comes with gcc, so configuring glibc
6109   # with a fresh cross-compiler works.
6110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111   # <limits.h> exists even on freestanding compilers.
6112   # On the NeXT, cc -E runs the code through the compiler's parser,
6113   # not just through cpp. "Syntax error" is here to catch this case.
6114   cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120 #ifdef __STDC__
6121 # include <limits.h>
6122 #else
6123 # include <assert.h>
6124 #endif
6125                      Syntax error
6126 _ACEOF
6127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6129   ac_status=$?
6130   grep -v '^ *+' conftest.er1 >conftest.err
6131   rm -f conftest.er1
6132   cat conftest.err >&5
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); } >/dev/null; then
6135   if test -s conftest.err; then
6136     ac_cpp_err=$ac_c_preproc_warn_flag
6137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138   else
6139     ac_cpp_err=
6140   fi
6141 else
6142   ac_cpp_err=yes
6143 fi
6144 if test -z "$ac_cpp_err"; then
6145   :
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150   # Broken: fails on valid input.
6151 continue
6152 fi
6153 rm -f conftest.err conftest.$ac_ext
6154
6155   # OK, works on sane cases.  Now check whether non-existent headers
6156   # can be detected and how.
6157   cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163 #include <ac_nonexistent.h>
6164 _ACEOF
6165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6167   ac_status=$?
6168   grep -v '^ *+' conftest.er1 >conftest.err
6169   rm -f conftest.er1
6170   cat conftest.err >&5
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); } >/dev/null; then
6173   if test -s conftest.err; then
6174     ac_cpp_err=$ac_c_preproc_warn_flag
6175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176   else
6177     ac_cpp_err=
6178   fi
6179 else
6180   ac_cpp_err=yes
6181 fi
6182 if test -z "$ac_cpp_err"; then
6183   # Broken: success on invalid input.
6184 continue
6185 else
6186   echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189   # Passes both tests.
6190 ac_preproc_ok=:
6191 break
6192 fi
6193 rm -f conftest.err conftest.$ac_ext
6194
6195 done
6196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6197 rm -f conftest.err conftest.$ac_ext
6198 if $ac_preproc_ok; then
6199   break
6200 fi
6201
6202     done
6203     ac_cv_prog_CPP=$CPP
6204
6205 fi
6206   CPP=$ac_cv_prog_CPP
6207 else
6208   ac_cv_prog_CPP=$CPP
6209 fi
6210 echo "$as_me:$LINENO: result: $CPP" >&5
6211 echo "${ECHO_T}$CPP" >&6
6212 ac_preproc_ok=false
6213 for ac_c_preproc_warn_flag in '' yes
6214 do
6215   # Use a header file that comes with gcc, so configuring glibc
6216   # with a fresh cross-compiler works.
6217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6218   # <limits.h> exists even on freestanding compilers.
6219   # On the NeXT, cc -E runs the code through the compiler's parser,
6220   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6232                      Syntax error
6233 _ACEOF
6234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } >/dev/null; then
6242   if test -s conftest.err; then
6243     ac_cpp_err=$ac_c_preproc_warn_flag
6244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6245   else
6246     ac_cpp_err=
6247   fi
6248 else
6249   ac_cpp_err=yes
6250 fi
6251 if test -z "$ac_cpp_err"; then
6252   :
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257   # Broken: fails on valid input.
6258 continue
6259 fi
6260 rm -f conftest.err conftest.$ac_ext
6261
6262   # OK, works on sane cases.  Now check whether non-existent headers
6263   # can be detected and how.
6264   cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 #include <ac_nonexistent.h>
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274   ac_status=$?
6275   grep -v '^ *+' conftest.er1 >conftest.err
6276   rm -f conftest.er1
6277   cat conftest.err >&5
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } >/dev/null; then
6280   if test -s conftest.err; then
6281     ac_cpp_err=$ac_c_preproc_warn_flag
6282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283   else
6284     ac_cpp_err=
6285   fi
6286 else
6287   ac_cpp_err=yes
6288 fi
6289 if test -z "$ac_cpp_err"; then
6290   # Broken: success on invalid input.
6291 continue
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296   # Passes both tests.
6297 ac_preproc_ok=:
6298 break
6299 fi
6300 rm -f conftest.err conftest.$ac_ext
6301
6302 done
6303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6304 rm -f conftest.err conftest.$ac_ext
6305 if $ac_preproc_ok; then
6306   :
6307 else
6308   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6309 See \`config.log' for more details." >&5
6310 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6311 See \`config.log' for more details." >&2;}
6312    { (exit 1); exit 1; }; }
6313 fi
6314
6315 ac_ext=c
6316 ac_cpp='$CPP $CPPFLAGS'
6317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321
6322 echo "$as_me:$LINENO: checking for egrep" >&5
6323 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6324 if test "${ac_cv_prog_egrep+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6328     then ac_cv_prog_egrep='grep -E'
6329     else ac_cv_prog_egrep='egrep'
6330     fi
6331 fi
6332 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6333 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6334  EGREP=$ac_cv_prog_egrep
6335
6336
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <stdint.h>
6344
6345 _ACEOF
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347   $EGREP "uint32_t" >/dev/null 2>&1; then
6348
6349 cat >>confdefs.h <<\_ACEOF
6350 #define HAVE_INT32_DEFINED 1
6351 _ACEOF
6352
6353 fi
6354 rm -f conftest*
6355
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h.  */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h.  */
6362 #include <inttypes.h>
6363
6364 _ACEOF
6365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366   $EGREP "uint32_t" >/dev/null 2>&1; then
6367
6368 cat >>confdefs.h <<\_ACEOF
6369 #define HAVE_INT32_DEFINED 1
6370 _ACEOF
6371
6372 fi
6373 rm -f conftest*
6374
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381 #include <sys/types.h>
6382
6383 _ACEOF
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385   $EGREP "u_int32_t" >/dev/null 2>&1; then
6386
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_BSD_INT32_DEFINED 1
6389 _ACEOF
6390
6391 fi
6392 rm -f conftest*
6393
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400 #include <sys/config.h>
6401
6402 _ACEOF
6403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6404   $EGREP "u_int32_t" >/dev/null 2>&1; then
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_BSD_INT32_DEFINED 1
6408 _ACEOF
6409
6410 fi
6411 rm -f conftest*
6412
6413
6414
6415
6416 if test "$PLATFORM" = Win32; then
6417   USING_WIN32_PLATFORM_TRUE=
6418   USING_WIN32_PLATFORM_FALSE='#'
6419 else
6420   USING_WIN32_PLATFORM_TRUE='#'
6421   USING_WIN32_PLATFORM_FALSE=
6422 fi
6423
6424
6425
6426 if test "$PLATFORM" = Posix; then
6427   USING_POSIX_PLATFORM_TRUE=
6428   USING_POSIX_PLATFORM_FALSE='#'
6429 else
6430   USING_POSIX_PLATFORM_TRUE='#'
6431   USING_POSIX_PLATFORM_FALSE=
6432 fi
6433
6434
6435
6436 if test "$PLATFORM" = Ecos; then
6437   USING_ECOS_PLATFORM_TRUE=
6438   USING_ECOS_PLATFORM_FALSE='#'
6439 else
6440   USING_ECOS_PLATFORM_TRUE='#'
6441   USING_ECOS_PLATFORM_FALSE=
6442 fi
6443
6444
6445 case "$host" in
6446   *-darwin*) DARWIN_CRT=true ;;
6447   *) DARWIN_CRT=false ;;
6448 esac
6449
6450
6451 if $DARWIN_CRT; then
6452   USING_DARWIN_CRT_TRUE=
6453   USING_DARWIN_CRT_FALSE='#'
6454 else
6455   USING_DARWIN_CRT_TRUE='#'
6456   USING_DARWIN_CRT_FALSE=
6457 fi
6458
6459
6460 # These may not be defined in a non-ANS conformant embedded system.
6461 # FIXME: Should these case a runtime exception in that case?
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <time.h>
6469
6470 _ACEOF
6471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6472   $EGREP "mktime" >/dev/null 2>&1; then
6473
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_MKTIME 1
6476 _ACEOF
6477
6478 fi
6479 rm -f conftest*
6480
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 #include <time.h>
6488
6489 _ACEOF
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491   $EGREP "localtime" >/dev/null 2>&1; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_LOCALTIME 1
6495 _ACEOF
6496
6497 fi
6498 rm -f conftest*
6499
6500
6501 # Create the subdirectory for natFile.cc, or the attempt
6502 # to create the link will fail.
6503 test -d java || mkdir java
6504 test -d java/io || mkdir java/io
6505 test -d gnu || mkdir gnu
6506           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6507
6508
6509 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6510 test -d java/lang || mkdir java/lang
6511           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6512
6513           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6514
6515
6516 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6517 test -d java/net || mkdir java/net
6518           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6519
6520           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6521
6522
6523 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6524 test -d gnu/java || mkdir gnu/java
6525 test -d gnu/java/net || mkdir gnu/java/net
6526           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6527
6528           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6529
6530
6531 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6532 test -d gnu/java/nio || mkdir gnu/java/nio
6533           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6534
6535           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6536
6537 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6538           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6539
6540
6541 case "${host}" in
6542     *mingw*)
6543       SYSTEMSPEC="-lgdi32 -lws2_32"
6544       if test "${with_win32_nlsapi}" = "unicows"; then
6545         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6546       fi
6547     ;;
6548     *)
6549       SYSTEMSPEC=
6550     ;;
6551 esac
6552
6553
6554 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6555
6556
6557
6558 # Check whether --with-system-zlib or --without-system-zlib was given.
6559 if test "${with_system_zlib+set}" = set; then
6560   withval="$with_system_zlib"
6561
6562 fi;
6563 ZLIBSPEC=
6564
6565 ZLIBTESTSPEC=
6566
6567
6568 echo "$as_me:$LINENO: checking for X" >&5
6569 echo $ECHO_N "checking for X... $ECHO_C" >&6
6570
6571
6572 # Check whether --with-x or --without-x was given.
6573 if test "${with_x+set}" = set; then
6574   withval="$with_x"
6575
6576 fi;
6577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6578 if test "x$with_x" = xno; then
6579   # The user explicitly disabled X.
6580   have_x=disabled
6581 else
6582   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6583     # Both variables are already set.
6584     have_x=yes
6585   else
6586     if test "${ac_cv_have_x+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   # One or both of the vars are not set, and there is no cached value.
6590 ac_x_includes=no ac_x_libraries=no
6591 rm -fr conftest.dir
6592 if mkdir conftest.dir; then
6593   cd conftest.dir
6594   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6595   cat >Imakefile <<'_ACEOF'
6596 acfindx:
6597         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6598 _ACEOF
6599   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6600     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6601     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6602     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6603     for ac_extension in a so sl; do
6604       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6605          test -f $ac_im_libdir/libX11.$ac_extension; then
6606         ac_im_usrlibdir=$ac_im_libdir; break
6607       fi
6608     done
6609     # Screen out bogus values from the imake configuration.  They are
6610     # bogus both because they are the default anyway, and because
6611     # using them would break gcc on systems where it needs fixed includes.
6612     case $ac_im_incroot in
6613         /usr/include) ;;
6614         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6615     esac
6616     case $ac_im_usrlibdir in
6617         /usr/lib | /lib) ;;
6618         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6619     esac
6620   fi
6621   cd ..
6622   rm -fr conftest.dir
6623 fi
6624
6625 # Standard set of common directories for X headers.
6626 # Check X11 before X11Rn because it is often a symlink to the current release.
6627 ac_x_header_dirs='
6628 /usr/X11/include
6629 /usr/X11R6/include
6630 /usr/X11R5/include
6631 /usr/X11R4/include
6632
6633 /usr/include/X11
6634 /usr/include/X11R6
6635 /usr/include/X11R5
6636 /usr/include/X11R4
6637
6638 /usr/local/X11/include
6639 /usr/local/X11R6/include
6640 /usr/local/X11R5/include
6641 /usr/local/X11R4/include
6642
6643 /usr/local/include/X11
6644 /usr/local/include/X11R6
6645 /usr/local/include/X11R5
6646 /usr/local/include/X11R4
6647
6648 /usr/X386/include
6649 /usr/x386/include
6650 /usr/XFree86/include/X11
6651
6652 /usr/include
6653 /usr/local/include
6654 /usr/unsupported/include
6655 /usr/athena/include
6656 /usr/local/x11r5/include
6657 /usr/lpp/Xamples/include
6658
6659 /usr/openwin/include
6660 /usr/openwin/share/include'
6661
6662 if test "$ac_x_includes" = no; then
6663   # Guess where to find include files, by looking for Intrinsic.h.
6664   # First, try using that file with no special directory specified.
6665   cat >conftest.$ac_ext <<_ACEOF
6666 /* confdefs.h.  */
6667 _ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h.  */
6671 #include <X11/Intrinsic.h>
6672 _ACEOF
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6675   ac_status=$?
6676   grep -v '^ *+' conftest.er1 >conftest.err
6677   rm -f conftest.er1
6678   cat conftest.err >&5
6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680   (exit $ac_status); } >/dev/null; then
6681   if test -s conftest.err; then
6682     ac_cpp_err=$ac_c_preproc_warn_flag
6683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6684   else
6685     ac_cpp_err=
6686   fi
6687 else
6688   ac_cpp_err=yes
6689 fi
6690 if test -z "$ac_cpp_err"; then
6691   # We can compile using X headers with no special include directory.
6692 ac_x_includes=
6693 else
6694   echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6696
6697   for ac_dir in $ac_x_header_dirs; do
6698   if test -r "$ac_dir/X11/Intrinsic.h"; then
6699     ac_x_includes=$ac_dir
6700     break
6701   fi
6702 done
6703 fi
6704 rm -f conftest.err conftest.$ac_ext
6705 fi # $ac_x_includes = no
6706
6707 if test "$ac_x_libraries" = no; then
6708   # Check for the libraries.
6709   # See if we find them without any special options.
6710   # Don't add to $LIBS permanently.
6711   ac_save_LIBS=$LIBS
6712   LIBS="-lXt $LIBS"
6713   if test x$gcc_no_link = xyes; then
6714   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6716    { (exit 1); exit 1; }; }
6717 fi
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <X11/Intrinsic.h>
6725 int
6726 main ()
6727 {
6728 XtMalloc (0)
6729   ;
6730   return 0;
6731 }
6732 _ACEOF
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6735   (eval $ac_link) 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -z "$ac_c_werror_flag"
6743                          || test ! -s conftest.err'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; } &&
6749          { ac_try='test -s conftest$ac_exeext'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; }; then
6755   LIBS=$ac_save_LIBS
6756 # We can link X programs with no special library path.
6757 ac_x_libraries=
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 LIBS=$ac_save_LIBS
6763 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6764 do
6765   # Don't even attempt the hair of trying to link an X program!
6766   for ac_extension in a so sl; do
6767     if test -r $ac_dir/libXt.$ac_extension; then
6768       ac_x_libraries=$ac_dir
6769       break 2
6770     fi
6771   done
6772 done
6773 fi
6774 rm -f conftest.err conftest.$ac_objext \
6775       conftest$ac_exeext conftest.$ac_ext
6776 fi # $ac_x_libraries = no
6777
6778 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6779   # Didn't find X anywhere.  Cache the known absence of X.
6780   ac_cv_have_x="have_x=no"
6781 else
6782   # Record where we found X for the cache.
6783   ac_cv_have_x="have_x=yes \
6784                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6785 fi
6786 fi
6787
6788   fi
6789   eval "$ac_cv_have_x"
6790 fi # $with_x != no
6791
6792 if test "$have_x" != yes; then
6793   echo "$as_me:$LINENO: result: $have_x" >&5
6794 echo "${ECHO_T}$have_x" >&6
6795   no_x=yes
6796 else
6797   # If each of the values was on the command line, it overrides each guess.
6798   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6799   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6800   # Update the cache value to reflect the command line values.
6801   ac_cv_have_x="have_x=yes \
6802                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6803   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6804 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6805 fi
6806
6807 if test "$no_x" = yes; then
6808   # Not all programs may use this symbol, but it does not hurt to define it.
6809
6810 cat >>confdefs.h <<\_ACEOF
6811 #define X_DISPLAY_MISSING 1
6812 _ACEOF
6813
6814   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6815 else
6816   if test -n "$x_includes"; then
6817     X_CFLAGS="$X_CFLAGS -I$x_includes"
6818   fi
6819
6820   # It would also be nice to do this for all -L options, not just this one.
6821   if test -n "$x_libraries"; then
6822     X_LIBS="$X_LIBS -L$x_libraries"
6823     # For Solaris; some versions of Sun CC require a space after -R and
6824     # others require no space.  Words are not sufficient . . . .
6825     case `(uname -sr) 2>/dev/null` in
6826     "SunOS 5"*)
6827       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6828 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6829       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6830       if test x$gcc_no_link = xyes; then
6831   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6833    { (exit 1); exit 1; }; }
6834 fi
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841
6842 int
6843 main ()
6844 {
6845
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext conftest$ac_exeext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852   (eval $ac_link) 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } &&
6859          { ac_try='test -z "$ac_c_werror_flag"
6860                          || test ! -s conftest.err'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; } &&
6866          { ac_try='test -s conftest$ac_exeext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   ac_R_nospace=yes
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_R_nospace=no
6878 fi
6879 rm -f conftest.err conftest.$ac_objext \
6880       conftest$ac_exeext conftest.$ac_ext
6881       if test $ac_R_nospace = yes; then
6882         echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6
6884         X_LIBS="$X_LIBS -R$x_libraries"
6885       else
6886         LIBS="$ac_xsave_LIBS -R $x_libraries"
6887         if test x$gcc_no_link = xyes; then
6888   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6890    { (exit 1); exit 1; }; }
6891 fi
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898
6899 int
6900 main ()
6901 {
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext conftest$ac_exeext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909   (eval $ac_link) 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } &&
6916          { ac_try='test -z "$ac_c_werror_flag"
6917                          || test ! -s conftest.err'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; } &&
6923          { ac_try='test -s conftest$ac_exeext'
6924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925   (eval $ac_try) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); }; }; then
6929   ac_R_space=yes
6930 else
6931   echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 ac_R_space=no
6935 fi
6936 rm -f conftest.err conftest.$ac_objext \
6937       conftest$ac_exeext conftest.$ac_ext
6938         if test $ac_R_space = yes; then
6939           echo "$as_me:$LINENO: result: yes" >&5
6940 echo "${ECHO_T}yes" >&6
6941           X_LIBS="$X_LIBS -R $x_libraries"
6942         else
6943           echo "$as_me:$LINENO: result: neither works" >&5
6944 echo "${ECHO_T}neither works" >&6
6945         fi
6946       fi
6947       LIBS=$ac_xsave_LIBS
6948     esac
6949   fi
6950
6951   # Check for system-dependent libraries X programs must link with.
6952   # Do this before checking for the system-independent R6 libraries
6953   # (-lICE), since we may need -lsocket or whatever for X linking.
6954
6955   if test "$ISC" = yes; then
6956     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6957   else
6958     # Martyn Johnson says this is needed for Ultrix, if the X
6959     # libraries were built with DECnet support.  And Karl Berry says
6960     # the Alpha needs dnet_stub (dnet does not exist).
6961     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6962     if test x$gcc_no_link = xyes; then
6963   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6965    { (exit 1); exit 1; }; }
6966 fi
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973
6974 /* Override any gcc2 internal prototype to avoid an error.  */
6975 #ifdef __cplusplus
6976 extern "C"
6977 #endif
6978 /* We use char because int might match the return type of a gcc2
6979    builtin and then its argument prototype would still apply.  */
6980 char XOpenDisplay ();
6981 int
6982 main ()
6983 {
6984 XOpenDisplay ();
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991   (eval $ac_link) 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } &&
6998          { ac_try='test -z "$ac_c_werror_flag"
6999                          || test ! -s conftest.err'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; } &&
7005          { ac_try='test -s conftest$ac_exeext'
7006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007   (eval $ac_try) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; }; then
7011   :
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7017 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7018 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7019   echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021   ac_check_lib_save_LIBS=$LIBS
7022 LIBS="-ldnet  $LIBS"
7023 if test x$gcc_no_link = xyes; then
7024   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7026    { (exit 1); exit 1; }; }
7027 fi
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034
7035 /* Override any gcc2 internal prototype to avoid an error.  */
7036 #ifdef __cplusplus
7037 extern "C"
7038 #endif
7039 /* We use char because int might match the return type of a gcc2
7040    builtin and then its argument prototype would still apply.  */
7041 char dnet_ntoa ();
7042 int
7043 main ()
7044 {
7045 dnet_ntoa ();
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052   (eval $ac_link) 2>conftest.er1
7053   ac_status=$?
7054   grep -v '^ *+' conftest.er1 >conftest.err
7055   rm -f conftest.er1
7056   cat conftest.err >&5
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } &&
7059          { ac_try='test -z "$ac_c_werror_flag"
7060                          || test ! -s conftest.err'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; } &&
7066          { ac_try='test -s conftest$ac_exeext'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; }; then
7072   ac_cv_lib_dnet_dnet_ntoa=yes
7073 else
7074   echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ac_cv_lib_dnet_dnet_ntoa=no
7078 fi
7079 rm -f conftest.err conftest.$ac_objext \
7080       conftest$ac_exeext conftest.$ac_ext
7081 LIBS=$ac_check_lib_save_LIBS
7082 fi
7083 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7084 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7085 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7086   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7087 fi
7088
7089     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7090       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7091 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7092 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-ldnet_stub  $LIBS"
7097 if test x$gcc_no_link = xyes; then
7098   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7100    { (exit 1); exit 1; }; }
7101 fi
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108
7109 /* Override any gcc2 internal prototype to avoid an error.  */
7110 #ifdef __cplusplus
7111 extern "C"
7112 #endif
7113 /* We use char because int might match the return type of a gcc2
7114    builtin and then its argument prototype would still apply.  */
7115 char dnet_ntoa ();
7116 int
7117 main ()
7118 {
7119 dnet_ntoa ();
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext conftest$ac_exeext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7126   (eval $ac_link) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -z "$ac_c_werror_flag"
7134                          || test ! -s conftest.err'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; } &&
7140          { ac_try='test -s conftest$ac_exeext'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; }; then
7146   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7147 else
7148   echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 ac_cv_lib_dnet_stub_dnet_ntoa=no
7152 fi
7153 rm -f conftest.err conftest.$ac_objext \
7154       conftest$ac_exeext conftest.$ac_ext
7155 LIBS=$ac_check_lib_save_LIBS
7156 fi
7157 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7158 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7159 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7160   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7161 fi
7162
7163     fi
7164 fi
7165 rm -f conftest.err conftest.$ac_objext \
7166       conftest$ac_exeext conftest.$ac_ext
7167     LIBS="$ac_xsave_LIBS"
7168
7169     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7170     # to get the SysV transport functions.
7171     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7172     # needs -lnsl.
7173     # The nsl library prevents programs from opening the X display
7174     # on Irix 5.2, according to T.E. Dickey.
7175     # The functions gethostbyname, getservbyname, and inet_addr are
7176     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7177     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7178 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7179 if test "${ac_cv_func_gethostbyname+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   if test x$gcc_no_link = xyes; then
7183   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7185    { (exit 1); exit 1; }; }
7186 fi
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7195 #define gethostbyname innocuous_gethostbyname
7196
7197 /* System header to define __stub macros and hopefully few prototypes,
7198     which can conflict with char gethostbyname (); below.
7199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200     <limits.h> exists even on freestanding compilers.  */
7201
7202 #ifdef __STDC__
7203 # include <limits.h>
7204 #else
7205 # include <assert.h>
7206 #endif
7207
7208 #undef gethostbyname
7209
7210 /* Override any gcc2 internal prototype to avoid an error.  */
7211 #ifdef __cplusplus
7212 extern "C"
7213 {
7214 #endif
7215 /* We use char because int might match the return type of a gcc2
7216    builtin and then its argument prototype would still apply.  */
7217 char gethostbyname ();
7218 /* The GNU C library defines this for functions which it implements
7219     to always fail with ENOSYS.  Some functions are actually named
7220     something starting with __ and the normal name is an alias.  */
7221 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7222 choke me
7223 #else
7224 char (*f) () = gethostbyname;
7225 #endif
7226 #ifdef __cplusplus
7227 }
7228 #endif
7229
7230 int
7231 main ()
7232 {
7233 return f != gethostbyname;
7234   ;
7235   return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240   (eval $ac_link) 2>conftest.er1
7241   ac_status=$?
7242   grep -v '^ *+' conftest.er1 >conftest.err
7243   rm -f conftest.er1
7244   cat conftest.err >&5
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } &&
7247          { ac_try='test -z "$ac_c_werror_flag"
7248                          || test ! -s conftest.err'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; } &&
7254          { ac_try='test -s conftest$ac_exeext'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; }; then
7260   ac_cv_func_gethostbyname=yes
7261 else
7262   echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 ac_cv_func_gethostbyname=no
7266 fi
7267 rm -f conftest.err conftest.$ac_objext \
7268       conftest$ac_exeext conftest.$ac_ext
7269 fi
7270 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7271 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7272
7273     if test $ac_cv_func_gethostbyname = no; then
7274       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7275 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7276 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   ac_check_lib_save_LIBS=$LIBS
7280 LIBS="-lnsl  $LIBS"
7281 if test x$gcc_no_link = xyes; then
7282   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7284    { (exit 1); exit 1; }; }
7285 fi
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292
7293 /* Override any gcc2 internal prototype to avoid an error.  */
7294 #ifdef __cplusplus
7295 extern "C"
7296 #endif
7297 /* We use char because int might match the return type of a gcc2
7298    builtin and then its argument prototype would still apply.  */
7299 char gethostbyname ();
7300 int
7301 main ()
7302 {
7303 gethostbyname ();
7304   ;
7305   return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310   (eval $ac_link) 2>conftest.er1
7311   ac_status=$?
7312   grep -v '^ *+' conftest.er1 >conftest.err
7313   rm -f conftest.er1
7314   cat conftest.err >&5
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } &&
7317          { ac_try='test -z "$ac_c_werror_flag"
7318                          || test ! -s conftest.err'
7319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320   (eval $ac_try) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); }; } &&
7324          { ac_try='test -s conftest$ac_exeext'
7325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326   (eval $ac_try) 2>&5
7327   ac_status=$?
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); }; }; then
7330   ac_cv_lib_nsl_gethostbyname=yes
7331 else
7332   echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 ac_cv_lib_nsl_gethostbyname=no
7336 fi
7337 rm -f conftest.err conftest.$ac_objext \
7338       conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7340 fi
7341 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7342 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7343 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7344   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7345 fi
7346
7347       if test $ac_cv_lib_nsl_gethostbyname = no; then
7348         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7349 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7350 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353   ac_check_lib_save_LIBS=$LIBS
7354 LIBS="-lbsd  $LIBS"
7355 if test x$gcc_no_link = xyes; then
7356   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7358    { (exit 1); exit 1; }; }
7359 fi
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366
7367 /* Override any gcc2 internal prototype to avoid an error.  */
7368 #ifdef __cplusplus
7369 extern "C"
7370 #endif
7371 /* We use char because int might match the return type of a gcc2
7372    builtin and then its argument prototype would still apply.  */
7373 char gethostbyname ();
7374 int
7375 main ()
7376 {
7377 gethostbyname ();
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384   (eval $ac_link) 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } &&
7391          { ac_try='test -z "$ac_c_werror_flag"
7392                          || test ! -s conftest.err'
7393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394   (eval $ac_try) 2>&5
7395   ac_status=$?
7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); }; } &&
7398          { ac_try='test -s conftest$ac_exeext'
7399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400   (eval $ac_try) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); }; }; then
7404   ac_cv_lib_bsd_gethostbyname=yes
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409 ac_cv_lib_bsd_gethostbyname=no
7410 fi
7411 rm -f conftest.err conftest.$ac_objext \
7412       conftest$ac_exeext conftest.$ac_ext
7413 LIBS=$ac_check_lib_save_LIBS
7414 fi
7415 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7416 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7417 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7418   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7419 fi
7420
7421       fi
7422     fi
7423
7424     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7425     # socket/setsockopt and other routines are undefined under SCO ODT
7426     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7427     # on later versions), says Simon Leinen: it contains gethostby*
7428     # variants that don't use the name server (or something).  -lsocket
7429     # must be given before -lnsl if both are needed.  We assume that
7430     # if connect needs -lnsl, so does gethostbyname.
7431     echo "$as_me:$LINENO: checking for connect" >&5
7432 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7433 if test "${ac_cv_func_connect+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   if test x$gcc_no_link = xyes; then
7437   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7439    { (exit 1); exit 1; }; }
7440 fi
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h.  */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h.  */
7447 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7449 #define connect innocuous_connect
7450
7451 /* System header to define __stub macros and hopefully few prototypes,
7452     which can conflict with char connect (); below.
7453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454     <limits.h> exists even on freestanding compilers.  */
7455
7456 #ifdef __STDC__
7457 # include <limits.h>
7458 #else
7459 # include <assert.h>
7460 #endif
7461
7462 #undef connect
7463
7464 /* Override any gcc2 internal prototype to avoid an error.  */
7465 #ifdef __cplusplus
7466 extern "C"
7467 {
7468 #endif
7469 /* We use char because int might match the return type of a gcc2
7470    builtin and then its argument prototype would still apply.  */
7471 char connect ();
7472 /* The GNU C library defines this for functions which it implements
7473     to always fail with ENOSYS.  Some functions are actually named
7474     something starting with __ and the normal name is an alias.  */
7475 #if defined (__stub_connect) || defined (__stub___connect)
7476 choke me
7477 #else
7478 char (*f) () = connect;
7479 #endif
7480 #ifdef __cplusplus
7481 }
7482 #endif
7483
7484 int
7485 main ()
7486 {
7487 return f != connect;
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494   (eval $ac_link) 2>conftest.er1
7495   ac_status=$?
7496   grep -v '^ *+' conftest.er1 >conftest.err
7497   rm -f conftest.er1
7498   cat conftest.err >&5
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -z "$ac_c_werror_flag"
7502                          || test ! -s conftest.err'
7503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504   (eval $ac_try) 2>&5
7505   ac_status=$?
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); }; } &&
7508          { ac_try='test -s conftest$ac_exeext'
7509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510   (eval $ac_try) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; }; then
7514   ac_cv_func_connect=yes
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 ac_cv_func_connect=no
7520 fi
7521 rm -f conftest.err conftest.$ac_objext \
7522       conftest$ac_exeext conftest.$ac_ext
7523 fi
7524 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7525 echo "${ECHO_T}$ac_cv_func_connect" >&6
7526
7527     if test $ac_cv_func_connect = no; then
7528       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7529 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7530 if test "${ac_cv_lib_socket_connect+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   ac_check_lib_save_LIBS=$LIBS
7534 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7535 if test x$gcc_no_link = xyes; then
7536   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7538    { (exit 1); exit 1; }; }
7539 fi
7540 cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546
7547 /* Override any gcc2 internal prototype to avoid an error.  */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 /* We use char because int might match the return type of a gcc2
7552    builtin and then its argument prototype would still apply.  */
7553 char connect ();
7554 int
7555 main ()
7556 {
7557 connect ();
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564   (eval $ac_link) 2>conftest.er1
7565   ac_status=$?
7566   grep -v '^ *+' conftest.er1 >conftest.err
7567   rm -f conftest.er1
7568   cat conftest.err >&5
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); } &&
7571          { ac_try='test -z "$ac_c_werror_flag"
7572                          || test ! -s conftest.err'
7573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574   (eval $ac_try) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; } &&
7578          { ac_try='test -s conftest$ac_exeext'
7579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580   (eval $ac_try) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }; }; then
7584   ac_cv_lib_socket_connect=yes
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ac_cv_lib_socket_connect=no
7590 fi
7591 rm -f conftest.err conftest.$ac_objext \
7592       conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7594 fi
7595 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7596 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7597 if test $ac_cv_lib_socket_connect = yes; then
7598   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7599 fi
7600
7601     fi
7602
7603     # Guillermo Gomez says -lposix is necessary on A/UX.
7604     echo "$as_me:$LINENO: checking for remove" >&5
7605 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7606 if test "${ac_cv_func_remove+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   if test x$gcc_no_link = xyes; then
7610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7612    { (exit 1); exit 1; }; }
7613 fi
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h.  */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h.  */
7620 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7622 #define remove innocuous_remove
7623
7624 /* System header to define __stub macros and hopefully few prototypes,
7625     which can conflict with char remove (); below.
7626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627     <limits.h> exists even on freestanding compilers.  */
7628
7629 #ifdef __STDC__
7630 # include <limits.h>
7631 #else
7632 # include <assert.h>
7633 #endif
7634
7635 #undef remove
7636
7637 /* Override any gcc2 internal prototype to avoid an error.  */
7638 #ifdef __cplusplus
7639 extern "C"
7640 {
7641 #endif
7642 /* We use char because int might match the return type of a gcc2
7643    builtin and then its argument prototype would still apply.  */
7644 char remove ();
7645 /* The GNU C library defines this for functions which it implements
7646     to always fail with ENOSYS.  Some functions are actually named
7647     something starting with __ and the normal name is an alias.  */
7648 #if defined (__stub_remove) || defined (__stub___remove)
7649 choke me
7650 #else
7651 char (*f) () = remove;
7652 #endif
7653 #ifdef __cplusplus
7654 }
7655 #endif
7656
7657 int
7658 main ()
7659 {
7660 return f != remove;
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667   (eval $ac_link) 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } &&
7674          { ac_try='test -z "$ac_c_werror_flag"
7675                          || test ! -s conftest.err'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; } &&
7681          { ac_try='test -s conftest$ac_exeext'
7682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683   (eval $ac_try) 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); }; }; then
7687   ac_cv_func_remove=yes
7688 else
7689   echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7691
7692 ac_cv_func_remove=no
7693 fi
7694 rm -f conftest.err conftest.$ac_objext \
7695       conftest$ac_exeext conftest.$ac_ext
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7698 echo "${ECHO_T}$ac_cv_func_remove" >&6
7699
7700     if test $ac_cv_func_remove = no; then
7701       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7702 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7703 if test "${ac_cv_lib_posix_remove+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-lposix  $LIBS"
7708 if test x$gcc_no_link = xyes; then
7709   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7711    { (exit 1); exit 1; }; }
7712 fi
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h.  */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h.  */
7719
7720 /* Override any gcc2 internal prototype to avoid an error.  */
7721 #ifdef __cplusplus
7722 extern "C"
7723 #endif
7724 /* We use char because int might match the return type of a gcc2
7725    builtin and then its argument prototype would still apply.  */
7726 char remove ();
7727 int
7728 main ()
7729 {
7730 remove ();
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737   (eval $ac_link) 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } &&
7744          { ac_try='test -z "$ac_c_werror_flag"
7745                          || test ! -s conftest.err'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   ac_cv_lib_posix_remove=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762 ac_cv_lib_posix_remove=no
7763 fi
7764 rm -f conftest.err conftest.$ac_objext \
7765       conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7767 fi
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7769 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7770 if test $ac_cv_lib_posix_remove = yes; then
7771   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7772 fi
7773
7774     fi
7775
7776     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7777     echo "$as_me:$LINENO: checking for shmat" >&5
7778 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7779 if test "${ac_cv_func_shmat+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   if test x$gcc_no_link = xyes; then
7783   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7785    { (exit 1); exit 1; }; }
7786 fi
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7795 #define shmat innocuous_shmat
7796
7797 /* System header to define __stub macros and hopefully few prototypes,
7798     which can conflict with char shmat (); below.
7799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7800     <limits.h> exists even on freestanding compilers.  */
7801
7802 #ifdef __STDC__
7803 # include <limits.h>
7804 #else
7805 # include <assert.h>
7806 #endif
7807
7808 #undef shmat
7809
7810 /* Override any gcc2 internal prototype to avoid an error.  */
7811 #ifdef __cplusplus
7812 extern "C"
7813 {
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char shmat ();
7818 /* The GNU C library defines this for functions which it implements
7819     to always fail with ENOSYS.  Some functions are actually named
7820     something starting with __ and the normal name is an alias.  */
7821 #if defined (__stub_shmat) || defined (__stub___shmat)
7822 choke me
7823 #else
7824 char (*f) () = shmat;
7825 #endif
7826 #ifdef __cplusplus
7827 }
7828 #endif
7829
7830 int
7831 main ()
7832 {
7833 return f != shmat;
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } &&
7847          { ac_try='test -z "$ac_c_werror_flag"
7848                          || test ! -s conftest.err'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   ac_cv_func_shmat=yes
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 ac_cv_func_shmat=no
7866 fi
7867 rm -f conftest.err conftest.$ac_objext \
7868       conftest$ac_exeext conftest.$ac_ext
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7871 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7872
7873     if test $ac_cv_func_shmat = no; then
7874       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7875 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7876 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   ac_check_lib_save_LIBS=$LIBS
7880 LIBS="-lipc  $LIBS"
7881 if test x$gcc_no_link = xyes; then
7882   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7884    { (exit 1); exit 1; }; }
7885 fi
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892
7893 /* Override any gcc2 internal prototype to avoid an error.  */
7894 #ifdef __cplusplus
7895 extern "C"
7896 #endif
7897 /* We use char because int might match the return type of a gcc2
7898    builtin and then its argument prototype would still apply.  */
7899 char shmat ();
7900 int
7901 main ()
7902 {
7903 shmat ();
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910   (eval $ac_link) 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
7914   cat conftest.err >&5
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -z "$ac_c_werror_flag"
7918                          || test ! -s conftest.err'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930   ac_cv_lib_ipc_shmat=yes
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 ac_cv_lib_ipc_shmat=no
7936 fi
7937 rm -f conftest.err conftest.$ac_objext \
7938       conftest$ac_exeext conftest.$ac_ext
7939 LIBS=$ac_check_lib_save_LIBS
7940 fi
7941 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7942 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7943 if test $ac_cv_lib_ipc_shmat = yes; then
7944   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7945 fi
7946
7947     fi
7948   fi
7949
7950   # Check for libraries that X11R6 Xt/Xaw programs need.
7951   ac_save_LDFLAGS=$LDFLAGS
7952   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7953   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7954   # check for ICE first), but we must link in the order -lSM -lICE or
7955   # we get undefined symbols.  So assume we have SM if we have ICE.
7956   # These have to be linked with before -lX11, unlike the other
7957   # libraries we check for below, so use a different variable.
7958   # John Interrante, Karl Berry
7959   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7960 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7961 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   ac_check_lib_save_LIBS=$LIBS
7965 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7966 if test x$gcc_no_link = xyes; then
7967   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7969    { (exit 1); exit 1; }; }
7970 fi
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977
7978 /* Override any gcc2 internal prototype to avoid an error.  */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 /* We use char because int might match the return type of a gcc2
7983    builtin and then its argument prototype would still apply.  */
7984 char IceConnectionNumber ();
7985 int
7986 main ()
7987 {
7988 IceConnectionNumber ();
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995   (eval $ac_link) 2>conftest.er1
7996   ac_status=$?
7997   grep -v '^ *+' conftest.er1 >conftest.err
7998   rm -f conftest.er1
7999   cat conftest.err >&5
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } &&
8002          { ac_try='test -z "$ac_c_werror_flag"
8003                          || test ! -s conftest.err'
8004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005   (eval $ac_try) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); }; } &&
8009          { ac_try='test -s conftest$ac_exeext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   ac_cv_lib_ICE_IceConnectionNumber=yes
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ac_cv_lib_ICE_IceConnectionNumber=no
8021 fi
8022 rm -f conftest.err conftest.$ac_objext \
8023       conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8025 fi
8026 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8027 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8028 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8029   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8030 fi
8031
8032   LDFLAGS=$ac_save_LDFLAGS
8033
8034 fi
8035
8036
8037 # Determine which AWT peer libraries to build
8038 # Check whether --enable-java-awt or --disable-java-awt was given.
8039 if test "${enable_java_awt+set}" = set; then
8040   enableval="$enable_java_awt"
8041
8042 fi;
8043
8044 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
8045 use_xlib_awt=""
8046 use_gtk_awt=""
8047 # The default toolkit to use is the first one specified.
8048 TOOLKIT=
8049
8050
8051 for peer in $peerlibs ; do
8052   case $peer in
8053     xlib)
8054       if test "$no_x" = yes; then
8055         echo "*** xlib peers requested but no X library available" 1>&2
8056         exit 1
8057       else
8058         use_xlib_awt="yes"
8059         if test -z "$TOOLKIT"; then
8060            TOOLKIT=gnu.awt.xlib.XToolkit
8061         fi
8062       fi
8063       ;;
8064     gtk)
8065       if test "$no_x" = yes; then
8066          echo "*** xlib peers requested but no X library available" 1>&2
8067          exit 1
8068       else
8069          use_gtk_awt=yes
8070          if test -z "$TOOLKIT"; then
8071             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8072          fi
8073          test -d jniinclude || mkdir jniinclude
8074       fi
8075       ;;
8076     no)
8077       use_xlib_awt=
8078       use_gtk_awt=
8079       break
8080       ;;
8081     *)
8082       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8083       exit 1
8084   esac
8085 done
8086
8087
8088
8089 if test "$use_xlib_awt" = yes; then
8090   XLIB_AWT_TRUE=
8091   XLIB_AWT_FALSE='#'
8092 else
8093   XLIB_AWT_TRUE='#'
8094   XLIB_AWT_FALSE=
8095 fi
8096
8097
8098
8099 if test "$use_gtk_awt" = yes; then
8100   GTK_AWT_TRUE=
8101   GTK_AWT_FALSE='#'
8102 else
8103   GTK_AWT_TRUE='#'
8104   GTK_AWT_FALSE=
8105 fi
8106
8107
8108 # determine whether to enable the cairo GTK Graphics2D backend
8109 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8110 if test "${enable_gtk_cairo+set}" = set; then
8111   enableval="$enable_gtk_cairo"
8112
8113 fi;
8114
8115
8116 if test "x${enable_gtk_cairo}" = xyes; then
8117   GTK_CAIRO_TRUE=
8118   GTK_CAIRO_FALSE='#'
8119 else
8120   GTK_CAIRO_TRUE='#'
8121   GTK_CAIRO_FALSE=
8122 fi
8123
8124 if test "x${enable_gtk_cairo}" = xyes
8125 then
8126
8127   succeeded=no
8128
8129   if test -z "$PKG_CONFIG"; then
8130     # Extract the first word of "pkg-config", so it can be a program name with args.
8131 set dummy pkg-config; ac_word=$2
8132 echo "$as_me:$LINENO: checking for $ac_word" >&5
8133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8135   echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137   case $PKG_CONFIG in
8138   [\\/]* | ?:[\\/]*)
8139   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8140   ;;
8141   *)
8142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145   IFS=$as_save_IFS
8146   test -z "$as_dir" && as_dir=.
8147   for ac_exec_ext in '' $ac_executable_extensions; do
8148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151     break 2
8152   fi
8153 done
8154 done
8155
8156   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8157   ;;
8158 esac
8159 fi
8160 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8161
8162 if test -n "$PKG_CONFIG"; then
8163   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8164 echo "${ECHO_T}$PKG_CONFIG" >&6
8165 else
8166   echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170   fi
8171
8172   if test "$PKG_CONFIG" = "no" ; then
8173      echo "*** The pkg-config script could not be found. Make sure it is"
8174      echo "*** in your path, or set the PKG_CONFIG environment variable"
8175      echo "*** to the full path to pkg-config."
8176      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8177   else
8178      PKG_CONFIG_MIN_VERSION=0.9.0
8179      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8180         echo "$as_me:$LINENO: checking for cairo" >&5
8181 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8182
8183         if $PKG_CONFIG --exists "cairo" ; then
8184             echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186             succeeded=yes
8187
8188             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8189 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8190             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8191             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8192 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8193
8194             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8195 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8196             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8197             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8198 echo "${ECHO_T}$CAIRO_LIBS" >&6
8199         else
8200             CAIRO_CFLAGS=""
8201             CAIRO_LIBS=""
8202             ## If we have a custom action on failure, don't print errors, but
8203             ## do set a variable so people can do so.
8204             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8205             echo $CAIRO_PKG_ERRORS
8206         fi
8207
8208
8209
8210      else
8211         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8212         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8213      fi
8214   fi
8215
8216   if test $succeeded = yes; then
8217      :
8218   else
8219      { { 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
8220 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;}
8221    { (exit 1); exit 1; }; }
8222   fi
8223
8224
8225   succeeded=no
8226
8227   if test -z "$PKG_CONFIG"; then
8228     # Extract the first word of "pkg-config", so it can be a program name with args.
8229 set dummy pkg-config; ac_word=$2
8230 echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8232 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   case $PKG_CONFIG in
8236   [\\/]* | ?:[\\/]*)
8237   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8238   ;;
8239   *)
8240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243   IFS=$as_save_IFS
8244   test -z "$as_dir" && as_dir=.
8245   for ac_exec_ext in '' $ac_executable_extensions; do
8246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249     break 2
8250   fi
8251 done
8252 done
8253
8254   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8255   ;;
8256 esac
8257 fi
8258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8259
8260 if test -n "$PKG_CONFIG"; then
8261   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8262 echo "${ECHO_T}$PKG_CONFIG" >&6
8263 else
8264   echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 fi
8267
8268   fi
8269
8270   if test "$PKG_CONFIG" = "no" ; then
8271      echo "*** The pkg-config script could not be found. Make sure it is"
8272      echo "*** in your path, or set the PKG_CONFIG environment variable"
8273      echo "*** to the full path to pkg-config."
8274      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8275   else
8276      PKG_CONFIG_MIN_VERSION=0.9.0
8277      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8278         echo "$as_me:$LINENO: checking for pangoft2" >&5
8279 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8280
8281         if $PKG_CONFIG --exists "pangoft2" ; then
8282             echo "$as_me:$LINENO: result: yes" >&5
8283 echo "${ECHO_T}yes" >&6
8284             succeeded=yes
8285
8286             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8287 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8288             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8289             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8290 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8291
8292             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8293 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8294             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8295             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8296 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8297         else
8298             PANGOFT2_CFLAGS=""
8299             PANGOFT2_LIBS=""
8300             ## If we have a custom action on failure, don't print errors, but
8301             ## do set a variable so people can do so.
8302             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8303             echo $PANGOFT2_PKG_ERRORS
8304         fi
8305
8306
8307
8308      else
8309         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8310         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8311      fi
8312   fi
8313
8314   if test $succeeded = yes; then
8315      :
8316   else
8317      { { 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
8318 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;}
8319    { (exit 1); exit 1; }; }
8320   fi
8321
8322 fi
8323
8324
8325
8326
8327
8328 # FIXME: this should be _libs on some hosts.
8329 libsubdir=.libs
8330
8331 # Allow the GC to be disabled.  Can be useful when debugging.
8332 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8333 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8334 # Check whether --enable-java-gc or --disable-java-gc was given.
8335 if test "${enable_java_gc+set}" = set; then
8336   enableval="$enable_java_gc"
8337   GC=$enableval
8338 else
8339   GC=boehm
8340 fi;
8341 GCLIBS=
8342 GCINCS=
8343 GCDEPS=
8344 GCSPEC=
8345 JC1GCSPEC=
8346 GCTESTSPEC=
8347 case "$GC" in
8348  boehm)
8349     echo "$as_me:$LINENO: result: boehm" >&5
8350 echo "${ECHO_T}boehm" >&6
8351     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8352     JC1GCSPEC='-fuse-boehm-gc'
8353     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8354     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8355     GCOBJS=boehm.lo
8356     GCHDR=boehm-gc.h
8357     # The POSIX thread support needs to know this.
8358
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_BOEHM_GC 1
8361 _ACEOF
8362
8363     ;;
8364  no)
8365     echo "$as_me:$LINENO: result: none" >&5
8366 echo "${ECHO_T}none" >&6
8367     GCHDR=no-gc.h
8368     ;;
8369  *)
8370     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8371 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8372    { (exit 1); exit 1; }; }
8373     ;;
8374 esac
8375
8376
8377
8378
8379
8380
8381           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8382
8383
8384
8385 if test "$GC" = boehm; then
8386   USING_BOEHMGC_TRUE=
8387   USING_BOEHMGC_FALSE='#'
8388 else
8389   USING_BOEHMGC_TRUE='#'
8390   USING_BOEHMGC_FALSE=
8391 fi
8392
8393
8394
8395 if test "$GC" = no; then
8396   USING_NOGC_TRUE=
8397   USING_NOGC_FALSE='#'
8398 else
8399   USING_NOGC_TRUE='#'
8400   USING_NOGC_FALSE=
8401 fi
8402
8403
8404
8405 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8406 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8407 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8408 echo "$as_me:$LINENO: result: $THREADS" >&5
8409 echo "${ECHO_T}$THREADS" >&6
8410
8411 case "$THREADS" in
8412  no | none | single)
8413     THREADS=none
8414     ;;
8415  posix | posix95 | pthreads)
8416     THREADS=posix
8417     case "$host" in
8418      *-*-linux*)
8419
8420 cat >>confdefs.h <<\_ACEOF
8421 #define LINUX_THREADS 1
8422 _ACEOF
8423
8424         ;;
8425     esac
8426     ;;
8427  win32)
8428     ;;
8429  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8430     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8431 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8432    { (exit 1); exit 1; }; }
8433     ;;
8434  *)
8435     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8436 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8437    { (exit 1); exit 1; }; }
8438     ;;
8439 esac
8440
8441 THREADCXXFLAGS=
8442 THREADLDFLAGS=
8443 THREADLIBS=
8444 THREADINCS=
8445 THREADDEPS=
8446 THREADH=
8447 THREADSPEC=
8448 case "$THREADS" in
8449  posix)
8450     case "$host" in
8451      *-*-cygwin*)
8452         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8453         ;;
8454      *-*-freebsd[1234]*)
8455         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8456         # merely adds pthread_* functions) but it does have a -pthread switch
8457         # which is required at link-time to select -lc_r *instead* of -lc.
8458         THREADLDFLAGS=-pthread
8459         # Don't set THREADSPEC here as might be expected since -pthread is
8460         # not processed when found within a spec file, it must come from
8461         # the command line.  For now, the user must provide the -pthread
8462         # switch to link code compiled with gcj.  In future, consider adding
8463         # support for weak references to pthread_* functions ala gthr.h API.
8464         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8465         ;;
8466      *-*-freebsd*)
8467         # FreeBSD 5 implements a model much closer to other modern UNIX
8468         # which support threads.  However, it still does not support
8469         # -lpthread.
8470         THREADLDFLAGS=-pthread
8471         THREADSPEC=-lc_r
8472         ;;
8473      alpha*-dec-osf*)
8474         THREADCXXFLAGS=-pthread
8475         # boehm-gc needs some functions from librt, so link that too.
8476         THREADLIBS='-lpthread -lrt'
8477         THREADSPEC='-lpthread -lrt'
8478         ;;
8479      *)
8480         THREADLIBS=-lpthread
8481         THREADSPEC=-lpthread
8482         ;;
8483     esac
8484     THREADH=posix-threads.h
8485     # MIT pthreads doesn't seem to have the mutexattr functions.
8486     # But for now we don't check for it.  We just assume you aren't
8487     # using MIT pthreads.
8488
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8491 _ACEOF
8492
8493
8494     # If we're using the Boehm GC, then we happen to know that it
8495     # defines _REENTRANT, so we don't bother.  Eww.
8496     if test "$GC" != boehm; then
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define _REENTRANT 1
8500 _ACEOF
8501
8502     fi
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define _POSIX_PTHREAD_SEMANTICS 1
8506 _ACEOF
8507
8508     ;;
8509
8510  win32)
8511     THREADH=win32-threads.h
8512     ;;
8513
8514  none)
8515     THREADH=no-threads.h
8516     ;;
8517 esac
8518           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528 if test "$THREADS" = posix; then
8529   USING_POSIX_THREADS_TRUE=
8530   USING_POSIX_THREADS_FALSE='#'
8531 else
8532   USING_POSIX_THREADS_TRUE='#'
8533   USING_POSIX_THREADS_FALSE=
8534 fi
8535
8536
8537
8538 if test "$THREADS" = win32; then
8539   USING_WIN32_THREADS_TRUE=
8540   USING_WIN32_THREADS_FALSE='#'
8541 else
8542   USING_WIN32_THREADS_TRUE='#'
8543   USING_WIN32_THREADS_FALSE=
8544 fi
8545
8546
8547
8548 if test "$THREADS" = none; then
8549   USING_NO_THREADS_TRUE=
8550   USING_NO_THREADS_FALSE='#'
8551 else
8552   USING_NO_THREADS_TRUE='#'
8553   USING_NO_THREADS_FALSE=
8554 fi
8555
8556
8557 if test -d sysdep; then true; else mkdir sysdep; fi
8558           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8559
8560           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8561
8562
8563 HASH_SYNC_SPEC=
8564 # Hash synchronization is only useful with posix threads right now.
8565 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8566    HASH_SYNC_SPEC=-fhash-synchronization
8567
8568 cat >>confdefs.h <<\_ACEOF
8569 #define JV_HASH_SYNCHRONIZATION 1
8570 _ACEOF
8571
8572 fi
8573
8574
8575
8576
8577 if test "$GCC" = yes; then
8578   USING_GCC_TRUE=
8579   USING_GCC_FALSE='#'
8580 else
8581   USING_GCC_TRUE='#'
8582   USING_GCC_FALSE=
8583 fi
8584
8585
8586 # We're in the tree with gcc, and need to include some of its headers.
8587 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8588
8589 if test "x${with_newlib}" = "xyes"; then
8590    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8591    # may not work correctly, because the compiler may not be able to
8592    # link executables.
8593
8594    # We assume newlib.  This lets us hard-code the functions we know
8595    # we'll have.
8596
8597 cat >>confdefs.h <<\_ACEOF
8598 #define HAVE_MEMMOVE 1
8599 _ACEOF
8600
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_MEMCPY 1
8604 _ACEOF
8605
8606
8607 cat >>confdefs.h <<\_ACEOF
8608 #define HAVE_STRERROR 1
8609 _ACEOF
8610
8611
8612 cat >>confdefs.h <<\_ACEOF
8613 #define HAVE_TIME 1
8614 _ACEOF
8615
8616
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_GMTIME_R 1
8619 _ACEOF
8620
8621
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_LOCALTIME_R 1
8624 _ACEOF
8625
8626
8627 cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_USLEEP_DECL 1
8629 _ACEOF
8630
8631    # This is only for POSIX threads.
8632
8633 cat >>confdefs.h <<\_ACEOF
8634 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8635 _ACEOF
8636
8637    # We also assume we are using gcc, which provides alloca.
8638    cat >>confdefs.h <<\_ACEOF
8639 #define HAVE_ALLOCA 1
8640 _ACEOF
8641
8642
8643    # Assume we do not have getuid and friends.
8644
8645 cat >>confdefs.h <<\_ACEOF
8646 #define NO_GETUID 1
8647 _ACEOF
8648
8649    PLATFORMNET=NoNet
8650 else
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8684                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8685                    access stat mkdir rename rmdir unlink realpath utime chmod \
8686                    nl_langinfo setlocale \
8687                    inet_pton uname inet_ntoa \
8688                    fork execvp pipe sigaction ftruncate
8689 do
8690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8691 echo "$as_me:$LINENO: checking for $ac_func" >&5
8692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8693 if eval "test \"\${$as_ac_var+set}\" = set"; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   if test x$gcc_no_link = xyes; then
8697   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8699    { (exit 1); exit 1; }; }
8700 fi
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h.  */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h.  */
8707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8709 #define $ac_func innocuous_$ac_func
8710
8711 /* System header to define __stub macros and hopefully few prototypes,
8712     which can conflict with char $ac_func (); below.
8713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8714     <limits.h> exists even on freestanding compilers.  */
8715
8716 #ifdef __STDC__
8717 # include <limits.h>
8718 #else
8719 # include <assert.h>
8720 #endif
8721
8722 #undef $ac_func
8723
8724 /* Override any gcc2 internal prototype to avoid an error.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 {
8728 #endif
8729 /* We use char because int might match the return type of a gcc2
8730    builtin and then its argument prototype would still apply.  */
8731 char $ac_func ();
8732 /* The GNU C library defines this for functions which it implements
8733     to always fail with ENOSYS.  Some functions are actually named
8734     something starting with __ and the normal name is an alias.  */
8735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8736 choke me
8737 #else
8738 char (*f) () = $ac_func;
8739 #endif
8740 #ifdef __cplusplus
8741 }
8742 #endif
8743
8744 int
8745 main ()
8746 {
8747 return f != $ac_func;
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754   (eval $ac_link) 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -z "$ac_c_werror_flag"
8762                          || test ! -s conftest.err'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   eval "$as_ac_var=yes"
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 eval "$as_ac_var=no"
8780 fi
8781 rm -f conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext conftest.$ac_ext
8783 fi
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8786 if test `eval echo '${'$as_ac_var'}'` = yes; then
8787   cat >>confdefs.h <<_ACEOF
8788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8789 _ACEOF
8790
8791 fi
8792 done
8793
8794
8795
8796 for ac_func in inet_aton inet_addr
8797 do
8798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8799 echo "$as_me:$LINENO: checking for $ac_func" >&5
8800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_var+set}\" = set"; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   if test x$gcc_no_link = xyes; then
8805   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8807    { (exit 1); exit 1; }; }
8808 fi
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8817 #define $ac_func innocuous_$ac_func
8818
8819 /* System header to define __stub macros and hopefully few prototypes,
8820     which can conflict with char $ac_func (); below.
8821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822     <limits.h> exists even on freestanding compilers.  */
8823
8824 #ifdef __STDC__
8825 # include <limits.h>
8826 #else
8827 # include <assert.h>
8828 #endif
8829
8830 #undef $ac_func
8831
8832 /* Override any gcc2 internal prototype to avoid an error.  */
8833 #ifdef __cplusplus
8834 extern "C"
8835 {
8836 #endif
8837 /* We use char because int might match the return type of a gcc2
8838    builtin and then its argument prototype would still apply.  */
8839 char $ac_func ();
8840 /* The GNU C library defines this for functions which it implements
8841     to always fail with ENOSYS.  Some functions are actually named
8842     something starting with __ and the normal name is an alias.  */
8843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8844 choke me
8845 #else
8846 char (*f) () = $ac_func;
8847 #endif
8848 #ifdef __cplusplus
8849 }
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 return f != $ac_func;
8856   ;
8857   return 0;
8858 }
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862   (eval $ac_link) 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } &&
8869          { ac_try='test -z "$ac_c_werror_flag"
8870                          || test ! -s conftest.err'
8871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872   (eval $ac_try) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; } &&
8876          { ac_try='test -s conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   eval "$as_ac_var=yes"
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 eval "$as_ac_var=no"
8888 fi
8889 rm -f conftest.err conftest.$ac_objext \
8890       conftest$ac_exeext conftest.$ac_ext
8891 fi
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8894 if test `eval echo '${'$as_ac_var'}'` = yes; then
8895   cat >>confdefs.h <<_ACEOF
8896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8897 _ACEOF
8898  break
8899 fi
8900 done
8901
8902    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8904 if test "${ac_cv_header_stdc+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907   cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 #include <stdlib.h>
8914 #include <stdarg.h>
8915 #include <string.h>
8916 #include <float.h>
8917
8918 int
8919 main ()
8920 {
8921
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928   (eval $ac_compile) 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } &&
8935          { ac_try='test -z "$ac_c_werror_flag"
8936                          || test ! -s conftest.err'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; } &&
8942          { ac_try='test -s conftest.$ac_objext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   ac_cv_header_stdc=yes
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 ac_cv_header_stdc=no
8954 fi
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956
8957 if test $ac_cv_header_stdc = yes; then
8958   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8959   cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965 #include <string.h>
8966
8967 _ACEOF
8968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8969   $EGREP "memchr" >/dev/null 2>&1; then
8970   :
8971 else
8972   ac_cv_header_stdc=no
8973 fi
8974 rm -f conftest*
8975
8976 fi
8977
8978 if test $ac_cv_header_stdc = yes; then
8979   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8980   cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 #include <stdlib.h>
8987
8988 _ACEOF
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990   $EGREP "free" >/dev/null 2>&1; then
8991   :
8992 else
8993   ac_cv_header_stdc=no
8994 fi
8995 rm -f conftest*
8996
8997 fi
8998
8999 if test $ac_cv_header_stdc = yes; then
9000   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9001   if test "$cross_compiling" = yes; then
9002   :
9003 else
9004   cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010 #include <ctype.h>
9011 #if ((' ' & 0x0FF) == 0x020)
9012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9014 #else
9015 # define ISLOWER(c) \
9016                    (('a' <= (c) && (c) <= 'i') \
9017                      || ('j' <= (c) && (c) <= 'r') \
9018                      || ('s' <= (c) && (c) <= 'z'))
9019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9020 #endif
9021
9022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9023 int
9024 main ()
9025 {
9026   int i;
9027   for (i = 0; i < 256; i++)
9028     if (XOR (islower (i), ISLOWER (i))
9029         || toupper (i) != TOUPPER (i))
9030       exit(2);
9031   exit (0);
9032 }
9033 _ACEOF
9034 rm -f conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036   (eval $ac_link) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   :
9046 else
9047   echo "$as_me: program exited with status $ac_status" >&5
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ( exit $ac_status )
9052 ac_cv_header_stdc=no
9053 fi
9054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9055 fi
9056 fi
9057 fi
9058 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9059 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9060 if test $ac_cv_header_stdc = yes; then
9061
9062 cat >>confdefs.h <<\_ACEOF
9063 #define STDC_HEADERS 1
9064 _ACEOF
9065
9066 fi
9067
9068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9079                   inttypes.h stdint.h unistd.h
9080 do
9081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093 $ac_includes_default
9094
9095 #include <$ac_header>
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099   (eval $ac_compile) 2>conftest.er1
9100   ac_status=$?
9101   grep -v '^ *+' conftest.er1 >conftest.err
9102   rm -f conftest.er1
9103   cat conftest.err >&5
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); } &&
9106          { ac_try='test -z "$ac_c_werror_flag"
9107                          || test ! -s conftest.err'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; } &&
9113          { ac_try='test -s conftest.$ac_objext'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; }; then
9119   eval "$as_ac_Header=yes"
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 eval "$as_ac_Header=no"
9125 fi
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9131   cat >>confdefs.h <<_ACEOF
9132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9133 _ACEOF
9134
9135 fi
9136
9137 done
9138
9139
9140
9141
9142
9143 for ac_header in execinfo.h unistd.h dlfcn.h
9144 do
9145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147   echo "$as_me:$LINENO: checking for $ac_header" >&5
9148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 fi
9152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9154 else
9155   # Is the header compilable?
9156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h.  */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h.  */
9164 $ac_includes_default
9165 #include <$ac_header>
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169   (eval $ac_compile) 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -z "$ac_c_werror_flag"
9177                          || test ! -s conftest.err'
9178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179   (eval $ac_try) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); }; } &&
9183          { ac_try='test -s conftest.$ac_objext'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_header_compiler=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_header_compiler=no
9195 fi
9196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9198 echo "${ECHO_T}$ac_header_compiler" >&6
9199
9200 # Is the header present?
9201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 #include <$ac_header>
9210 _ACEOF
9211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } >/dev/null; then
9219   if test -s conftest.err; then
9220     ac_cpp_err=$ac_c_preproc_warn_flag
9221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9222   else
9223     ac_cpp_err=
9224   fi
9225 else
9226   ac_cpp_err=yes
9227 fi
9228 if test -z "$ac_cpp_err"; then
9229   ac_header_preproc=yes
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234   ac_header_preproc=no
9235 fi
9236 rm -f conftest.err conftest.$ac_ext
9237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9238 echo "${ECHO_T}$ac_header_preproc" >&6
9239
9240 # So?  What about this header?
9241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9242   yes:no: )
9243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9247     ac_header_preproc=yes
9248     ;;
9249   no:yes:* )
9250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9262     (
9263       cat <<\_ASBOX
9264 ## ---------------------------------- ##
9265 ## Report this to the libjava lists.  ##
9266 ## ---------------------------------- ##
9267 _ASBOX
9268     ) |
9269       sed "s/^/$as_me: WARNING:     /" >&2
9270     ;;
9271 esac
9272 echo "$as_me:$LINENO: checking for $ac_header" >&5
9273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   eval "$as_ac_Header=\$ac_header_preproc"
9278 fi
9279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9281
9282 fi
9283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9284   cat >>confdefs.h <<_ACEOF
9285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9286 _ACEOF
9287
9288 fi
9289
9290 done
9291
9292    echo "$as_me:$LINENO: checking for backtrace" >&5
9293 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9294 if test "${ac_cv_func_backtrace+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   if test x$gcc_no_link = xyes; then
9298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9300    { (exit 1); exit 1; }; }
9301 fi
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9310 #define backtrace innocuous_backtrace
9311
9312 /* System header to define __stub macros and hopefully few prototypes,
9313     which can conflict with char backtrace (); below.
9314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9315     <limits.h> exists even on freestanding compilers.  */
9316
9317 #ifdef __STDC__
9318 # include <limits.h>
9319 #else
9320 # include <assert.h>
9321 #endif
9322
9323 #undef backtrace
9324
9325 /* Override any gcc2 internal prototype to avoid an error.  */
9326 #ifdef __cplusplus
9327 extern "C"
9328 {
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331    builtin and then its argument prototype would still apply.  */
9332 char backtrace ();
9333 /* The GNU C library defines this for functions which it implements
9334     to always fail with ENOSYS.  Some functions are actually named
9335     something starting with __ and the normal name is an alias.  */
9336 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9337 choke me
9338 #else
9339 char (*f) () = backtrace;
9340 #endif
9341 #ifdef __cplusplus
9342 }
9343 #endif
9344
9345 int
9346 main ()
9347 {
9348 return f != backtrace;
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355   (eval $ac_link) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag"
9363                          || test ! -s conftest.err'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest$ac_exeext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_cv_func_backtrace=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_cv_func_backtrace=no
9381 fi
9382 rm -f conftest.err conftest.$ac_objext \
9383       conftest$ac_exeext conftest.$ac_ext
9384 fi
9385 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9386 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9387 if test $ac_cv_func_backtrace = yes; then
9388
9389      case "$host" in
9390        ia64-*-linux*)
9391          # Has broken backtrace()
9392          ;;
9393        mips*-*-linux*)
9394          # Has broken backtrace(), but we supply our own.
9395          if test -d sysdep; then true; else mkdir -p sysdep; fi
9396          supply_backtrace=yes
9397
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_BACKTRACE 1
9400 _ACEOF
9401
9402          ;;
9403        *)
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_BACKTRACE 1
9407 _ACEOF
9408
9409          ;;
9410      esac
9411
9412 else
9413
9414      case "$host" in
9415        *mingw*)
9416          # Has backtrace() defined in libgcj itself
9417
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE_BACKTRACE 1
9420 _ACEOF
9421
9422          ;;
9423      esac
9424
9425 fi
9426
9427
9428    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9429 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9430 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-ldl  $LIBS"
9435 if test x$gcc_no_link = xyes; then
9436   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9438    { (exit 1); exit 1; }; }
9439 fi
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446
9447 /* Override any gcc2 internal prototype to avoid an error.  */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452    builtin and then its argument prototype would still apply.  */
9453 char dladdr ();
9454 int
9455 main ()
9456 {
9457 dladdr ();
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464   (eval $ac_link) 2>conftest.er1
9465   ac_status=$?
9466   grep -v '^ *+' conftest.er1 >conftest.err
9467   rm -f conftest.er1
9468   cat conftest.err >&5
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } &&
9471          { ac_try='test -z "$ac_c_werror_flag"
9472                          || test ! -s conftest.err'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; } &&
9478          { ac_try='test -s conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_lib_dl_dladdr=yes
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489 ac_cv_lib_dl_dladdr=no
9490 fi
9491 rm -f conftest.err conftest.$ac_objext \
9492       conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9494 fi
9495 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9496 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9497 if test $ac_cv_lib_dl_dladdr = yes; then
9498
9499      if test "x${disable_dladdr}" = "xyes"; then
9500        #Broken dladdr().
9501        true
9502      else
9503
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_DLADDR 1
9506 _ACEOF
9507
9508      fi
9509
9510 fi
9511
9512    if test x"$build" = x"$host"; then
9513      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9514 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9515 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   test "$cross_compiling" = yes &&
9519   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9520 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9521    { (exit 1); exit 1; }; }
9522 if test -r "/proc/self/exe"; then
9523   ac_cv_file__proc_self_exe=yes
9524 else
9525   ac_cv_file__proc_self_exe=no
9526 fi
9527 fi
9528 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9529 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9530 if test $ac_cv_file__proc_self_exe = yes; then
9531
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE__PROC_SELF_EXE 1
9534 _ACEOF
9535
9536
9537
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_PROC_SELF_EXE 1
9540 _ACEOF
9541
9542 fi
9543
9544    else
9545      case $host in
9546      *-linux*)
9547
9548 cat >>confdefs.h <<\_ACEOF
9549 #define HAVE_PROC_SELF_EXE 1
9550 _ACEOF
9551
9552        ;;
9553      esac
9554    fi
9555
9556
9557       if test "X$prefix" = "XNONE"; then
9558     acl_final_prefix="$ac_default_prefix"
9559   else
9560     acl_final_prefix="$prefix"
9561   fi
9562   if test "X$exec_prefix" = "XNONE"; then
9563     acl_final_exec_prefix='${prefix}'
9564   else
9565     acl_final_exec_prefix="$exec_prefix"
9566   fi
9567   acl_save_prefix="$prefix"
9568   prefix="$acl_final_prefix"
9569   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9570   prefix="$acl_save_prefix"
9571
9572
9573 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9574 if test "${with_gnu_ld+set}" = set; then
9575   withval="$with_gnu_ld"
9576   test "$withval" = no || with_gnu_ld=yes
9577 else
9578   with_gnu_ld=no
9579 fi;
9580 # Prepare PATH_SEPARATOR.
9581 # The user is always right.
9582 if test "${PATH_SEPARATOR+set}" != set; then
9583   echo "#! /bin/sh" >conf$$.sh
9584   echo  "exit 0"   >>conf$$.sh
9585   chmod +x conf$$.sh
9586   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9587     PATH_SEPARATOR=';'
9588   else
9589     PATH_SEPARATOR=:
9590   fi
9591   rm -f conf$$.sh
9592 fi
9593 ac_prog=ld
9594 if test "$GCC" = yes; then
9595   # Check if gcc -print-prog-name=ld gives a path.
9596   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9597 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9598   case $host in
9599   *-*-mingw*)
9600     # gcc leaves a trailing carriage return which upsets mingw
9601     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9602   *)
9603     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9604   esac
9605   case $ac_prog in
9606     # Accept absolute paths.
9607     [\\/]* | [A-Za-z]:[\\/]*)
9608       re_direlt='/[^/][^/]*/\.\./'
9609       # Canonicalize the path of ld
9610       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9611       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9612         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9613       done
9614       test -z "$LD" && LD="$ac_prog"
9615       ;;
9616   "")
9617     # If it fails, then pretend we aren't using GCC.
9618     ac_prog=ld
9619     ;;
9620   *)
9621     # If it is relative, then search for the first ld in PATH.
9622     with_gnu_ld=unknown
9623     ;;
9624   esac
9625 elif test "$with_gnu_ld" = yes; then
9626   echo "$as_me:$LINENO: checking for GNU ld" >&5
9627 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9628 else
9629   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9630 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9631 fi
9632 if test "${acl_cv_path_LD+set}" = set; then
9633   echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635   if test -z "$LD"; then
9636   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9637   for ac_dir in $PATH; do
9638     test -z "$ac_dir" && ac_dir=.
9639     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9640       acl_cv_path_LD="$ac_dir/$ac_prog"
9641       # Check to see if the program is GNU ld.  I'd rather use --version,
9642       # but apparently some GNU ld's only accept -v.
9643       # Break only if it was the GNU/non-GNU ld that we prefer.
9644       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9645         test "$with_gnu_ld" != no && break
9646       else
9647         test "$with_gnu_ld" != yes && break
9648       fi
9649     fi
9650   done
9651   IFS="$ac_save_ifs"
9652 else
9653   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9654 fi
9655 fi
9656
9657 LD="$acl_cv_path_LD"
9658 if test -n "$LD"; then
9659   echo "$as_me:$LINENO: result: $LD" >&5
9660 echo "${ECHO_T}$LD" >&6
9661 else
9662   echo "$as_me:$LINENO: result: no" >&5
9663 echo "${ECHO_T}no" >&6
9664 fi
9665 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9666 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9667    { (exit 1); exit 1; }; }
9668 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9669 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9670 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9671   echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9675   acl_cv_prog_gnu_ld=yes
9676 else
9677   acl_cv_prog_gnu_ld=no
9678 fi
9679 fi
9680 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9681 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9682 with_gnu_ld=$acl_cv_prog_gnu_ld
9683
9684
9685
9686                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9687 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9688 if test "${acl_cv_rpath+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691
9692     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9693     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9694     . ./conftest.sh
9695     rm -f ./conftest.sh
9696     acl_cv_rpath=done
9697
9698 fi
9699 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9700 echo "${ECHO_T}$acl_cv_rpath" >&6
9701   wl="$acl_cv_wl"
9702   libext="$acl_cv_libext"
9703   shlibext="$acl_cv_shlibext"
9704   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9705   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9706   hardcode_direct="$acl_cv_hardcode_direct"
9707   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9708     # Check whether --enable-rpath or --disable-rpath was given.
9709 if test "${enable_rpath+set}" = set; then
9710   enableval="$enable_rpath"
9711   :
9712 else
9713   enable_rpath=yes
9714 fi;
9715
9716
9717
9718
9719
9720
9721
9722     use_additional=yes
9723
9724   acl_save_prefix="$prefix"
9725   prefix="$acl_final_prefix"
9726   acl_save_exec_prefix="$exec_prefix"
9727   exec_prefix="$acl_final_exec_prefix"
9728
9729     eval additional_includedir=\"$includedir\"
9730     eval additional_libdir=\"$libdir\"
9731
9732   exec_prefix="$acl_save_exec_prefix"
9733   prefix="$acl_save_prefix"
9734
9735
9736 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9737 if test "${with_libiconv_prefix+set}" = set; then
9738   withval="$with_libiconv_prefix"
9739
9740     if test "X$withval" = "Xno"; then
9741       use_additional=no
9742     else
9743       if test "X$withval" = "X"; then
9744
9745   acl_save_prefix="$prefix"
9746   prefix="$acl_final_prefix"
9747   acl_save_exec_prefix="$exec_prefix"
9748   exec_prefix="$acl_final_exec_prefix"
9749
9750           eval additional_includedir=\"$includedir\"
9751           eval additional_libdir=\"$libdir\"
9752
9753   exec_prefix="$acl_save_exec_prefix"
9754   prefix="$acl_save_prefix"
9755
9756       else
9757         additional_includedir="$withval/include"
9758         additional_libdir="$withval/lib"
9759       fi
9760     fi
9761
9762 fi;
9763       LIBICONV=
9764   LTLIBICONV=
9765   INCICONV=
9766   rpathdirs=
9767   ltrpathdirs=
9768   names_already_handled=
9769   names_next_round='iconv '
9770   while test -n "$names_next_round"; do
9771     names_this_round="$names_next_round"
9772     names_next_round=
9773     for name in $names_this_round; do
9774       already_handled=
9775       for n in $names_already_handled; do
9776         if test "$n" = "$name"; then
9777           already_handled=yes
9778           break
9779         fi
9780       done
9781       if test -z "$already_handled"; then
9782         names_already_handled="$names_already_handled $name"
9783                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9784         eval value=\"\$HAVE_LIB$uppername\"
9785         if test -n "$value"; then
9786           if test "$value" = yes; then
9787             eval value=\"\$LIB$uppername\"
9788             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9789             eval value=\"\$LTLIB$uppername\"
9790             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9791           else
9792                                     :
9793           fi
9794         else
9795                               found_dir=
9796           found_la=
9797           found_so=
9798           found_a=
9799           if test $use_additional = yes; then
9800             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9801               found_dir="$additional_libdir"
9802               found_so="$additional_libdir/lib$name.$shlibext"
9803               if test -f "$additional_libdir/lib$name.la"; then
9804                 found_la="$additional_libdir/lib$name.la"
9805               fi
9806             else
9807               if test -f "$additional_libdir/lib$name.$libext"; then
9808                 found_dir="$additional_libdir"
9809                 found_a="$additional_libdir/lib$name.$libext"
9810                 if test -f "$additional_libdir/lib$name.la"; then
9811                   found_la="$additional_libdir/lib$name.la"
9812                 fi
9813               fi
9814             fi
9815           fi
9816           if test "X$found_dir" = "X"; then
9817             for x in $LDFLAGS $LTLIBICONV; do
9818
9819   acl_save_prefix="$prefix"
9820   prefix="$acl_final_prefix"
9821   acl_save_exec_prefix="$exec_prefix"
9822   exec_prefix="$acl_final_exec_prefix"
9823   eval x=\"$x\"
9824   exec_prefix="$acl_save_exec_prefix"
9825   prefix="$acl_save_prefix"
9826
9827               case "$x" in
9828                 -L*)
9829                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9830                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9831                     found_dir="$dir"
9832                     found_so="$dir/lib$name.$shlibext"
9833                     if test -f "$dir/lib$name.la"; then
9834                       found_la="$dir/lib$name.la"
9835                     fi
9836                   else
9837                     if test -f "$dir/lib$name.$libext"; then
9838                       found_dir="$dir"
9839                       found_a="$dir/lib$name.$libext"
9840                       if test -f "$dir/lib$name.la"; then
9841                         found_la="$dir/lib$name.la"
9842                       fi
9843                     fi
9844                   fi
9845                   ;;
9846               esac
9847               if test "X$found_dir" != "X"; then
9848                 break
9849               fi
9850             done
9851           fi
9852           if test "X$found_dir" != "X"; then
9853                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9854             if test "X$found_so" != "X"; then
9855                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9856                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9857               else
9858                                                                                 haveit=
9859                 for x in $ltrpathdirs; do
9860                   if test "X$x" = "X$found_dir"; then
9861                     haveit=yes
9862                     break
9863                   fi
9864                 done
9865                 if test -z "$haveit"; then
9866                   ltrpathdirs="$ltrpathdirs $found_dir"
9867                 fi
9868                                 if test "$hardcode_direct" = yes; then
9869                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9870                 else
9871                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9872                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9873                                                             haveit=
9874                     for x in $rpathdirs; do
9875                       if test "X$x" = "X$found_dir"; then
9876                         haveit=yes
9877                         break
9878                       fi
9879                     done
9880                     if test -z "$haveit"; then
9881                       rpathdirs="$rpathdirs $found_dir"
9882                     fi
9883                   else
9884                                                                                 haveit=
9885                     for x in $LDFLAGS $LIBICONV; do
9886
9887   acl_save_prefix="$prefix"
9888   prefix="$acl_final_prefix"
9889   acl_save_exec_prefix="$exec_prefix"
9890   exec_prefix="$acl_final_exec_prefix"
9891   eval x=\"$x\"
9892   exec_prefix="$acl_save_exec_prefix"
9893   prefix="$acl_save_prefix"
9894
9895                       if test "X$x" = "X-L$found_dir"; then
9896                         haveit=yes
9897                         break
9898                       fi
9899                     done
9900                     if test -z "$haveit"; then
9901                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9902                     fi
9903                     if test "$hardcode_minus_L" != no; then
9904                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9905                     else
9906                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9907                     fi
9908                   fi
9909                 fi
9910               fi
9911             else
9912               if test "X$found_a" != "X"; then
9913                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9914               else
9915                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9916               fi
9917             fi
9918                         additional_includedir=
9919             case "$found_dir" in
9920               */lib | */lib/)
9921                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9922                 additional_includedir="$basedir/include"
9923                 ;;
9924             esac
9925             if test "X$additional_includedir" != "X"; then
9926                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9927                 haveit=
9928                 if test "X$additional_includedir" = "X/usr/local/include"; then
9929                   if test -n "$GCC"; then
9930                     case $host_os in
9931                       linux*) haveit=yes;;
9932                     esac
9933                   fi
9934                 fi
9935                 if test -z "$haveit"; then
9936                   for x in $CPPFLAGS $INCICONV; do
9937
9938   acl_save_prefix="$prefix"
9939   prefix="$acl_final_prefix"
9940   acl_save_exec_prefix="$exec_prefix"
9941   exec_prefix="$acl_final_exec_prefix"
9942   eval x=\"$x\"
9943   exec_prefix="$acl_save_exec_prefix"
9944   prefix="$acl_save_prefix"
9945
9946                     if test "X$x" = "X-I$additional_includedir"; then
9947                       haveit=yes
9948                       break
9949                     fi
9950                   done
9951                   if test -z "$haveit"; then
9952                     if test -d "$additional_includedir"; then
9953                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9954                     fi
9955                   fi
9956                 fi
9957               fi
9958             fi
9959                         if test -n "$found_la"; then
9960                                                         save_libdir="$libdir"
9961               case "$found_la" in
9962                 */* | *\\*) . "$found_la" ;;
9963                 *) . "./$found_la" ;;
9964               esac
9965               libdir="$save_libdir"
9966                             for dep in $dependency_libs; do
9967                 case "$dep" in
9968                   -L*)
9969                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9970                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9971                       haveit=
9972                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9973                         if test -n "$GCC"; then
9974                           case $host_os in
9975                             linux*) haveit=yes;;
9976                           esac
9977                         fi
9978                       fi
9979                       if test -z "$haveit"; then
9980                         haveit=
9981                         for x in $LDFLAGS $LIBICONV; do
9982
9983   acl_save_prefix="$prefix"
9984   prefix="$acl_final_prefix"
9985   acl_save_exec_prefix="$exec_prefix"
9986   exec_prefix="$acl_final_exec_prefix"
9987   eval x=\"$x\"
9988   exec_prefix="$acl_save_exec_prefix"
9989   prefix="$acl_save_prefix"
9990
9991                           if test "X$x" = "X-L$additional_libdir"; then
9992                             haveit=yes
9993                             break
9994                           fi
9995                         done
9996                         if test -z "$haveit"; then
9997                           if test -d "$additional_libdir"; then
9998                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9999                           fi
10000                         fi
10001                         haveit=
10002                         for x in $LDFLAGS $LTLIBICONV; do
10003
10004   acl_save_prefix="$prefix"
10005   prefix="$acl_final_prefix"
10006   acl_save_exec_prefix="$exec_prefix"
10007   exec_prefix="$acl_final_exec_prefix"
10008   eval x=\"$x\"
10009   exec_prefix="$acl_save_exec_prefix"
10010   prefix="$acl_save_prefix"
10011
10012                           if test "X$x" = "X-L$additional_libdir"; then
10013                             haveit=yes
10014                             break
10015                           fi
10016                         done
10017                         if test -z "$haveit"; then
10018                           if test -d "$additional_libdir"; then
10019                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10020                           fi
10021                         fi
10022                       fi
10023                     fi
10024                     ;;
10025                   -R*)
10026                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10027                     if test "$enable_rpath" != no; then
10028                                                                   haveit=
10029                       for x in $rpathdirs; do
10030                         if test "X$x" = "X$dir"; then
10031                           haveit=yes
10032                           break
10033                         fi
10034                       done
10035                       if test -z "$haveit"; then
10036                         rpathdirs="$rpathdirs $dir"
10037                       fi
10038                                                                   haveit=
10039                       for x in $ltrpathdirs; do
10040                         if test "X$x" = "X$dir"; then
10041                           haveit=yes
10042                           break
10043                         fi
10044                       done
10045                       if test -z "$haveit"; then
10046                         ltrpathdirs="$ltrpathdirs $dir"
10047                       fi
10048                     fi
10049                     ;;
10050                   -l*)
10051                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10052                     ;;
10053                   *.la)
10054                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10055                     ;;
10056                   *)
10057                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10058                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10059                     ;;
10060                 esac
10061               done
10062             fi
10063           else
10064                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10065             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10066           fi
10067         fi
10068       fi
10069     done
10070   done
10071   if test "X$rpathdirs" != "X"; then
10072     if test -n "$hardcode_libdir_separator"; then
10073                         alldirs=
10074       for found_dir in $rpathdirs; do
10075         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10076       done
10077             acl_save_libdir="$libdir"
10078       libdir="$alldirs"
10079       eval flag=\"$hardcode_libdir_flag_spec\"
10080       libdir="$acl_save_libdir"
10081       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10082     else
10083             for found_dir in $rpathdirs; do
10084         acl_save_libdir="$libdir"
10085         libdir="$found_dir"
10086         eval flag=\"$hardcode_libdir_flag_spec\"
10087         libdir="$acl_save_libdir"
10088         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10089       done
10090     fi
10091   fi
10092   if test "X$ltrpathdirs" != "X"; then
10093             for found_dir in $ltrpathdirs; do
10094       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10095     done
10096   fi
10097
10098
10099
10100
10101
10102
10103
10104           am_save_CPPFLAGS="$CPPFLAGS"
10105
10106   for element in $INCICONV; do
10107     haveit=
10108     for x in $CPPFLAGS; do
10109
10110   acl_save_prefix="$prefix"
10111   prefix="$acl_final_prefix"
10112   acl_save_exec_prefix="$exec_prefix"
10113   exec_prefix="$acl_final_exec_prefix"
10114   eval x=\"$x\"
10115   exec_prefix="$acl_save_exec_prefix"
10116   prefix="$acl_save_prefix"
10117
10118       if test "X$x" = "X$element"; then
10119         haveit=yes
10120         break
10121       fi
10122     done
10123     if test -z "$haveit"; then
10124       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10125     fi
10126   done
10127
10128
10129   echo "$as_me:$LINENO: checking for iconv" >&5
10130 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10131 if test "${am_cv_func_iconv+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134
10135     am_cv_func_iconv="no, consider installing GNU libiconv"
10136     am_cv_lib_iconv=no
10137     if test x$gcc_no_link = xyes; then
10138   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10140    { (exit 1); exit 1; }; }
10141 fi
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148 #include <stdlib.h>
10149 #include <iconv.h>
10150 int
10151 main ()
10152 {
10153 iconv_t cd = iconv_open("","");
10154        iconv(cd,NULL,NULL,NULL,NULL);
10155        iconv_close(cd);
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162   (eval $ac_link) 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag"
10170                          || test ! -s conftest.err'
10171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172   (eval $ac_try) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; } &&
10176          { ac_try='test -s conftest$ac_exeext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   am_cv_func_iconv=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 fi
10188 rm -f conftest.err conftest.$ac_objext \
10189       conftest$ac_exeext conftest.$ac_ext
10190     if test "$am_cv_func_iconv" != yes; then
10191       am_save_LIBS="$LIBS"
10192       LIBS="$LIBS $LIBICONV"
10193       if test x$gcc_no_link = xyes; then
10194   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10196    { (exit 1); exit 1; }; }
10197 fi
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204 #include <stdlib.h>
10205 #include <iconv.h>
10206 int
10207 main ()
10208 {
10209 iconv_t cd = iconv_open("","");
10210          iconv(cd,NULL,NULL,NULL,NULL);
10211          iconv_close(cd);
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218   (eval $ac_link) 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag"
10226                          || test ! -s conftest.err'
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); }; } &&
10232          { ac_try='test -s conftest$ac_exeext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   am_cv_lib_iconv=yes
10239         am_cv_func_iconv=yes
10240 else
10241   echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 fi
10245 rm -f conftest.err conftest.$ac_objext \
10246       conftest$ac_exeext conftest.$ac_ext
10247       LIBS="$am_save_LIBS"
10248     fi
10249
10250 fi
10251 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10252 echo "${ECHO_T}$am_cv_func_iconv" >&6
10253   if test "$am_cv_func_iconv" = yes; then
10254
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_ICONV 1
10257 _ACEOF
10258
10259   fi
10260   if test "$am_cv_lib_iconv" = yes; then
10261     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10262 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10263     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10264 echo "${ECHO_T}$LIBICONV" >&6
10265   else
10266             CPPFLAGS="$am_save_CPPFLAGS"
10267     LIBICONV=
10268     LTLIBICONV=
10269   fi
10270
10271
10272
10273   if test "$am_cv_func_iconv" = yes; then
10274     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10275 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10276     if test "${am_cv_proto_iconv+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279
10280       cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 #include <stdlib.h>
10288 #include <iconv.h>
10289 extern
10290 #ifdef __cplusplus
10291 "C"
10292 #endif
10293 #if defined(__STDC__) || defined(__cplusplus)
10294 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10295 #else
10296 size_t iconv();
10297 #endif
10298
10299 int
10300 main ()
10301 {
10302
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_c_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest.$ac_objext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   am_cv_proto_iconv_arg1=""
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 am_cv_proto_iconv_arg1="const"
10335 fi
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10337       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);"
10338 fi
10339
10340     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10341     echo "$as_me:$LINENO: result: ${ac_t:-
10342          }$am_cv_proto_iconv" >&5
10343 echo "${ECHO_T}${ac_t:-
10344          }$am_cv_proto_iconv" >&6
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define ICONV_CONST $am_cv_proto_iconv_arg1
10348 _ACEOF
10349
10350   fi
10351
10352
10353   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10354 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10355 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   if test x$gcc_no_link = xyes; then
10359   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10361    { (exit 1); exit 1; }; }
10362 fi
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h.  */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h.  */
10369 #include <locale.h>
10370 int
10371 main ()
10372 {
10373 return LC_MESSAGES
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380   (eval $ac_link) 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -z "$ac_c_werror_flag"
10388                          || test ! -s conftest.err'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; } &&
10394          { ac_try='test -s conftest$ac_exeext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   am_cv_val_LC_MESSAGES=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 am_cv_val_LC_MESSAGES=no
10406 fi
10407 rm -f conftest.err conftest.$ac_objext \
10408       conftest$ac_exeext conftest.$ac_ext
10409 fi
10410 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10411 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10412   if test $am_cv_val_LC_MESSAGES = yes; then
10413
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_LC_MESSAGES 1
10416 _ACEOF
10417
10418   fi
10419
10420    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10421 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10422 if test "${ac_cv_struct_tm+set}" = set; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425   cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431 #include <sys/types.h>
10432 #include <time.h>
10433
10434 int
10435 main ()
10436 {
10437 struct tm *tp; tp->tm_sec;
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444   (eval $ac_compile) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_c_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest.$ac_objext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_cv_struct_tm=time.h
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 ac_cv_struct_tm=sys/time.h
10470 fi
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 fi
10473 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10474 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10475 if test $ac_cv_struct_tm = sys/time.h; then
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define TM_IN_SYS_TIME 1
10479 _ACEOF
10480
10481 fi
10482
10483 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10484 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10485 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 #include <sys/types.h>
10495 #include <$ac_cv_struct_tm>
10496
10497
10498 int
10499 main ()
10500 {
10501 static struct tm ac_aggr;
10502 if (ac_aggr.tm_zone)
10503 return 0;
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510   (eval $ac_compile) 2>conftest.er1
10511   ac_status=$?
10512   grep -v '^ *+' conftest.er1 >conftest.err
10513   rm -f conftest.er1
10514   cat conftest.err >&5
10515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516   (exit $ac_status); } &&
10517          { ac_try='test -z "$ac_c_werror_flag"
10518                          || test ! -s conftest.err'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; } &&
10524          { ac_try='test -s conftest.$ac_objext'
10525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526   (eval $ac_try) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); }; }; then
10530   ac_cv_member_struct_tm_tm_zone=yes
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 #include <sys/types.h>
10542 #include <$ac_cv_struct_tm>
10543
10544
10545 int
10546 main ()
10547 {
10548 static struct tm ac_aggr;
10549 if (sizeof ac_aggr.tm_zone)
10550 return 0;
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557   (eval $ac_compile) 2>conftest.er1
10558   ac_status=$?
10559   grep -v '^ *+' conftest.er1 >conftest.err
10560   rm -f conftest.er1
10561   cat conftest.err >&5
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } &&
10564          { ac_try='test -z "$ac_c_werror_flag"
10565                          || test ! -s conftest.err'
10566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567   (eval $ac_try) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; } &&
10571          { ac_try='test -s conftest.$ac_objext'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   ac_cv_member_struct_tm_tm_zone=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 ac_cv_member_struct_tm_tm_zone=no
10583 fi
10584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587 fi
10588 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10589 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10590 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10591
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_STRUCT_TM_TM_ZONE 1
10594 _ACEOF
10595
10596
10597 fi
10598
10599 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10600
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_TM_ZONE 1
10603 _ACEOF
10604
10605 else
10606   echo "$as_me:$LINENO: checking for tzname" >&5
10607 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10608 if test "${ac_cv_var_tzname+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   if test x$gcc_no_link = xyes; then
10612   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10613 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10614    { (exit 1); exit 1; }; }
10615 fi
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622 #include <time.h>
10623 #ifndef tzname /* For SGI.  */
10624 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10625 #endif
10626
10627 int
10628 main ()
10629 {
10630 atoi(*tzname);
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } &&
10644          { ac_try='test -z "$ac_c_werror_flag"
10645                          || test ! -s conftest.err'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; } &&
10651          { ac_try='test -s conftest$ac_exeext'
10652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653   (eval $ac_try) 2>&5
10654   ac_status=$?
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); }; }; then
10657   ac_cv_var_tzname=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662 ac_cv_var_tzname=no
10663 fi
10664 rm -f conftest.err conftest.$ac_objext \
10665       conftest$ac_exeext conftest.$ac_ext
10666 fi
10667 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10668 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10669   if test $ac_cv_var_tzname = yes; then
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_TZNAME 1
10673 _ACEOF
10674
10675   fi
10676 fi
10677
10678
10679
10680
10681 for ac_func in gethostbyname_r
10682 do
10683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10684 echo "$as_me:$LINENO: checking for $ac_func" >&5
10685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10686 if eval "test \"\${$as_ac_var+set}\" = set"; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   if test x$gcc_no_link = xyes; then
10690   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10692    { (exit 1); exit 1; }; }
10693 fi
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10702 #define $ac_func innocuous_$ac_func
10703
10704 /* System header to define __stub macros and hopefully few prototypes,
10705     which can conflict with char $ac_func (); below.
10706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10707     <limits.h> exists even on freestanding compilers.  */
10708
10709 #ifdef __STDC__
10710 # include <limits.h>
10711 #else
10712 # include <assert.h>
10713 #endif
10714
10715 #undef $ac_func
10716
10717 /* Override any gcc2 internal prototype to avoid an error.  */
10718 #ifdef __cplusplus
10719 extern "C"
10720 {
10721 #endif
10722 /* We use char because int might match the return type of a gcc2
10723    builtin and then its argument prototype would still apply.  */
10724 char $ac_func ();
10725 /* The GNU C library defines this for functions which it implements
10726     to always fail with ENOSYS.  Some functions are actually named
10727     something starting with __ and the normal name is an alias.  */
10728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10729 choke me
10730 #else
10731 char (*f) () = $ac_func;
10732 #endif
10733 #ifdef __cplusplus
10734 }
10735 #endif
10736
10737 int
10738 main ()
10739 {
10740 return f != $ac_func;
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747   (eval $ac_link) 2>conftest.er1
10748   ac_status=$?
10749   grep -v '^ *+' conftest.er1 >conftest.err
10750   rm -f conftest.er1
10751   cat conftest.err >&5
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -z "$ac_c_werror_flag"
10755                          || test ! -s conftest.err'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; } &&
10761          { ac_try='test -s conftest$ac_exeext'
10762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763   (eval $ac_try) 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   eval "$as_ac_var=yes"
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 eval "$as_ac_var=no"
10773 fi
10774 rm -f conftest.err conftest.$ac_objext \
10775       conftest$ac_exeext conftest.$ac_ext
10776 fi
10777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10779 if test `eval echo '${'$as_ac_var'}'` = yes; then
10780   cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10782 _ACEOF
10783
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_GETHOSTBYNAME_R 1
10787 _ACEOF
10788
10789      # There are two different kinds of gethostbyname_r.
10790      # We look for the one that returns `int'.
10791      # Hopefully this check is robust enough.
10792      cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 #include <netdb.h>
10799
10800 _ACEOF
10801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10802   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10803
10804
10805 cat >>confdefs.h <<\_ACEOF
10806 #define GETHOSTBYNAME_R_RETURNS_INT 1
10807 _ACEOF
10808
10809 fi
10810 rm -f conftest*
10811
10812
10813      case " $GCINCS " in
10814      *" -D_REENTRANT "*) ;;
10815      *)
10816                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10817 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10818 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821    ac_ext=cc
10822 ac_cpp='$CXXCPP $CPPFLAGS'
10823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10826
10827           cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833 #include <netdb.h>
10834 int
10835 main ()
10836 {
10837 gethostbyname_r("", 0, 0);
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext
10843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844   (eval $ac_compile) 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_cxx_werror_flag"
10852                          || test ! -s conftest.err'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; } &&
10858          { ac_try='test -s conftest.$ac_objext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   libjava_cv_gethostbyname_r_needs_reentrant=no
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869                 CPPFLAGS_SAVE="$CPPFLAGS"
10870                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10871                 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 #include <netdb.h>
10878 int
10879 main ()
10880 {
10881 gethostbyname_r("", 0, 0);
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10888   (eval $ac_compile) 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_cxx_werror_flag"
10896                          || test ! -s conftest.err'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; } &&
10902          { ac_try='test -s conftest.$ac_objext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   libjava_cv_gethostbyname_r_needs_reentrant=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 libjava_cv_gethostbyname_r_needs_reentrant=fail
10914 fi
10915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10916                 CPPFLAGS="$CPPFLAGS_SAVE"
10917
10918 fi
10919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10920           ac_ext=c
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925
10926
10927 fi
10928 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10929 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10930         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define _REENTRANT 1
10934 _ACEOF
10935
10936         fi
10937      ;;
10938      esac
10939
10940      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10941 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10942 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945         cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951
10952 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10953 # define _REENTRANT 1
10954 #endif
10955 #include <netdb.h>
10956 int
10957 main ()
10958 {
10959 struct hostent_data data;
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966   (eval $ac_compile) 2>conftest.er1
10967   ac_status=$?
10968   grep -v '^ *+' conftest.er1 >conftest.err
10969   rm -f conftest.er1
10970   cat conftest.err >&5
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -z "$ac_c_werror_flag"
10974                          || test ! -s conftest.err'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; } &&
10980          { ac_try='test -s conftest.$ac_objext'
10981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982   (eval $ac_try) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; }; then
10986   libjava_cv_struct_hostent_data=yes
10987 else
10988   echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 libjava_cv_struct_hostent_data=no
10992 fi
10993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10996 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10997      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10998
10999 cat >>confdefs.h <<\_ACEOF
11000 #define HAVE_STRUCT_HOSTENT_DATA 1
11001 _ACEOF
11002
11003      fi
11004
11005 fi
11006 done
11007
11008
11009    # FIXME: libjava source code expects to find a prototype for
11010    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11011    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11012    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11013    # linkage check is enough, yet C++ code requires proper prototypes.)
11014    cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h.  */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h.  */
11020 #include <netdb.h>
11021
11022 _ACEOF
11023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11024   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11025
11026
11027 for ac_func in gethostbyaddr_r
11028 do
11029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030 echo "$as_me:$LINENO: checking for $ac_func" >&5
11031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11032 if eval "test \"\${$as_ac_var+set}\" = set"; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   if test x$gcc_no_link = xyes; then
11036   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11038    { (exit 1); exit 1; }; }
11039 fi
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11048 #define $ac_func innocuous_$ac_func
11049
11050 /* System header to define __stub macros and hopefully few prototypes,
11051     which can conflict with char $ac_func (); below.
11052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053     <limits.h> exists even on freestanding compilers.  */
11054
11055 #ifdef __STDC__
11056 # include <limits.h>
11057 #else
11058 # include <assert.h>
11059 #endif
11060
11061 #undef $ac_func
11062
11063 /* Override any gcc2 internal prototype to avoid an error.  */
11064 #ifdef __cplusplus
11065 extern "C"
11066 {
11067 #endif
11068 /* We use char because int might match the return type of a gcc2
11069    builtin and then its argument prototype would still apply.  */
11070 char $ac_func ();
11071 /* The GNU C library defines this for functions which it implements
11072     to always fail with ENOSYS.  Some functions are actually named
11073     something starting with __ and the normal name is an alias.  */
11074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11075 choke me
11076 #else
11077 char (*f) () = $ac_func;
11078 #endif
11079 #ifdef __cplusplus
11080 }
11081 #endif
11082
11083 int
11084 main ()
11085 {
11086 return f != $ac_func;
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093   (eval $ac_link) 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } &&
11100          { ac_try='test -z "$ac_c_werror_flag"
11101                          || test ! -s conftest.err'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; } &&
11107          { ac_try='test -s conftest$ac_exeext'
11108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109   (eval $ac_try) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113   eval "$as_ac_var=yes"
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 eval "$as_ac_var=no"
11119 fi
11120 rm -f conftest.err conftest.$ac_objext \
11121       conftest$ac_exeext conftest.$ac_ext
11122 fi
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126   cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_GETHOSTBYADDR_R 1
11133 _ACEOF
11134
11135      # There are two different kinds of gethostbyaddr_r.
11136      # We look for the one that returns `int'.
11137      # Hopefully this check is robust enough.
11138      cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 #include <netdb.h>
11145
11146 _ACEOF
11147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11148   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11149
11150
11151 cat >>confdefs.h <<\_ACEOF
11152 #define GETHOSTBYADDR_R_RETURNS_INT 1
11153 _ACEOF
11154
11155 fi
11156 rm -f conftest*
11157
11158 fi
11159 done
11160
11161 fi
11162 rm -f conftest*
11163
11164
11165
11166 for ac_func in gethostname
11167 do
11168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11169 echo "$as_me:$LINENO: checking for $ac_func" >&5
11170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11171 if eval "test \"\${$as_ac_var+set}\" = set"; then
11172   echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174   if test x$gcc_no_link = xyes; then
11175   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11177    { (exit 1); exit 1; }; }
11178 fi
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11187 #define $ac_func innocuous_$ac_func
11188
11189 /* System header to define __stub macros and hopefully few prototypes,
11190     which can conflict with char $ac_func (); below.
11191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192     <limits.h> exists even on freestanding compilers.  */
11193
11194 #ifdef __STDC__
11195 # include <limits.h>
11196 #else
11197 # include <assert.h>
11198 #endif
11199
11200 #undef $ac_func
11201
11202 /* Override any gcc2 internal prototype to avoid an error.  */
11203 #ifdef __cplusplus
11204 extern "C"
11205 {
11206 #endif
11207 /* We use char because int might match the return type of a gcc2
11208    builtin and then its argument prototype would still apply.  */
11209 char $ac_func ();
11210 /* The GNU C library defines this for functions which it implements
11211     to always fail with ENOSYS.  Some functions are actually named
11212     something starting with __ and the normal name is an alias.  */
11213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 choke me
11215 #else
11216 char (*f) () = $ac_func;
11217 #endif
11218 #ifdef __cplusplus
11219 }
11220 #endif
11221
11222 int
11223 main ()
11224 {
11225 return f != $ac_func;
11226   ;
11227   return 0;
11228 }
11229 _ACEOF
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11232   (eval $ac_link) 2>conftest.er1
11233   ac_status=$?
11234   grep -v '^ *+' conftest.er1 >conftest.err
11235   rm -f conftest.er1
11236   cat conftest.err >&5
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); } &&
11239          { ac_try='test -z "$ac_c_werror_flag"
11240                          || test ! -s conftest.err'
11241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242   (eval $ac_try) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; } &&
11246          { ac_try='test -s conftest$ac_exeext'
11247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248   (eval $ac_try) 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; }; then
11252   eval "$as_ac_var=yes"
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257 eval "$as_ac_var=no"
11258 fi
11259 rm -f conftest.err conftest.$ac_objext \
11260       conftest$ac_exeext conftest.$ac_ext
11261 fi
11262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265   cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 _ACEOF
11268
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GETHOSTNAME 1
11272 _ACEOF
11273
11274      cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h.  */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h.  */
11280 #include <unistd.h>
11281
11282 _ACEOF
11283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11284   $EGREP "gethostname" >/dev/null 2>&1; then
11285
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_GETHOSTNAME_DECL 1
11289 _ACEOF
11290
11291 fi
11292 rm -f conftest*
11293
11294 fi
11295 done
11296
11297
11298
11299 for ac_func in usleep
11300 do
11301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11302 echo "$as_me:$LINENO: checking for $ac_func" >&5
11303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11304 if eval "test \"\${$as_ac_var+set}\" = set"; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   if test x$gcc_no_link = xyes; then
11308   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11310    { (exit 1); exit 1; }; }
11311 fi
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h.  */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h.  */
11318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11320 #define $ac_func innocuous_$ac_func
11321
11322 /* System header to define __stub macros and hopefully few prototypes,
11323     which can conflict with char $ac_func (); below.
11324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11325     <limits.h> exists even on freestanding compilers.  */
11326
11327 #ifdef __STDC__
11328 # include <limits.h>
11329 #else
11330 # include <assert.h>
11331 #endif
11332
11333 #undef $ac_func
11334
11335 /* Override any gcc2 internal prototype to avoid an error.  */
11336 #ifdef __cplusplus
11337 extern "C"
11338 {
11339 #endif
11340 /* We use char because int might match the return type of a gcc2
11341    builtin and then its argument prototype would still apply.  */
11342 char $ac_func ();
11343 /* The GNU C library defines this for functions which it implements
11344     to always fail with ENOSYS.  Some functions are actually named
11345     something starting with __ and the normal name is an alias.  */
11346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11347 choke me
11348 #else
11349 char (*f) () = $ac_func;
11350 #endif
11351 #ifdef __cplusplus
11352 }
11353 #endif
11354
11355 int
11356 main ()
11357 {
11358 return f != $ac_func;
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365   (eval $ac_link) 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -z "$ac_c_werror_flag"
11373                          || test ! -s conftest.err'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; } &&
11379          { ac_try='test -s conftest$ac_exeext'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   eval "$as_ac_var=yes"
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 eval "$as_ac_var=no"
11391 fi
11392 rm -f conftest.err conftest.$ac_objext \
11393       conftest$ac_exeext conftest.$ac_ext
11394 fi
11395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11397 if test `eval echo '${'$as_ac_var'}'` = yes; then
11398   cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11400 _ACEOF
11401
11402      cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408 #include <unistd.h>
11409
11410 _ACEOF
11411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11412   $EGREP "usleep" >/dev/null 2>&1; then
11413
11414
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_USLEEP_DECL 1
11417 _ACEOF
11418
11419 fi
11420 rm -f conftest*
11421
11422 fi
11423 done
11424
11425
11426    # Look for these functions in the thread library, but only bother
11427    # if using POSIX threads.
11428    if test "$THREADS" = posix; then
11429       save_LIBS="$LIBS"
11430       LIBS="$LIBS $THREADLIBS"
11431       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11432       # E.g., Solaris.
11433
11434
11435 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11436 do
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11440 if eval "test \"\${$as_ac_var+set}\" = set"; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   if test x$gcc_no_link = xyes; then
11444   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11446    { (exit 1); exit 1; }; }
11447 fi
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11456 #define $ac_func innocuous_$ac_func
11457
11458 /* System header to define __stub macros and hopefully few prototypes,
11459     which can conflict with char $ac_func (); below.
11460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11461     <limits.h> exists even on freestanding compilers.  */
11462
11463 #ifdef __STDC__
11464 # include <limits.h>
11465 #else
11466 # include <assert.h>
11467 #endif
11468
11469 #undef $ac_func
11470
11471 /* Override any gcc2 internal prototype to avoid an error.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 {
11475 #endif
11476 /* We use char because int might match the return type of a gcc2
11477    builtin and then its argument prototype would still apply.  */
11478 char $ac_func ();
11479 /* The GNU C library defines this for functions which it implements
11480     to always fail with ENOSYS.  Some functions are actually named
11481     something starting with __ and the normal name is an alias.  */
11482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11483 choke me
11484 #else
11485 char (*f) () = $ac_func;
11486 #endif
11487 #ifdef __cplusplus
11488 }
11489 #endif
11490
11491 int
11492 main ()
11493 {
11494 return f != $ac_func;
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501   (eval $ac_link) 2>conftest.er1
11502   ac_status=$?
11503   grep -v '^ *+' conftest.er1 >conftest.err
11504   rm -f conftest.er1
11505   cat conftest.err >&5
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -z "$ac_c_werror_flag"
11509                          || test ! -s conftest.err'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; } &&
11515          { ac_try='test -s conftest$ac_exeext'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   eval "$as_ac_var=yes"
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 eval "$as_ac_var=no"
11527 fi
11528 rm -f conftest.err conftest.$ac_objext \
11529       conftest$ac_exeext conftest.$ac_ext
11530 fi
11531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11533 if test `eval echo '${'$as_ac_var'}'` = yes; then
11534   cat >>confdefs.h <<_ACEOF
11535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11536 _ACEOF
11537
11538 fi
11539 done
11540
11541
11542       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11543       # Solaris 7 the name librt is preferred.
11544
11545 for ac_func in sched_yield
11546 do
11547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11548 echo "$as_me:$LINENO: checking for $ac_func" >&5
11549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_var+set}\" = set"; then
11551   echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553   if test x$gcc_no_link = xyes; then
11554   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11556    { (exit 1); exit 1; }; }
11557 fi
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11566 #define $ac_func innocuous_$ac_func
11567
11568 /* System header to define __stub macros and hopefully few prototypes,
11569     which can conflict with char $ac_func (); below.
11570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571     <limits.h> exists even on freestanding compilers.  */
11572
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11578
11579 #undef $ac_func
11580
11581 /* Override any gcc2 internal prototype to avoid an error.  */
11582 #ifdef __cplusplus
11583 extern "C"
11584 {
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587    builtin and then its argument prototype would still apply.  */
11588 char $ac_func ();
11589 /* The GNU C library defines this for functions which it implements
11590     to always fail with ENOSYS.  Some functions are actually named
11591     something starting with __ and the normal name is an alias.  */
11592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11593 choke me
11594 #else
11595 char (*f) () = $ac_func;
11596 #endif
11597 #ifdef __cplusplus
11598 }
11599 #endif
11600
11601 int
11602 main ()
11603 {
11604 return f != $ac_func;
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11611   (eval $ac_link) 2>conftest.er1
11612   ac_status=$?
11613   grep -v '^ *+' conftest.er1 >conftest.err
11614   rm -f conftest.er1
11615   cat conftest.err >&5
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } &&
11618          { ac_try='test -z "$ac_c_werror_flag"
11619                          || test ! -s conftest.err'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; } &&
11625          { ac_try='test -s conftest$ac_exeext'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   eval "$as_ac_var=yes"
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 eval "$as_ac_var=no"
11637 fi
11638 rm -f conftest.err conftest.$ac_objext \
11639       conftest$ac_exeext conftest.$ac_ext
11640 fi
11641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11643 if test `eval echo '${'$as_ac_var'}'` = yes; then
11644   cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 _ACEOF
11647
11648 else
11649
11650         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11651 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11652 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-lrt  $LIBS"
11657 if test x$gcc_no_link = xyes; then
11658   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11660    { (exit 1); exit 1; }; }
11661 fi
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h.  */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h.  */
11668
11669 /* Override any gcc2 internal prototype to avoid an error.  */
11670 #ifdef __cplusplus
11671 extern "C"
11672 #endif
11673 /* We use char because int might match the return type of a gcc2
11674    builtin and then its argument prototype would still apply.  */
11675 char sched_yield ();
11676 int
11677 main ()
11678 {
11679 sched_yield ();
11680   ;
11681   return 0;
11682 }
11683 _ACEOF
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11686   (eval $ac_link) 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -z "$ac_c_werror_flag"
11694                          || test ! -s conftest.err'
11695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696   (eval $ac_try) 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; } &&
11700          { ac_try='test -s conftest$ac_exeext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   ac_cv_lib_rt_sched_yield=yes
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 ac_cv_lib_rt_sched_yield=no
11712 fi
11713 rm -f conftest.err conftest.$ac_objext \
11714       conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11716 fi
11717 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11718 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11719 if test $ac_cv_lib_rt_sched_yield = yes; then
11720
11721           cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_SCHED_YIELD 1
11723 _ACEOF
11724
11725           THREADLIBS="$THREADLIBS -lrt"
11726           THREADSPEC="$THREADSPEC -lrt"
11727 else
11728
11729           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11730 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11731 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   ac_check_lib_save_LIBS=$LIBS
11735 LIBS="-lposix4  $LIBS"
11736 if test x$gcc_no_link = xyes; then
11737   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11739    { (exit 1); exit 1; }; }
11740 fi
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h.  */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h.  */
11747
11748 /* Override any gcc2 internal prototype to avoid an error.  */
11749 #ifdef __cplusplus
11750 extern "C"
11751 #endif
11752 /* We use char because int might match the return type of a gcc2
11753    builtin and then its argument prototype would still apply.  */
11754 char sched_yield ();
11755 int
11756 main ()
11757 {
11758 sched_yield ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765   (eval $ac_link) 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -z "$ac_c_werror_flag"
11773                          || test ! -s conftest.err'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest$ac_exeext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_cv_lib_posix4_sched_yield=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_cv_lib_posix4_sched_yield=no
11791 fi
11792 rm -f conftest.err conftest.$ac_objext \
11793       conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11797 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11798 if test $ac_cv_lib_posix4_sched_yield = yes; then
11799
11800             cat >>confdefs.h <<\_ACEOF
11801 #define HAVE_SCHED_YIELD 1
11802 _ACEOF
11803
11804             THREADLIBS="$THREADLIBS -lposix4"
11805             THREADSPEC="$THREADSPEC -lposix4"
11806 fi
11807
11808 fi
11809
11810 fi
11811 done
11812
11813       LIBS="$save_LIBS"
11814
11815       # We can save a little space at runtime if the mutex has m_count
11816       # or __m_count.  This is a nice hack for Linux.
11817       cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <pthread.h>
11824 int
11825 main ()
11826 {
11827
11828           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11836   (eval $ac_compile) 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } &&
11843          { ac_try='test -z "$ac_c_werror_flag"
11844                          || test ! -s conftest.err'
11845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846   (eval $ac_try) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; } &&
11850          { ac_try='test -s conftest.$ac_objext'
11851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852   (eval $ac_try) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; }; then
11856
11857 cat >>confdefs.h <<\_ACEOF
11858 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11859 _ACEOF
11860
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865
11866         cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <pthread.h>
11873 int
11874 main ()
11875 {
11876
11877             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11878
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885   (eval $ac_compile) 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } &&
11892          { ac_try='test -z "$ac_c_werror_flag"
11893                          || test ! -s conftest.err'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest.$ac_objext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905
11906 cat >>confdefs.h <<\_ACEOF
11907 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11908 _ACEOF
11909
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 fi
11915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918    fi
11919
11920    # We require a way to get the time.
11921    time_found=no
11922
11923
11924
11925 for ac_func in gettimeofday time ftime
11926 do
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11930 if eval "test \"\${$as_ac_var+set}\" = set"; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   if test x$gcc_no_link = xyes; then
11934   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11936    { (exit 1); exit 1; }; }
11937 fi
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11946 #define $ac_func innocuous_$ac_func
11947
11948 /* System header to define __stub macros and hopefully few prototypes,
11949     which can conflict with char $ac_func (); below.
11950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951     <limits.h> exists even on freestanding compilers.  */
11952
11953 #ifdef __STDC__
11954 # include <limits.h>
11955 #else
11956 # include <assert.h>
11957 #endif
11958
11959 #undef $ac_func
11960
11961 /* Override any gcc2 internal prototype to avoid an error.  */
11962 #ifdef __cplusplus
11963 extern "C"
11964 {
11965 #endif
11966 /* We use char because int might match the return type of a gcc2
11967    builtin and then its argument prototype would still apply.  */
11968 char $ac_func ();
11969 /* The GNU C library defines this for functions which it implements
11970     to always fail with ENOSYS.  Some functions are actually named
11971     something starting with __ and the normal name is an alias.  */
11972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11973 choke me
11974 #else
11975 char (*f) () = $ac_func;
11976 #endif
11977 #ifdef __cplusplus
11978 }
11979 #endif
11980
11981 int
11982 main ()
11983 {
11984 return f != $ac_func;
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11991   (eval $ac_link) 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -z "$ac_c_werror_flag"
11999                          || test ! -s conftest.err'
12000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001   (eval $ac_try) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; } &&
12005          { ac_try='test -s conftest$ac_exeext'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   eval "$as_ac_var=yes"
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017 fi
12018 rm -f conftest.err conftest.$ac_objext \
12019       conftest$ac_exeext conftest.$ac_ext
12020 fi
12021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12023 if test `eval echo '${'$as_ac_var'}'` = yes; then
12024   cat >>confdefs.h <<_ACEOF
12025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12026 _ACEOF
12027  time_found=yes
12028 fi
12029 done
12030
12031    if test "$time_found" = no; then
12032       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12033 echo "$as_me: error: no function found to get the time" >&2;}
12034    { (exit 1); exit 1; }; }
12035    fi
12036
12037
12038 for ac_func in memmove
12039 do
12040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_var+set}\" = set"; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046   if test x$gcc_no_link = xyes; then
12047   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12049    { (exit 1); exit 1; }; }
12050 fi
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h.  */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h.  */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12059 #define $ac_func innocuous_$ac_func
12060
12061 /* System header to define __stub macros and hopefully few prototypes,
12062     which can conflict with char $ac_func (); below.
12063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064     <limits.h> exists even on freestanding compilers.  */
12065
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12071
12072 #undef $ac_func
12073
12074 /* Override any gcc2 internal prototype to avoid an error.  */
12075 #ifdef __cplusplus
12076 extern "C"
12077 {
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080    builtin and then its argument prototype would still apply.  */
12081 char $ac_func ();
12082 /* The GNU C library defines this for functions which it implements
12083     to always fail with ENOSYS.  Some functions are actually named
12084     something starting with __ and the normal name is an alias.  */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 char (*f) () = $ac_func;
12089 #endif
12090 #ifdef __cplusplus
12091 }
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097 return f != $ac_func;
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104   (eval $ac_link) 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -z "$ac_c_werror_flag"
12112                          || test ! -s conftest.err'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   eval "$as_ac_var=yes"
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 eval "$as_ac_var=no"
12130 fi
12131 rm -f conftest.err conftest.$ac_objext \
12132       conftest$ac_exeext conftest.$ac_ext
12133 fi
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137   cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12139 _ACEOF
12140
12141 fi
12142 done
12143
12144
12145    # We require memcpy.
12146    memcpy_found=no
12147
12148 for ac_func in memcpy
12149 do
12150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151 echo "$as_me:$LINENO: checking for $ac_func" >&5
12152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12153 if eval "test \"\${$as_ac_var+set}\" = set"; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   if test x$gcc_no_link = xyes; then
12157   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12159    { (exit 1); exit 1; }; }
12160 fi
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12169 #define $ac_func innocuous_$ac_func
12170
12171 /* System header to define __stub macros and hopefully few prototypes,
12172     which can conflict with char $ac_func (); below.
12173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174     <limits.h> exists even on freestanding compilers.  */
12175
12176 #ifdef __STDC__
12177 # include <limits.h>
12178 #else
12179 # include <assert.h>
12180 #endif
12181
12182 #undef $ac_func
12183
12184 /* Override any gcc2 internal prototype to avoid an error.  */
12185 #ifdef __cplusplus
12186 extern "C"
12187 {
12188 #endif
12189 /* We use char because int might match the return type of a gcc2
12190    builtin and then its argument prototype would still apply.  */
12191 char $ac_func ();
12192 /* The GNU C library defines this for functions which it implements
12193     to always fail with ENOSYS.  Some functions are actually named
12194     something starting with __ and the normal name is an alias.  */
12195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12196 choke me
12197 #else
12198 char (*f) () = $ac_func;
12199 #endif
12200 #ifdef __cplusplus
12201 }
12202 #endif
12203
12204 int
12205 main ()
12206 {
12207 return f != $ac_func;
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214   (eval $ac_link) 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } &&
12221          { ac_try='test -z "$ac_c_werror_flag"
12222                          || test ! -s conftest.err'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest$ac_exeext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   eval "$as_ac_var=yes"
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 eval "$as_ac_var=no"
12240 fi
12241 rm -f conftest.err conftest.$ac_objext \
12242       conftest$ac_exeext conftest.$ac_ext
12243 fi
12244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12246 if test `eval echo '${'$as_ac_var'}'` = yes; then
12247   cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12249 _ACEOF
12250  memcpy_found=yes
12251 fi
12252 done
12253
12254    if test "$memcpy_found" = no; then
12255       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12256 echo "$as_me: error: memcpy is required" >&2;}
12257    { (exit 1); exit 1; }; }
12258    fi
12259
12260    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-ldl  $LIBS"
12267 if test x$gcc_no_link = xyes; then
12268   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12270    { (exit 1); exit 1; }; }
12271 fi
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278
12279 /* Override any gcc2 internal prototype to avoid an error.  */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 /* We use char because int might match the return type of a gcc2
12284    builtin and then its argument prototype would still apply.  */
12285 char dlopen ();
12286 int
12287 main ()
12288 {
12289 dlopen ();
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296   (eval $ac_link) 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag"
12304                          || test ! -s conftest.err'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest$ac_exeext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_cv_lib_dl_dlopen=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_lib_dl_dlopen=no
12322 fi
12323 rm -f conftest.err conftest.$ac_objext \
12324       conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12326 fi
12327 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12328 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12329 if test $ac_cv_lib_dl_dlopen = yes; then
12330
12331
12332 cat >>confdefs.h <<\_ACEOF
12333 #define HAVE_DLOPEN 1
12334 _ACEOF
12335
12336 fi
12337
12338
12339    # Some library-finding code we stole from Tcl.
12340    #--------------------------------------------------------------------
12341    #    Check for the existence of the -lsocket and -lnsl libraries.
12342    #    The order here is important, so that they end up in the right
12343    #    order in the command line generated by make.  Here are some
12344    #    special considerations:
12345    #    1. Use "connect" and "accept" to check for -lsocket, and
12346    #       "gethostbyname" to check for -lnsl.
12347    #    2. Use each function name only once:  can't redo a check because
12348    #       autoconf caches the results of the last check and won't redo it.
12349    #    3. Use -lnsl and -lsocket only if they supply procedures that
12350    #       aren't already present in the normal libraries.  This is because
12351    #       IRIX 5.2 has libraries, but they aren't needed and they're
12352    #       bogus:  they goof up name resolution if used.
12353    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12354    #       To get around this problem, check for both libraries together
12355    #       if -lsocket doesn't work by itself.
12356    #--------------------------------------------------------------------
12357
12358    echo "$as_me:$LINENO: checking for socket libraries" >&5
12359 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12360 if test "${gcj_cv_lib_sockets+set}" = set; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   gcj_cv_lib_sockets=
12364      gcj_checkBoth=0
12365      unset ac_cv_func_connect
12366      echo "$as_me:$LINENO: checking for connect" >&5
12367 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12368 if test "${ac_cv_func_connect+set}" = set; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371   if test x$gcc_no_link = xyes; then
12372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12374    { (exit 1); exit 1; }; }
12375 fi
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12384 #define connect innocuous_connect
12385
12386 /* System header to define __stub macros and hopefully few prototypes,
12387     which can conflict with char connect (); below.
12388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389     <limits.h> exists even on freestanding compilers.  */
12390
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12396
12397 #undef connect
12398
12399 /* Override any gcc2 internal prototype to avoid an error.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 {
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405    builtin and then its argument prototype would still apply.  */
12406 char connect ();
12407 /* The GNU C library defines this for functions which it implements
12408     to always fail with ENOSYS.  Some functions are actually named
12409     something starting with __ and the normal name is an alias.  */
12410 #if defined (__stub_connect) || defined (__stub___connect)
12411 choke me
12412 #else
12413 char (*f) () = connect;
12414 #endif
12415 #ifdef __cplusplus
12416 }
12417 #endif
12418
12419 int
12420 main ()
12421 {
12422 return f != connect;
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429   (eval $ac_link) 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_c_werror_flag"
12437                          || test ! -s conftest.err'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; } &&
12443          { ac_try='test -s conftest$ac_exeext'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; }; then
12449   ac_cv_func_connect=yes
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 ac_cv_func_connect=no
12455 fi
12456 rm -f conftest.err conftest.$ac_objext \
12457       conftest$ac_exeext conftest.$ac_ext
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12460 echo "${ECHO_T}$ac_cv_func_connect" >&6
12461 if test $ac_cv_func_connect = yes; then
12462   gcj_checkSocket=0
12463 else
12464   gcj_checkSocket=1
12465 fi
12466
12467      if test "$gcj_checkSocket" = 1; then
12468          unset ac_cv_func_connect
12469          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12470 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12471 if test "${ac_cv_lib_socket_main+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-lsocket  $LIBS"
12476 if test x$gcc_no_link = xyes; then
12477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12479    { (exit 1); exit 1; }; }
12480 fi
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487
12488
12489 int
12490 main ()
12491 {
12492 main ();
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499   (eval $ac_link) 2>conftest.er1
12500   ac_status=$?
12501   grep -v '^ *+' conftest.er1 >conftest.err
12502   rm -f conftest.er1
12503   cat conftest.err >&5
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } &&
12506          { ac_try='test -z "$ac_c_werror_flag"
12507                          || test ! -s conftest.err'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; } &&
12513          { ac_try='test -s conftest$ac_exeext'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; }; then
12519   ac_cv_lib_socket_main=yes
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 ac_cv_lib_socket_main=no
12525 fi
12526 rm -f conftest.err conftest.$ac_objext \
12527       conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12529 fi
12530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12531 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12532 if test $ac_cv_lib_socket_main = yes; then
12533   gcj_cv_lib_sockets="-lsocket"
12534 else
12535   gcj_checkBoth=1
12536 fi
12537
12538      fi
12539      if test "$gcj_checkBoth" = 1; then
12540          gcj_oldLibs=$LIBS
12541          LIBS="$LIBS -lsocket -lnsl"
12542          unset ac_cv_func_accept
12543          echo "$as_me:$LINENO: checking for accept" >&5
12544 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12545 if test "${ac_cv_func_accept+set}" = set; then
12546   echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548   if test x$gcc_no_link = xyes; then
12549   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12551    { (exit 1); exit 1; }; }
12552 fi
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12561 #define accept innocuous_accept
12562
12563 /* System header to define __stub macros and hopefully few prototypes,
12564     which can conflict with char accept (); below.
12565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566     <limits.h> exists even on freestanding compilers.  */
12567
12568 #ifdef __STDC__
12569 # include <limits.h>
12570 #else
12571 # include <assert.h>
12572 #endif
12573
12574 #undef accept
12575
12576 /* Override any gcc2 internal prototype to avoid an error.  */
12577 #ifdef __cplusplus
12578 extern "C"
12579 {
12580 #endif
12581 /* We use char because int might match the return type of a gcc2
12582    builtin and then its argument prototype would still apply.  */
12583 char accept ();
12584 /* The GNU C library defines this for functions which it implements
12585     to always fail with ENOSYS.  Some functions are actually named
12586     something starting with __ and the normal name is an alias.  */
12587 #if defined (__stub_accept) || defined (__stub___accept)
12588 choke me
12589 #else
12590 char (*f) () = accept;
12591 #endif
12592 #ifdef __cplusplus
12593 }
12594 #endif
12595
12596 int
12597 main ()
12598 {
12599 return f != accept;
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606   (eval $ac_link) 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag"
12614                          || test ! -s conftest.err'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_func_accept=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ac_cv_func_accept=no
12632 fi
12633 rm -f conftest.err conftest.$ac_objext \
12634       conftest$ac_exeext conftest.$ac_ext
12635 fi
12636 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12637 echo "${ECHO_T}$ac_cv_func_accept" >&6
12638 if test $ac_cv_func_accept = yes; then
12639   gcj_checkNsl=0
12640                         gcj_cv_lib_sockets="-lsocket -lnsl"
12641 fi
12642
12643          unset ac_cv_func_accept
12644          LIBS=$gcj_oldLibs
12645      fi
12646      unset ac_cv_func_gethostbyname
12647      gcj_oldLibs=$LIBS
12648      LIBS="$LIBS $gcj_cv_lib_sockets"
12649      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12650 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12651 if test "${ac_cv_func_gethostbyname+set}" = set; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654   if test x$gcc_no_link = xyes; then
12655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12657    { (exit 1); exit 1; }; }
12658 fi
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12667 #define gethostbyname innocuous_gethostbyname
12668
12669 /* System header to define __stub macros and hopefully few prototypes,
12670     which can conflict with char gethostbyname (); below.
12671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672     <limits.h> exists even on freestanding compilers.  */
12673
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12679
12680 #undef gethostbyname
12681
12682 /* Override any gcc2 internal prototype to avoid an error.  */
12683 #ifdef __cplusplus
12684 extern "C"
12685 {
12686 #endif
12687 /* We use char because int might match the return type of a gcc2
12688    builtin and then its argument prototype would still apply.  */
12689 char gethostbyname ();
12690 /* The GNU C library defines this for functions which it implements
12691     to always fail with ENOSYS.  Some functions are actually named
12692     something starting with __ and the normal name is an alias.  */
12693 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12694 choke me
12695 #else
12696 char (*f) () = gethostbyname;
12697 #endif
12698 #ifdef __cplusplus
12699 }
12700 #endif
12701
12702 int
12703 main ()
12704 {
12705 return f != gethostbyname;
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712   (eval $ac_link) 2>conftest.er1
12713   ac_status=$?
12714   grep -v '^ *+' conftest.er1 >conftest.err
12715   rm -f conftest.er1
12716   cat conftest.err >&5
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -z "$ac_c_werror_flag"
12720                          || test ! -s conftest.err'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; } &&
12726          { ac_try='test -s conftest$ac_exeext'
12727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728   (eval $ac_try) 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; }; then
12732   ac_cv_func_gethostbyname=yes
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737 ac_cv_func_gethostbyname=no
12738 fi
12739 rm -f conftest.err conftest.$ac_objext \
12740       conftest$ac_exeext conftest.$ac_ext
12741 fi
12742 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12743 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12744 if test $ac_cv_func_gethostbyname = yes; then
12745   :
12746 else
12747   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12748 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12749 if test "${ac_cv_lib_nsl_main+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lnsl  $LIBS"
12754 if test x$gcc_no_link = xyes; then
12755   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12757    { (exit 1); exit 1; }; }
12758 fi
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765
12766
12767 int
12768 main ()
12769 {
12770 main ();
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777   (eval $ac_link) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"
12785                          || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest$ac_exeext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_cv_lib_nsl_main=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_cv_lib_nsl_main=no
12803 fi
12804 rm -f conftest.err conftest.$ac_objext \
12805       conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12807 fi
12808 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12809 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12810 if test $ac_cv_lib_nsl_main = yes; then
12811   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12812 fi
12813
12814 fi
12815
12816      unset ac_cv_func_gethostbyname
12817      LIBS=$gcj_oldLIBS
12818
12819 fi
12820 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12821 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12822    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12823
12824    if test "$with_system_zlib" = yes; then
12825       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12826 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12827 if test "${ac_cv_lib_z_deflate+set}" = set; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830   ac_check_lib_save_LIBS=$LIBS
12831 LIBS="-lz  $LIBS"
12832 if test x$gcc_no_link = xyes; then
12833   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12835    { (exit 1); exit 1; }; }
12836 fi
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any gcc2 internal prototype to avoid an error.  */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 /* We use char because int might match the return type of a gcc2
12849    builtin and then its argument prototype would still apply.  */
12850 char deflate ();
12851 int
12852 main ()
12853 {
12854 deflate ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861   (eval $ac_link) 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -z "$ac_c_werror_flag"
12869                          || test ! -s conftest.err'
12870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871   (eval $ac_try) 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; } &&
12875          { ac_try='test -s conftest$ac_exeext'
12876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877   (eval $ac_try) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); }; }; then
12881   ac_cv_lib_z_deflate=yes
12882 else
12883   echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886 ac_cv_lib_z_deflate=no
12887 fi
12888 rm -f conftest.err conftest.$ac_objext \
12889       conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12893 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12894 if test $ac_cv_lib_z_deflate = yes; then
12895   ZLIBSPEC=-lz
12896 else
12897   ZLIBSPEC=
12898 fi
12899
12900    fi
12901
12902    # Test for Gtk stuff, if asked for.
12903    if test "$use_gtk_awt" = yes; then
12904
12905   succeeded=no
12906
12907   if test -z "$PKG_CONFIG"; then
12908     # Extract the first word of "pkg-config", so it can be a program name with args.
12909 set dummy pkg-config; ac_word=$2
12910 echo "$as_me:$LINENO: checking for $ac_word" >&5
12911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   case $PKG_CONFIG in
12916   [\\/]* | ?:[\\/]*)
12917   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12918   ;;
12919   *)
12920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12922 do
12923   IFS=$as_save_IFS
12924   test -z "$as_dir" && as_dir=.
12925   for ac_exec_ext in '' $ac_executable_extensions; do
12926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12927     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929     break 2
12930   fi
12931 done
12932 done
12933
12934   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12935   ;;
12936 esac
12937 fi
12938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12939
12940 if test -n "$PKG_CONFIG"; then
12941   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12942 echo "${ECHO_T}$PKG_CONFIG" >&6
12943 else
12944   echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6
12946 fi
12947
12948   fi
12949
12950   if test "$PKG_CONFIG" = "no" ; then
12951      echo "*** The pkg-config script could not be found. Make sure it is"
12952      echo "*** in your path, or set the PKG_CONFIG environment variable"
12953      echo "*** to the full path to pkg-config."
12954      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12955   else
12956      PKG_CONFIG_MIN_VERSION=0.9.0
12957      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12958         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12959 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12960
12961         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12962             echo "$as_me:$LINENO: result: yes" >&5
12963 echo "${ECHO_T}yes" >&6
12964             succeeded=yes
12965
12966             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12967 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12968             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12969             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12970 echo "${ECHO_T}$GTK_CFLAGS" >&6
12971
12972             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12973 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12974             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12975             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12976 echo "${ECHO_T}$GTK_LIBS" >&6
12977         else
12978             GTK_CFLAGS=""
12979             GTK_LIBS=""
12980             ## If we have a custom action on failure, don't print errors, but
12981             ## do set a variable so people can do so.
12982             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12983             echo $GTK_PKG_ERRORS
12984         fi
12985
12986
12987
12988      else
12989         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12990         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12991      fi
12992   fi
12993
12994   if test $succeeded = yes; then
12995      :
12996   else
12997      { { 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
12998 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;}
12999    { (exit 1); exit 1; }; }
13000   fi
13001
13002
13003
13004
13005
13006   succeeded=no
13007
13008   if test -z "$PKG_CONFIG"; then
13009     # Extract the first word of "pkg-config", so it can be a program name with args.
13010 set dummy pkg-config; ac_word=$2
13011 echo "$as_me:$LINENO: checking for $ac_word" >&5
13012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   case $PKG_CONFIG in
13017   [\\/]* | ?:[\\/]*)
13018   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13019   ;;
13020   *)
13021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13023 do
13024   IFS=$as_save_IFS
13025   test -z "$as_dir" && as_dir=.
13026   for ac_exec_ext in '' $ac_executable_extensions; do
13027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030     break 2
13031   fi
13032 done
13033 done
13034
13035   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13036   ;;
13037 esac
13038 fi
13039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13040
13041 if test -n "$PKG_CONFIG"; then
13042   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13043 echo "${ECHO_T}$PKG_CONFIG" >&6
13044 else
13045   echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6
13047 fi
13048
13049   fi
13050
13051   if test "$PKG_CONFIG" = "no" ; then
13052      echo "*** The pkg-config script could not be found. Make sure it is"
13053      echo "*** in your path, or set the PKG_CONFIG environment variable"
13054      echo "*** to the full path to pkg-config."
13055      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13056   else
13057      PKG_CONFIG_MIN_VERSION=0.9.0
13058      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13059         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13060 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13061
13062         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13063             echo "$as_me:$LINENO: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6
13065             succeeded=yes
13066
13067             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13068 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13069             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13070             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13071 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13072
13073             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13074 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13075             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13076             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13077 echo "${ECHO_T}$GLIB_LIBS" >&6
13078         else
13079             GLIB_CFLAGS=""
13080             GLIB_LIBS=""
13081             ## If we have a custom action on failure, don't print errors, but
13082             ## do set a variable so people can do so.
13083             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13084             echo $GLIB_PKG_ERRORS
13085         fi
13086
13087
13088
13089      else
13090         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13091         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13092      fi
13093   fi
13094
13095   if test $succeeded = yes; then
13096      :
13097   else
13098      { { 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
13099 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;}
13100    { (exit 1); exit 1; }; }
13101   fi
13102
13103
13104
13105
13106
13107   succeeded=no
13108
13109   if test -z "$PKG_CONFIG"; then
13110     # Extract the first word of "pkg-config", so it can be a program name with args.
13111 set dummy pkg-config; ac_word=$2
13112 echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   case $PKG_CONFIG in
13118   [\\/]* | ?:[\\/]*)
13119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13120   ;;
13121   *)
13122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13124 do
13125   IFS=$as_save_IFS
13126   test -z "$as_dir" && as_dir=.
13127   for ac_exec_ext in '' $ac_executable_extensions; do
13128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131     break 2
13132   fi
13133 done
13134 done
13135
13136   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13137   ;;
13138 esac
13139 fi
13140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13141
13142 if test -n "$PKG_CONFIG"; then
13143   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13144 echo "${ECHO_T}$PKG_CONFIG" >&6
13145 else
13146   echo "$as_me:$LINENO: result: no" >&5
13147 echo "${ECHO_T}no" >&6
13148 fi
13149
13150   fi
13151
13152   if test "$PKG_CONFIG" = "no" ; then
13153      echo "*** The pkg-config script could not be found. Make sure it is"
13154      echo "*** in your path, or set the PKG_CONFIG environment variable"
13155      echo "*** to the full path to pkg-config."
13156      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13157   else
13158      PKG_CONFIG_MIN_VERSION=0.9.0
13159      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13160         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13161 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13162
13163         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13164             echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6
13166             succeeded=yes
13167
13168             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13169 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13170             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13171             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13172 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13173
13174             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13175 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13176             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13177             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13178 echo "${ECHO_T}$LIBART_LIBS" >&6
13179         else
13180             LIBART_CFLAGS=""
13181             LIBART_LIBS=""
13182             ## If we have a custom action on failure, don't print errors, but
13183             ## do set a variable so people can do so.
13184             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13185             echo $LIBART_PKG_ERRORS
13186         fi
13187
13188
13189
13190      else
13191         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13193      fi
13194   fi
13195
13196   if test $succeeded = yes; then
13197      :
13198   else
13199      { { 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
13200 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;}
13201    { (exit 1); exit 1; }; }
13202   fi
13203
13204
13205
13206
13207       # We require the XTest Extension to support java.awt.Robot.
13208       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13209 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13210 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lXtst ${X_LIBS} $LIBS"
13215 if test x$gcc_no_link = xyes; then
13216   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13218    { (exit 1); exit 1; }; }
13219 fi
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226
13227 /* Override any gcc2 internal prototype to avoid an error.  */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 /* We use char because int might match the return type of a gcc2
13232    builtin and then its argument prototype would still apply.  */
13233 char XTestQueryExtension ();
13234 int
13235 main ()
13236 {
13237 XTestQueryExtension ();
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244   (eval $ac_link) 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } &&
13251          { ac_try='test -z "$ac_c_werror_flag"
13252                          || test ! -s conftest.err'
13253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254   (eval $ac_try) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; } &&
13258          { ac_try='test -s conftest$ac_exeext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   ac_cv_lib_Xtst_XTestQueryExtension=yes
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_cv_lib_Xtst_XTestQueryExtension=no
13270 fi
13271 rm -f conftest.err conftest.$ac_objext \
13272       conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_check_lib_save_LIBS
13274 fi
13275 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13276 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13277 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13278   true
13279 else
13280   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13281 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13282    { (exit 1); exit 1; }; }
13283 fi
13284
13285    fi
13286
13287    # On Solaris, and maybe other architectures, the Boehm collector
13288    # requires -ldl.
13289    if test "$GC" = boehm; then
13290       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13291 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13292 if test "${ac_cv_lib_dl_main+set}" = set; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-ldl  $LIBS"
13297 if test x$gcc_no_link = xyes; then
13298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13300    { (exit 1); exit 1; }; }
13301 fi
13302 cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308
13309
13310 int
13311 main ()
13312 {
13313 main ();
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320   (eval $ac_link) 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } &&
13327          { ac_try='test -z "$ac_c_werror_flag"
13328                          || test ! -s conftest.err'
13329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330   (eval $ac_try) 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; } &&
13334          { ac_try='test -s conftest$ac_exeext'
13335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336   (eval $ac_try) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; }; then
13340   ac_cv_lib_dl_main=yes
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_cv_lib_dl_main=no
13346 fi
13347 rm -f conftest.err conftest.$ac_objext \
13348       conftest$ac_exeext conftest.$ac_ext
13349 LIBS=$ac_check_lib_save_LIBS
13350 fi
13351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13352 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13353 if test $ac_cv_lib_dl_main = yes; then
13354   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13355 fi
13356
13357    fi
13358 fi
13359
13360
13361 if test "$supply_backtrace" = yes; then
13362   SUPPLY_BACKTRACE_TRUE=
13363   SUPPLY_BACKTRACE_FALSE='#'
13364 else
13365   SUPPLY_BACKTRACE_TRUE='#'
13366   SUPPLY_BACKTRACE_FALSE=
13367 fi
13368
13369
13370 if test -z "${with_multisubdir}"; then
13371    builddotdot=.
13372 else
13373    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13374 fi
13375
13376 NATIVE=yes
13377
13378 # Which gcj do we use?
13379 which_gcj=default
13380 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13381 if test -n "${with_cross_host}"; then
13382   # We are being configured with a cross compiler. We can't
13383   # use ac_exeext, because that is for the target platform.
13384   NATIVE=no
13385   cross_host_exeext=
13386   case "${with_cross_host}" in
13387      *mingw* | *cygwin*)
13388          cross_host_exeext=.exe
13389      ;;
13390   esac
13391   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13392      if test x"$build_noncanonical" = x"$with_cross_host"; then
13393         # Ordinary cross (host!=target and host=build)
13394         which_gcj=built
13395      else
13396         # Canadian cross (host!=target and host!=build)
13397         which_gcj=cross
13398      fi
13399   else
13400      which_gcj=cross
13401   fi
13402 else
13403   # We are being configured with a native or crossed-native compiler
13404   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13405      if test x"$build" = x"$host"; then
13406         # True native build (host=target and host=build)
13407         which_gcj=built
13408      else
13409         # Crossed-native build (host=target and host!=build)
13410         which_gcj=cross
13411      fi
13412   else
13413      which_gcj=path
13414   fi
13415 fi
13416 case "${which_gcj}" in
13417    built)
13418       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13419       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13420       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13421    ;;
13422    cross)
13423       if test "x${with_newlib}" = "xyes"; then
13424          # FIXME (comment): Why is this needed?
13425          GCC_UNWIND_INCLUDE=
13426          GCJ="${target_noncanonical}-gcj"
13427       else
13428          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13429       fi
13430       ZIP='$(target_noncanonical)-fastjar'
13431       GCJH='$(target_noncanonical)-gcjh'
13432    ;;
13433    path)
13434       GCJ="gcj -B`${PWDCMD-pwd}`/"
13435       ## In this case, gcj is found outside the build tree.  However, zip is
13436       ## found in the build tree.
13437       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13438       GCJH=gcjh
13439    ;;
13440 esac
13441
13442
13443
13444
13445 # Create it, so that compile/link tests don't fail
13446 test -f libgcj.spec || touch libgcj.spec
13447
13448 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13449 case $build in
13450     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13451     *)         CLASSPATH_SEPARATOR=':' ;;
13452 esac
13453
13454
13455 # We must search the source tree for java.lang, since we still don't
13456 # have libgcj.jar nor java/lang/*.class
13457 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13458 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13459
13460 # Since some classes depend on this one, we need its source available
13461 # before we can do any GCJ compilation test :-(
13462 if test ! -f gnu/classpath/Configuration.java; then
13463   test -d gnu || mkdir gnu
13464   test -d gnu/classpath || mkdir gnu/classpath
13465   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13466       -e 's,@TOOLKIT@,$TOOLKIT,' \
13467         < $srcdir/gnu/classpath/Configuration.java.in \
13468         > gnu/classpath/Configuration.java
13469   # We do not want to redirect the output of the grep below to /dev/null,
13470   # but we add /dev/null to the input list so that grep will print the
13471   # filename of Configuration.java in case it finds any matches.
13472   if grep @ gnu/classpath/Configuration.java /dev/null; then
13473     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13474 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13475    { (exit 1); exit 1; }; }
13476   fi
13477 fi
13478
13479 if test -n "$ac_tool_prefix"; then
13480   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13481 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13482 echo "$as_me:$LINENO: checking for $ac_word" >&5
13483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13484 if test "${ac_cv_prog_GCJ+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   if test -n "$GCJ"; then
13488   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13489 else
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13492 do
13493   IFS=$as_save_IFS
13494   test -z "$as_dir" && as_dir=.
13495   for ac_exec_ext in '' $ac_executable_extensions; do
13496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13499     break 2
13500   fi
13501 done
13502 done
13503
13504 fi
13505 fi
13506 GCJ=$ac_cv_prog_GCJ
13507 if test -n "$GCJ"; then
13508   echo "$as_me:$LINENO: result: $GCJ" >&5
13509 echo "${ECHO_T}$GCJ" >&6
13510 else
13511   echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13513 fi
13514
13515 fi
13516 if test -z "$ac_cv_prog_GCJ"; then
13517   ac_ct_GCJ=$GCJ
13518   # Extract the first word of "gcj", so it can be a program name with args.
13519 set dummy gcj; ac_word=$2
13520 echo "$as_me:$LINENO: checking for $ac_word" >&5
13521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13522 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   if test -n "$ac_ct_GCJ"; then
13526   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531   IFS=$as_save_IFS
13532   test -z "$as_dir" && as_dir=.
13533   for ac_exec_ext in '' $ac_executable_extensions; do
13534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535     ac_cv_prog_ac_ct_GCJ="gcj"
13536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537     break 2
13538   fi
13539 done
13540 done
13541
13542   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13543 fi
13544 fi
13545 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13546 if test -n "$ac_ct_GCJ"; then
13547   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13548 echo "${ECHO_T}$ac_ct_GCJ" >&6
13549 else
13550   echo "$as_me:$LINENO: result: no" >&5
13551 echo "${ECHO_T}no" >&6
13552 fi
13553
13554   GCJ=$ac_ct_GCJ
13555 else
13556   GCJ="$ac_cv_prog_GCJ"
13557 fi
13558
13559   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13560
13561
13562
13563
13564 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13565
13566 echo "$as_me:$LINENO: checking size of void *" >&5
13567 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13568 if test "${ac_cv_sizeof_void_p+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13572   cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 #include "confdefs.h"
13579 #include <sys/types.h>
13580
13581
13582 int
13583 main ()
13584 {
13585 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 rm -f conftest.$ac_objext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592   (eval $ac_compile) 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } &&
13599          { ac_try='test -z "$ac_c_werror_flag"
13600                          || test ! -s conftest.err'
13601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602   (eval $ac_try) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); }; } &&
13606          { ac_try='test -s conftest.$ac_objext'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; }; then
13612   ac_cv_sizeof_void_p=$ac_size
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 fi
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13620 done
13621
13622 fi
13623
13624 if test x$ac_cv_sizeof_void_p = x ; then
13625   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13626 echo "$as_me: error: cannot determine a size for void *" >&2;}
13627    { (exit 1); exit 1; }; }
13628 fi
13629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13630 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13634 _ACEOF
13635
13636
13637
13638 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13639 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13640 if test "${ac_cv_c_bigendian+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   ac_cv_c_bigendian=unknown
13644 # See if sys/param.h defines the BYTE_ORDER macro.
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h.  */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h.  */
13651 #include <sys/types.h>
13652 #include <sys/param.h>
13653 int
13654 main ()
13655 {
13656
13657 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13658  bogus endian macros
13659 #endif
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest.$ac_objext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   # It does; now see whether it defined to BIG_ENDIAN or not.
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693 #include <sys/types.h>
13694 #include <sys/param.h>
13695 int
13696 main ()
13697 {
13698
13699 #if BYTE_ORDER != BIG_ENDIAN
13700  not big endian
13701 #endif
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708   (eval $ac_compile) 2>conftest.er1
13709   ac_status=$?
13710   grep -v '^ *+' conftest.er1 >conftest.err
13711   rm -f conftest.er1
13712   cat conftest.err >&5
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } &&
13715          { ac_try='test -z "$ac_c_werror_flag"
13716                          || test ! -s conftest.err'
13717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718   (eval $ac_try) 2>&5
13719   ac_status=$?
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; } &&
13722          { ac_try='test -s conftest.$ac_objext'
13723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724   (eval $ac_try) 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728   ac_cv_c_bigendian=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733 ac_cv_c_bigendian=no
13734 fi
13735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 fi
13741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13742 if test $ac_cv_c_bigendian = unknown; then
13743 if test "$cross_compiling" = yes; then
13744    echo $ac_n "cross-compiling... " 2>&6
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h.  */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h.  */
13752 main () {
13753   /* Are we little or big endian?  From Harbison&Steele.  */
13754   union
13755   {
13756     long l;
13757     char c[sizeof (long)];
13758   } u;
13759   u.l = 1;
13760   exit (u.c[sizeof (long) - 1] == 1);
13761 }
13762 _ACEOF
13763 rm -f conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765   (eval $ac_link) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_c_bigendian=no
13775 else
13776   echo "$as_me: program exited with status $ac_status" >&5
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ( exit $ac_status )
13781 ac_cv_c_bigendian=yes
13782 fi
13783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13784 fi
13785 fi
13786 fi
13787 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13788 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13789 if test $ac_cv_c_bigendian = unknown; then
13790 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13791 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13792
13793 cat >conftest.c <<EOF
13794 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13795 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13796 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13797 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13798 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13799 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13800 int main() { _ascii (); _ebcdic (); return 0; }
13801 EOF
13802  if test -f conftest.c ; then
13803      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13804         if test `grep -l BIGenDianSyS conftest.o` ; then
13805            echo $ac_n ' big endian probe OK, ' 1>&6
13806            ac_cv_c_bigendian=yes
13807         fi
13808         if test `grep -l LiTTleEnDian conftest.o` ; then
13809            echo $ac_n ' little endian probe OK, ' 1>&6
13810            if test $ac_cv_c_bigendian = yes ; then
13811             ac_cv_c_bigendian=unknown;
13812            else
13813             ac_cv_c_bigendian=no
13814            fi
13815         fi
13816         echo $ac_n 'guessing bigendian ...  ' >&6
13817      fi
13818   fi
13819 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13820 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13821 fi
13822 if test $ac_cv_c_bigendian = yes; then
13823
13824 cat >>confdefs.h <<\_ACEOF
13825 #define WORDS_BIGENDIAN 1
13826 _ACEOF
13827
13828
13829 cat >>confdefs.h <<\_ACEOF
13830 #define HOST_WORDS_BIG_ENDIAN 1
13831 _ACEOF
13832
13833   BYTEORDER=4321
13834 else
13835   BYTEORDER=1234
13836 fi
13837
13838 cat >>confdefs.h <<_ACEOF
13839 #define BYTEORDER $BYTEORDER
13840 _ACEOF
13841
13842 if test $ac_cv_c_bigendian = unknown; then
13843   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13844 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13845    { (exit 1); exit 1; }; }
13846 fi
13847
13848
13849 ZLIBS=
13850 SYS_ZLIBS=
13851 ZINCS=
13852
13853 if test -z "$ZLIBSPEC"; then
13854    # Use zlib from the GCC tree.
13855    ZINCS='-I$(top_srcdir)/../zlib'
13856    ZLIBS=../zlib/libzgcj_convenience.la
13857 else
13858    # System's zlib.
13859    SYS_ZLIBS="$ZLIBSPEC"
13860 fi
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871 if test "$NATIVE" = yes; then
13872   NATIVE_TRUE=
13873   NATIVE_FALSE='#'
13874 else
13875   NATIVE_TRUE='#'
13876   NATIVE_FALSE=
13877 fi
13878
13879
13880
13881 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13882   NEEDS_DATA_START_TRUE=
13883   NEEDS_DATA_START_FALSE='#'
13884 else
13885   NEEDS_DATA_START_TRUE='#'
13886   NEEDS_DATA_START_FALSE=
13887 fi
13888
13889
13890
13891 # Process the option "--enable-version-specific-runtime-libs"
13892 # Calculate toolexeclibdir
13893 case ${version_specific_libs} in
13894   yes)
13895     # Need the gcc compiler version to know where to install libraries
13896     # and header files if --enable-version-specific-runtime-libs option
13897     # is selected.
13898     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13899     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13900     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13901     toolexeclibdir=$toolexecmainlibdir
13902     ;;
13903   no)
13904     if test -n "$with_cross_host" &&
13905        test x"$with_cross_host" != x"no"; then
13906       # Install a library built with a cross compiler in tooldir, not libdir.
13907       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13908       toolexecmainlibdir='$(toolexecdir)/lib'
13909     else
13910       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13911       toolexecmainlibdir='$(libdir)'
13912     fi
13913     multi_os_directory=`$CC -print-multi-os-directory`
13914     case $multi_os_directory in
13915       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13916       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13917     esac
13918     ;;
13919 esac
13920
13921
13922
13923
13924 # Determine gcj version number.
13925 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13926 GCJVERSION=$gcjversion
13927
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define GCJVERSION "$GCJVERSION"
13931 _ACEOF
13932
13933
13934
13935 cat >>confdefs.h <<\_ACEOF
13936 #define JV_VERSION "1.4.2"
13937 _ACEOF
13938
13939
13940 cat >>confdefs.h <<\_ACEOF
13941 #define JV_API_VERSION "1.4"
13942 _ACEOF
13943
13944
13945
13946 case "${with_gxx_include_dir}" in
13947   yes)
13948     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13949 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13950    { (exit 1); exit 1; }; }
13951     ;;
13952   no | "")
13953     case "${enable_version_specific_runtime_libs}" in
13954       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13955       *)
13956         libstdcxx_incdir='c++/$(gcc_version)'
13957         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13958     esac ;;
13959   *) gxx_include_dir=${with_gxx_include_dir} ;;
13960 esac
13961
13962
13963
13964
13965 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13966 # On that system, sys/ioctl.h will not include sys/filio.h unless
13967 # BSD_COMP is defined; just including sys/filio.h is simpler.
13968 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13969 # for now.  If you change this, you also must update natFile.cc.
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13991                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13992                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13993                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
13994                   dirent.h
13995 do
13996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13998   echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 fi
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14005 else
14006   # Is the header compilable?
14007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 $ac_includes_default
14016 #include <$ac_header>
14017 _ACEOF
14018 rm -f conftest.$ac_objext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020   (eval $ac_compile) 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_c_werror_flag"
14028                          || test ! -s conftest.err'
14029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030   (eval $ac_try) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); }; } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040   ac_header_compiler=yes
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 ac_header_compiler=no
14046 fi
14047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14049 echo "${ECHO_T}$ac_header_compiler" >&6
14050
14051 # Is the header present?
14052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060 #include <$ac_header>
14061 _ACEOF
14062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } >/dev/null; then
14070   if test -s conftest.err; then
14071     ac_cpp_err=$ac_c_preproc_warn_flag
14072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14073   else
14074     ac_cpp_err=
14075   fi
14076 else
14077   ac_cpp_err=yes
14078 fi
14079 if test -z "$ac_cpp_err"; then
14080   ac_header_preproc=yes
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085   ac_header_preproc=no
14086 fi
14087 rm -f conftest.err conftest.$ac_ext
14088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14089 echo "${ECHO_T}$ac_header_preproc" >&6
14090
14091 # So?  What about this header?
14092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14093   yes:no: )
14094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14098     ac_header_preproc=yes
14099     ;;
14100   no:yes:* )
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14113     (
14114       cat <<\_ASBOX
14115 ## ---------------------------------- ##
14116 ## Report this to the libjava lists.  ##
14117 ## ---------------------------------- ##
14118 _ASBOX
14119     ) |
14120       sed "s/^/$as_me: WARNING:     /" >&2
14121     ;;
14122 esac
14123 echo "$as_me:$LINENO: checking for $ac_header" >&5
14124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   eval "$as_ac_Header=\$ac_header_preproc"
14129 fi
14130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14132
14133 fi
14134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14135   cat >>confdefs.h <<_ACEOF
14136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14137 _ACEOF
14138
14139 fi
14140
14141 done
14142
14143
14144 for ac_header in inttypes.h
14145 do
14146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14148   echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 fi
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14155 else
14156   # Is the header compilable?
14157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 $ac_includes_default
14166 #include <$ac_header>
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170   (eval $ac_compile) 2>conftest.er1
14171   ac_status=$?
14172   grep -v '^ *+' conftest.er1 >conftest.err
14173   rm -f conftest.er1
14174   cat conftest.err >&5
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); } &&
14177          { ac_try='test -z "$ac_c_werror_flag"
14178                          || test ! -s conftest.err'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; } &&
14184          { ac_try='test -s conftest.$ac_objext'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   ac_header_compiler=yes
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_header_compiler=no
14196 fi
14197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14199 echo "${ECHO_T}$ac_header_compiler" >&6
14200
14201 # Is the header present?
14202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 #include <$ac_header>
14211 _ACEOF
14212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } >/dev/null; then
14220   if test -s conftest.err; then
14221     ac_cpp_err=$ac_c_preproc_warn_flag
14222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14223   else
14224     ac_cpp_err=
14225   fi
14226 else
14227   ac_cpp_err=yes
14228 fi
14229 if test -z "$ac_cpp_err"; then
14230   ac_header_preproc=yes
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235   ac_header_preproc=no
14236 fi
14237 rm -f conftest.err conftest.$ac_ext
14238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6
14240
14241 # So?  What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14243   yes:no: )
14244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14248     ac_header_preproc=yes
14249     ;;
14250   no:yes:* )
14251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14263     (
14264       cat <<\_ASBOX
14265 ## ---------------------------------- ##
14266 ## Report this to the libjava lists.  ##
14267 ## ---------------------------------- ##
14268 _ASBOX
14269     ) |
14270       sed "s/^/$as_me: WARNING:     /" >&2
14271     ;;
14272 esac
14273 echo "$as_me:$LINENO: checking for $ac_header" >&5
14274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   eval "$as_ac_Header=\$ac_header_preproc"
14279 fi
14280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14282
14283 fi
14284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14285   cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14287 _ACEOF
14288
14289
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_INTTYPES_H 1
14292 _ACEOF
14293
14294
14295 cat >>confdefs.h <<\_ACEOF
14296 #define JV_HAVE_INTTYPES_H 1
14297 _ACEOF
14298
14299
14300 fi
14301
14302 done
14303
14304 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14305 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14306 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14307   echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309   cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h.  */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h.  */
14315 #include <sys/types.h>
14316 #include <sys/wait.h>
14317 #ifndef WEXITSTATUS
14318 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14319 #endif
14320 #ifndef WIFEXITED
14321 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14322 #endif
14323
14324 int
14325 main ()
14326 {
14327   int s;
14328   wait (&s);
14329   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336   (eval $ac_compile) 2>conftest.er1
14337   ac_status=$?
14338   grep -v '^ *+' conftest.er1 >conftest.err
14339   rm -f conftest.er1
14340   cat conftest.err >&5
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); } &&
14343          { ac_try='test -z "$ac_c_werror_flag"
14344                          || test ! -s conftest.err'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; } &&
14350          { ac_try='test -s conftest.$ac_objext'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; }; then
14356   ac_cv_header_sys_wait_h=yes
14357 else
14358   echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14360
14361 ac_cv_header_sys_wait_h=no
14362 fi
14363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14364 fi
14365 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14366 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14367 if test $ac_cv_header_sys_wait_h = yes; then
14368
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_SYS_WAIT_H 1
14371 _ACEOF
14372
14373 fi
14374
14375
14376 echo "$as_me:$LINENO: checking for ssize_t" >&5
14377 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14378 if test "${ac_cv_type_ssize_t+set}" = set; then
14379   echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381   cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 $ac_includes_default
14388 int
14389 main ()
14390 {
14391 if ((ssize_t *) 0)
14392   return 0;
14393 if (sizeof (ssize_t))
14394   return 0;
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag"
14409                          || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_cv_type_ssize_t=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_cv_type_ssize_t=no
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14431 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14432 if test $ac_cv_type_ssize_t = yes; then
14433   :
14434 else
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #define ssize_t int
14438 _ACEOF
14439
14440 fi
14441
14442
14443 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14444 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h.  */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h.  */
14451 #include <sys/types.h>
14452 #if STDC_HEADERS
14453 #include <stdlib.h>
14454 #include <stddef.h>
14455 #endif
14456 #if HAVE_NETINET_IN_H
14457 #include <netinet/in.h>
14458 #endif
14459 int
14460 main ()
14461 {
14462 in_addr_t foo;
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag"
14477                          || test ! -s conftest.err'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_IN_ADDR_T 1
14492 _ACEOF
14493
14494    echo "$as_me:$LINENO: result: yes" >&5
14495 echo "${ECHO_T}yes" >&6
14496 else
14497   echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6
14502 fi
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504
14505 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14506 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513 #include <netinet/in.h>
14514 int
14515 main ()
14516 {
14517 struct ip_mreq mreq;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_STRUCT_IP_MREQ 1
14547 _ACEOF
14548
14549    echo "$as_me:$LINENO: result: yes" >&5
14550 echo "${ECHO_T}yes" >&6
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 echo "$as_me:$LINENO: result: no" >&5
14556 echo "${ECHO_T}no" >&6
14557 fi
14558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559
14560 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14561 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #include <netinet/in.h>
14569 int
14570 main ()
14571 {
14572 struct ipv6_mreq mreq6;
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579   (eval $ac_compile) 2>conftest.er1
14580   ac_status=$?
14581   grep -v '^ *+' conftest.er1 >conftest.err
14582   rm -f conftest.er1
14583   cat conftest.err >&5
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -z "$ac_c_werror_flag"
14587                          || test ! -s conftest.err'
14588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589   (eval $ac_try) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; } &&
14593          { ac_try='test -s conftest.$ac_objext'
14594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595   (eval $ac_try) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_STRUCT_IPV6_MREQ 1
14602 _ACEOF
14603
14604    echo "$as_me:$LINENO: result: yes" >&5
14605 echo "${ECHO_T}yes" >&6
14606 else
14607   echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 echo "$as_me:$LINENO: result: no" >&5
14611 echo "${ECHO_T}no" >&6
14612 fi
14613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14614
14615 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14616 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 #include <netinet/in.h>
14624 int
14625 main ()
14626 {
14627 struct sockaddr_in6 addr6;
14628   ;
14629   return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634   (eval $ac_compile) 2>conftest.er1
14635   ac_status=$?
14636   grep -v '^ *+' conftest.er1 >conftest.err
14637   rm -f conftest.er1
14638   cat conftest.err >&5
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } &&
14641          { ac_try='test -z "$ac_c_werror_flag"
14642                          || test ! -s conftest.err'
14643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644   (eval $ac_try) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; } &&
14648          { ac_try='test -s conftest.$ac_objext'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; }; then
14654
14655 cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INET6 1
14657 _ACEOF
14658
14659    echo "$as_me:$LINENO: result: yes" >&5
14660 echo "${ECHO_T}yes" >&6
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 echo "$as_me:$LINENO: result: no" >&5
14666 echo "${ECHO_T}no" >&6
14667 fi
14668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14669
14670 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14671 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 #define _POSIX_PII_SOCKET
14679 #include <sys/types.h>
14680 #include <sys/socket.h>
14681 int
14682 main ()
14683 {
14684 socklen_t x = 5;
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691   (eval $ac_compile) 2>conftest.er1
14692   ac_status=$?
14693   grep -v '^ *+' conftest.er1 >conftest.err
14694   rm -f conftest.er1
14695   cat conftest.err >&5
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); } &&
14698          { ac_try='test -z "$ac_c_werror_flag"
14699                          || test ! -s conftest.err'
14700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701   (eval $ac_try) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); }; } &&
14705          { ac_try='test -s conftest.$ac_objext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711
14712 cat >>confdefs.h <<\_ACEOF
14713 #define HAVE_SOCKLEN_T 1
14714 _ACEOF
14715
14716    echo "$as_me:$LINENO: result: yes" >&5
14717 echo "${ECHO_T}yes" >&6
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6
14724 fi
14725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14726
14727 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14728 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include <time.h>
14736 int
14737 main ()
14738 {
14739 struct tm tim; tim.tm_gmtoff = 0;
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 rm -f conftest.$ac_objext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14746   (eval $ac_compile) 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -z "$ac_c_werror_flag"
14754                          || test ! -s conftest.err'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; } &&
14760          { ac_try='test -s conftest.$ac_objext'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766
14767 cat >>confdefs.h <<\_ACEOF
14768 #define STRUCT_TM_HAS_GMTOFF 1
14769 _ACEOF
14770
14771    echo "$as_me:$LINENO: result: yes" >&5
14772 echo "${ECHO_T}yes" >&6
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6
14779    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14780 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14781                cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 #include <time.h>
14788 int
14789 main ()
14790 {
14791 void i(){long z2 = 2*timezone;}
14792   ;
14793   return 0;
14794 }
14795 _ACEOF
14796 rm -f conftest.$ac_objext
14797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14798   (eval $ac_compile) 2>conftest.er1
14799   ac_status=$?
14800   grep -v '^ *+' conftest.er1 >conftest.err
14801   rm -f conftest.er1
14802   cat conftest.err >&5
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); } &&
14805          { ac_try='test -z "$ac_c_werror_flag"
14806                          || test ! -s conftest.err'
14807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808   (eval $ac_try) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; } &&
14812          { ac_try='test -s conftest.$ac_objext'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; }; then
14818
14819 cat >>confdefs.h <<\_ACEOF
14820 #define HAVE_TIMEZONE 1
14821 _ACEOF
14822
14823       echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 echo "$as_me:$LINENO: result: no" >&5
14830 echo "${ECHO_T}no" >&6
14831        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14832 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14833               cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 #include <time.h>
14840 int
14841 main ()
14842 {
14843 long z2 = _timezone;
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850   (eval $ac_compile) 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } &&
14857          { ac_try='test -z "$ac_c_werror_flag"
14858                          || test ! -s conftest.err'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; } &&
14864          { ac_try='test -s conftest.$ac_objext'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_UNDERSCORE_TIMEZONE 1
14873 _ACEOF
14874
14875           echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6
14883 fi
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14887 fi
14888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14889
14890 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14891 # for constant arguments.  Useless!
14892 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14893 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14894 if test "${ac_cv_working_alloca_h+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   if test x$gcc_no_link = xyes; then
14898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14900    { (exit 1); exit 1; }; }
14901 fi
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 #include <alloca.h>
14909 int
14910 main ()
14911 {
14912 char *p = (char *) alloca (2 * sizeof (int));
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919   (eval $ac_link) 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_c_werror_flag"
14927                          || test ! -s conftest.err'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest$ac_exeext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_cv_working_alloca_h=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_cv_working_alloca_h=no
14945 fi
14946 rm -f conftest.err conftest.$ac_objext \
14947       conftest$ac_exeext conftest.$ac_ext
14948 fi
14949 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14950 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14951 if test $ac_cv_working_alloca_h = yes; then
14952
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_ALLOCA_H 1
14955 _ACEOF
14956
14957 fi
14958
14959 echo "$as_me:$LINENO: checking for alloca" >&5
14960 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14961 if test "${ac_cv_func_alloca_works+set}" = set; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964   if test x$gcc_no_link = xyes; then
14965   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14967    { (exit 1); exit 1; }; }
14968 fi
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h.  */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h.  */
14975 #ifdef __GNUC__
14976 # define alloca __builtin_alloca
14977 #else
14978 # ifdef _MSC_VER
14979 #  include <malloc.h>
14980 #  define alloca _alloca
14981 # else
14982 #  if HAVE_ALLOCA_H
14983 #   include <alloca.h>
14984 #  else
14985 #   ifdef _AIX
14986  #pragma alloca
14987 #   else
14988 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14989 char *alloca ();
14990 #    endif
14991 #   endif
14992 #  endif
14993 # endif
14994 #endif
14995
14996 int
14997 main ()
14998 {
14999 char *p = (char *) alloca (1);
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006   (eval $ac_link) 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -z "$ac_c_werror_flag"
15014                          || test ! -s conftest.err'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; } &&
15020          { ac_try='test -s conftest$ac_exeext'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026   ac_cv_func_alloca_works=yes
15027 else
15028   echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ac_cv_func_alloca_works=no
15032 fi
15033 rm -f conftest.err conftest.$ac_objext \
15034       conftest$ac_exeext conftest.$ac_ext
15035 fi
15036 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15037 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15038
15039 if test $ac_cv_func_alloca_works = yes; then
15040
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_ALLOCA 1
15043 _ACEOF
15044
15045 else
15046   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15047 # that cause trouble.  Some versions do not even contain alloca or
15048 # contain a buggy version.  If you still want to use their alloca,
15049 # use ar to extract alloca.o from them instead of compiling alloca.c.
15050
15051 ALLOCA=alloca.$ac_objext
15052
15053 cat >>confdefs.h <<\_ACEOF
15054 #define C_ALLOCA 1
15055 _ACEOF
15056
15057
15058 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15059 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15060 if test "${ac_cv_os_cray+set}" = set; then
15061   echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063   cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069 #if defined(CRAY) && ! defined(CRAY2)
15070 webecray
15071 #else
15072 wenotbecray
15073 #endif
15074
15075 _ACEOF
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077   $EGREP "webecray" >/dev/null 2>&1; then
15078   ac_cv_os_cray=yes
15079 else
15080   ac_cv_os_cray=no
15081 fi
15082 rm -f conftest*
15083
15084 fi
15085 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15086 echo "${ECHO_T}$ac_cv_os_cray" >&6
15087 if test $ac_cv_os_cray = yes; then
15088   for ac_func in _getb67 GETB67 getb67; do
15089     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 echo "$as_me:$LINENO: checking for $ac_func" >&5
15091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15092 if eval "test \"\${$as_ac_var+set}\" = set"; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   if test x$gcc_no_link = xyes; then
15096   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15098    { (exit 1); exit 1; }; }
15099 fi
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15108 #define $ac_func innocuous_$ac_func
15109
15110 /* System header to define __stub macros and hopefully few prototypes,
15111     which can conflict with char $ac_func (); below.
15112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15113     <limits.h> exists even on freestanding compilers.  */
15114
15115 #ifdef __STDC__
15116 # include <limits.h>
15117 #else
15118 # include <assert.h>
15119 #endif
15120
15121 #undef $ac_func
15122
15123 /* Override any gcc2 internal prototype to avoid an error.  */
15124 #ifdef __cplusplus
15125 extern "C"
15126 {
15127 #endif
15128 /* We use char because int might match the return type of a gcc2
15129    builtin and then its argument prototype would still apply.  */
15130 char $ac_func ();
15131 /* The GNU C library defines this for functions which it implements
15132     to always fail with ENOSYS.  Some functions are actually named
15133     something starting with __ and the normal name is an alias.  */
15134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15135 choke me
15136 #else
15137 char (*f) () = $ac_func;
15138 #endif
15139 #ifdef __cplusplus
15140 }
15141 #endif
15142
15143 int
15144 main ()
15145 {
15146 return f != $ac_func;
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153   (eval $ac_link) 2>conftest.er1
15154   ac_status=$?
15155   grep -v '^ *+' conftest.er1 >conftest.err
15156   rm -f conftest.er1
15157   cat conftest.err >&5
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } &&
15160          { ac_try='test -z "$ac_c_werror_flag"
15161                          || test ! -s conftest.err'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; } &&
15167          { ac_try='test -s conftest$ac_exeext'
15168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169   (eval $ac_try) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; }; then
15173   eval "$as_ac_var=yes"
15174 else
15175   echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178 eval "$as_ac_var=no"
15179 fi
15180 rm -f conftest.err conftest.$ac_objext \
15181       conftest$ac_exeext conftest.$ac_ext
15182 fi
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15185 if test `eval echo '${'$as_ac_var'}'` = yes; then
15186
15187 cat >>confdefs.h <<_ACEOF
15188 #define CRAY_STACKSEG_END $ac_func
15189 _ACEOF
15190
15191     break
15192 fi
15193
15194   done
15195 fi
15196
15197 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15198 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15199 if test "${ac_cv_c_stack_direction+set}" = set; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   if test "$cross_compiling" = yes; then
15203   ac_cv_c_stack_direction=0
15204 else
15205   cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211 int
15212 find_stack_direction ()
15213 {
15214   static char *addr = 0;
15215   auto char dummy;
15216   if (addr == 0)
15217     {
15218       addr = &dummy;
15219       return find_stack_direction ();
15220     }
15221   else
15222     return (&dummy > addr) ? 1 : -1;
15223 }
15224
15225 int
15226 main ()
15227 {
15228   exit (find_stack_direction () < 0);
15229 }
15230 _ACEOF
15231 rm -f conftest$ac_exeext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233   (eval $ac_link) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238   (eval $ac_try) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); }; }; then
15242   ac_cv_c_stack_direction=1
15243 else
15244   echo "$as_me: program exited with status $ac_status" >&5
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 ( exit $ac_status )
15249 ac_cv_c_stack_direction=-1
15250 fi
15251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15252 fi
15253 fi
15254 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15255 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15256
15257 cat >>confdefs.h <<_ACEOF
15258 #define STACK_DIRECTION $ac_cv_c_stack_direction
15259 _ACEOF
15260
15261
15262 fi
15263
15264 if test x$gcc_no_link = xyes; then
15265   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15266     ac_cv_func_mmap_fixed_mapped=no
15267   fi
15268 fi
15269 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15270
15271
15272 for ac_header in stdlib.h unistd.h
15273 do
15274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15276   echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 fi
15281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15283 else
15284   # Is the header compilable?
15285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 $ac_includes_default
15294 #include <$ac_header>
15295 _ACEOF
15296 rm -f conftest.$ac_objext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15298   (eval $ac_compile) 2>conftest.er1
15299   ac_status=$?
15300   grep -v '^ *+' conftest.er1 >conftest.err
15301   rm -f conftest.er1
15302   cat conftest.err >&5
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -z "$ac_c_werror_flag"
15306                          || test ! -s conftest.err'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; } &&
15312          { ac_try='test -s conftest.$ac_objext'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }; then
15318   ac_header_compiler=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323 ac_header_compiler=no
15324 fi
15325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15327 echo "${ECHO_T}$ac_header_compiler" >&6
15328
15329 # Is the header present?
15330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338 #include <$ac_header>
15339 _ACEOF
15340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15342   ac_status=$?
15343   grep -v '^ *+' conftest.er1 >conftest.err
15344   rm -f conftest.er1
15345   cat conftest.err >&5
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } >/dev/null; then
15348   if test -s conftest.err; then
15349     ac_cpp_err=$ac_c_preproc_warn_flag
15350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15351   else
15352     ac_cpp_err=
15353   fi
15354 else
15355   ac_cpp_err=yes
15356 fi
15357 if test -z "$ac_cpp_err"; then
15358   ac_header_preproc=yes
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363   ac_header_preproc=no
15364 fi
15365 rm -f conftest.err conftest.$ac_ext
15366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6
15368
15369 # So?  What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15371   yes:no: )
15372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15376     ac_header_preproc=yes
15377     ;;
15378   no:yes:* )
15379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15391     (
15392       cat <<\_ASBOX
15393 ## ---------------------------------- ##
15394 ## Report this to the libjava lists.  ##
15395 ## ---------------------------------- ##
15396 _ASBOX
15397     ) |
15398       sed "s/^/$as_me: WARNING:     /" >&2
15399     ;;
15400 esac
15401 echo "$as_me:$LINENO: checking for $ac_header" >&5
15402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15404   echo $ECHO_N "(cached) $ECHO_C" >&6
15405 else
15406   eval "$as_ac_Header=\$ac_header_preproc"
15407 fi
15408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15410
15411 fi
15412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15413   cat >>confdefs.h <<_ACEOF
15414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15415 _ACEOF
15416
15417 fi
15418
15419 done
15420
15421
15422 for ac_func in getpagesize
15423 do
15424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15425 echo "$as_me:$LINENO: checking for $ac_func" >&5
15426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15427 if eval "test \"\${$as_ac_var+set}\" = set"; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430   if test x$gcc_no_link = xyes; then
15431   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15433    { (exit 1); exit 1; }; }
15434 fi
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15443 #define $ac_func innocuous_$ac_func
15444
15445 /* System header to define __stub macros and hopefully few prototypes,
15446     which can conflict with char $ac_func (); below.
15447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15448     <limits.h> exists even on freestanding compilers.  */
15449
15450 #ifdef __STDC__
15451 # include <limits.h>
15452 #else
15453 # include <assert.h>
15454 #endif
15455
15456 #undef $ac_func
15457
15458 /* Override any gcc2 internal prototype to avoid an error.  */
15459 #ifdef __cplusplus
15460 extern "C"
15461 {
15462 #endif
15463 /* We use char because int might match the return type of a gcc2
15464    builtin and then its argument prototype would still apply.  */
15465 char $ac_func ();
15466 /* The GNU C library defines this for functions which it implements
15467     to always fail with ENOSYS.  Some functions are actually named
15468     something starting with __ and the normal name is an alias.  */
15469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15470 choke me
15471 #else
15472 char (*f) () = $ac_func;
15473 #endif
15474 #ifdef __cplusplus
15475 }
15476 #endif
15477
15478 int
15479 main ()
15480 {
15481 return f != $ac_func;
15482   ;
15483   return 0;
15484 }
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488   (eval $ac_link) 2>conftest.er1
15489   ac_status=$?
15490   grep -v '^ *+' conftest.er1 >conftest.err
15491   rm -f conftest.er1
15492   cat conftest.err >&5
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); } &&
15495          { ac_try='test -z "$ac_c_werror_flag"
15496                          || test ! -s conftest.err'
15497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498   (eval $ac_try) 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }; } &&
15502          { ac_try='test -s conftest$ac_exeext'
15503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504   (eval $ac_try) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   eval "$as_ac_var=yes"
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 eval "$as_ac_var=no"
15514 fi
15515 rm -f conftest.err conftest.$ac_objext \
15516       conftest$ac_exeext conftest.$ac_ext
15517 fi
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15520 if test `eval echo '${'$as_ac_var'}'` = yes; then
15521   cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15523 _ACEOF
15524
15525 fi
15526 done
15527
15528 echo "$as_me:$LINENO: checking for working mmap" >&5
15529 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15530 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   if test "$cross_compiling" = yes; then
15534   ac_cv_func_mmap_fixed_mapped=no
15535 else
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 $ac_includes_default
15543 /* malloc might have been renamed as rpl_malloc. */
15544 #undef malloc
15545
15546 /* Thanks to Mike Haertel and Jim Avera for this test.
15547    Here is a matrix of mmap possibilities:
15548         mmap private not fixed
15549         mmap private fixed at somewhere currently unmapped
15550         mmap private fixed at somewhere already mapped
15551         mmap shared not fixed
15552         mmap shared fixed at somewhere currently unmapped
15553         mmap shared fixed at somewhere already mapped
15554    For private mappings, we should verify that changes cannot be read()
15555    back from the file, nor mmap's back from the file at a different
15556    address.  (There have been systems where private was not correctly
15557    implemented like the infamous i386 svr4.0, and systems where the
15558    VM page cache was not coherent with the file system buffer cache
15559    like early versions of FreeBSD and possibly contemporary NetBSD.)
15560    For shared mappings, we should conversely verify that changes get
15561    propagated back to all the places they're supposed to be.
15562
15563    Grep wants private fixed already mapped.
15564    The main things grep needs to know about mmap are:
15565    * does it exist and is it safe to write into the mmap'd area
15566    * how to use it (BSD variants)  */
15567
15568 #include <fcntl.h>
15569 #include <sys/mman.h>
15570
15571 #if !STDC_HEADERS && !HAVE_STDLIB_H
15572 char *malloc ();
15573 #endif
15574
15575 /* This mess was copied from the GNU getpagesize.h.  */
15576 #if !HAVE_GETPAGESIZE
15577 /* Assume that all systems that can run configure have sys/param.h.  */
15578 # if !HAVE_SYS_PARAM_H
15579 #  define HAVE_SYS_PARAM_H 1
15580 # endif
15581
15582 # ifdef _SC_PAGESIZE
15583 #  define getpagesize() sysconf(_SC_PAGESIZE)
15584 # else /* no _SC_PAGESIZE */
15585 #  if HAVE_SYS_PARAM_H
15586 #   include <sys/param.h>
15587 #   ifdef EXEC_PAGESIZE
15588 #    define getpagesize() EXEC_PAGESIZE
15589 #   else /* no EXEC_PAGESIZE */
15590 #    ifdef NBPG
15591 #     define getpagesize() NBPG * CLSIZE
15592 #     ifndef CLSIZE
15593 #      define CLSIZE 1
15594 #     endif /* no CLSIZE */
15595 #    else /* no NBPG */
15596 #     ifdef NBPC
15597 #      define getpagesize() NBPC
15598 #     else /* no NBPC */
15599 #      ifdef PAGESIZE
15600 #       define getpagesize() PAGESIZE
15601 #      endif /* PAGESIZE */
15602 #     endif /* no NBPC */
15603 #    endif /* no NBPG */
15604 #   endif /* no EXEC_PAGESIZE */
15605 #  else /* no HAVE_SYS_PARAM_H */
15606 #   define getpagesize() 8192   /* punt totally */
15607 #  endif /* no HAVE_SYS_PARAM_H */
15608 # endif /* no _SC_PAGESIZE */
15609
15610 #endif /* no HAVE_GETPAGESIZE */
15611
15612 int
15613 main ()
15614 {
15615   char *data, *data2, *data3;
15616   int i, pagesize;
15617   int fd;
15618
15619   pagesize = getpagesize ();
15620
15621   /* First, make a file with some known garbage in it. */
15622   data = (char *) malloc (pagesize);
15623   if (!data)
15624     exit (1);
15625   for (i = 0; i < pagesize; ++i)
15626     *(data + i) = rand ();
15627   umask (0);
15628   fd = creat ("conftest.mmap", 0600);
15629   if (fd < 0)
15630     exit (1);
15631   if (write (fd, data, pagesize) != pagesize)
15632     exit (1);
15633   close (fd);
15634
15635   /* Next, try to mmap the file at a fixed address which already has
15636      something else allocated at it.  If we can, also make sure that
15637      we see the same garbage.  */
15638   fd = open ("conftest.mmap", O_RDWR);
15639   if (fd < 0)
15640     exit (1);
15641   data2 = (char *) malloc (2 * pagesize);
15642   if (!data2)
15643     exit (1);
15644   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15645   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15646                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15647     exit (1);
15648   for (i = 0; i < pagesize; ++i)
15649     if (*(data + i) != *(data2 + i))
15650       exit (1);
15651
15652   /* Finally, make sure that changes to the mapped area do not
15653      percolate back to the file as seen by read().  (This is a bug on
15654      some variants of i386 svr4.0.)  */
15655   for (i = 0; i < pagesize; ++i)
15656     *(data2 + i) = *(data2 + i) + 1;
15657   data3 = (char *) malloc (pagesize);
15658   if (!data3)
15659     exit (1);
15660   if (read (fd, data3, pagesize) != pagesize)
15661     exit (1);
15662   for (i = 0; i < pagesize; ++i)
15663     if (*(data + i) != *(data3 + i))
15664       exit (1);
15665   close (fd);
15666   exit (0);
15667 }
15668 _ACEOF
15669 rm -f conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671   (eval $ac_link) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; }; then
15680   ac_cv_func_mmap_fixed_mapped=yes
15681 else
15682   echo "$as_me: program exited with status $ac_status" >&5
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15685
15686 ( exit $ac_status )
15687 ac_cv_func_mmap_fixed_mapped=no
15688 fi
15689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15690 fi
15691 fi
15692 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15693 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15695
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_MMAP 1
15698 _ACEOF
15699
15700 fi
15701 rm -f conftest.mmap
15702
15703 fi
15704
15705 for ac_prog in perl
15706 do
15707   # Extract the first word of "$ac_prog", so it can be a program name with args.
15708 set dummy $ac_prog; ac_word=$2
15709 echo "$as_me:$LINENO: checking for $ac_word" >&5
15710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15711 if test "${ac_cv_prog_PERL+set}" = set; then
15712   echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714   if test -n "$PERL"; then
15715   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15716 else
15717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15718 for as_dir in $PATH
15719 do
15720   IFS=$as_save_IFS
15721   test -z "$as_dir" && as_dir=.
15722   for ac_exec_ext in '' $ac_executable_extensions; do
15723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15724     ac_cv_prog_PERL="$ac_prog"
15725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15726     break 2
15727   fi
15728 done
15729 done
15730
15731 fi
15732 fi
15733 PERL=$ac_cv_prog_PERL
15734 if test -n "$PERL"; then
15735   echo "$as_me:$LINENO: result: $PERL" >&5
15736 echo "${ECHO_T}$PERL" >&6
15737 else
15738   echo "$as_me:$LINENO: result: no" >&5
15739 echo "${ECHO_T}no" >&6
15740 fi
15741
15742   test -n "$PERL" && break
15743 done
15744 test -n "$PERL" || PERL="false"
15745
15746
15747 SYSDEP_SOURCES=
15748 SIGNAL_HANDLER_AUX=
15749
15750 case "${host}" in
15751  i?86-*-linux*)
15752     SIGNAL_HANDLER=include/i386-signal.h
15753     ;;
15754  sparc*-sun-solaris*)
15755     SIGNAL_HANDLER=include/sparc-signal.h
15756     ;;
15757 # ia64-*)
15758 #    SYSDEP_SOURCES=sysdep/ia64.c
15759 #    test -d sysdep || mkdir sysdep
15760 #    ;;
15761  hppa*-*-linux*)
15762     SIGNAL_HANDLER=include/pa-signal.h
15763     ;;
15764  ia64-*-linux*)
15765     SIGNAL_HANDLER=include/dwarf2-signal.h
15766     ;;
15767  powerpc*-*-linux*)
15768     SIGNAL_HANDLER=include/powerpc-signal.h
15769     ;;
15770  alpha*-*-linux*)
15771     SIGNAL_HANDLER=include/dwarf2-signal.h
15772     ;;
15773  s390*-*-linux*)
15774     SIGNAL_HANDLER=include/s390-signal.h
15775     ;;
15776  x86_64*-*-linux*)
15777     SIGNAL_HANDLER=include/x86_64-signal.h
15778     SIGNAL_HANDLER_AUX=include/i386-signal.h
15779     ;;
15780  sparc*-*-linux*)
15781     SIGNAL_HANDLER=include/dwarf2-signal.h
15782     ;;
15783  sh*-*-linux*)
15784     SIGNAL_HANDLER=include/sh-signal.h
15785     ;;
15786  *mingw*)
15787     SIGNAL_HANDLER=include/win32-signal.h
15788     ;;
15789  mips*-*-linux*)
15790     SIGNAL_HANDLER=include/mips-signal.h
15791     ;;
15792  *-*-darwin*)
15793     SIGNAL_HANDLER=include/darwin-signal.h
15794     ;;
15795  *)
15796     SIGNAL_HANDLER=include/default-signal.h
15797     ;;
15798 esac
15799
15800 # If we're using sjlj exceptions, forget what we just learned.
15801 if test "$enable_sjlj_exceptions" = yes; then
15802    SIGNAL_HANDLER=include/default-signal.h
15803    SIGNAL_HANDLER_AUX=
15804 fi
15805
15806 # Define here any compiler flags that you need in order to make backtrace() work.
15807 BACKTRACESPEC=
15808 case "${host}" in
15809  x86_64*-*-linux*|i?86-*)
15810     BACKTRACESPEC=-fno-omit-frame-pointer
15811     ;;
15812 esac
15813
15814
15815
15816
15817 if test -z "$SIGNAL_HANDLER_AUX"; then
15818   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15819 fi
15820
15821                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15822
15823
15824 if test "${multilib}" = "yes"; then
15825   multilib_arg="--enable-multilib"
15826 else
15827   multilib_arg=
15828 fi
15829
15830
15831
15832 here=`${PWDCMD-pwd}`
15833
15834
15835 # We get this from the environment.
15836
15837
15838                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15839
15840
15841           ac_config_commands="$ac_config_commands default"
15842
15843
15844 cat >confcache <<\_ACEOF
15845 # This file is a shell script that caches the results of configure
15846 # tests run on this system so they can be shared between configure
15847 # scripts and configure runs, see configure's option --config-cache.
15848 # It is not useful on other systems.  If it contains results you don't
15849 # want to keep, you may remove or edit it.
15850 #
15851 # config.status only pays attention to the cache file if you give it
15852 # the --recheck option to rerun configure.
15853 #
15854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15856 # following values.
15857
15858 _ACEOF
15859
15860 # The following way of writing the cache mishandles newlines in values,
15861 # but we know of no workaround that is simple, portable, and efficient.
15862 # So, don't put newlines in cache variables' values.
15863 # Ultrix sh set writes to stderr and can't be redirected directly,
15864 # and sets the high bit in the cache file unless we assign to the vars.
15865 {
15866   (set) 2>&1 |
15867     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15868     *ac_space=\ *)
15869       # `set' does not quote correctly, so add quotes (double-quote
15870       # substitution turns \\\\ into \\, and sed turns \\ into \).
15871       sed -n \
15872         "s/'/'\\\\''/g;
15873           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15874       ;;
15875     *)
15876       # `set' quotes correctly as required by POSIX, so do not add quotes.
15877       sed -n \
15878         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15879       ;;
15880     esac;
15881 } |
15882   sed '
15883      t clear
15884      : clear
15885      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15886      t end
15887      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15888      : end' >>confcache
15889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15890   if test -w $cache_file; then
15891     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15892     cat confcache >$cache_file
15893   else
15894     echo "not updating unwritable cache $cache_file"
15895   fi
15896 fi
15897 rm -f confcache
15898
15899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15900 # Let make expand exec_prefix.
15901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15902
15903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15905 # trailing colons and then remove the whole line if VPATH becomes empty
15906 # (actually we leave an empty line to preserve line numbers).
15907 if test "x$srcdir" = x.; then
15908   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15909 s/:*\$(srcdir):*/:/;
15910 s/:*\${srcdir}:*/:/;
15911 s/:*@srcdir@:*/:/;
15912 s/^\([^=]*=[     ]*\):*/\1/;
15913 s/:*$//;
15914 s/^[^=]*=[       ]*$//;
15915 }'
15916 fi
15917
15918 DEFS=-DHAVE_CONFIG_H
15919
15920 ac_libobjs=
15921 ac_ltlibobjs=
15922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15923   # 1. Remove the extension, and $U if already installed.
15924   ac_i=`echo "$ac_i" |
15925          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15926   # 2. Add them.
15927   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15928   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15929 done
15930 LIBOBJS=$ac_libobjs
15931
15932 LTLIBOBJS=$ac_ltlibobjs
15933
15934
15935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15936   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15937 Usually this means the macro was only invoked conditionally." >&5
15938 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15939 Usually this means the macro was only invoked conditionally." >&2;}
15940    { (exit 1); exit 1; }; }
15941 fi
15942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15943   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15944 Usually this means the macro was only invoked conditionally." >&5
15945 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." >&2;}
15947    { (exit 1); exit 1; }; }
15948 fi
15949 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15950   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15951 Usually this means the macro was only invoked conditionally." >&5
15952 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15953 Usually this means the macro was only invoked conditionally." >&2;}
15954    { (exit 1); exit 1; }; }
15955 fi
15956 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15957   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15958 Usually this means the macro was only invoked conditionally." >&5
15959 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15960 Usually this means the macro was only invoked conditionally." >&2;}
15961    { (exit 1); exit 1; }; }
15962 fi
15963 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15964   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15965 Usually this means the macro was only invoked conditionally." >&5
15966 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15967 Usually this means the macro was only invoked conditionally." >&2;}
15968    { (exit 1); exit 1; }; }
15969 fi
15970 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15971   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15972 Usually this means the macro was only invoked conditionally." >&5
15973 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15974 Usually this means the macro was only invoked conditionally." >&2;}
15975    { (exit 1); exit 1; }; }
15976 fi
15977 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15978   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15979 Usually this means the macro was only invoked conditionally." >&5
15980 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15981 Usually this means the macro was only invoked conditionally." >&2;}
15982    { (exit 1); exit 1; }; }
15983 fi
15984 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15985   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15986 Usually this means the macro was only invoked conditionally." >&5
15987 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15988 Usually this means the macro was only invoked conditionally." >&2;}
15989    { (exit 1); exit 1; }; }
15990 fi
15991 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15992   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15993 Usually this means the macro was only invoked conditionally." >&5
15994 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15995 Usually this means the macro was only invoked conditionally." >&2;}
15996    { (exit 1); exit 1; }; }
15997 fi
15998 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15999   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16000 Usually this means the macro was only invoked conditionally." >&5
16001 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16002 Usually this means the macro was only invoked conditionally." >&2;}
16003    { (exit 1); exit 1; }; }
16004 fi
16005 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16006   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16007 Usually this means the macro was only invoked conditionally." >&5
16008 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16009 Usually this means the macro was only invoked conditionally." >&2;}
16010    { (exit 1); exit 1; }; }
16011 fi
16012 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16013   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16014 Usually this means the macro was only invoked conditionally." >&5
16015 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16016 Usually this means the macro was only invoked conditionally." >&2;}
16017    { (exit 1); exit 1; }; }
16018 fi
16019 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16020   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16021 Usually this means the macro was only invoked conditionally." >&5
16022 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16023 Usually this means the macro was only invoked conditionally." >&2;}
16024    { (exit 1); exit 1; }; }
16025 fi
16026 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16027   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16028 Usually this means the macro was only invoked conditionally." >&5
16029 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16030 Usually this means the macro was only invoked conditionally." >&2;}
16031    { (exit 1); exit 1; }; }
16032 fi
16033 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16034   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16035 Usually this means the macro was only invoked conditionally." >&5
16036 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16037 Usually this means the macro was only invoked conditionally." >&2;}
16038    { (exit 1); exit 1; }; }
16039 fi
16040 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16041   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16042 Usually this means the macro was only invoked conditionally." >&5
16043 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16044 Usually this means the macro was only invoked conditionally." >&2;}
16045    { (exit 1); exit 1; }; }
16046 fi
16047 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16048   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16049 Usually this means the macro was only invoked conditionally." >&5
16050 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16051 Usually this means the macro was only invoked conditionally." >&2;}
16052    { (exit 1); exit 1; }; }
16053 fi
16054 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16055   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16056 Usually this means the macro was only invoked conditionally." >&5
16057 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16058 Usually this means the macro was only invoked conditionally." >&2;}
16059    { (exit 1); exit 1; }; }
16060 fi
16061 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16062   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16063 Usually this means the macro was only invoked conditionally." >&5
16064 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16065 Usually this means the macro was only invoked conditionally." >&2;}
16066    { (exit 1); exit 1; }; }
16067 fi
16068 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16069   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16070 Usually this means the macro was only invoked conditionally." >&5
16071 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16072 Usually this means the macro was only invoked conditionally." >&2;}
16073    { (exit 1); exit 1; }; }
16074 fi
16075 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16076   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16077 Usually this means the macro was only invoked conditionally." >&5
16078 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16079 Usually this means the macro was only invoked conditionally." >&2;}
16080    { (exit 1); exit 1; }; }
16081 fi
16082 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16083   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16084 Usually this means the macro was only invoked conditionally." >&5
16085 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16086 Usually this means the macro was only invoked conditionally." >&2;}
16087    { (exit 1); exit 1; }; }
16088 fi
16089 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16090   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16091 Usually this means the macro was only invoked conditionally." >&5
16092 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16093 Usually this means the macro was only invoked conditionally." >&2;}
16094    { (exit 1); exit 1; }; }
16095 fi
16096 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16097   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16098 Usually this means the macro was only invoked conditionally." >&5
16099 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16100 Usually this means the macro was only invoked conditionally." >&2;}
16101    { (exit 1); exit 1; }; }
16102 fi
16103
16104 : ${CONFIG_STATUS=./config.status}
16105 ac_clean_files_save=$ac_clean_files
16106 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16107 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16108 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16109 cat >$CONFIG_STATUS <<_ACEOF
16110 #! $SHELL
16111 # Generated by $as_me.
16112 # Run this file to recreate the current configuration.
16113 # Compiler output produced by configure, useful for debugging
16114 # configure, is in config.log if it exists.
16115
16116 debug=false
16117 ac_cs_recheck=false
16118 ac_cs_silent=false
16119 SHELL=\${CONFIG_SHELL-$SHELL}
16120 _ACEOF
16121
16122 cat >>$CONFIG_STATUS <<\_ACEOF
16123 ## --------------------- ##
16124 ## M4sh Initialization.  ##
16125 ## --------------------- ##
16126
16127 # Be Bourne compatible
16128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16129   emulate sh
16130   NULLCMD=:
16131   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16132   # is contrary to our usage.  Disable this feature.
16133   alias -g '${1+"$@"}'='"$@"'
16134 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16135   set -o posix
16136 fi
16137 DUALCASE=1; export DUALCASE # for MKS sh
16138
16139 # Support unset when possible.
16140 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16141   as_unset=unset
16142 else
16143   as_unset=false
16144 fi
16145
16146
16147 # Work around bugs in pre-3.0 UWIN ksh.
16148 $as_unset ENV MAIL MAILPATH
16149 PS1='$ '
16150 PS2='> '
16151 PS4='+ '
16152
16153 # NLS nuisances.
16154 for as_var in \
16155   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16156   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16157   LC_TELEPHONE LC_TIME
16158 do
16159   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16160     eval $as_var=C; export $as_var
16161   else
16162     $as_unset $as_var
16163   fi
16164 done
16165
16166 # Required to use basename.
16167 if expr a : '\(a\)' >/dev/null 2>&1; then
16168   as_expr=expr
16169 else
16170   as_expr=false
16171 fi
16172
16173 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16174   as_basename=basename
16175 else
16176   as_basename=false
16177 fi
16178
16179
16180 # Name of the executable.
16181 as_me=`$as_basename "$0" ||
16182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16183          X"$0" : 'X\(//\)$' \| \
16184          X"$0" : 'X\(/\)$' \| \
16185          .     : '\(.\)' 2>/dev/null ||
16186 echo X/"$0" |
16187     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16188           /^X\/\(\/\/\)$/{ s//\1/; q; }
16189           /^X\/\(\/\).*/{ s//\1/; q; }
16190           s/.*/./; q'`
16191
16192
16193 # PATH needs CR, and LINENO needs CR and PATH.
16194 # Avoid depending upon Character Ranges.
16195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16198 as_cr_digits='0123456789'
16199 as_cr_alnum=$as_cr_Letters$as_cr_digits
16200
16201 # The user is always right.
16202 if test "${PATH_SEPARATOR+set}" != set; then
16203   echo "#! /bin/sh" >conf$$.sh
16204   echo  "exit 0"   >>conf$$.sh
16205   chmod +x conf$$.sh
16206   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16207     PATH_SEPARATOR=';'
16208   else
16209     PATH_SEPARATOR=:
16210   fi
16211   rm -f conf$$.sh
16212 fi
16213
16214
16215   as_lineno_1=$LINENO
16216   as_lineno_2=$LINENO
16217   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16218   test "x$as_lineno_1" != "x$as_lineno_2" &&
16219   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16220   # Find who we are.  Look in the path if we contain no path at all
16221   # relative or not.
16222   case $0 in
16223     *[\\/]* ) as_myself=$0 ;;
16224     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16226 do
16227   IFS=$as_save_IFS
16228   test -z "$as_dir" && as_dir=.
16229   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16230 done
16231
16232        ;;
16233   esac
16234   # We did not find ourselves, most probably we were run as `sh COMMAND'
16235   # in which case we are not to be found in the path.
16236   if test "x$as_myself" = x; then
16237     as_myself=$0
16238   fi
16239   if test ! -f "$as_myself"; then
16240     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16241 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16242    { (exit 1); exit 1; }; }
16243   fi
16244   case $CONFIG_SHELL in
16245   '')
16246     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16248 do
16249   IFS=$as_save_IFS
16250   test -z "$as_dir" && as_dir=.
16251   for as_base in sh bash ksh sh5; do
16252          case $as_dir in
16253          /*)
16254            if ("$as_dir/$as_base" -c '
16255   as_lineno_1=$LINENO
16256   as_lineno_2=$LINENO
16257   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16258   test "x$as_lineno_1" != "x$as_lineno_2" &&
16259   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16260              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16261              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16262              CONFIG_SHELL=$as_dir/$as_base
16263              export CONFIG_SHELL
16264              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16265            fi;;
16266          esac
16267        done
16268 done
16269 ;;
16270   esac
16271
16272   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16273   # uniformly replaced by the line number.  The first 'sed' inserts a
16274   # line-number line before each line; the second 'sed' does the real
16275   # work.  The second script uses 'N' to pair each line-number line
16276   # with the numbered line, and appends trailing '-' during
16277   # substitution so that $LINENO is not a special case at line end.
16278   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16279   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16280   sed '=' <$as_myself |
16281     sed '
16282       N
16283       s,$,-,
16284       : loop
16285       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16286       t loop
16287       s,-$,,
16288       s,^['$as_cr_digits']*\n,,
16289     ' >$as_me.lineno &&
16290   chmod +x $as_me.lineno ||
16291     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16292 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16293    { (exit 1); exit 1; }; }
16294
16295   # Don't try to exec as it changes $[0], causing all sort of problems
16296   # (the dirname of $[0] is not the place where we might find the
16297   # original and so on.  Autoconf is especially sensible to this).
16298   . ./$as_me.lineno
16299   # Exit status is that of the last command.
16300   exit
16301 }
16302
16303
16304 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16305   *c*,-n*) ECHO_N= ECHO_C='
16306 ' ECHO_T='      ' ;;
16307   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16308   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16309 esac
16310
16311 if expr a : '\(a\)' >/dev/null 2>&1; then
16312   as_expr=expr
16313 else
16314   as_expr=false
16315 fi
16316
16317 rm -f conf$$ conf$$.exe conf$$.file
16318 echo >conf$$.file
16319 if ln -s conf$$.file conf$$ 2>/dev/null; then
16320   # We could just check for DJGPP; but this test a) works b) is more generic
16321   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16322   if test -f conf$$.exe; then
16323     # Don't use ln at all; we don't have any links
16324     as_ln_s='cp -p'
16325   else
16326     as_ln_s='ln -s'
16327   fi
16328 elif ln conf$$.file conf$$ 2>/dev/null; then
16329   as_ln_s=ln
16330 else
16331   as_ln_s='cp -p'
16332 fi
16333 rm -f conf$$ conf$$.exe conf$$.file
16334
16335 if mkdir -p . 2>/dev/null; then
16336   as_mkdir_p=:
16337 else
16338   test -d ./-p && rmdir ./-p
16339   as_mkdir_p=false
16340 fi
16341
16342 as_executable_p="test -f"
16343
16344 # Sed expression to map a string onto a valid CPP name.
16345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16346
16347 # Sed expression to map a string onto a valid variable name.
16348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16349
16350
16351 # IFS
16352 # We need space, tab and new line, in precisely that order.
16353 as_nl='
16354 '
16355 IFS="   $as_nl"
16356
16357 # CDPATH.
16358 $as_unset CDPATH
16359
16360 exec 6>&1
16361
16362 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16363 # report actual input values of CONFIG_FILES etc. instead of their
16364 # values after options handling.  Logging --version etc. is OK.
16365 exec 5>>config.log
16366 {
16367   echo
16368   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16369 ## Running $as_me. ##
16370 _ASBOX
16371 } >&5
16372 cat >&5 <<_CSEOF
16373
16374 This file was extended by libjava $as_me version-unused, which was
16375 generated by GNU Autoconf 2.59.  Invocation command line was
16376
16377   CONFIG_FILES    = $CONFIG_FILES
16378   CONFIG_HEADERS  = $CONFIG_HEADERS
16379   CONFIG_LINKS    = $CONFIG_LINKS
16380   CONFIG_COMMANDS = $CONFIG_COMMANDS
16381   $ $0 $@
16382
16383 _CSEOF
16384 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16385 echo >&5
16386 _ACEOF
16387
16388 # Files that config.status was made for.
16389 if test -n "$ac_config_files"; then
16390   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16391 fi
16392
16393 if test -n "$ac_config_headers"; then
16394   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16395 fi
16396
16397 if test -n "$ac_config_links"; then
16398   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16399 fi
16400
16401 if test -n "$ac_config_commands"; then
16402   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16403 fi
16404
16405 cat >>$CONFIG_STATUS <<\_ACEOF
16406
16407 ac_cs_usage="\
16408 \`$as_me' instantiates files from templates according to the
16409 current configuration.
16410
16411 Usage: $0 [OPTIONS] [FILE]...
16412
16413   -h, --help       print this help, then exit
16414   -V, --version    print version number, then exit
16415   -q, --quiet      do not print progress messages
16416   -d, --debug      don't remove temporary files
16417       --recheck    update $as_me by reconfiguring in the same conditions
16418   --file=FILE[:TEMPLATE]
16419                    instantiate the configuration file FILE
16420   --header=FILE[:TEMPLATE]
16421                    instantiate the configuration header FILE
16422
16423 Configuration files:
16424 $config_files
16425
16426 Configuration headers:
16427 $config_headers
16428
16429 Configuration links:
16430 $config_links
16431
16432 Configuration commands:
16433 $config_commands
16434
16435 Report bugs to <bug-autoconf@gnu.org>."
16436 _ACEOF
16437
16438 cat >>$CONFIG_STATUS <<_ACEOF
16439 ac_cs_version="\\
16440 libjava config.status version-unused
16441 configured by $0, generated by GNU Autoconf 2.59,
16442   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16443
16444 Copyright (C) 2003 Free Software Foundation, Inc.
16445 This config.status script is free software; the Free Software Foundation
16446 gives unlimited permission to copy, distribute and modify it."
16447 srcdir=$srcdir
16448 INSTALL="$INSTALL"
16449 _ACEOF
16450
16451 cat >>$CONFIG_STATUS <<\_ACEOF
16452 # If no file are specified by the user, then we need to provide default
16453 # value.  By we need to know if files were specified by the user.
16454 ac_need_defaults=:
16455 while test $# != 0
16456 do
16457   case $1 in
16458   --*=*)
16459     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16460     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16461     ac_shift=:
16462     ;;
16463   -*)
16464     ac_option=$1
16465     ac_optarg=$2
16466     ac_shift=shift
16467     ;;
16468   *) # This is not an option, so the user has probably given explicit
16469      # arguments.
16470      ac_option=$1
16471      ac_need_defaults=false;;
16472   esac
16473
16474   case $ac_option in
16475   # Handling of the options.
16476 _ACEOF
16477 cat >>$CONFIG_STATUS <<\_ACEOF
16478   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16479     ac_cs_recheck=: ;;
16480   --version | --vers* | -V )
16481     echo "$ac_cs_version"; exit 0 ;;
16482   --he | --h)
16483     # Conflict between --help and --header
16484     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16485 Try \`$0 --help' for more information." >&5
16486 echo "$as_me: error: ambiguous option: $1
16487 Try \`$0 --help' for more information." >&2;}
16488    { (exit 1); exit 1; }; };;
16489   --help | --hel | -h )
16490     echo "$ac_cs_usage"; exit 0 ;;
16491   --debug | --d* | -d )
16492     debug=: ;;
16493   --file | --fil | --fi | --f )
16494     $ac_shift
16495     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16496     ac_need_defaults=false;;
16497   --header | --heade | --head | --hea )
16498     $ac_shift
16499     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16500     ac_need_defaults=false;;
16501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16502   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16503     ac_cs_silent=: ;;
16504
16505   # This is an error.
16506   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16507 Try \`$0 --help' for more information." >&5
16508 echo "$as_me: error: unrecognized option: $1
16509 Try \`$0 --help' for more information." >&2;}
16510    { (exit 1); exit 1; }; } ;;
16511
16512   *) ac_config_targets="$ac_config_targets $1" ;;
16513
16514   esac
16515   shift
16516 done
16517
16518 ac_configure_extra_args=
16519
16520 if $ac_cs_silent; then
16521   exec 6>/dev/null
16522   ac_configure_extra_args="$ac_configure_extra_args --silent"
16523 fi
16524
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<_ACEOF
16527 if \$ac_cs_recheck; then
16528   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16529   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16530 fi
16531
16532 _ACEOF
16533
16534 cat >>$CONFIG_STATUS <<_ACEOF
16535 #
16536 # INIT-COMMANDS section.
16537 #
16538
16539 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16540 srcdir=${srcdir}
16541 host=${host}
16542 target=${target}
16543 with_multisubdir=${with_multisubdir}
16544 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16545 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16546 libgcj_basedir=${libgcj_basedir}
16547 CC="${CC}"
16548 CXX="${CXX}"
16549 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16550
16551
16552 _ACEOF
16553
16554
16555
16556 cat >>$CONFIG_STATUS <<\_ACEOF
16557 for ac_config_target in $ac_config_targets
16558 do
16559   case "$ac_config_target" in
16560   # Handling of arguments.
16561   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16562   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16563   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16564   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16565   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16566   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16567   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16568   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16569   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16570   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16571   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16572   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16573   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16574   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16575   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16576   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16577   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16578   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16579   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16580   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16581   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16582   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16583   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16584   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16585   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16586   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16587   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16588   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16589   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16590   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16591   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16592   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16593   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16594 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16595    { (exit 1); exit 1; }; };;
16596   esac
16597 done
16598
16599 # If the user did not use the arguments to specify the items to instantiate,
16600 # then the envvar interface is used.  Set only those that are not.
16601 # We use the long form for the default assignment because of an extremely
16602 # bizarre bug on SunOS 4.1.3.
16603 if $ac_need_defaults; then
16604   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16605   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16606   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16607   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16608 fi
16609
16610 # Have a temporary directory for convenience.  Make it in the build tree
16611 # simply because there is no reason to put it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Create a temporary directory, and hook for its removal unless debugging.
16614 $debug ||
16615 {
16616   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16617   trap '{ (exit 1); exit 1; }' 1 2 13 15
16618 }
16619
16620 # Create a (secure) tmp directory for tmp files.
16621
16622 {
16623   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16624   test -n "$tmp" && test -d "$tmp"
16625 }  ||
16626 {
16627   tmp=./confstat$$-$RANDOM
16628   (umask 077 && mkdir $tmp)
16629 } ||
16630 {
16631    echo "$me: cannot create a temporary directory in ." >&2
16632    { (exit 1); exit 1; }
16633 }
16634
16635 _ACEOF
16636
16637 cat >>$CONFIG_STATUS <<_ACEOF
16638
16639 #
16640 # CONFIG_FILES section.
16641 #
16642
16643 # No need to generate the scripts if there are no CONFIG_FILES.
16644 # This happens for instance when ./config.status config.h
16645 if test -n "\$CONFIG_FILES"; then
16646   # Protect against being on the right side of a sed subst in config.status.
16647   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16648    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16649 s,@SHELL@,$SHELL,;t t
16650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16656 s,@exec_prefix@,$exec_prefix,;t t
16657 s,@prefix@,$prefix,;t t
16658 s,@program_transform_name@,$program_transform_name,;t t
16659 s,@bindir@,$bindir,;t t
16660 s,@sbindir@,$sbindir,;t t
16661 s,@libexecdir@,$libexecdir,;t t
16662 s,@datadir@,$datadir,;t t
16663 s,@sysconfdir@,$sysconfdir,;t t
16664 s,@sharedstatedir@,$sharedstatedir,;t t
16665 s,@localstatedir@,$localstatedir,;t t
16666 s,@libdir@,$libdir,;t t
16667 s,@includedir@,$includedir,;t t
16668 s,@oldincludedir@,$oldincludedir,;t t
16669 s,@infodir@,$infodir,;t t
16670 s,@mandir@,$mandir,;t t
16671 s,@build_alias@,$build_alias,;t t
16672 s,@host_alias@,$host_alias,;t t
16673 s,@target_alias@,$target_alias,;t t
16674 s,@DEFS@,$DEFS,;t t
16675 s,@ECHO_C@,$ECHO_C,;t t
16676 s,@ECHO_N@,$ECHO_N,;t t
16677 s,@ECHO_T@,$ECHO_T,;t t
16678 s,@LIBS@,$LIBS,;t t
16679 s,@build@,$build,;t t
16680 s,@build_cpu@,$build_cpu,;t t
16681 s,@build_vendor@,$build_vendor,;t t
16682 s,@build_os@,$build_os,;t t
16683 s,@build_subdir@,$build_subdir,;t t
16684 s,@host_subdir@,$host_subdir,;t t
16685 s,@target_subdir@,$target_subdir,;t t
16686 s,@libgcj_basedir@,$libgcj_basedir,;t t
16687 s,@host@,$host,;t t
16688 s,@host_cpu@,$host_cpu,;t t
16689 s,@host_vendor@,$host_vendor,;t t
16690 s,@host_os@,$host_os,;t t
16691 s,@target@,$target,;t t
16692 s,@target_cpu@,$target_cpu,;t t
16693 s,@target_vendor@,$target_vendor,;t t
16694 s,@target_os@,$target_os,;t t
16695 s,@target_noncanonical@,$target_noncanonical,;t t
16696 s,@LN_S@,$LN_S,;t t
16697 s,@mkinstalldirs@,$mkinstalldirs,;t t
16698 s,@CC@,$CC,;t t
16699 s,@ac_ct_CC@,$ac_ct_CC,;t t
16700 s,@EXEEXT@,$EXEEXT,;t t
16701 s,@OBJEXT@,$OBJEXT,;t t
16702 s,@CXX@,$CXX,;t t
16703 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16704 s,@CFLAGS@,$CFLAGS,;t t
16705 s,@CXXFLAGS@,$CXXFLAGS,;t t
16706 s,@LDFLAGS@,$LDFLAGS,;t t
16707 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16708 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16709 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16710 s,@CYGPATH_W@,$CYGPATH_W,;t t
16711 s,@PACKAGE@,$PACKAGE,;t t
16712 s,@VERSION@,$VERSION,;t t
16713 s,@ACLOCAL@,$ACLOCAL,;t t
16714 s,@AUTOCONF@,$AUTOCONF,;t t
16715 s,@AUTOMAKE@,$AUTOMAKE,;t t
16716 s,@AUTOHEADER@,$AUTOHEADER,;t t
16717 s,@MAKEINFO@,$MAKEINFO,;t t
16718 s,@install_sh@,$install_sh,;t t
16719 s,@STRIP@,$STRIP,;t t
16720 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16721 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16722 s,@mkdir_p@,$mkdir_p,;t t
16723 s,@AWK@,$AWK,;t t
16724 s,@SET_MAKE@,$SET_MAKE,;t t
16725 s,@am__leading_dot@,$am__leading_dot,;t t
16726 s,@AMTAR@,$AMTAR,;t t
16727 s,@am__tar@,$am__tar,;t t
16728 s,@am__untar@,$am__untar,;t t
16729 s,@DEPDIR@,$DEPDIR,;t t
16730 s,@am__include@,$am__include,;t t
16731 s,@am__quote@,$am__quote,;t t
16732 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16733 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16734 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16735 s,@CCDEPMODE@,$CCDEPMODE,;t t
16736 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16737 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16738 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16739 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16740 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16741 s,@AS@,$AS,;t t
16742 s,@ac_ct_AS@,$ac_ct_AS,;t t
16743 s,@AR@,$AR,;t t
16744 s,@ac_ct_AR@,$ac_ct_AR,;t t
16745 s,@RANLIB@,$RANLIB,;t t
16746 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16747 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16748 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16749 s,@MAINT@,$MAINT,;t t
16750 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16751 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16752 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16753 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16754 s,@INCLTDL@,$INCLTDL,;t t
16755 s,@LIBLTDL@,$LIBLTDL,;t t
16756 s,@DIRLTDL@,$DIRLTDL,;t t
16757 s,@LIBTOOL@,$LIBTOOL,;t t
16758 s,@CXXCPP@,$CXXCPP,;t t
16759 s,@CPPFLAGS@,$CPPFLAGS,;t t
16760 s,@GCJ@,$GCJ,;t t
16761 s,@GCJFLAGS@,$GCJFLAGS,;t t
16762 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16763 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16764 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16765 s,@subdirs@,$subdirs,;t t
16766 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16767 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16768 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16769 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16770 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16771 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16772 s,@JAVA_HOME@,$JAVA_HOME,;t t
16773 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16774 s,@INTERPRETER@,$INTERPRETER,;t t
16775 s,@LIBFFI@,$LIBFFI,;t t
16776 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16777 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16778 s,@CPP@,$CPP,;t t
16779 s,@EGREP@,$EGREP,;t t
16780 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16781 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16782 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16783 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16784 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16785 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16786 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16787 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16788 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16789 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16790 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16791 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16792 s,@X_CFLAGS@,$X_CFLAGS,;t t
16793 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16794 s,@X_LIBS@,$X_LIBS,;t t
16795 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16796 s,@TOOLKIT@,$TOOLKIT,;t t
16797 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16798 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16799 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16800 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16801 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16802 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16803 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16804 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16805 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16806 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16807 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16808 s,@GCLIBS@,$GCLIBS,;t t
16809 s,@GCINCS@,$GCINCS,;t t
16810 s,@GCDEPS@,$GCDEPS,;t t
16811 s,@GCSPEC@,$GCSPEC,;t t
16812 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16813 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16814 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16815 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16816 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16817 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16818 s,@THREADLIBS@,$THREADLIBS,;t t
16819 s,@THREADINCS@,$THREADINCS,;t t
16820 s,@THREADDEPS@,$THREADDEPS,;t t
16821 s,@THREADSPEC@,$THREADSPEC,;t t
16822 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16823 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16824 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16825 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16826 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16827 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16828 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16829 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16830 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16831 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16832 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16833 s,@LIBICONV@,$LIBICONV,;t t
16834 s,@LTLIBICONV@,$LTLIBICONV,;t t
16835 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16836 s,@GTK_LIBS@,$GTK_LIBS,;t t
16837 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16838 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16839 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16840 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16841 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16842 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16843 s,@GCJH@,$GCJH,;t t
16844 s,@ZIP@,$ZIP,;t t
16845 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16846 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16847 s,@ZLIBS@,$ZLIBS,;t t
16848 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16849 s,@ZINCS@,$ZINCS,;t t
16850 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16851 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16852 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16853 s,@IEEESPEC@,$IEEESPEC,;t t
16854 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16855 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16856 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16857 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16858 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16859 s,@toolexecdir@,$toolexecdir,;t t
16860 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16861 s,@toolexeclibdir@,$toolexeclibdir,;t t
16862 s,@GCJVERSION@,$GCJVERSION,;t t
16863 s,@gxx_include_dir@,$gxx_include_dir,;t t
16864 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16865 s,@ALLOCA@,$ALLOCA,;t t
16866 s,@PERL@,$PERL,;t t
16867 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16868 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16869 s,@here@,$here,;t t
16870 s,@LIBOBJS@,$LIBOBJS,;t t
16871 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16872 CEOF
16873
16874 _ACEOF
16875
16876   cat >>$CONFIG_STATUS <<\_ACEOF
16877   # Split the substitutions into bite-sized pieces for seds with
16878   # small command number limits, like on Digital OSF/1 and HP-UX.
16879   ac_max_sed_lines=48
16880   ac_sed_frag=1 # Number of current file.
16881   ac_beg=1 # First line for current file.
16882   ac_end=$ac_max_sed_lines # Line after last line for current file.
16883   ac_more_lines=:
16884   ac_sed_cmds=
16885   while $ac_more_lines; do
16886     if test $ac_beg -gt 1; then
16887       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16888     else
16889       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16890     fi
16891     if test ! -s $tmp/subs.frag; then
16892       ac_more_lines=false
16893     else
16894       # The purpose of the label and of the branching condition is to
16895       # speed up the sed processing (if there are no `@' at all, there
16896       # is no need to browse any of the substitutions).
16897       # These are the two extra sed commands mentioned above.
16898       (echo ':t
16899   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16900       if test -z "$ac_sed_cmds"; then
16901         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16902       else
16903         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16904       fi
16905       ac_sed_frag=`expr $ac_sed_frag + 1`
16906       ac_beg=$ac_end
16907       ac_end=`expr $ac_end + $ac_max_sed_lines`
16908     fi
16909   done
16910   if test -z "$ac_sed_cmds"; then
16911     ac_sed_cmds=cat
16912   fi
16913 fi # test -n "$CONFIG_FILES"
16914
16915 _ACEOF
16916 cat >>$CONFIG_STATUS <<\_ACEOF
16917 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16918   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16919   case $ac_file in
16920   - | *:- | *:-:* ) # input from stdin
16921         cat >$tmp/stdin
16922         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16923         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16924   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16925         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16926   * )   ac_file_in=$ac_file.in ;;
16927   esac
16928
16929   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16930   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16932          X"$ac_file" : 'X\(//\)[^/]' \| \
16933          X"$ac_file" : 'X\(//\)$' \| \
16934          X"$ac_file" : 'X\(/\)' \| \
16935          .     : '\(.\)' 2>/dev/null ||
16936 echo X"$ac_file" |
16937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16939           /^X\(\/\/\)$/{ s//\1/; q; }
16940           /^X\(\/\).*/{ s//\1/; q; }
16941           s/.*/./; q'`
16942   { if $as_mkdir_p; then
16943     mkdir -p "$ac_dir"
16944   else
16945     as_dir="$ac_dir"
16946     as_dirs=
16947     while test ! -d "$as_dir"; do
16948       as_dirs="$as_dir $as_dirs"
16949       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951          X"$as_dir" : 'X\(//\)[^/]' \| \
16952          X"$as_dir" : 'X\(//\)$' \| \
16953          X"$as_dir" : 'X\(/\)' \| \
16954          .     : '\(.\)' 2>/dev/null ||
16955 echo X"$as_dir" |
16956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16958           /^X\(\/\/\)$/{ s//\1/; q; }
16959           /^X\(\/\).*/{ s//\1/; q; }
16960           s/.*/./; q'`
16961     done
16962     test ! -n "$as_dirs" || mkdir $as_dirs
16963   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16965    { (exit 1); exit 1; }; }; }
16966
16967   ac_builddir=.
16968
16969 if test "$ac_dir" != .; then
16970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16971   # A "../" for each directory in $ac_dir_suffix.
16972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16973 else
16974   ac_dir_suffix= ac_top_builddir=
16975 fi
16976
16977 case $srcdir in
16978   .)  # No --srcdir option.  We are building in place.
16979     ac_srcdir=.
16980     if test -z "$ac_top_builddir"; then
16981        ac_top_srcdir=.
16982     else
16983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16984     fi ;;
16985   [\\/]* | ?:[\\/]* )  # Absolute path.
16986     ac_srcdir=$srcdir$ac_dir_suffix;
16987     ac_top_srcdir=$srcdir ;;
16988   *) # Relative path.
16989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16991 esac
16992
16993 # Do not use `cd foo && pwd` to compute absolute paths, because
16994 # the directories may not exist.
16995 case `pwd` in
16996 .) ac_abs_builddir="$ac_dir";;
16997 *)
16998   case "$ac_dir" in
16999   .) ac_abs_builddir=`pwd`;;
17000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17002   esac;;
17003 esac
17004 case $ac_abs_builddir in
17005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17006 *)
17007   case ${ac_top_builddir}. in
17008   .) ac_abs_top_builddir=$ac_abs_builddir;;
17009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17011   esac;;
17012 esac
17013 case $ac_abs_builddir in
17014 .) ac_abs_srcdir=$ac_srcdir;;
17015 *)
17016   case $ac_srcdir in
17017   .) ac_abs_srcdir=$ac_abs_builddir;;
17018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17020   esac;;
17021 esac
17022 case $ac_abs_builddir in
17023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17024 *)
17025   case $ac_top_srcdir in
17026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17029   esac;;
17030 esac
17031
17032
17033   case $INSTALL in
17034   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17035   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17036   esac
17037
17038   if test x"$ac_file" != x-; then
17039     { echo "$as_me:$LINENO: creating $ac_file" >&5
17040 echo "$as_me: creating $ac_file" >&6;}
17041     rm -f "$ac_file"
17042   fi
17043   # Let's still pretend it is `configure' which instantiates (i.e., don't
17044   # use $as_me), people would be surprised to read:
17045   #    /* config.h.  Generated by config.status.  */
17046   if test x"$ac_file" = x-; then
17047     configure_input=
17048   else
17049     configure_input="$ac_file.  "
17050   fi
17051   configure_input=$configure_input"Generated from `echo $ac_file_in |
17052                                      sed 's,.*/,,'` by configure."
17053
17054   # First look for the input files in the build tree, otherwise in the
17055   # src tree.
17056   ac_file_inputs=`IFS=:
17057     for f in $ac_file_in; do
17058       case $f in
17059       -) echo $tmp/stdin ;;
17060       [\\/$]*)
17061          # Absolute (can't be DOS-style, as IFS=:)
17062          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063 echo "$as_me: error: cannot find input file: $f" >&2;}
17064    { (exit 1); exit 1; }; }
17065          echo "$f";;
17066       *) # Relative
17067          if test -f "$f"; then
17068            # Build tree
17069            echo "$f"
17070          elif test -f "$srcdir/$f"; then
17071            # Source tree
17072            echo "$srcdir/$f"
17073          else
17074            # /dev/null tree
17075            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17076 echo "$as_me: error: cannot find input file: $f" >&2;}
17077    { (exit 1); exit 1; }; }
17078          fi;;
17079       esac
17080     done` || { (exit 1); exit 1; }
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<_ACEOF
17083   sed "$ac_vpsub
17084 $extrasub
17085 _ACEOF
17086 cat >>$CONFIG_STATUS <<\_ACEOF
17087 :t
17088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17089 s,@configure_input@,$configure_input,;t t
17090 s,@srcdir@,$ac_srcdir,;t t
17091 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17092 s,@top_srcdir@,$ac_top_srcdir,;t t
17093 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17094 s,@builddir@,$ac_builddir,;t t
17095 s,@abs_builddir@,$ac_abs_builddir,;t t
17096 s,@top_builddir@,$ac_top_builddir,;t t
17097 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17098 s,@INSTALL@,$ac_INSTALL,;t t
17099 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17100   rm -f $tmp/stdin
17101   if test x"$ac_file" != x-; then
17102     mv $tmp/out $ac_file
17103   else
17104     cat $tmp/out
17105     rm -f $tmp/out
17106   fi
17107
17108 done
17109 _ACEOF
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17111
17112 #
17113 # CONFIG_HEADER section.
17114 #
17115
17116 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17117 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17118 #
17119 # ac_d sets the value in "#define NAME VALUE" lines.
17120 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17121 ac_dB='[         ].*$,\1#\2'
17122 ac_dC=' '
17123 ac_dD=',;t'
17124 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17125 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17126 ac_uB='$,\1#\2define\3'
17127 ac_uC=' '
17128 ac_uD=',;t'
17129
17130 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17131   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17132   case $ac_file in
17133   - | *:- | *:-:* ) # input from stdin
17134         cat >$tmp/stdin
17135         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17136         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17137   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17139   * )   ac_file_in=$ac_file.in ;;
17140   esac
17141
17142   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17143 echo "$as_me: creating $ac_file" >&6;}
17144
17145   # First look for the input files in the build tree, otherwise in the
17146   # src tree.
17147   ac_file_inputs=`IFS=:
17148     for f in $ac_file_in; do
17149       case $f in
17150       -) echo $tmp/stdin ;;
17151       [\\/$]*)
17152          # Absolute (can't be DOS-style, as IFS=:)
17153          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17154 echo "$as_me: error: cannot find input file: $f" >&2;}
17155    { (exit 1); exit 1; }; }
17156          # Do quote $f, to prevent DOS paths from being IFS'd.
17157          echo "$f";;
17158       *) # Relative
17159          if test -f "$f"; then
17160            # Build tree
17161            echo "$f"
17162          elif test -f "$srcdir/$f"; then
17163            # Source tree
17164            echo "$srcdir/$f"
17165          else
17166            # /dev/null tree
17167            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17168 echo "$as_me: error: cannot find input file: $f" >&2;}
17169    { (exit 1); exit 1; }; }
17170          fi;;
17171       esac
17172     done` || { (exit 1); exit 1; }
17173   # Remove the trailing spaces.
17174   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17175
17176 _ACEOF
17177
17178 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17179 # `conftest.undefs', that substitutes the proper values into
17180 # config.h.in to produce config.h.  The first handles `#define'
17181 # templates, and the second `#undef' templates.
17182 # And first: Protect against being on the right side of a sed subst in
17183 # config.status.  Protect against being in an unquoted here document
17184 # in config.status.
17185 rm -f conftest.defines conftest.undefs
17186 # Using a here document instead of a string reduces the quoting nightmare.
17187 # Putting comments in sed scripts is not portable.
17188 #
17189 # `end' is used to avoid that the second main sed command (meant for
17190 # 0-ary CPP macros) applies to n-ary macro definitions.
17191 # See the Autoconf documentation for `clear'.
17192 cat >confdef2sed.sed <<\_ACEOF
17193 s/[\\&,]/\\&/g
17194 s,[\\$`],\\&,g
17195 t clear
17196 : clear
17197 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17198 t end
17199 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17200 : end
17201 _ACEOF
17202 # If some macros were called several times there might be several times
17203 # the same #defines, which is useless.  Nevertheless, we may not want to
17204 # sort them, since we want the *last* AC-DEFINE to be honored.
17205 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17206 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17207 rm -f confdef2sed.sed
17208
17209 # This sed command replaces #undef with comments.  This is necessary, for
17210 # example, in the case of _POSIX_SOURCE, which is predefined and required
17211 # on some systems where configure will not decide to define it.
17212 cat >>conftest.undefs <<\_ACEOF
17213 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17214 _ACEOF
17215
17216 # Break up conftest.defines because some shells have a limit on the size
17217 # of here documents, and old seds have small limits too (100 cmds).
17218 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17219 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17220 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17221 echo '  :' >>$CONFIG_STATUS
17222 rm -f conftest.tail
17223 while grep . conftest.defines >/dev/null
17224 do
17225   # Write a limited-size here document to $tmp/defines.sed.
17226   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17227   # Speed up: don't consider the non `#define' lines.
17228   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17229   # Work around the forget-to-reset-the-flag bug.
17230   echo 't clr' >>$CONFIG_STATUS
17231   echo ': clr' >>$CONFIG_STATUS
17232   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17233   echo 'CEOF
17234   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17235   rm -f $tmp/in
17236   mv $tmp/out $tmp/in
17237 ' >>$CONFIG_STATUS
17238   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17239   rm -f conftest.defines
17240   mv conftest.tail conftest.defines
17241 done
17242 rm -f conftest.defines
17243 echo '  fi # grep' >>$CONFIG_STATUS
17244 echo >>$CONFIG_STATUS
17245
17246 # Break up conftest.undefs because some shells have a limit on the size
17247 # of here documents, and old seds have small limits too (100 cmds).
17248 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17249 rm -f conftest.tail
17250 while grep . conftest.undefs >/dev/null
17251 do
17252   # Write a limited-size here document to $tmp/undefs.sed.
17253   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17254   # Speed up: don't consider the non `#undef'
17255   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17256   # Work around the forget-to-reset-the-flag bug.
17257   echo 't clr' >>$CONFIG_STATUS
17258   echo ': clr' >>$CONFIG_STATUS
17259   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17260   echo 'CEOF
17261   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17262   rm -f $tmp/in
17263   mv $tmp/out $tmp/in
17264 ' >>$CONFIG_STATUS
17265   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17266   rm -f conftest.undefs
17267   mv conftest.tail conftest.undefs
17268 done
17269 rm -f conftest.undefs
17270
17271 cat >>$CONFIG_STATUS <<\_ACEOF
17272   # Let's still pretend it is `configure' which instantiates (i.e., don't
17273   # use $as_me), people would be surprised to read:
17274   #    /* config.h.  Generated by config.status.  */
17275   if test x"$ac_file" = x-; then
17276     echo "/* Generated by configure.  */" >$tmp/config.h
17277   else
17278     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17279   fi
17280   cat $tmp/in >>$tmp/config.h
17281   rm -f $tmp/in
17282   if test x"$ac_file" != x-; then
17283     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17284       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17285 echo "$as_me: $ac_file is unchanged" >&6;}
17286     else
17287       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289          X"$ac_file" : 'X\(//\)[^/]' \| \
17290          X"$ac_file" : 'X\(//\)$' \| \
17291          X"$ac_file" : 'X\(/\)' \| \
17292          .     : '\(.\)' 2>/dev/null ||
17293 echo X"$ac_file" |
17294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17296           /^X\(\/\/\)$/{ s//\1/; q; }
17297           /^X\(\/\).*/{ s//\1/; q; }
17298           s/.*/./; q'`
17299       { if $as_mkdir_p; then
17300     mkdir -p "$ac_dir"
17301   else
17302     as_dir="$ac_dir"
17303     as_dirs=
17304     while test ! -d "$as_dir"; do
17305       as_dirs="$as_dir $as_dirs"
17306       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17308          X"$as_dir" : 'X\(//\)[^/]' \| \
17309          X"$as_dir" : 'X\(//\)$' \| \
17310          X"$as_dir" : 'X\(/\)' \| \
17311          .     : '\(.\)' 2>/dev/null ||
17312 echo X"$as_dir" |
17313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17314           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17315           /^X\(\/\/\)$/{ s//\1/; q; }
17316           /^X\(\/\).*/{ s//\1/; q; }
17317           s/.*/./; q'`
17318     done
17319     test ! -n "$as_dirs" || mkdir $as_dirs
17320   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17321 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17322    { (exit 1); exit 1; }; }; }
17323
17324       rm -f $ac_file
17325       mv $tmp/config.h $ac_file
17326     fi
17327   else
17328     cat $tmp/config.h
17329     rm -f $tmp/config.h
17330   fi
17331 # Compute $ac_file's index in $config_headers.
17332 _am_stamp_count=1
17333 for _am_header in $config_headers :; do
17334   case $_am_header in
17335     $ac_file | $ac_file:* )
17336       break ;;
17337     * )
17338       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17339   esac
17340 done
17341 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17342 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343          X$ac_file : 'X\(//\)[^/]' \| \
17344          X$ac_file : 'X\(//\)$' \| \
17345          X$ac_file : 'X\(/\)' \| \
17346          .     : '\(.\)' 2>/dev/null ||
17347 echo X$ac_file |
17348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17350           /^X\(\/\/\)$/{ s//\1/; q; }
17351           /^X\(\/\).*/{ s//\1/; q; }
17352           s/.*/./; q'`/stamp-h$_am_stamp_count
17353 done
17354 _ACEOF
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356
17357 #
17358 # CONFIG_LINKS section.
17359 #
17360
17361 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17362   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17363   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17364
17365   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17366 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17367
17368   if test ! -r $srcdir/$ac_source; then
17369     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17370 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17371    { (exit 1); exit 1; }; }
17372   fi
17373   rm -f $ac_dest
17374
17375   # Make relative symlinks.
17376   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17377 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17378          X"$ac_dest" : 'X\(//\)[^/]' \| \
17379          X"$ac_dest" : 'X\(//\)$' \| \
17380          X"$ac_dest" : 'X\(/\)' \| \
17381          .     : '\(.\)' 2>/dev/null ||
17382 echo X"$ac_dest" |
17383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17384           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17385           /^X\(\/\/\)$/{ s//\1/; q; }
17386           /^X\(\/\).*/{ s//\1/; q; }
17387           s/.*/./; q'`
17388   { if $as_mkdir_p; then
17389     mkdir -p "$ac_dest_dir"
17390   else
17391     as_dir="$ac_dest_dir"
17392     as_dirs=
17393     while test ! -d "$as_dir"; do
17394       as_dirs="$as_dir $as_dirs"
17395       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397          X"$as_dir" : 'X\(//\)[^/]' \| \
17398          X"$as_dir" : 'X\(//\)$' \| \
17399          X"$as_dir" : 'X\(/\)' \| \
17400          .     : '\(.\)' 2>/dev/null ||
17401 echo X"$as_dir" |
17402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17404           /^X\(\/\/\)$/{ s//\1/; q; }
17405           /^X\(\/\).*/{ s//\1/; q; }
17406           s/.*/./; q'`
17407     done
17408     test ! -n "$as_dirs" || mkdir $as_dirs
17409   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17410 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17411    { (exit 1); exit 1; }; }; }
17412
17413   ac_builddir=.
17414
17415 if test "$ac_dest_dir" != .; then
17416   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17417   # A "../" for each directory in $ac_dir_suffix.
17418   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17419 else
17420   ac_dir_suffix= ac_top_builddir=
17421 fi
17422
17423 case $srcdir in
17424   .)  # No --srcdir option.  We are building in place.
17425     ac_srcdir=.
17426     if test -z "$ac_top_builddir"; then
17427        ac_top_srcdir=.
17428     else
17429        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17430     fi ;;
17431   [\\/]* | ?:[\\/]* )  # Absolute path.
17432     ac_srcdir=$srcdir$ac_dir_suffix;
17433     ac_top_srcdir=$srcdir ;;
17434   *) # Relative path.
17435     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17436     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17437 esac
17438
17439 # Do not use `cd foo && pwd` to compute absolute paths, because
17440 # the directories may not exist.
17441 case `pwd` in
17442 .) ac_abs_builddir="$ac_dest_dir";;
17443 *)
17444   case "$ac_dest_dir" in
17445   .) ac_abs_builddir=`pwd`;;
17446   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17447   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17448   esac;;
17449 esac
17450 case $ac_abs_builddir in
17451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17452 *)
17453   case ${ac_top_builddir}. in
17454   .) ac_abs_top_builddir=$ac_abs_builddir;;
17455   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17456   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17457   esac;;
17458 esac
17459 case $ac_abs_builddir in
17460 .) ac_abs_srcdir=$ac_srcdir;;
17461 *)
17462   case $ac_srcdir in
17463   .) ac_abs_srcdir=$ac_abs_builddir;;
17464   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17465   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17466   esac;;
17467 esac
17468 case $ac_abs_builddir in
17469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17470 *)
17471   case $ac_top_srcdir in
17472   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17473   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17474   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17475   esac;;
17476 esac
17477
17478
17479   case $srcdir in
17480   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17481       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17482   esac
17483
17484   # Try a symlink, then a hard link, then a copy.
17485   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17486     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17487     cp -p $srcdir/$ac_source $ac_dest ||
17488     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17489 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17490    { (exit 1); exit 1; }; }
17491 done
17492 _ACEOF
17493 cat >>$CONFIG_STATUS <<\_ACEOF
17494
17495 #
17496 # CONFIG_COMMANDS section.
17497 #
17498 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17499   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17500   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17501   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17502 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17503          X"$ac_dest" : 'X\(//\)[^/]' \| \
17504          X"$ac_dest" : 'X\(//\)$' \| \
17505          X"$ac_dest" : 'X\(/\)' \| \
17506          .     : '\(.\)' 2>/dev/null ||
17507 echo X"$ac_dest" |
17508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17509           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17510           /^X\(\/\/\)$/{ s//\1/; q; }
17511           /^X\(\/\).*/{ s//\1/; q; }
17512           s/.*/./; q'`
17513   { if $as_mkdir_p; then
17514     mkdir -p "$ac_dir"
17515   else
17516     as_dir="$ac_dir"
17517     as_dirs=
17518     while test ! -d "$as_dir"; do
17519       as_dirs="$as_dir $as_dirs"
17520       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522          X"$as_dir" : 'X\(//\)[^/]' \| \
17523          X"$as_dir" : 'X\(//\)$' \| \
17524          X"$as_dir" : 'X\(/\)' \| \
17525          .     : '\(.\)' 2>/dev/null ||
17526 echo X"$as_dir" |
17527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17529           /^X\(\/\/\)$/{ s//\1/; q; }
17530           /^X\(\/\).*/{ s//\1/; q; }
17531           s/.*/./; q'`
17532     done
17533     test ! -n "$as_dirs" || mkdir $as_dirs
17534   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17535 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17536    { (exit 1); exit 1; }; }; }
17537
17538   ac_builddir=.
17539
17540 if test "$ac_dir" != .; then
17541   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17542   # A "../" for each directory in $ac_dir_suffix.
17543   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17544 else
17545   ac_dir_suffix= ac_top_builddir=
17546 fi
17547
17548 case $srcdir in
17549   .)  # No --srcdir option.  We are building in place.
17550     ac_srcdir=.
17551     if test -z "$ac_top_builddir"; then
17552        ac_top_srcdir=.
17553     else
17554        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17555     fi ;;
17556   [\\/]* | ?:[\\/]* )  # Absolute path.
17557     ac_srcdir=$srcdir$ac_dir_suffix;
17558     ac_top_srcdir=$srcdir ;;
17559   *) # Relative path.
17560     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17561     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17562 esac
17563
17564 # Do not use `cd foo && pwd` to compute absolute paths, because
17565 # the directories may not exist.
17566 case `pwd` in
17567 .) ac_abs_builddir="$ac_dir";;
17568 *)
17569   case "$ac_dir" in
17570   .) ac_abs_builddir=`pwd`;;
17571   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17572   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17573   esac;;
17574 esac
17575 case $ac_abs_builddir in
17576 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17577 *)
17578   case ${ac_top_builddir}. in
17579   .) ac_abs_top_builddir=$ac_abs_builddir;;
17580   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17581   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17582   esac;;
17583 esac
17584 case $ac_abs_builddir in
17585 .) ac_abs_srcdir=$ac_srcdir;;
17586 *)
17587   case $ac_srcdir in
17588   .) ac_abs_srcdir=$ac_abs_builddir;;
17589   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17590   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17591   esac;;
17592 esac
17593 case $ac_abs_builddir in
17594 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17595 *)
17596   case $ac_top_srcdir in
17597   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17598   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17599   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17600   esac;;
17601 esac
17602
17603
17604   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17605 echo "$as_me: executing $ac_dest commands" >&6;}
17606   case $ac_dest in
17607     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17608   # Strip MF so we end up with the name of the file.
17609   mf=`echo "$mf" | sed -e 's/:.*$//'`
17610   # Check whether this is an Automake generated Makefile or not.
17611   # We used to match only the files named `Makefile.in', but
17612   # some people rename them; so instead we look at the file content.
17613   # Grep'ing the first line is not enough: some people post-process
17614   # each Makefile.in and add a new line on top of each file to say so.
17615   # So let's grep whole file.
17616   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17617     dirpart=`(dirname "$mf") 2>/dev/null ||
17618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17619          X"$mf" : 'X\(//\)[^/]' \| \
17620          X"$mf" : 'X\(//\)$' \| \
17621          X"$mf" : 'X\(/\)' \| \
17622          .     : '\(.\)' 2>/dev/null ||
17623 echo X"$mf" |
17624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17626           /^X\(\/\/\)$/{ s//\1/; q; }
17627           /^X\(\/\).*/{ s//\1/; q; }
17628           s/.*/./; q'`
17629   else
17630     continue
17631   fi
17632   # Extract the definition of DEPDIR, am__include, and am__quote
17633   # from the Makefile without running `make'.
17634   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17635   test -z "$DEPDIR" && continue
17636   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17637   test -z "am__include" && continue
17638   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17639   # When using ansi2knr, U may be empty or an underscore; expand it
17640   U=`sed -n 's/^U = //p' < "$mf"`
17641   # Find all dependency output files, they are included files with
17642   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17643   # simplest approach to changing $(DEPDIR) to its actual value in the
17644   # expansion.
17645   for file in `sed -n "
17646     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17647        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17648     # Make sure the directory exists.
17649     test -f "$dirpart/$file" && continue
17650     fdir=`(dirname "$file") 2>/dev/null ||
17651 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17652          X"$file" : 'X\(//\)[^/]' \| \
17653          X"$file" : 'X\(//\)$' \| \
17654          X"$file" : 'X\(/\)' \| \
17655          .     : '\(.\)' 2>/dev/null ||
17656 echo X"$file" |
17657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17658           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17659           /^X\(\/\/\)$/{ s//\1/; q; }
17660           /^X\(\/\).*/{ s//\1/; q; }
17661           s/.*/./; q'`
17662     { if $as_mkdir_p; then
17663     mkdir -p $dirpart/$fdir
17664   else
17665     as_dir=$dirpart/$fdir
17666     as_dirs=
17667     while test ! -d "$as_dir"; do
17668       as_dirs="$as_dir $as_dirs"
17669       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671          X"$as_dir" : 'X\(//\)[^/]' \| \
17672          X"$as_dir" : 'X\(//\)$' \| \
17673          X"$as_dir" : 'X\(/\)' \| \
17674          .     : '\(.\)' 2>/dev/null ||
17675 echo X"$as_dir" |
17676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17678           /^X\(\/\/\)$/{ s//\1/; q; }
17679           /^X\(\/\).*/{ s//\1/; q; }
17680           s/.*/./; q'`
17681     done
17682     test ! -n "$as_dirs" || mkdir $as_dirs
17683   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17684 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17685    { (exit 1); exit 1; }; }; }
17686
17687     # echo "creating $dirpart/$file"
17688     echo '# dummy' > "$dirpart/$file"
17689   done
17690 done
17691  ;;
17692     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17693 case " $CONFIG_FILES " in
17694  *" Makefile "*)
17695    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17696    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17697    ;;
17698 esac
17699 for ac_multi_file in $CONFIG_FILES; do
17700   case $ac_multi_file in
17701   */Makefile)
17702     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17703   esac
17704 done
17705  ;;
17706   esac
17707 done
17708 _ACEOF
17709
17710 cat >>$CONFIG_STATUS <<\_ACEOF
17711
17712 { (exit 0); exit 0; }
17713 _ACEOF
17714 chmod +x $CONFIG_STATUS
17715 ac_clean_files=$ac_clean_files_save
17716
17717
17718 # configure is writing to config.log, and then calls config.status.
17719 # config.status does its own redirection, appending to config.log.
17720 # Unfortunately, on DOS this fails, as config.log is still kept open
17721 # by configure, so config.status won't be able to write to it; its
17722 # output is simply discarded.  So we exec the FD to /dev/null,
17723 # effectively closing config.log, so it can be properly (re)opened and
17724 # appended to by config.status.  When coming back to configure, we
17725 # need to make the FD available again.
17726 if test "$no_create" != yes; then
17727   ac_cs_success=:
17728   ac_config_status_args=
17729   test "$silent" = yes &&
17730     ac_config_status_args="$ac_config_status_args --quiet"
17731   exec 5>/dev/null
17732   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17733   exec 5>>config.log
17734   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17735   # would make configure fail if this is the last instruction.
17736   $ac_cs_success || { (exit 1); exit 1; }
17737 fi
17738
17739 #
17740 # CONFIG_SUBDIRS section.
17741 #
17742 if test "$no_recursion" != yes; then
17743
17744   # Remove --cache-file and --srcdir arguments so they do not pile up.
17745   ac_sub_configure_args=
17746   ac_prev=
17747   for ac_arg in $ac_configure_args; do
17748     if test -n "$ac_prev"; then
17749       ac_prev=
17750       continue
17751     fi
17752     case $ac_arg in
17753     -cache-file | --cache-file | --cache-fil | --cache-fi \
17754     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17755       ac_prev=cache_file ;;
17756     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17757     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17758     | --c=*)
17759       ;;
17760     --config-cache | -C)
17761       ;;
17762     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17763       ac_prev=srcdir ;;
17764     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17765       ;;
17766     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17767       ac_prev=prefix ;;
17768     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17769       ;;
17770     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17771     esac
17772   done
17773
17774   # Always prepend --prefix to ensure using the same prefix
17775   # in subdir configurations.
17776   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17777
17778   ac_popdir=`pwd`
17779   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17780
17781     # Do not complain, so a configure script can configure whichever
17782     # parts of a large source tree are present.
17783     test -d $srcdir/$ac_dir || continue
17784
17785     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17786 echo "$as_me: configuring in $ac_dir" >&6;}
17787     { if $as_mkdir_p; then
17788     mkdir -p "$ac_dir"
17789   else
17790     as_dir="$ac_dir"
17791     as_dirs=
17792     while test ! -d "$as_dir"; do
17793       as_dirs="$as_dir $as_dirs"
17794       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796          X"$as_dir" : 'X\(//\)[^/]' \| \
17797          X"$as_dir" : 'X\(//\)$' \| \
17798          X"$as_dir" : 'X\(/\)' \| \
17799          .     : '\(.\)' 2>/dev/null ||
17800 echo X"$as_dir" |
17801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17803           /^X\(\/\/\)$/{ s//\1/; q; }
17804           /^X\(\/\).*/{ s//\1/; q; }
17805           s/.*/./; q'`
17806     done
17807     test ! -n "$as_dirs" || mkdir $as_dirs
17808   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17810    { (exit 1); exit 1; }; }; }
17811
17812     ac_builddir=.
17813
17814 if test "$ac_dir" != .; then
17815   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17816   # A "../" for each directory in $ac_dir_suffix.
17817   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17818 else
17819   ac_dir_suffix= ac_top_builddir=
17820 fi
17821
17822 case $srcdir in
17823   .)  # No --srcdir option.  We are building in place.
17824     ac_srcdir=.
17825     if test -z "$ac_top_builddir"; then
17826        ac_top_srcdir=.
17827     else
17828        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17829     fi ;;
17830   [\\/]* | ?:[\\/]* )  # Absolute path.
17831     ac_srcdir=$srcdir$ac_dir_suffix;
17832     ac_top_srcdir=$srcdir ;;
17833   *) # Relative path.
17834     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17835     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17836 esac
17837
17838 # Do not use `cd foo && pwd` to compute absolute paths, because
17839 # the directories may not exist.
17840 case `pwd` in
17841 .) ac_abs_builddir="$ac_dir";;
17842 *)
17843   case "$ac_dir" in
17844   .) ac_abs_builddir=`pwd`;;
17845   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17846   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17847   esac;;
17848 esac
17849 case $ac_abs_builddir in
17850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17851 *)
17852   case ${ac_top_builddir}. in
17853   .) ac_abs_top_builddir=$ac_abs_builddir;;
17854   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17855   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17856   esac;;
17857 esac
17858 case $ac_abs_builddir in
17859 .) ac_abs_srcdir=$ac_srcdir;;
17860 *)
17861   case $ac_srcdir in
17862   .) ac_abs_srcdir=$ac_abs_builddir;;
17863   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17864   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17865   esac;;
17866 esac
17867 case $ac_abs_builddir in
17868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17869 *)
17870   case $ac_top_srcdir in
17871   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17872   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17873   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17874   esac;;
17875 esac
17876
17877
17878     cd $ac_dir
17879
17880     # Check for guested configure; otherwise get Cygnus style configure.
17881     if test -f $ac_srcdir/configure.gnu; then
17882       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17883     elif test -f $ac_srcdir/configure; then
17884       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17885     elif test -f $ac_srcdir/configure.in; then
17886       ac_sub_configure=$ac_configure
17887     else
17888       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17889 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17890       ac_sub_configure=
17891     fi
17892
17893     # The recursion is here.
17894     if test -n "$ac_sub_configure"; then
17895       # Make the cache file name correct relative to the subdirectory.
17896       case $cache_file in
17897       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17898       *) # Relative path.
17899         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17900       esac
17901
17902       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17903 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17904       # The eval makes quoting arguments work.
17905       eval $ac_sub_configure $ac_sub_configure_args \
17906            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17907         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17908 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17909    { (exit 1); exit 1; }; }
17910     fi
17911
17912     cd $ac_popdir
17913   done
17914 fi
17915