OSDN Git Service

PR 24236
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_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 LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME 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_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC 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 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-libgcj-debug   enable runtime debugging code
861   --enable-java-awt       list of AWT peer implementations to be built
862   --enable-shared=PKGS  build shared libraries default=yes
863   --enable-static=PKGS  build static libraries default=yes
864   --enable-fast-install=PKGS  optimize for fast installation default=yes
865   --disable-libtool-lock  avoid locking (might break parallel builds)
866   --disable-getenv-properties
867                           don't set system properties from GCJ_PROPERTIES
868   --enable-hash-synchronization
869                           use global hash table for monitor locks
870   --enable-gc-debug       include full support for pointer backtracing etc.
871   --enable-interpreter    enable interpreter
872   --enable-sjlj-exceptions
873                           force use of builtin_setjmp for exceptions
874   --disable-java-net      disable java.net
875   --disable-jvmpi         disable JVMPI support
876   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
877   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
878   --disable-rpath         do not hardcode runtime library paths
879   _g_switchUse thread-local storage
880                           [default=yes]
881
882 Optional Packages:
883   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885   --with-target-subdir=SUBDIR
886                           configure in a subdirectory
887   --with-cross-host=HOST  configure with a cross compiler from HOST
888   --with-newlib           configure with newlib
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890   --with-pic              try to use only PIC/non-PIC objects default=use both
891   --with-java-home=DIRECTORY
892                           value of java.home system property
893   --with-win32-nlsapi=ansi or unicows or unicode
894                           native MinGW libgcj Win32 OS API (default is ansi)
895   --without-libffi        don't use libffi
896   --with-ecos             enable runtime eCos target support
897   --with-system-zlib      use installed libz
898   --with-x                use the X Window System
899   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
900   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
901
902 Some influential environment variables:
903   CC          C compiler command
904   CFLAGS      C compiler flags
905   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
906               nonstandard directory <lib dir>
907   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
908               headers in a nonstandard directory <include dir>
909   CXX         C++ compiler command
910   CXXFLAGS    C++ compiler flags
911   CXXCPP      C++ preprocessor
912   CPP         C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921   # If there are subdirs, report their specific --help.
922   ac_popdir=`pwd`
923   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924     test -d $ac_dir || continue
925     ac_builddir=.
926
927 if test "$ac_dir" != .; then
928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929   # A "../" for each directory in $ac_dir_suffix.
930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932   ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936   .)  # No --srcdir option.  We are building in place.
937     ac_srcdir=.
938     if test -z "$ac_top_builddir"; then
939        ac_top_srcdir=.
940     else
941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942     fi ;;
943   [\\/]* | ?:[\\/]* )  # Absolute path.
944     ac_srcdir=$srcdir$ac_dir_suffix;
945     ac_top_srcdir=$srcdir ;;
946   *) # Relative path.
947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
955 *)
956   case "$ac_dir" in
957   .) ac_abs_builddir=`pwd`;;
958   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959   *) ac_abs_builddir=`pwd`/"$ac_dir";;
960   esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *)
965   case ${ac_top_builddir}. in
966   .) ac_abs_top_builddir=$ac_abs_builddir;;
967   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969   esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
973 *)
974   case $ac_srcdir in
975   .) ac_abs_srcdir=$ac_abs_builddir;;
976   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978   esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *)
983   case $ac_top_srcdir in
984   .) ac_abs_top_srcdir=$ac_abs_builddir;;
985   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987   esac;;
988 esac
989
990     cd $ac_dir
991     # Check for guested configure; otherwise get Cygnus style configure.
992     if test -f $ac_srcdir/configure.gnu; then
993       echo
994       $SHELL $ac_srcdir/configure.gnu  --help=recursive
995     elif test -f $ac_srcdir/configure; then
996       echo
997       $SHELL $ac_srcdir/configure  --help=recursive
998     elif test -f $ac_srcdir/configure.ac ||
999            test -f $ac_srcdir/configure.in; then
1000       echo
1001       $ac_configure --help
1002     else
1003       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004     fi
1005     cd $ac_popdir
1006   done
1007 fi
1008
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011   cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1014
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019   exit 0
1020 fi
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1025
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59.  Invocation command line was
1028
1029   $ $0 $@
1030
1031 _ACEOF
1032 {
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1037
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1046
1047 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1048 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1051 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1052 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1053 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1054
1055 _ASUNAME
1056
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1059 do
1060   IFS=$as_save_IFS
1061   test -z "$as_dir" && as_dir=.
1062   echo "PATH: $as_dir"
1063 done
1064
1065 } >&5
1066
1067 cat >&5 <<_ACEOF
1068
1069
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1073
1074 _ACEOF
1075
1076
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1088 do
1089   for ac_arg
1090   do
1091     case $ac_arg in
1092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094     | -silent | --silent | --silen | --sile | --sil)
1095       continue ;;
1096     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098     esac
1099     case $ac_pass in
1100     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101     2)
1102       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103       if test $ac_must_keep_next = true; then
1104         ac_must_keep_next=false # Got value, back to normal.
1105       else
1106         case $ac_arg in
1107           *=* | --config-cache | -C | -disable-* | --disable-* \
1108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110           | -with-* | --with-* | -without-* | --without-* | --x)
1111             case "$ac_configure_args0 " in
1112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113             esac
1114             ;;
1115           -* ) ac_must_keep_next=true ;;
1116         esac
1117       fi
1118       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119       # Get rid of the leading space.
1120       ac_sep=" "
1121       ;;
1122     esac
1123   done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log.  We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134   # Save into config.log some information that might help in debugging.
1135   {
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143     echo
1144     # The following way of writing the cache mishandles newlines in values,
1145 {
1146   (set) 2>&1 |
1147     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148     *ac_space=\ *)
1149       sed -n \
1150         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152       ;;
1153     *)
1154       sed -n \
1155         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156       ;;
1157     esac;
1158 }
1159     echo
1160
1161     cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166     echo
1167     for ac_var in $ac_subst_vars
1168     do
1169       eval ac_val=$`echo $ac_var`
1170       echo "$ac_var='"'"'$ac_val'"'"'"
1171     done | sort
1172     echo
1173
1174     if test -n "$ac_subst_files"; then
1175       cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180       echo
1181       for ac_var in $ac_subst_files
1182       do
1183         eval ac_val=$`echo $ac_var`
1184         echo "$ac_var='"'"'$ac_val'"'"'"
1185       done | sort
1186       echo
1187     fi
1188
1189     if test -s confdefs.h; then
1190       cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195       echo
1196       sed "/^$/d" confdefs.h | sort
1197       echo
1198     fi
1199     test "$ac_signal" != 0 &&
1200       echo "$as_me: caught signal $ac_signal"
1201     echo "$as_me: exit $exit_status"
1202   } >&5
1203   rm -f core *.core &&
1204   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205     exit $exit_status
1206      ' 0
1207 for ac_signal in 1 2 13 15; do
1208   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1211
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1216
1217 # Predefined preprocessor variables.
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1242
1243
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247   if test "x$prefix" != xNONE; then
1248     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249   else
1250     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251   fi
1252 fi
1253 for ac_site_file in $CONFIG_SITE; do
1254   if test -r "$ac_site_file"; then
1255     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257     sed 's/^/| /' "$ac_site_file" >&5
1258     . "$ac_site_file"
1259   fi
1260 done
1261
1262 if test -r "$cache_file"; then
1263   # Some versions of bash will fail to source /dev/null (special
1264   # files actually), so we avoid doing that.
1265   if test -f "$cache_file"; then
1266     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268     case $cache_file in
1269       [\\/]* | ?:[\\/]* ) . $cache_file;;
1270       *)                      . ./$cache_file;;
1271     esac
1272   fi
1273 else
1274   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276   >$cache_file
1277 fi
1278
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285   eval ac_new_set=\$ac_env_${ac_var}_set
1286   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287   eval ac_new_val="\$ac_env_${ac_var}_value"
1288   case $ac_old_set,$ac_new_set in
1289     set,)
1290       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292       ac_cache_corrupted=: ;;
1293     ,set)
1294       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296       ac_cache_corrupted=: ;;
1297     ,);;
1298     *)
1299       if test "x$ac_old_val" != "x$ac_new_val"; then
1300         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1303 echo "$as_me:   former value:  $ac_old_val" >&2;}
1304         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1305 echo "$as_me:   current value: $ac_new_val" >&2;}
1306         ac_cache_corrupted=:
1307       fi;;
1308   esac
1309   # Pass precious variables to config.status.
1310   if test "$ac_new_set" = set; then
1311     case $ac_new_val in
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     *) ac_arg=$ac_var=$ac_new_val ;;
1315     esac
1316     case " $ac_configure_args " in
1317       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1318       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319     esac
1320   fi
1321 done
1322 if $ac_cache_corrupted; then
1323   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367   if test -f $ac_dir/install-sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install-sh -c"
1370     break
1371   elif test -f $ac_dir/install.sh; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/install.sh -c"
1374     break
1375   elif test -f $ac_dir/shtool; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/shtool install -c"
1378     break
1379   fi
1380 done
1381 if test -z "$ac_aux_dir"; then
1382   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403   ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407    { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411    { (exit 1); exit 1; }; }
1412
1413 fi
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422  case ${build_alias} in
1423   "") build_noncanonical=${build} ;;
1424   *) build_noncanonical=${build_alias} ;;
1425 esac
1426
1427  case ${host_alias} in
1428   "") host_noncanonical=${build_noncanonical} ;;
1429   *) host_noncanonical=${host_alias} ;;
1430 esac
1431
1432  case ${target_alias} in
1433   "") target_noncanonical=${host_noncanonical} ;;
1434   *) target_noncanonical=${target_alias} ;;
1435 esac
1436
1437   # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441    || test -d $srcdir/../host-${host_noncanonical}; then
1442   host_subdir="host-${host_noncanonical}"
1443 else
1444   host_subdir=.
1445 fi
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1448
1449
1450 # We use these options to decide which functions to include.
1451
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454   withval="$with_target_subdir"
1455
1456 fi;
1457
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1460
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir.  We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467   if test -z "${with_target_subdir}"; then
1468     toprel=".."
1469   else
1470     if test "${with_target_subdir}" != "."; then
1471       toprel="${with_multisrctop}../.."
1472     else
1473       toprel="${with_multisrctop}.."
1474     fi
1475   fi
1476 else
1477   toprel=".."
1478 fi
1479
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1481
1482
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490   ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494    { (exit 1); exit 1; }; }
1495
1496 fi
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503
1504
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512   ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 fi
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530   test "$program_prefix$program_suffix$program_transform_name" = \
1531     NONENONEs,x,x, &&
1532   program_prefix=${target_alias}-
1533  case ${build_alias} in
1534   "") build_noncanonical=${build} ;;
1535   *) build_noncanonical=${build_alias} ;;
1536 esac
1537
1538  case ${target_alias} in
1539   "") target_noncanonical=${host_noncanonical} ;;
1540   *) target_noncanonical=${target_alias} ;;
1541 esac
1542
1543
1544
1545
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1551
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556   echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1561 fi
1562
1563
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1566
1567
1568
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571   withval="$with_cross_host"
1572
1573 fi;
1574
1575
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578   withval="$with_newlib"
1579
1580 fi;
1581
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584   enableval="$enable_version_specific_runtime_libs"
1585   case "$enableval" in
1586       yes) version_specific_libs=yes ;;
1587       no)  version_specific_libs=no ;;
1588       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590    { (exit 1); exit 1; }; };;
1591      esac
1592 else
1593   version_specific_libs=no
1594
1595 fi;
1596
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600   enableval="$enable_multilib"
1601   case "${enableval}" in
1602   yes) multilib=yes ;;
1603   no)  multilib=no ;;
1604   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606    { (exit 1); exit 1; }; } ;;
1607  esac
1608 else
1609   multilib=yes
1610 fi;
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612
1613
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests.  This may not be necessary in libjava; I don't know.
1624
1625
1626
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 fi
1671 if test -z "$ac_cv_prog_CC"; then
1672   ac_ct_CC=$CC
1673   # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$ac_ct_CC"; then
1681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     ac_cv_prog_ac_ct_CC="gcc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708   CC=$ac_ct_CC
1709 else
1710   CC="$ac_cv_prog_CC"
1711 fi
1712
1713 if test -z "$CC"; then
1714   if test -n "$ac_tool_prefix"; then
1715   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_CC="${ac_tool_prefix}cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$ac_cv_prog_CC"; then
1752   ac_ct_CC=$CC
1753   # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_ac_ct_CC="cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 fi
1794 if test -z "$CC"; then
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805   ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814        ac_prog_rejected=yes
1815        continue
1816      fi
1817     ac_cv_prog_CC="cc"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 if test $ac_prog_rejected = yes; then
1825   # We found a bogon in the path, so make sure we never use it.
1826   set dummy $ac_cv_prog_CC
1827   shift
1828   if test $# != 0; then
1829     # We chose a different compiler from the bogus one.
1830     # However, it has the same basename, so the bogon will be chosen
1831     # first if we set CC to just the basename; use the full file name.
1832     shift
1833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834   fi
1835 fi
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880   echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887     test -n "$CC" && break
1888   done
1889 fi
1890 if test -z "$CC"; then
1891   ac_ct_CC=$CC
1892   for ac_prog in cl
1893 do
1894   # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$ac_ct_CC"; then
1902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_ac_ct_CC="$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929   test -n "$ac_ct_CC" && break
1930 done
1931
1932   CC=$ac_ct_CC
1933 fi
1934
1935 fi
1936
1937
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946      "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949   (eval $ac_compiler --version </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954   (eval $ac_compiler -v </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959   (eval $ac_compiler -V </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981   (eval $ac_link) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; then
1985   gcc_no_link=no
1986 else
1987   gcc_no_link=yes
1988 fi
1989
1990 if test x$gcc_no_link = xyes; then
1991   # Setting cross_compile will disable run tests; it will
1992   # also disable AC_CHECK_FILE but that's generally
1993   # correct if we can't link.
1994   cross_compiling=yes
1995   EXEEXT=
1996 else
1997   cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h.  */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h.  */
2003
2004 int
2005 main ()
2006 {
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021   (eval $ac_link_default) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; then
2025   # Find the output, starting from the most likely.  This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2028
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034 do
2035   test -f "$ac_file" || continue
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038         ;;
2039     conftest.$ac_ext )
2040         # This is the source file.
2041         ;;
2042     [ab].out )
2043         # We found the default executable, but exeext='' is most
2044         # certainly right.
2045         break;;
2046     *.* )
2047         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048         # FIXME: I believe we export ac_cv_exeext for Libtool,
2049         # but it would be cool to find out if it's true.  Does anybody
2050         # maintain Libtool? --akim.
2051         export ac_cv_exeext
2052         break;;
2053     * )
2054         break;;
2055   esac
2056 done
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065    { (exit 77); exit 77; }; }
2066 fi
2067
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2071
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079   if { ac_try='./$ac_file'
2080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081   (eval $ac_try) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; }; then
2085     cross_compiling=no
2086   else
2087     if test "$cross_compiling" = maybe; then
2088         cross_compiling=yes
2089     else
2090         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096    { (exit 1); exit 1; }; }
2097     fi
2098   fi
2099 fi
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2102
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run.  If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2111
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115   (eval $ac_link) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124   test -f "$ac_file" || continue
2125   case $ac_file in
2126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128           export ac_cv_exeext
2129           break;;
2130     * ) break;;
2131   esac
2132 done
2133 else
2134   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2148 fi
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171   (eval $ac_compile) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179        break;;
2180   esac
2181 done
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 fi
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h.  */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h.  */
2210
2211 int
2212 main ()
2213 {
2214 #ifndef __GNUC__
2215        choke me
2216 #endif
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>conftest.er1
2225   ac_status=$?
2226   grep -v '^ *+' conftest.er1 >conftest.err
2227   rm -f conftest.er1
2228   cat conftest.err >&5
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); } &&
2231          { ac_try='test -z "$ac_c_werror_flag"
2232                          || test ! -s conftest.err'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   ac_compiler_gnu=yes
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249 ac_compiler_gnu=no
2250 fi
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272
2273 int
2274 main ()
2275 {
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>conftest.er1
2284   ac_status=$?
2285   grep -v '^ *+' conftest.er1 >conftest.err
2286   rm -f conftest.er1
2287   cat conftest.err >&5
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); } &&
2290          { ac_try='test -z "$ac_c_werror_flag"
2291                          || test ! -s conftest.err'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; } &&
2297          { ac_try='test -s conftest.$ac_objext'
2298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; }; then
2303   ac_cv_prog_cc_g=yes
2304 else
2305   echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_cv_prog_cc_g=no
2309 fi
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315   CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317   if test "$GCC" = yes; then
2318     CFLAGS="-g -O2"
2319   else
2320     CFLAGS="-g"
2321   fi
2322 else
2323   if test "$GCC" = yes; then
2324     CFLAGS="-O2"
2325   else
2326     CFLAGS=
2327   fi
2328 fi
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350      char **p;
2351      int i;
2352 {
2353   return p[i];
2354 }
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2356 {
2357   char *s;
2358   va_list v;
2359   va_start (v,p);
2360   s = g (p, va_arg (v,int));
2361   va_end (v);
2362   return s;
2363 }
2364
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2366    function prototypes and stuff, but not '\xHH' hex character constants.
2367    These don't provoke an error unfortunately, instead are silently treated
2368    as 'x'.  The following induces an error, until -std1 is added to get
2369    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2370    array size at least.  It's necessary to write '\x00'==0 to get something
2371    that's true only with -std1.  */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2380 int
2381 main ()
2382 {
2383 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX                   -qlanglvl=ansi
2391 # Ultrix and OSF/1      -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2394 # SVR4                  -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 do
2397   CC="$ac_save_CC $ac_arg"
2398   rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -z "$ac_c_werror_flag"
2408                          || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 fi
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2431
2432 fi
2433
2434 case "x$ac_cv_prog_cc_stdc" in
2435   x|xno)
2436     echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2438   *)
2439     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441     CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2443
2444 # Some people use a C++ compiler to compile C.  Since we use `exit',
2445 # in C++ we need to declare it.  In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450   choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455   (eval $ac_compile) 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } &&
2462          { ac_try='test -z "$ac_c_werror_flag"
2463                          || test ! -s conftest.err'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   for ac_declaration in \
2476    '' \
2477    'extern "C" void std::exit (int) throw (); using std::exit;' \
2478    'extern "C" void std::exit (int); using std::exit;' \
2479    'extern "C" void exit (int) throw ();' \
2480    'extern "C" void exit (int);' \
2481    'void exit (int);'
2482 do
2483   cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 $ac_declaration
2490 #include <stdlib.h>
2491 int
2492 main ()
2493 {
2494 exit (42);
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501   (eval $ac_compile) 2>conftest.er1
2502   ac_status=$?
2503   grep -v '^ *+' conftest.er1 >conftest.err
2504   rm -f conftest.er1
2505   cat conftest.err >&5
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); } &&
2508          { ac_try='test -z "$ac_c_werror_flag"
2509                          || test ! -s conftest.err'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; } &&
2515          { ac_try='test -s conftest.$ac_objext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   :
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 continue
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529   cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535 $ac_declaration
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   break
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576   echo '#ifdef __cplusplus' >>confdefs.h
2577   echo $ac_declaration      >>confdefs.h
2578   echo '#endif'             >>confdefs.h
2579 fi
2580
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 fi
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2600   do
2601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$CXX"; then
2609   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624
2625 fi
2626 fi
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629   echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632   echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2634 fi
2635
2636     test -n "$CXX" && break
2637   done
2638 fi
2639 if test -z "$CXX"; then
2640   ac_ct_CXX=$CXX
2641   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$ac_ct_CXX"; then
2651   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_ac_ct_CXX="$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666
2667 fi
2668 fi
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674   echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2676 fi
2677
2678   test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2681
2682   CXX=$ac_ct_CXX
2683 fi
2684
2685
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688      "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691   (eval $ac_compiler --version </dev/null >&5) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696   (eval $ac_compiler -v </dev/null >&5) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701   (eval $ac_compiler -V </dev/null >&5) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721 #ifndef __GNUC__
2722        choke me
2723 #endif
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   ac_compiler_gnu=yes
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 ac_compiler_gnu=no
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760
2761 fi
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 int
2781 main ()
2782 {
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -z "$ac_cxx_werror_flag"
2798                          || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   ac_cv_prog_cxx_g=yes
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 ac_cv_prog_cxx_g=no
2816 fi
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822   CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824   if test "$GXX" = yes; then
2825     CXXFLAGS="-g -O2"
2826   else
2827     CXXFLAGS="-g"
2828   fi
2829 else
2830   if test "$GXX" = yes; then
2831     CXXFLAGS="-O2"
2832   else
2833     CXXFLAGS=
2834   fi
2835 fi
2836 for ac_declaration in \
2837    '' \
2838    'extern "C" void std::exit (int) throw (); using std::exit;' \
2839    'extern "C" void std::exit (int); using std::exit;' \
2840    'extern "C" void exit (int) throw ();' \
2841    'extern "C" void exit (int);' \
2842    'void exit (int);'
2843 do
2844   cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 $ac_declaration
2851 #include <stdlib.h>
2852 int
2853 main ()
2854 {
2855 exit (42);
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_cxx_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   :
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887 continue
2888 fi
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 $ac_declaration
2897 int
2898 main ()
2899 {
2900 exit (42);
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907   (eval $ac_compile) 2>conftest.er1
2908   ac_status=$?
2909   grep -v '^ *+' conftest.er1 >conftest.err
2910   rm -f conftest.er1
2911   cat conftest.err >&5
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } &&
2914          { ac_try='test -z "$ac_cxx_werror_flag"
2915                          || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest.$ac_objext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   break
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 fi
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937   echo '#ifdef __cplusplus' >>confdefs.h
2938   echo $ac_declaration      >>confdefs.h
2939   echo '#endif'             >>confdefs.h
2940 fi
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948 CXXFLAGS="$save_CXXFLAGS"
2949
2950
2951
2952
2953
2954 am__api_version="1.9"
2955 # Find a good install program.  We prefer a C program (faster),
2956 # so one script is as good as another.  But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979   # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981   ./ | .// | /cC/* | \
2982   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984   /usr/ucb/* ) ;;
2985   *)
2986     # OSF1 and SCO ODT 3.0 have their own names for install.
2987     # Don't use installbsd from OSF since it installs stuff as root
2988     # by default.
2989     for ac_prog in ginstall scoinst install; do
2990       for ac_exec_ext in '' $ac_executable_extensions; do
2991         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992           if test $ac_prog = install &&
2993             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994             # AIX install.  It has an incompatible calling convention.
2995             :
2996           elif test $ac_prog = install &&
2997             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998             # program-specific install script used by HP pwplus--don't use.
2999             :
3000           else
3001             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002             break 3
3003           fi
3004         fi
3005       done
3006     done
3007     ;;
3008 esac
3009 done
3010
3011
3012 fi
3013   if test "${ac_cv_path_install+set}" = set; then
3014     INSTALL=$ac_cv_path_install
3015   else
3016     # As a last resort, use the slow shell script.  We don't cache a
3017     # path for INSTALL within a source directory, because that will
3018     # break other packages using the cache if that directory is
3019     # removed, or if the path is relative.
3020     INSTALL=$ac_install_sh
3021   fi
3022 fi
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3025
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments.  Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046    if test "$*" = "X"; then
3047       # -L didn't work.
3048       set X `ls -t $srcdir/configure conftest.file`
3049    fi
3050    rm -f conftest.file
3051    if test "$*" != "X $srcdir/configure conftest.file" \
3052       && test "$*" != "X conftest.file $srcdir/configure"; then
3053
3054       # If neither matched, then we have a broken ls.  This can happen
3055       # if, for instance, CONFIG_SHELL is bash and it inherits a
3056       # broken ls alias from the environment.  This has actually
3057       # happened.  Such a system could not be considered "sane".
3058       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3061 alias in your environment" >&2;}
3062    { (exit 1); exit 1; }; }
3063    fi
3064
3065    test "$2" = conftest.file
3066    )
3067 then
3068    # Ok.
3069    :
3070 else
3071    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $.  echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3091
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3094
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098   am_missing_run="$MISSING --run "
3099 else
3100   am_missing_run=
3101   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 fi
3104
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106   # We used to keeping the `.' as first argument, in order to
3107   # allow $(mkdir_p) to be used without argument.  As in
3108   #   $(mkdir_p) $(somedir)
3109   # where $(somedir) is conditionally defined.  However this is wrong
3110   # for two reasons:
3111   #  1. if the package is installed by a user who cannot write `.'
3112   #     make install will fail,
3113   #  2. the above comment should most certainly read
3114   #     $(mkdir_p) $(DESTDIR)$(somedir)
3115   #     so it does not work when $(somedir) is undefined and
3116   #     $(DESTDIR) is not.
3117   #  To support the latter case, we have to write
3118   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119   #  so the `.' trick is pointless.
3120   mkdir_p='mkdir -p --'
3121 else
3122   # On NextStep and OpenStep, the `mkdir' command does not
3123   # recognize any option.  It will interpret all options as
3124   # directories to create, and then abort because `.' already
3125   # exists.
3126   for d in ./-p ./--version;
3127   do
3128     test -d $d && rmdir $d
3129   done
3130   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131   if test -f "$ac_aux_dir/mkinstalldirs"; then
3132     mkdir_p='$(mkinstalldirs)'
3133   else
3134     mkdir_p='$(install_sh) -d'
3135   fi
3136 fi
3137
3138 for ac_prog in gawk mawk nawk awk
3139 do
3140   # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if test -n "$AWK"; then
3148   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155   for ac_exec_ext in '' $ac_executable_extensions; do
3156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_AWK="$ac_prog"
3158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162 done
3163
3164 fi
3165 fi
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168   echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171   echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3173 fi
3174
3175   test -n "$AWK" && break
3176 done
3177
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   cat >conftest.make <<\_ACEOF
3185 all:
3186         @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191   eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193   eval ac_cv_prog_make_${ac_make}_set=no
3194 fi
3195 rm -f conftest.make
3196 fi
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198   echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200   SET_MAKE=
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204   SET_MAKE="MAKE=${MAKE-make}"
3205 fi
3206
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210   am__leading_dot=.
3211 else
3212   am__leading_dot=_
3213 fi
3214 rmdir .tst 2>/dev/null
3215
3216 DEPDIR="${am__leading_dot}deps"
3217
3218           ac_config_commands="$ac_config_commands depfiles"
3219
3220
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224         @echo done
3225 .PHONY: am__doit
3226 END
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241    am__include=include
3242    am__quote=
3243    _am_result=GNU
3244 fi
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247    echo '.include "confinc"' > confmf
3248    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249       am__include=.include
3250       am__quote="\""
3251       _am_result=BSD
3252    fi
3253 fi
3254
3255
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3259
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262   enableval="$enable_dependency_tracking"
3263
3264 fi;
3265 if test "x$enable_dependency_tracking" != xno; then
3266   am_depcomp="$ac_aux_dir/depcomp"
3267   AMDEPBACKSLASH='\'
3268 fi
3269
3270
3271 if test "x$enable_dependency_tracking" != xno; then
3272   AMDEP_TRUE=
3273   AMDEP_FALSE='#'
3274 else
3275   AMDEP_TRUE='#'
3276   AMDEP_FALSE=
3277 fi
3278
3279
3280
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283    test -f $srcdir/config.status; then
3284   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286    { (exit 1); exit 1; }; }
3287 fi
3288
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291   if (cygpath --version) >/dev/null 2>/dev/null; then
3292     CYGPATH_W='cygpath -w'
3293   else
3294     CYGPATH_W=echo
3295   fi
3296 fi
3297
3298
3299 # Define the identity of the package.
3300  PACKAGE='libjava'
3301  VERSION='version-unused'
3302
3303
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3307
3308
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3312
3313 # Some tools Automake needs.
3314
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316
3317
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319
3320
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322
3323
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325
3326
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3330
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'.  However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336   if test -n "$ac_tool_prefix"; then
3337   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$STRIP"; then
3345   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365   echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372 fi
3373 if test -z "$ac_cv_prog_STRIP"; then
3374   ac_ct_STRIP=$STRIP
3375   # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$ac_ct_STRIP"; then
3383   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_STRIP="strip"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 fi
3401 fi
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   STRIP=$ac_ct_STRIP
3412 else
3413   STRIP="$ac_cv_prog_STRIP"
3414 fi
3415
3416 fi
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3418
3419 # We need awk for the "check" target.  The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3422
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3424
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3426
3427
3428
3429
3430 depcc="$CC"   am_compiler_list=
3431
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438   # We make a subdir and do the tests there.  Otherwise we can end up
3439   # making bogus files that we don't know about and never remove.  For
3440   # instance it was reported that on HP-UX the gcc test will end up
3441   # making a dummy file named `D' -- because `-MD' means `put the output
3442   # in D'.
3443   mkdir conftest.dir
3444   # Copy depcomp to subdir because otherwise we won't find it if we're
3445   # using a relative directory.
3446   cp "$am_depcomp" conftest.dir
3447   cd conftest.dir
3448   # We will build objects and dependencies in a subdirectory because
3449   # it helps to detect inapplicable dependency modes.  For instance
3450   # both Tru64's cc and ICC support -MD to output dependencies as a
3451   # side effect of compilation, but ICC will put the dependencies in
3452   # the current directory while Tru64 will put them in the object
3453   # directory.
3454   mkdir sub
3455
3456   am_cv_CC_dependencies_compiler_type=none
3457   if test "$am_compiler_list" = ""; then
3458      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459   fi
3460   for depmode in $am_compiler_list; do
3461     # Setup a source with many dependencies, because some compilers
3462     # like to wrap large dependency lists on column 80 (with \), and
3463     # we should not choose a depcomp mode which is confused by this.
3464     #
3465     # We need to recreate these files for each test, as the compiler may
3466     # overwrite some of them when testing with obscure command lines.
3467     # This happens at least with the AIX C compiler.
3468     : > sub/conftest.c
3469     for i in 1 2 3 4 5 6; do
3470       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472       # Solaris 8's {/usr,}/bin/sh.
3473       touch sub/conftst$i.h
3474     done
3475     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3476
3477     case $depmode in
3478     nosideeffect)
3479       # after this tag, mechanisms are not by side-effect, so they'll
3480       # only be used when explicitly requested
3481       if test "x$enable_dependency_tracking" = xyes; then
3482         continue
3483       else
3484         break
3485       fi
3486       ;;
3487     none) break ;;
3488     esac
3489     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490     # mode.  It turns out that the SunPro C++ compiler does not properly
3491     # handle `-M -o', and we need to detect this.
3492     if depmode=$depmode \
3493        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496          >/dev/null 2>conftest.err &&
3497        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500       # icc doesn't choke on unknown options, it will just issue warnings
3501       # or remarks (even with -Werror).  So we grep stderr for any message
3502       # that says an option was ignored or not supported.
3503       # When given -MP, icc 7.0 and 7.1 complain thusly:
3504       #   icc: Command line warning: ignoring option '-M'; no argument required
3505       # The diagnosis changed in icc 8.0:
3506       #   icc: Command line remark: option '-MP' not supported
3507       if (grep 'ignoring option' conftest.err ||
3508           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509         am_cv_CC_dependencies_compiler_type=$depmode
3510         break
3511       fi
3512     fi
3513   done
3514
3515   cd ..
3516   rm -rf conftest.dir
3517 else
3518   am_cv_CC_dependencies_compiler_type=none
3519 fi
3520
3521 fi
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3525
3526
3527
3528 if
3529   test "x$enable_dependency_tracking" != xno \
3530   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531   am__fastdepCC_TRUE=
3532   am__fastdepCC_FALSE='#'
3533 else
3534   am__fastdepCC_TRUE='#'
3535   am__fastdepCC_FALSE=
3536 fi
3537
3538
3539 depcc="$CXX"  am_compiler_list=
3540
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547   # We make a subdir and do the tests there.  Otherwise we can end up
3548   # making bogus files that we don't know about and never remove.  For
3549   # instance it was reported that on HP-UX the gcc test will end up
3550   # making a dummy file named `D' -- because `-MD' means `put the output
3551   # in D'.
3552   mkdir conftest.dir
3553   # Copy depcomp to subdir because otherwise we won't find it if we're
3554   # using a relative directory.
3555   cp "$am_depcomp" conftest.dir
3556   cd conftest.dir
3557   # We will build objects and dependencies in a subdirectory because
3558   # it helps to detect inapplicable dependency modes.  For instance
3559   # both Tru64's cc and ICC support -MD to output dependencies as a
3560   # side effect of compilation, but ICC will put the dependencies in
3561   # the current directory while Tru64 will put them in the object
3562   # directory.
3563   mkdir sub
3564
3565   am_cv_CXX_dependencies_compiler_type=none
3566   if test "$am_compiler_list" = ""; then
3567      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568   fi
3569   for depmode in $am_compiler_list; do
3570     # Setup a source with many dependencies, because some compilers
3571     # like to wrap large dependency lists on column 80 (with \), and
3572     # we should not choose a depcomp mode which is confused by this.
3573     #
3574     # We need to recreate these files for each test, as the compiler may
3575     # overwrite some of them when testing with obscure command lines.
3576     # This happens at least with the AIX C compiler.
3577     : > sub/conftest.c
3578     for i in 1 2 3 4 5 6; do
3579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581       # Solaris 8's {/usr,}/bin/sh.
3582       touch sub/conftst$i.h
3583     done
3584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
3586     case $depmode in
3587     nosideeffect)
3588       # after this tag, mechanisms are not by side-effect, so they'll
3589       # only be used when explicitly requested
3590       if test "x$enable_dependency_tracking" = xyes; then
3591         continue
3592       else
3593         break
3594       fi
3595       ;;
3596     none) break ;;
3597     esac
3598     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599     # mode.  It turns out that the SunPro C++ compiler does not properly
3600     # handle `-M -o', and we need to detect this.
3601     if depmode=$depmode \
3602        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605          >/dev/null 2>conftest.err &&
3606        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609       # icc doesn't choke on unknown options, it will just issue warnings
3610       # or remarks (even with -Werror).  So we grep stderr for any message
3611       # that says an option was ignored or not supported.
3612       # When given -MP, icc 7.0 and 7.1 complain thusly:
3613       #   icc: Command line warning: ignoring option '-M'; no argument required
3614       # The diagnosis changed in icc 8.0:
3615       #   icc: Command line remark: option '-MP' not supported
3616       if (grep 'ignoring option' conftest.err ||
3617           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618         am_cv_CXX_dependencies_compiler_type=$depmode
3619         break
3620       fi
3621     fi
3622   done
3623
3624   cd ..
3625   rm -rf conftest.dir
3626 else
3627   am_cv_CXX_dependencies_compiler_type=none
3628 fi
3629
3630 fi
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3634
3635
3636
3637 if
3638   test "x$enable_dependency_tracking" != xno \
3639   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640   am__fastdepCXX_TRUE=
3641   am__fastdepCXX_FALSE='#'
3642 else
3643   am__fastdepCXX_TRUE='#'
3644   am__fastdepCXX_FALSE=
3645 fi
3646
3647
3648
3649
3650 if test -n "$ac_tool_prefix"; then
3651   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$AS"; then
3659   ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_AS="${ac_tool_prefix}as"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679   echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 fi
3687 if test -z "$ac_cv_prog_AS"; then
3688   ac_ct_AS=$AS
3689   # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   if test -n "$ac_ct_AS"; then
3697   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_ac_ct_AS="as"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712
3713 fi
3714 fi
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720   echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724   AS=$ac_ct_AS
3725 else
3726   AS="$ac_cv_prog_AS"
3727 fi
3728
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ar; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_AR+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$AR"; then
3738   ac_cv_prog_AR="$AR" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747     ac_cv_prog_AR="${ac_tool_prefix}ar"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753
3754 fi
3755 fi
3756 AR=$ac_cv_prog_AR
3757 if test -n "$AR"; then
3758   echo "$as_me:$LINENO: result: $AR" >&5
3759 echo "${ECHO_T}$AR" >&6
3760 else
3761   echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 fi
3764
3765 fi
3766 if test -z "$ac_cv_prog_AR"; then
3767   ac_ct_AR=$AR
3768   # Extract the first word of "ar", so it can be a program name with args.
3769 set dummy ar; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$ac_ct_AR"; then
3776   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785     ac_cv_prog_ac_ct_AR="ar"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791
3792 fi
3793 fi
3794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3795 if test -n "$ac_ct_AR"; then
3796   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3797 echo "${ECHO_T}$ac_ct_AR" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803   AR=$ac_ct_AR
3804 else
3805   AR="$ac_cv_prog_AR"
3806 fi
3807
3808 if test -n "$ac_tool_prefix"; then
3809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test -n "$RANLIB"; then
3817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_exec_ext in '' $ac_executable_extensions; do
3825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831 done
3832
3833 fi
3834 fi
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837   echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843
3844 fi
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846   ac_ct_RANLIB=$RANLIB
3847   # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$ac_ct_RANLIB"; then
3855   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_ac_ct_RANLIB="ranlib"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 fi
3873 fi
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3881 fi
3882
3883   RANLIB=$ac_ct_RANLIB
3884 else
3885   RANLIB="$ac_cv_prog_RANLIB"
3886 fi
3887
3888
3889 # Find a good install program.  We prefer a C program (faster),
3890 # so one script is as good as another.  But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915   ./ | .// | /cC/* | \
3916   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918   /usr/ucb/* ) ;;
3919   *)
3920     # OSF1 and SCO ODT 3.0 have their own names for install.
3921     # Don't use installbsd from OSF since it installs stuff as root
3922     # by default.
3923     for ac_prog in ginstall scoinst install; do
3924       for ac_exec_ext in '' $ac_executable_extensions; do
3925         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926           if test $ac_prog = install &&
3927             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928             # AIX install.  It has an incompatible calling convention.
3929             :
3930           elif test $ac_prog = install &&
3931             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932             # program-specific install script used by HP pwplus--don't use.
3933             :
3934           else
3935             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936             break 3
3937           fi
3938         fi
3939       done
3940     done
3941     ;;
3942 esac
3943 done
3944
3945
3946 fi
3947   if test "${ac_cv_path_install+set}" = set; then
3948     INSTALL=$ac_cv_path_install
3949   else
3950     # As a last resort, use the slow shell script.  We don't cache a
3951     # path for INSTALL within a source directory, because that will
3952     # break other packages using the cache if that directory is
3953     # removed, or if the path is relative.
3954     INSTALL=$ac_install_sh
3955   fi
3956 fi
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3959
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967
3968
3969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3971     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3972 if test "${enable_maintainer_mode+set}" = set; then
3973   enableval="$enable_maintainer_mode"
3974   USE_MAINTAINER_MODE=$enableval
3975 else
3976   USE_MAINTAINER_MODE=no
3977 fi;
3978   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980
3981
3982 if test $USE_MAINTAINER_MODE = yes; then
3983   MAINTAINER_MODE_TRUE=
3984   MAINTAINER_MODE_FALSE='#'
3985 else
3986   MAINTAINER_MODE_TRUE='#'
3987   MAINTAINER_MODE_FALSE=
3988 fi
3989
3990   MAINT=$MAINTAINER_MODE_TRUE
3991
3992
3993
3994
3995
3996 # configure.host sets the following important variables
3997 #       libgcj_cflags    - host specific C compiler flags
3998 #       libgcj_cxxflags  - host specific C++ compiler flags
3999 #       libgcj_javaflags - host specific Java compiler flags
4000
4001 libgcj_cflags=
4002 libgcj_cxxflags=
4003 libgcj_javaflags=
4004
4005 . ${srcdir}/configure.host
4006
4007 LIBGCJ_CFLAGS="${libgcj_cflags}"
4008 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4009 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4010 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4011
4012
4013
4014
4015
4016 # Only use libltdl for non-newlib builds.
4017 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4018    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4020 library_names_spec=
4021 libname_spec='lib$name'
4022 soname_spec=
4023 shrext=".so"
4024 postinstall_cmds=
4025 postuninstall_cmds=
4026 finish_cmds=
4027 finish_eval=
4028 shlibpath_var=
4029 shlibpath_overrides_runpath=unknown
4030 version_type=none
4031 dynamic_linker="$host_os ld.so"
4032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4033 if test "$GCC" = yes; then
4034   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4035   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4036     # if the path contains ";" then we assume it to be the separator
4037     # otherwise default to the standard path separator (i.e. ":") - it is
4038     # assumed that no part of a normal pathname contains ";" but that should
4039     # okay in the real world where ";" in dirpaths is itself problematic.
4040     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4041   else
4042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4043   fi
4044 else
4045   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4046 fi
4047 need_lib_prefix=unknown
4048 hardcode_into_libs=no
4049
4050 # when you set need_version to no, make sure it does not cause -set_version
4051 # flags to be left without arguments
4052 need_version=unknown
4053
4054 case $host_os in
4055 aix3*)
4056   version_type=linux
4057   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4058   shlibpath_var=LIBPATH
4059
4060   # AIX 3 has no versioning support, so we append a major version to the name.
4061   soname_spec='${libname}${release}${shared_ext}$major'
4062   ;;
4063
4064 aix4* | aix5*)
4065   version_type=linux
4066   need_lib_prefix=no
4067   need_version=no
4068   hardcode_into_libs=yes
4069   if test "$host_cpu" = ia64; then
4070     # AIX 5 supports IA64
4071     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4072     shlibpath_var=LD_LIBRARY_PATH
4073   else
4074     # With GCC up to 2.95.x, collect2 would create an import file
4075     # for dependence libraries.  The import file would start with
4076     # the line `#! .'.  This would cause the generated library to
4077     # depend on `.', always an invalid library.  This was fixed in
4078     # development snapshots of GCC prior to 3.0.
4079     case $host_os in
4080       aix4 | aix4.[01] | aix4.[01].*)
4081       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4082            echo ' yes '
4083            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4084         :
4085       else
4086         can_build_shared=no
4087       fi
4088       ;;
4089     esac
4090     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4091     # soname into executable. Probably we can add versioning support to
4092     # collect2, so additional links can be useful in future.
4093     if test "$aix_use_runtimelinking" = yes; then
4094       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4095       # instead of lib<name>.a to let people know that these are not
4096       # typical AIX shared libraries.
4097       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098     else
4099       # We preserve .a as extension for shared libraries through AIX4.2
4100       # and later when we are not doing run time linking.
4101       library_names_spec='${libname}${release}.a $libname.a'
4102       soname_spec='${libname}${release}${shared_ext}$major'
4103     fi
4104     shlibpath_var=LIBPATH
4105   fi
4106   ;;
4107
4108 amigaos*)
4109   library_names_spec='$libname.ixlibrary $libname.a'
4110   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4111   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4112   ;;
4113
4114 beos*)
4115   library_names_spec='${libname}${shared_ext}'
4116   dynamic_linker="$host_os ld.so"
4117   shlibpath_var=LIBRARY_PATH
4118   ;;
4119
4120 bsdi4*)
4121   version_type=linux
4122   need_version=no
4123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4124   soname_spec='${libname}${release}${shared_ext}$major'
4125   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4126   shlibpath_var=LD_LIBRARY_PATH
4127   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4128   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4129   # the default ld.so.conf also contains /usr/contrib/lib and
4130   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4131   # libtool to hard-code these into programs
4132   ;;
4133
4134 cygwin* | mingw* | pw32*)
4135   version_type=windows
4136   shrext=".dll"
4137   need_version=no
4138   need_lib_prefix=no
4139
4140   case $GCC,$host_os in
4141   yes,cygwin* | yes,mingw* | yes,pw32*)
4142     library_names_spec='$libname.dll.a'
4143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4144     postinstall_cmds='base_file=`basename \${file}`~
4145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4146       dldir=$destdir/`dirname \$dlpath`~
4147       test -d \$dldir || mkdir -p \$dldir~
4148       $install_prog $dir/$dlname \$dldir/$dlname'
4149     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4150       dlpath=$dir/\$dldll~
4151        $rm \$dlpath'
4152     shlibpath_overrides_runpath=yes
4153
4154     case $host_os in
4155     cygwin*)
4156       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4157       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4158       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4159       ;;
4160     mingw*)
4161       # MinGW DLLs use traditional 'lib' prefix
4162       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4163       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4164       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4165         # It is most probably a Windows format PATH printed by
4166         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4167         # path with ; separators, and with drive letters. We can handle the
4168         # drive letters (cygwin fileutils understands them), so leave them,
4169         # especially as we might pass files found there to a mingw objdump,
4170         # which wouldn't understand a cygwinified path. Ahh.
4171         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4172       else
4173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4174       fi
4175       ;;
4176     pw32*)
4177       # pw32 DLLs use 'pw' prefix rather than 'lib'
4178       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
4179       ;;
4180     esac
4181     ;;
4182
4183   *)
4184     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4185     ;;
4186   esac
4187   dynamic_linker='Win32 ld.exe'
4188   # FIXME: first we should search . and the directory the executable is in
4189   shlibpath_var=PATH
4190   ;;
4191
4192 darwin* | rhapsody*)
4193   dynamic_linker="$host_os dyld"
4194   version_type=darwin
4195   need_lib_prefix=no
4196   need_version=no
4197   # FIXME: Relying on posixy $() will cause problems for
4198   #        cross-compilation, but unfortunately the echo tests do not
4199   #        yet detect zsh echo's removal of \ escapes.
4200   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4201   soname_spec='${libname}${release}${major}$shared_ext'
4202   shlibpath_overrides_runpath=yes
4203   shlibpath_var=DYLD_LIBRARY_PATH
4204   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4205   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4206   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4207   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4208   fi
4209   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4210   ;;
4211
4212 dgux*)
4213   version_type=linux
4214   need_lib_prefix=no
4215   need_version=no
4216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4217   soname_spec='${libname}${release}${shared_ext}$major'
4218   shlibpath_var=LD_LIBRARY_PATH
4219   ;;
4220
4221 freebsd1*)
4222   dynamic_linker=no
4223   ;;
4224
4225 freebsd*)
4226   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4227   version_type=freebsd-$objformat
4228   case $version_type in
4229     freebsd-elf*)
4230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4231       need_version=no
4232       need_lib_prefix=no
4233       ;;
4234     freebsd-*)
4235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4236       need_version=yes
4237       ;;
4238   esac
4239   shlibpath_var=LD_LIBRARY_PATH
4240   case $host_os in
4241   freebsd2*)
4242     shlibpath_overrides_runpath=yes
4243     ;;
4244   freebsd3.01* | freebsdelf3.01*)
4245     shlibpath_overrides_runpath=yes
4246     hardcode_into_libs=yes
4247     ;;
4248   *) # from 3.2 on
4249     shlibpath_overrides_runpath=no
4250     hardcode_into_libs=yes
4251     ;;
4252   esac
4253   ;;
4254
4255 gnu*)
4256   version_type=linux
4257   need_lib_prefix=no
4258   need_version=no
4259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4260   soname_spec='${libname}${release}${shared_ext}$major'
4261   shlibpath_var=LD_LIBRARY_PATH
4262   hardcode_into_libs=yes
4263   ;;
4264
4265 hpux9* | hpux10* | hpux11*)
4266   # Give a soname corresponding to the major version so that dld.sl refuses to
4267   # link against other versions.
4268   version_type=sunos
4269   need_lib_prefix=no
4270   need_version=no
4271   case "$host_cpu" in
4272   ia64*)
4273     shrext='.so'
4274     hardcode_into_libs=yes
4275     dynamic_linker="$host_os dld.so"
4276     shlibpath_var=LD_LIBRARY_PATH
4277     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4279     soname_spec='${libname}${release}${shared_ext}$major'
4280     if test "X$HPUX_IA64_MODE" = X32; then
4281       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4282     else
4283       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4284     fi
4285     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4286     ;;
4287    hppa*64*)
4288      shrext='.sl'
4289      hardcode_into_libs=yes
4290      dynamic_linker="$host_os dld.sl"
4291      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4292      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4294      soname_spec='${libname}${release}${shared_ext}$major'
4295      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4296      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4297      ;;
4298    *)
4299     shrext='.sl'
4300     dynamic_linker="$host_os dld.sl"
4301     shlibpath_var=SHLIB_PATH
4302     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304     soname_spec='${libname}${release}${shared_ext}$major'
4305     ;;
4306   esac
4307   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4308   postinstall_cmds='chmod 555 $lib'
4309   ;;
4310
4311 irix5* | irix6* | nonstopux*)
4312   case $host_os in
4313     nonstopux*) version_type=nonstopux ;;
4314     *)
4315         if test "$lt_cv_prog_gnu_ld" = yes; then
4316                 version_type=linux
4317         else
4318                 version_type=irix
4319         fi ;;
4320   esac
4321   need_lib_prefix=no
4322   need_version=no
4323   soname_spec='${libname}${release}${shared_ext}$major'
4324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4325   case $host_os in
4326   irix5* | nonstopux*)
4327     libsuff= shlibsuff=
4328     ;;
4329   *)
4330     case $LD in # libtool.m4 will add one of these switches to LD
4331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4332       libsuff= shlibsuff= libmagic=32-bit;;
4333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4334       libsuff=32 shlibsuff=N32 libmagic=N32;;
4335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4337     *) libsuff= shlibsuff= libmagic=never-match;;
4338     esac
4339     ;;
4340   esac
4341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4342   shlibpath_overrides_runpath=no
4343   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4344   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4345   hardcode_into_libs=yes
4346   ;;
4347
4348 # No shared lib support for Linux oldld, aout, or coff.
4349 linux*oldld* | linux*aout* | linux*coff*)
4350   dynamic_linker=no
4351   ;;
4352
4353 # This must be Linux ELF.
4354 linux*)
4355   version_type=linux
4356   need_lib_prefix=no
4357   need_version=no
4358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4359   soname_spec='${libname}${release}${shared_ext}$major'
4360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4361   shlibpath_var=LD_LIBRARY_PATH
4362   shlibpath_overrides_runpath=no
4363   # This implies no fast_install, which is unacceptable.
4364   # Some rework will be needed to allow for fast_install
4365   # before this can be enabled.
4366   hardcode_into_libs=yes
4367
4368   # We used to test for /lib/ld.so.1 and disable shared libraries on
4369   # powerpc, because MkLinux only supported shared libraries with the
4370   # GNU dynamic linker.  Since this was broken with cross compilers,
4371   # most powerpc-linux boxes support dynamic linking these days and
4372   # people can always --disable-shared, the test was removed, and we
4373   # assume the GNU/Linux dynamic linker is in use.
4374   dynamic_linker='GNU/Linux ld.so'
4375   ;;
4376
4377 netbsd*)
4378   version_type=sunos
4379   need_lib_prefix=no
4380   need_version=no
4381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4384     dynamic_linker='NetBSD (a.out) ld.so'
4385   else
4386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4387     soname_spec='${libname}${release}${shared_ext}$major'
4388     dynamic_linker='NetBSD ld.elf_so'
4389   fi
4390   shlibpath_var=LD_LIBRARY_PATH
4391   shlibpath_overrides_runpath=yes
4392   hardcode_into_libs=yes
4393   ;;
4394
4395 newsos6)
4396   version_type=linux
4397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398   shlibpath_var=LD_LIBRARY_PATH
4399   shlibpath_overrides_runpath=yes
4400   ;;
4401
4402 nto-qnx)
4403   version_type=linux
4404   need_lib_prefix=no
4405   need_version=no
4406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407   soname_spec='${libname}${release}${shared_ext}$major'
4408   shlibpath_var=LD_LIBRARY_PATH
4409   shlibpath_overrides_runpath=yes
4410   ;;
4411
4412 openbsd*)
4413   version_type=sunos
4414   need_lib_prefix=no
4415   need_version=no
4416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4418   shlibpath_var=LD_LIBRARY_PATH
4419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420     case $host_os in
4421       openbsd2.[89] | openbsd2.[89].*)
4422         shlibpath_overrides_runpath=no
4423         ;;
4424       *)
4425         shlibpath_overrides_runpath=yes
4426         ;;
4427       esac
4428   else
4429     shlibpath_overrides_runpath=yes
4430   fi
4431   ;;
4432
4433 os2*)
4434   libname_spec='$name'
4435   shrext=".dll"
4436   need_lib_prefix=no
4437   library_names_spec='$libname${shared_ext} $libname.a'
4438   dynamic_linker='OS/2 ld.exe'
4439   shlibpath_var=LIBPATH
4440   ;;
4441
4442 osf3* | osf4* | osf5*)
4443   version_type=osf
4444   need_lib_prefix=no
4445   need_version=no
4446   soname_spec='${libname}${release}${shared_ext}$major'
4447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4448   shlibpath_var=LD_LIBRARY_PATH
4449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4451   ;;
4452
4453 sco3.2v5*)
4454   version_type=osf
4455   soname_spec='${libname}${release}${shared_ext}$major'
4456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4457   shlibpath_var=LD_LIBRARY_PATH
4458   ;;
4459
4460 solaris*)
4461   version_type=linux
4462   need_lib_prefix=no
4463   need_version=no
4464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465   soname_spec='${libname}${release}${shared_ext}$major'
4466   shlibpath_var=LD_LIBRARY_PATH
4467   shlibpath_overrides_runpath=yes
4468   hardcode_into_libs=yes
4469   # ldd complains unless libraries are executable
4470   postinstall_cmds='chmod +x $lib'
4471   ;;
4472
4473 sunos4*)
4474   version_type=sunos
4475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4477   shlibpath_var=LD_LIBRARY_PATH
4478   shlibpath_overrides_runpath=yes
4479   if test "$with_gnu_ld" = yes; then
4480     need_lib_prefix=no
4481   fi
4482   need_version=yes
4483   ;;
4484
4485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4486   version_type=linux
4487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4488   soname_spec='${libname}${release}${shared_ext}$major'
4489   shlibpath_var=LD_LIBRARY_PATH
4490   case $host_vendor in
4491     sni)
4492       shlibpath_overrides_runpath=no
4493       need_lib_prefix=no
4494       export_dynamic_flag_spec='${wl}-Blargedynsym'
4495       runpath_var=LD_RUN_PATH
4496       ;;
4497     siemens)
4498       need_lib_prefix=no
4499       ;;
4500     motorola)
4501       need_lib_prefix=no
4502       need_version=no
4503       shlibpath_overrides_runpath=no
4504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4505       ;;
4506   esac
4507   ;;
4508
4509 sysv4*MP*)
4510   if test -d /usr/nec ;then
4511     version_type=linux
4512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4513     soname_spec='$libname${shared_ext}.$major'
4514     shlibpath_var=LD_LIBRARY_PATH
4515   fi
4516   ;;
4517
4518 uts4*)
4519   version_type=linux
4520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4521   soname_spec='${libname}${release}${shared_ext}$major'
4522   shlibpath_var=LD_LIBRARY_PATH
4523   ;;
4524
4525 *)
4526   dynamic_linker=no
4527   ;;
4528 esac
4529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4530 echo "${ECHO_T}$dynamic_linker" >&6
4531 test "$dynamic_linker" = no && can_build_shared=no
4532
4533
4534 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4535 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4536 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   libltdl_cv_shlibpath_var="$shlibpath_var"
4540 fi
4541 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4542 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4543 if test -n "$libltdl_cv_shlibpath_var"; then
4544
4545 cat >>confdefs.h <<_ACEOF
4546 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4547 _ACEOF
4548
4549 fi
4550
4551 fi
4552
4553                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4554
4555
4556 # See if the user has requested runtime debugging.
4557 LIBGCJDEBUG="disable"
4558
4559 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4560 if test "${enable_libgcj_debug+set}" = set; then
4561   enableval="$enable_libgcj_debug"
4562   if test "$enable_libgcj_debug" = yes; then
4563
4564 cat >>confdefs.h <<\_ACEOF
4565 #define DEBUG 1
4566 _ACEOF
4567
4568     LIBGCJDEBUG="enable"
4569   fi
4570 fi;
4571
4572 # Determine which AWT peer libraries to build
4573 # Check whether --enable-java-awt or --disable-java-awt was given.
4574 if test "${enable_java_awt+set}" = set; then
4575   enableval="$enable_java_awt"
4576
4577 fi;
4578
4579 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4580 use_xlib_awt=""
4581 use_gtk_awt=""
4582 use_qt_awt=""
4583 # The default toolkit to use is the first one specified.
4584 TOOLKIT=
4585
4586
4587 for peer in $peerlibs ; do
4588   case $peer in
4589     xlib)
4590       if test "$no_x" = yes; then
4591         echo "*** xlib peers requested but no X library available" 1>&2
4592         exit 1
4593       else
4594         use_xlib_awt="yes"
4595         if test -z "$TOOLKIT"; then
4596            TOOLKIT=gnu.awt.xlib.XToolkit
4597         fi
4598       fi
4599       ;;
4600     gtk)
4601       if test "$no_x" = yes; then
4602          echo "*** gtk peers requested but no X library available" 1>&2
4603          exit 1
4604       else
4605          use_gtk_awt=yes
4606          if test -z "$TOOLKIT"; then
4607             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4608          fi
4609       fi
4610       ;;
4611     qt)
4612       if test "$no_x" = yes; then
4613          # Perhaps we should admit the possibility of embedded Qt.
4614          echo "*** Qt peers requested but no X library available" 1>&2
4615          exit 1
4616       else
4617          use_qt_awt=yes
4618          if test -z "$TOOLKIT"; then
4619             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4620          fi
4621       fi
4622       ;;
4623     no)
4624       use_xlib_awt=
4625       use_gtk_awt=
4626       use_qt_awt=
4627       break
4628       ;;
4629     *)
4630       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4631       exit 1
4632   esac
4633 done
4634
4635
4636
4637 if test "$use_xlib_awt" = yes; then
4638   XLIB_AWT_TRUE=
4639   XLIB_AWT_FALSE='#'
4640 else
4641   XLIB_AWT_TRUE='#'
4642   XLIB_AWT_FALSE=
4643 fi
4644
4645
4646
4647 if test "$use_gtk_awt" = yes; then
4648   GTK_AWT_TRUE=
4649   GTK_AWT_FALSE='#'
4650 else
4651   GTK_AWT_TRUE='#'
4652   GTK_AWT_FALSE=
4653 fi
4654
4655
4656
4657 if test "$use_qt_awt" = yes; then
4658   QT_AWT_TRUE=
4659   QT_AWT_FALSE='#'
4660 else
4661   QT_AWT_TRUE='#'
4662   QT_AWT_FALSE=
4663 fi
4664
4665
4666 # Create standard.omit based on decisions we just made.
4667 cp $srcdir/standard.omit.in standard.omit
4668 if test "$use_xlib_awt" != yes; then
4669    echo gnu/awt/xlib >> standard.omit
4670    echo gnu/gcj/xlib >> standard.omit
4671 fi
4672 if test "$use_gtk_awt" != yes; then
4673    echo gnu/java/awt/peer/gtk >> standard.omit
4674 fi
4675 if test "$use_qt_awt" != yes; then
4676    echo gnu/java/awt/peer/qt >> standard.omit
4677 fi
4678
4679 if test -z "${with_multisubdir}"; then
4680    builddotdot=.
4681 else
4682    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4683 fi
4684
4685 NATIVE=yes
4686
4687 # Which gcj do we use?
4688 which_gcj=default
4689 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4690 if test -n "${with_cross_host}"; then
4691   # We are being configured with a cross compiler. We can't
4692   # use ac_exeext, because that is for the target platform.
4693   NATIVE=no
4694   cross_host_exeext=
4695   case "${with_cross_host}" in
4696      *mingw* | *cygwin*)
4697          cross_host_exeext=.exe
4698      ;;
4699   esac
4700   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4701      if test x"$build_noncanonical" = x"$with_cross_host"; then
4702         # Ordinary cross (host!=target and host=build)
4703         which_gcj=built
4704      else
4705         # Canadian cross (host!=target and host!=build)
4706         which_gcj=cross
4707      fi
4708   else
4709      which_gcj=cross
4710   fi
4711 else
4712   # We are being configured with a native or crossed-native compiler
4713   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4714      if test x"$build" = x"$host"; then
4715         # True native build (host=target and host=build)
4716         which_gcj=built
4717      else
4718         # Crossed-native build (host=target and host!=build)
4719         which_gcj=cross
4720      fi
4721   else
4722      which_gcj=path
4723   fi
4724 fi
4725 case "${which_gcj}" in
4726    built)
4727       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4728       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4729       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4730    ;;
4731    cross)
4732       if test "x${with_newlib}" = "xyes"; then
4733          # FIXME (comment): Why is this needed?
4734          GCC_UNWIND_INCLUDE=
4735          GCJ="${target_noncanonical}-gcj"
4736       else
4737          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4738       fi
4739       ZIP='$(target_noncanonical)-fastjar'
4740       GCJH='$(target_noncanonical)-gcjh'
4741    ;;
4742    path)
4743       GCJ="gcj -B`${PWDCMD-pwd}`/"
4744       ## In this case, gcj is found outside the build tree.  However, zip is
4745       ## found in the build tree.
4746       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4747       GCJH=gcjh
4748    ;;
4749 esac
4750
4751
4752
4753
4754 # Create it, so that compile/link tests don't fail
4755 test -f libgcj.spec || touch libgcj.spec
4756
4757
4758
4759 # Set up to configure Classpath.
4760 # FIXME: no supported way to pass args in autoconf.
4761 ac_configure_args="$ac_configure_args --disable-load-library"
4762 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4763 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4764 dir1=`cd $srcdir && pwd`
4765 dir2=`pwd`
4766 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4767 ac_configure_args="$ac_configure_args --disable-core-jni"
4768 ac_configure_args="$ac_configure_args --disable-examples"
4769 ac_configure_args="$ac_configure_args --with-glibj=build"
4770 if test "$use_gtk_awt" != yes; then
4771   ac_configure_args="$ac_configure_args --disable-gtk-peer"
4772 fi
4773 if test "$use_qt_awt" != yes; then
4774   ac_configure_args="$ac_configure_args --disable-qt-peer"
4775 else
4776   # We need this as qt is disabled by default in classpath.
4777   ac_configure_args="$ac_configure_args --enable-qt-peer"
4778 fi
4779
4780 # Only use libltdl for non-newlib builds.
4781 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4782      case $enable_ltdl_convenience in
4783   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4784 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4785    { (exit 1); exit 1; }; } ;;
4786   "") enable_ltdl_convenience=yes
4787       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4788   esac
4789   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4790   INCLTDL='-I${top_srcdir}/''libltdl'
4791
4792
4793    DIRLTDL=libltdl
4794
4795 cat >>confdefs.h <<\_ACEOF
4796 #define USE_LTDL 1
4797 _ACEOF
4798
4799    # Sigh.  Libtool's macro doesn't do the right thing.
4800    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4801    # FIXME: this is a hack.
4802    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4803    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4804 fi
4805
4806
4807
4808 # Check whether --enable-shared or --disable-shared was given.
4809 if test "${enable_shared+set}" = set; then
4810   enableval="$enable_shared"
4811   p=${PACKAGE-default}
4812 case $enableval in
4813 yes) enable_shared=yes ;;
4814 no) enable_shared=no ;;
4815 *)
4816   enable_shared=no
4817   # Look at the argument we got.  We use all the common list separators.
4818   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4819   for pkg in $enableval; do
4820     if test "X$pkg" = "X$p"; then
4821       enable_shared=yes
4822     fi
4823   done
4824   IFS="$ac_save_ifs"
4825   ;;
4826 esac
4827 else
4828   enable_shared=yes
4829 fi;
4830 # Check whether --enable-static or --disable-static was given.
4831 if test "${enable_static+set}" = set; then
4832   enableval="$enable_static"
4833   p=${PACKAGE-default}
4834 case $enableval in
4835 yes) enable_static=yes ;;
4836 no) enable_static=no ;;
4837 *)
4838   enable_static=no
4839   # Look at the argument we got.  We use all the common list separators.
4840   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4841   for pkg in $enableval; do
4842     if test "X$pkg" = "X$p"; then
4843       enable_static=yes
4844     fi
4845   done
4846   IFS="$ac_save_ifs"
4847   ;;
4848 esac
4849 else
4850   enable_static=yes
4851 fi;
4852 # Check whether --enable-fast-install or --disable-fast-install was given.
4853 if test "${enable_fast_install+set}" = set; then
4854   enableval="$enable_fast_install"
4855   p=${PACKAGE-default}
4856 case $enableval in
4857 yes) enable_fast_install=yes ;;
4858 no) enable_fast_install=no ;;
4859 *)
4860   enable_fast_install=no
4861   # Look at the argument we got.  We use all the common list separators.
4862   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4863   for pkg in $enableval; do
4864     if test "X$pkg" = "X$p"; then
4865       enable_fast_install=yes
4866     fi
4867   done
4868   IFS="$ac_save_ifs"
4869   ;;
4870 esac
4871 else
4872   enable_fast_install=yes
4873 fi;
4874
4875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4876 if test "${with_gnu_ld+set}" = set; then
4877   withval="$with_gnu_ld"
4878   test "$withval" = no || with_gnu_ld=yes
4879 else
4880   with_gnu_ld=no
4881 fi;
4882 ac_prog=ld
4883 if test "$GCC" = yes; then
4884   # Check if gcc -print-prog-name=ld gives a path.
4885   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4886 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4887   case $host in
4888   *-*-mingw*)
4889     # gcc leaves a trailing carriage return which upsets mingw
4890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4891   *)
4892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4893   esac
4894   case $ac_prog in
4895     # Accept absolute paths.
4896     [\\/]* | [A-Za-z]:[\\/]*)
4897       re_direlt='/[^/][^/]*/\.\./'
4898       # Canonicalize the path of ld
4899       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4901         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4902       done
4903       test -z "$LD" && LD="$ac_prog"
4904       ;;
4905   "")
4906     # If it fails, then pretend we aren't using GCC.
4907     ac_prog=ld
4908     ;;
4909   *)
4910     # If it is relative, then search for the first ld in PATH.
4911     with_gnu_ld=unknown
4912     ;;
4913   esac
4914 elif test "$with_gnu_ld" = yes; then
4915   echo "$as_me:$LINENO: checking for GNU ld" >&5
4916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4917 else
4918   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4920 fi
4921 if test "${lt_cv_path_LD+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   if test -z "$LD"; then
4925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4926   for ac_dir in $PATH; do
4927     test -z "$ac_dir" && ac_dir=.
4928     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929       lt_cv_path_LD="$ac_dir/$ac_prog"
4930       # Check to see if the program is GNU ld.  I'd rather use --version,
4931       # but apparently some GNU ld's only accept -v.
4932       # Break only if it was the GNU/non-GNU ld that we prefer.
4933       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4934         test "$with_gnu_ld" != no && break
4935       else
4936         test "$with_gnu_ld" != yes && break
4937       fi
4938     fi
4939   done
4940   IFS="$ac_save_ifs"
4941 else
4942   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4943 fi
4944 fi
4945
4946 LD="$lt_cv_path_LD"
4947 if test -n "$LD"; then
4948   echo "$as_me:$LINENO: result: $LD" >&5
4949 echo "${ECHO_T}$LD" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4956    { (exit 1); exit 1; }; }
4957 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4963 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4964   lt_cv_prog_gnu_ld=yes
4965 else
4966   lt_cv_prog_gnu_ld=no
4967 fi
4968 fi
4969 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4970 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4971 with_gnu_ld=$lt_cv_prog_gnu_ld
4972
4973
4974 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4975 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4976 if test "${lt_cv_ld_reload_flag+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   lt_cv_ld_reload_flag='-r'
4980 fi
4981 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4982 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4983 reload_flag=$lt_cv_ld_reload_flag
4984 test -n "$reload_flag" && reload_flag=" $reload_flag"
4985
4986 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4987 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4988 if test "${lt_cv_path_NM+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test -n "$NM"; then
4992   # Let the user override the test.
4993   lt_cv_path_NM="$NM"
4994 else
4995   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4996   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4997     test -z "$ac_dir" && ac_dir=.
4998     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4999     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5000       # Check to see if the nm accepts a BSD-compat flag.
5001       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002       #   nm: unknown option "B" ignored
5003       # Tru64's nm complains that /dev/null is an invalid object file
5004       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5005         lt_cv_path_NM="$tmp_nm -B"
5006         break
5007       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5008         lt_cv_path_NM="$tmp_nm -p"
5009         break
5010       else
5011         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5012         continue # so that we can try to find one that supports BSD flags
5013       fi
5014     fi
5015   done
5016   IFS="$ac_save_ifs"
5017   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5018 fi
5019 fi
5020
5021 NM="$lt_cv_path_NM"
5022 echo "$as_me:$LINENO: result: $NM" >&5
5023 echo "${ECHO_T}$NM" >&6
5024
5025 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5026 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5027 if test "${lt_cv_deplibs_check_method+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   lt_cv_file_magic_cmd='$MAGIC_CMD'
5031 lt_cv_file_magic_test_file=
5032 lt_cv_deplibs_check_method='unknown'
5033 # Need to set the preceding variable on all platforms that support
5034 # interlibrary dependencies.
5035 # 'none' -- dependencies not supported.
5036 # `unknown' -- same as none, but documents that we really don't know.
5037 # 'pass_all' -- all dependencies passed with no checks.
5038 # 'test_compile' -- check by making test program.
5039 # 'file_magic [regex]' -- check by looking for files in library path
5040 # which responds to the $file_magic_cmd with a given egrep regex.
5041 # If you have `file' or equivalent on your system and you're not sure
5042 # whether `pass_all' will *always* work, you probably want this one.
5043
5044 case $host_os in
5045 aix*)
5046   lt_cv_deplibs_check_method=pass_all
5047   ;;
5048
5049 beos*)
5050   lt_cv_deplibs_check_method=pass_all
5051   ;;
5052
5053 bsdi4*)
5054   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5055   lt_cv_file_magic_cmd='/usr/bin/file -L'
5056   lt_cv_file_magic_test_file=/shlib/libc.so
5057   ;;
5058
5059 cygwin* | mingw* |pw32*)
5060   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5061   lt_cv_file_magic_cmd='$OBJDUMP -f'
5062   ;;
5063
5064 darwin* | rhapsody*)
5065   # this will be overwritten by pass_all, but leave it in just in case
5066   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5067   lt_cv_file_magic_cmd='/usr/bin/file -L'
5068   case "$host_os" in
5069   rhapsody* | darwin1.012)
5070     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5071     ;;
5072   *) # Darwin 1.3 on
5073     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5074     ;;
5075   esac
5076   lt_cv_deplibs_check_method=pass_all
5077   ;;
5078
5079 freebsd* | kfreebsd*-gnu)
5080   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5081     case $host_cpu in
5082     i*86 )
5083       # Not sure whether the presence of OpenBSD here was a mistake.
5084       # Let's accept both of them until this is cleared up.
5085       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5086       lt_cv_file_magic_cmd=/usr/bin/file
5087       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5088       ;;
5089     esac
5090   else
5091     lt_cv_deplibs_check_method=pass_all
5092   fi
5093   ;;
5094
5095 gnu*)
5096   lt_cv_deplibs_check_method=pass_all
5097   ;;
5098
5099 hpux10.20*|hpux11*)
5100   case $host_cpu in
5101   hppa*)
5102     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5103     lt_cv_file_magic_cmd=/usr/bin/file
5104     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5105     ;;
5106   ia64*)
5107     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108     lt_cv_file_magic_cmd=/usr/bin/file
5109     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5110     ;;
5111   esac
5112   ;;
5113
5114 irix5* | irix6*)
5115   case $host_os in
5116   irix5*)
5117     # this will be overridden with pass_all, but let us keep it just in case
5118     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5119     ;;
5120   *)
5121     case $LD in
5122     *-32|*"-32 ") libmagic=32-bit;;
5123     *-n32|*"-n32 ") libmagic=N32;;
5124     *-64|*"-64 ") libmagic=64-bit;;
5125     *) libmagic=never-match;;
5126     esac
5127     # this will be overridden with pass_all, but let us keep it just in case
5128     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5129     ;;
5130   esac
5131   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5132   lt_cv_deplibs_check_method=pass_all
5133   ;;
5134
5135 # This must be Linux ELF.
5136 linux-gnu*)
5137   lt_cv_deplibs_check_method=pass_all
5138   ;;
5139
5140 netbsd* | knetbsd*-gnu)
5141   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5142     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5143   else
5144     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5145   fi
5146   ;;
5147
5148 newsos6)
5149   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5150   lt_cv_file_magic_cmd=/usr/bin/file
5151   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5152   ;;
5153
5154 osf3* | osf4* | osf5*)
5155   # this will be overridden with pass_all, but let us keep it just in case
5156   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5157   lt_cv_file_magic_test_file=/shlib/libc.so
5158   lt_cv_deplibs_check_method=pass_all
5159   ;;
5160
5161 sco3.2v5*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 solaris*)
5166   lt_cv_deplibs_check_method=pass_all
5167   lt_cv_file_magic_test_file=/lib/libc.so
5168   ;;
5169
5170 sysv5uw[78]* | sysv4*uw2*)
5171   lt_cv_deplibs_check_method=pass_all
5172   ;;
5173
5174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5175   case $host_vendor in
5176   ncr)
5177     lt_cv_deplibs_check_method=pass_all
5178     ;;
5179   motorola)
5180     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]'
5181     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5182     ;;
5183   esac
5184   ;;
5185 esac
5186
5187 fi
5188 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5190 file_magic_cmd=$lt_cv_file_magic_cmd
5191 deplibs_check_method=$lt_cv_deplibs_check_method
5192
5193
5194
5195
5196 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5197
5198 # find the maximum length of command line arguments
5199 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5200 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5201 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204     i=0
5205   teststring="ABCD"
5206
5207   case $build_os in
5208   msdosdjgpp*)
5209     # On DJGPP, this test can blow up pretty badly due to problems in libc
5210     # (any single argument exceeding 2000 bytes causes a buffer overrun
5211     # during glob expansion).  Even if it were fixed, the result of this
5212     # check would be larger than it should be.
5213     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5214     ;;
5215
5216   cygwin* | mingw*)
5217     # On Win9x/ME, this test blows up -- it succeeds, but takes
5218     # about 5 minutes as the teststring grows exponentially.
5219     # Worse, since 9x/ME are not pre-emptively multitasking,
5220     # you end up with a "frozen" computer, even though with patience
5221     # the test eventually succeeds (with a max line length of 256k).
5222     # Instead, let's just punt: use the minimum linelength reported by
5223     # all of the supported platforms: 8192 (on NT/2K/XP).
5224     lt_cv_sys_max_cmd_len=8192;
5225     ;;
5226
5227   amigaos*)
5228     # On AmigaOS with pdksh, this test takes hours, literally.
5229     # So we just punt and use a minimum line length of 8192.
5230     lt_cv_sys_max_cmd_len=8192;
5231     ;;
5232
5233   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5234     # This has been around since 386BSD, at least.  Likely further.
5235     if test -x /sbin/sysctl; then
5236       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5237     elif test -x /usr/sbin/sysctl; then
5238       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5239     else
5240       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5241     fi
5242     # And add a safety zone
5243     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5245     ;;
5246   esac
5247
5248 fi
5249
5250 if test -n "$lt_cv_sys_max_cmd_len" ; then
5251   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5252 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5253 else
5254   echo "$as_me:$LINENO: result: none" >&5
5255 echo "${ECHO_T}none" >&6
5256 fi
5257
5258
5259 # Only perform the check for file, if the check method requires it
5260 case $deplibs_check_method in
5261 file_magic*)
5262   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5263     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5264 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   case $MAGIC_CMD in
5269   /*)
5270   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5271   ;;
5272   ?:/*)
5273   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5274   ;;
5275   *)
5276   ac_save_MAGIC_CMD="$MAGIC_CMD"
5277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5278   ac_dummy="/usr/bin:$PATH"
5279   for ac_dir in $ac_dummy; do
5280     test -z "$ac_dir" && ac_dir=.
5281     if test -f $ac_dir/${ac_tool_prefix}file; then
5282       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5283       if test -n "$file_magic_test_file"; then
5284         case $deplibs_check_method in
5285         "file_magic "*)
5286           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5287           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5288           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5289             egrep "$file_magic_regex" > /dev/null; then
5290             :
5291           else
5292             cat <<EOF 1>&2
5293
5294 *** Warning: the command libtool uses to detect shared libraries,
5295 *** $file_magic_cmd, produces output that libtool cannot recognize.
5296 *** The result is that libtool may fail to recognize shared libraries
5297 *** as such.  This will affect the creation of libtool libraries that
5298 *** depend on shared libraries, but programs linked with such libtool
5299 *** libraries will work regardless of this problem.  Nevertheless, you
5300 *** may want to report the problem to your system manager and/or to
5301 *** bug-libtool@gnu.org
5302
5303 EOF
5304           fi ;;
5305         esac
5306       fi
5307       break
5308     fi
5309   done
5310   IFS="$ac_save_ifs"
5311   MAGIC_CMD="$ac_save_MAGIC_CMD"
5312   ;;
5313 esac
5314 fi
5315
5316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317 if test -n "$MAGIC_CMD"; then
5318   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5319 echo "${ECHO_T}$MAGIC_CMD" >&6
5320 else
5321   echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323 fi
5324
5325 if test -z "$lt_cv_path_MAGIC_CMD"; then
5326   if test -n "$ac_tool_prefix"; then
5327     echo "$as_me:$LINENO: checking for file" >&5
5328 echo $ECHO_N "checking for file... $ECHO_C" >&6
5329 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   case $MAGIC_CMD in
5333   /*)
5334   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5335   ;;
5336   ?:/*)
5337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5338   ;;
5339   *)
5340   ac_save_MAGIC_CMD="$MAGIC_CMD"
5341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5342   ac_dummy="/usr/bin:$PATH"
5343   for ac_dir in $ac_dummy; do
5344     test -z "$ac_dir" && ac_dir=.
5345     if test -f $ac_dir/file; then
5346       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5347       if test -n "$file_magic_test_file"; then
5348         case $deplibs_check_method in
5349         "file_magic "*)
5350           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5351           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5352           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5353             egrep "$file_magic_regex" > /dev/null; then
5354             :
5355           else
5356             cat <<EOF 1>&2
5357
5358 *** Warning: the command libtool uses to detect shared libraries,
5359 *** $file_magic_cmd, produces output that libtool cannot recognize.
5360 *** The result is that libtool may fail to recognize shared libraries
5361 *** as such.  This will affect the creation of libtool libraries that
5362 *** depend on shared libraries, but programs linked with such libtool
5363 *** libraries will work regardless of this problem.  Nevertheless, you
5364 *** may want to report the problem to your system manager and/or to
5365 *** bug-libtool@gnu.org
5366
5367 EOF
5368           fi ;;
5369         esac
5370       fi
5371       break
5372     fi
5373   done
5374   IFS="$ac_save_ifs"
5375   MAGIC_CMD="$ac_save_MAGIC_CMD"
5376   ;;
5377 esac
5378 fi
5379
5380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5381 if test -n "$MAGIC_CMD"; then
5382   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5383 echo "${ECHO_T}$MAGIC_CMD" >&6
5384 else
5385   echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387 fi
5388
5389   else
5390     MAGIC_CMD=:
5391   fi
5392 fi
5393
5394   fi
5395   ;;
5396 esac
5397
5398 if test -n "$ac_tool_prefix"; then
5399   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_RANLIB+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   if test -n "$RANLIB"; then
5407   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414   for ac_exec_ext in '' $ac_executable_extensions; do
5415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421 done
5422
5423 fi
5424 fi
5425 RANLIB=$ac_cv_prog_RANLIB
5426 if test -n "$RANLIB"; then
5427   echo "$as_me:$LINENO: result: $RANLIB" >&5
5428 echo "${ECHO_T}$RANLIB" >&6
5429 else
5430   echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5432 fi
5433
5434 fi
5435 if test -z "$ac_cv_prog_RANLIB"; then
5436   ac_ct_RANLIB=$RANLIB
5437   # Extract the first word of "ranlib", so it can be a program name with args.
5438 set dummy ranlib; ac_word=$2
5439 echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   if test -n "$ac_ct_RANLIB"; then
5445   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452   for ac_exec_ext in '' $ac_executable_extensions; do
5453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_prog_ac_ct_RANLIB="ranlib"
5455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459 done
5460
5461   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5462 fi
5463 fi
5464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5465 if test -n "$ac_ct_RANLIB"; then
5466   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5468 else
5469   echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6
5471 fi
5472
5473   RANLIB=$ac_ct_RANLIB
5474 else
5475   RANLIB="$ac_cv_prog_RANLIB"
5476 fi
5477
5478 if test -n "$ac_tool_prefix"; then
5479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}strip; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_prog_STRIP+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   if test -n "$STRIP"; then
5487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494   for ac_exec_ext in '' $ac_executable_extensions; do
5495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501 done
5502
5503 fi
5504 fi
5505 STRIP=$ac_cv_prog_STRIP
5506 if test -n "$STRIP"; then
5507   echo "$as_me:$LINENO: result: $STRIP" >&5
5508 echo "${ECHO_T}$STRIP" >&6
5509 else
5510   echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5512 fi
5513
5514 fi
5515 if test -z "$ac_cv_prog_STRIP"; then
5516   ac_ct_STRIP=$STRIP
5517   # Extract the first word of "strip", so it can be a program name with args.
5518 set dummy strip; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   if test -n "$ac_ct_STRIP"; then
5525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532   for ac_exec_ext in '' $ac_executable_extensions; do
5533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_prog_ac_ct_STRIP="strip"
5535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539 done
5540
5541   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5542 fi
5543 fi
5544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5545 if test -n "$ac_ct_STRIP"; then
5546   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5547 echo "${ECHO_T}$ac_ct_STRIP" >&6
5548 else
5549   echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551 fi
5552
5553   STRIP=$ac_ct_STRIP
5554 else
5555   STRIP="$ac_cv_prog_STRIP"
5556 fi
5557
5558
5559 # Check for any special flags to pass to ltconfig.
5560 libtool_flags="--cache-file=$cache_file"
5561 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5562 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5563 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5564 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5565 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5566
5567
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570   enableval="$enable_libtool_lock"
5571
5572 fi;
5573 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5574 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5575
5576
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5579   withval="$with_pic"
5580   pic_mode="$withval"
5581 else
5582   pic_mode=default
5583 fi;
5584 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5585 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5586
5587 # Some flags need to be propagated to the compiler or linker for good
5588 # libtool support.
5589 case $host in
5590 *-*-irix6*)
5591   # Find out which ABI we are using.
5592   echo '#line 5592 "configure"' > conftest.$ac_ext
5593   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; then
5598    if test "$lt_cv_prog_gnu_ld" = yes; then
5599     case `/usr/bin/file conftest.$ac_objext` in
5600     *32-bit*)
5601       LD="${LD-ld} -melf32bsmip"
5602       ;;
5603     *N32*)
5604       LD="${LD-ld} -melf32bmipn32"
5605       ;;
5606     *64-bit*)
5607       LD="${LD-ld} -melf64bmip"
5608       ;;
5609     esac
5610    else
5611     case `/usr/bin/file conftest.$ac_objext` in
5612     *32-bit*)
5613       LD="${LD-ld} -32"
5614       ;;
5615     *N32*)
5616       LD="${LD-ld} -n32"
5617       ;;
5618     *64-bit*)
5619       LD="${LD-ld} -64"
5620       ;;
5621     esac
5622    fi
5623   fi
5624   rm -rf conftest*
5625   ;;
5626
5627 ia64-*-hpux*)
5628   # Find out which ABI we are using.
5629   echo 'int i;' > conftest.$ac_ext
5630   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631   (eval $ac_compile) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; then
5635     case "`/usr/bin/file conftest.o`" in
5636     *ELF-32*)
5637       HPUX_IA64_MODE="32"
5638       ;;
5639     *ELF-64*)
5640       HPUX_IA64_MODE="64"
5641       ;;
5642     esac
5643   fi
5644   rm -rf conftest*
5645   ;;
5646
5647 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5648   # Find out which ABI we are using.
5649   echo 'int i;' > conftest.$ac_ext
5650   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>&5
5652   ac_status=$?
5653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654   (exit $ac_status); }; then
5655     case "`/usr/bin/file conftest.o`" in
5656     *32-bit*)
5657       case $host in
5658         x86_64-*linux*)
5659           LD="${LD-ld} -m elf_i386"
5660           ;;
5661         ppc64-*linux*|powerpc64-*linux*)
5662           LD="${LD-ld} -m elf32ppclinux"
5663           ;;
5664         s390x-*linux*)
5665           LD="${LD-ld} -m elf_s390"
5666           ;;
5667         sparc64-*linux*)
5668           LD="${LD-ld} -m elf32_sparc"
5669           ;;
5670       esac
5671       ;;
5672     *64-bit*)
5673       case $host in
5674         x86_64-*linux*)
5675           LD="${LD-ld} -m elf_x86_64"
5676           ;;
5677         ppc*-*linux*|powerpc*-*linux*)
5678           LD="${LD-ld} -m elf64ppc"
5679           ;;
5680         s390*-*linux*)
5681           LD="${LD-ld} -m elf64_s390"
5682           ;;
5683         sparc*-*linux*)
5684           LD="${LD-ld} -m elf64_sparc"
5685           ;;
5686       esac
5687       ;;
5688     esac
5689   fi
5690   rm -rf conftest*
5691   ;;
5692
5693 *-*-sco3.2v5*)
5694   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5695   SAVE_CFLAGS="$CFLAGS"
5696   CFLAGS="$CFLAGS -belf"
5697   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5698 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5699 if test "${lt_cv_cc_needs_belf+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702
5703
5704      ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
5710      if test x$gcc_no_link = xyes; then
5711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5713    { (exit 1); exit 1; }; }
5714 fi
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721
5722 int
5723 main ()
5724 {
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732   (eval $ac_link) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"
5740                          || test ! -s conftest.err'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; } &&
5746          { ac_try='test -s conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   lt_cv_cc_needs_belf=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 lt_cv_cc_needs_belf=no
5758 fi
5759 rm -f conftest.err conftest.$ac_objext \
5760       conftest$ac_exeext conftest.$ac_ext
5761      ac_ext=c
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
5767 fi
5768 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5769 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5770   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5771     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5772     CFLAGS="$SAVE_CFLAGS"
5773   fi
5774   ;;
5775
5776
5777 esac
5778
5779
5780 # Save cache, so that ltconfig can load it
5781 cat >confcache <<\_ACEOF
5782 # This file is a shell script that caches the results of configure
5783 # tests run on this system so they can be shared between configure
5784 # scripts and configure runs, see configure's option --config-cache.
5785 # It is not useful on other systems.  If it contains results you don't
5786 # want to keep, you may remove or edit it.
5787 #
5788 # config.status only pays attention to the cache file if you give it
5789 # the --recheck option to rerun configure.
5790 #
5791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5793 # following values.
5794
5795 _ACEOF
5796
5797 # The following way of writing the cache mishandles newlines in values,
5798 # but we know of no workaround that is simple, portable, and efficient.
5799 # So, don't put newlines in cache variables' values.
5800 # Ultrix sh set writes to stderr and can't be redirected directly,
5801 # and sets the high bit in the cache file unless we assign to the vars.
5802 {
5803   (set) 2>&1 |
5804     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5805     *ac_space=\ *)
5806       # `set' does not quote correctly, so add quotes (double-quote
5807       # substitution turns \\\\ into \\, and sed turns \\ into \).
5808       sed -n \
5809         "s/'/'\\\\''/g;
5810           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5811       ;;
5812     *)
5813       # `set' quotes correctly as required by POSIX, so do not add quotes.
5814       sed -n \
5815         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5816       ;;
5817     esac;
5818 } |
5819   sed '
5820      t clear
5821      : clear
5822      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823      t end
5824      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5825      : end' >>confcache
5826 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5827   if test -w $cache_file; then
5828     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5829     cat confcache >$cache_file
5830   else
5831     echo "not updating unwritable cache $cache_file"
5832   fi
5833 fi
5834 rm -f confcache
5835
5836 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5837 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5838 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5839 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5840 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5841 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5842 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5843 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5844 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5845 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5846 echo "$as_me: error: libtool configure failed" >&2;}
5847    { (exit 1); exit 1; }; }
5848
5849 # Reload cache, that may have been modified by ltconfig
5850 if test -r "$cache_file"; then
5851   # Some versions of bash will fail to source /dev/null (special
5852   # files actually), so we avoid doing that.
5853   if test -f "$cache_file"; then
5854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5855 echo "$as_me: loading cache $cache_file" >&6;}
5856     case $cache_file in
5857       [\\/]* | ?:[\\/]* ) . $cache_file;;
5858       *)                      . ./$cache_file;;
5859     esac
5860   fi
5861 else
5862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5863 echo "$as_me: creating cache $cache_file" >&6;}
5864   >$cache_file
5865 fi
5866
5867
5868 # This can be used to rebuild libtool when needed
5869 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5870
5871 # Always use our own libtool.
5872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5873
5874 # Redirect the config.log output again, so that the ltconfig log is not
5875 # clobbered by the next message.
5876 exec 5>>./config.log
5877
5878 ac_ext=cc
5879 ac_cpp='$CXXCPP $CPPFLAGS'
5880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5884 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5885 if test -z "$CXXCPP"; then
5886   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889       # Double quotes because CXXCPP needs to be expanded
5890     for CXXCPP in "$CXX -E" "/lib/cpp"
5891     do
5892       ac_preproc_ok=false
5893 for ac_cxx_preproc_warn_flag in '' yes
5894 do
5895   # Use a header file that comes with gcc, so configuring glibc
5896   # with a fresh cross-compiler works.
5897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898   # <limits.h> exists even on freestanding compilers.
5899   # On the NeXT, cc -E runs the code through the compiler's parser,
5900   # not just through cpp. "Syntax error" is here to catch this case.
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912                      Syntax error
5913 _ACEOF
5914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null; then
5922   if test -s conftest.err; then
5923     ac_cpp_err=$ac_cxx_preproc_warn_flag
5924     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5925   else
5926     ac_cpp_err=
5927   fi
5928 else
5929   ac_cpp_err=yes
5930 fi
5931 if test -z "$ac_cpp_err"; then
5932   :
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937   # Broken: fails on valid input.
5938 continue
5939 fi
5940 rm -f conftest.err conftest.$ac_ext
5941
5942   # OK, works on sane cases.  Now check whether non-existent headers
5943   # can be detected and how.
5944   cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950 #include <ac_nonexistent.h>
5951 _ACEOF
5952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } >/dev/null; then
5960   if test -s conftest.err; then
5961     ac_cpp_err=$ac_cxx_preproc_warn_flag
5962     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5963   else
5964     ac_cpp_err=
5965   fi
5966 else
5967   ac_cpp_err=yes
5968 fi
5969 if test -z "$ac_cpp_err"; then
5970   # Broken: success on invalid input.
5971 continue
5972 else
5973   echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976   # Passes both tests.
5977 ac_preproc_ok=:
5978 break
5979 fi
5980 rm -f conftest.err conftest.$ac_ext
5981
5982 done
5983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984 rm -f conftest.err conftest.$ac_ext
5985 if $ac_preproc_ok; then
5986   break
5987 fi
5988
5989     done
5990     ac_cv_prog_CXXCPP=$CXXCPP
5991
5992 fi
5993   CXXCPP=$ac_cv_prog_CXXCPP
5994 else
5995   ac_cv_prog_CXXCPP=$CXXCPP
5996 fi
5997 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5998 echo "${ECHO_T}$CXXCPP" >&6
5999 ac_preproc_ok=false
6000 for ac_cxx_preproc_warn_flag in '' yes
6001 do
6002   # Use a header file that comes with gcc, so configuring glibc
6003   # with a fresh cross-compiler works.
6004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6005   # <limits.h> exists even on freestanding compilers.
6006   # On the NeXT, cc -E runs the code through the compiler's parser,
6007   # not just through cpp. "Syntax error" is here to catch this case.
6008   cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #ifdef __STDC__
6015 # include <limits.h>
6016 #else
6017 # include <assert.h>
6018 #endif
6019                      Syntax error
6020 _ACEOF
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } >/dev/null; then
6029   if test -s conftest.err; then
6030     ac_cpp_err=$ac_cxx_preproc_warn_flag
6031     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6032   else
6033     ac_cpp_err=
6034   fi
6035 else
6036   ac_cpp_err=yes
6037 fi
6038 if test -z "$ac_cpp_err"; then
6039   :
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044   # Broken: fails on valid input.
6045 continue
6046 fi
6047 rm -f conftest.err conftest.$ac_ext
6048
6049   # OK, works on sane cases.  Now check whether non-existent headers
6050   # can be detected and how.
6051   cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 #include <ac_nonexistent.h>
6058 _ACEOF
6059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } >/dev/null; then
6067   if test -s conftest.err; then
6068     ac_cpp_err=$ac_cxx_preproc_warn_flag
6069     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6070   else
6071     ac_cpp_err=
6072   fi
6073 else
6074   ac_cpp_err=yes
6075 fi
6076 if test -z "$ac_cpp_err"; then
6077   # Broken: success on invalid input.
6078 continue
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083   # Passes both tests.
6084 ac_preproc_ok=:
6085 break
6086 fi
6087 rm -f conftest.err conftest.$ac_ext
6088
6089 done
6090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6091 rm -f conftest.err conftest.$ac_ext
6092 if $ac_preproc_ok; then
6093   :
6094 else
6095   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098 See \`config.log' for more details." >&2;}
6099    { (exit 1); exit 1; }; }
6100 fi
6101
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107
6108
6109
6110 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6111 lt_save_CC="$CC"
6112 lt_save_CFLAGS="$CFLAGS"
6113 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6114 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6115 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6116 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6117 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6118 deplibs_check_method="$deplibs_check_method" \
6119 file_magic_cmd="$file_magic_cmd" \
6120 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6121 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6122 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6123 echo "$as_me: error: libtool tag configuration failed" >&2;}
6124    { (exit 1); exit 1; }; }
6125 CC="$lt_save_CC"
6126 CFLAGS="$lt_save_CFLAGS"
6127
6128 # Redirect the config.log output again, so that the ltconfig log is not
6129 # clobbered by the next message.
6130 exec 5>>./config.log
6131
6132
6133
6134
6135
6136
6137
6138 for ac_prog in gcj
6139 do
6140   # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6144 if test "${ac_cv_prog_GCJ+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   if test -n "$GCJ"; then
6148   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_exec_ext in '' $ac_executable_extensions; do
6156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157     ac_cv_prog_GCJ="$ac_prog"
6158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162 done
6163
6164 fi
6165 fi
6166 GCJ=$ac_cv_prog_GCJ
6167 if test -n "$GCJ"; then
6168   echo "$as_me:$LINENO: result: $GCJ" >&5
6169 echo "${ECHO_T}$GCJ" >&6
6170 else
6171   echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6173 fi
6174
6175   test -n "$GCJ" && break
6176 done
6177 test -n "$GCJ" || GCJ="gcj"
6178
6179 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6180 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6181    { (exit 1); exit 1; }; }
6182 if test "x${GCJFLAGS-unset}" = xunset; then
6183    GCJFLAGS="-g -O2"
6184 fi
6185
6186
6187 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6188
6189 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6190 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6191 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6195   # We make a subdir and do the tests there.  Otherwise we can end up
6196   # making bogus files that we don't know about and never remove.  For
6197   # instance it was reported that on HP-UX the gcc test will end up
6198   # making a dummy file named `D' -- because `-MD' means `put the output
6199   # in D'.
6200   mkdir conftest.dir
6201   # Copy depcomp to subdir because otherwise we won't find it if we're
6202   # using a relative directory.
6203   cp "$am_depcomp" conftest.dir
6204   cd conftest.dir
6205   # We will build objects and dependencies in a subdirectory because
6206   # it helps to detect inapplicable dependency modes.  For instance
6207   # both Tru64's cc and ICC support -MD to output dependencies as a
6208   # side effect of compilation, but ICC will put the dependencies in
6209   # the current directory while Tru64 will put them in the object
6210   # directory.
6211   mkdir sub
6212
6213   am_cv_GCJ_dependencies_compiler_type=none
6214   if test "$am_compiler_list" = ""; then
6215      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6216   fi
6217   for depmode in $am_compiler_list; do
6218     # Setup a source with many dependencies, because some compilers
6219     # like to wrap large dependency lists on column 80 (with \), and
6220     # we should not choose a depcomp mode which is confused by this.
6221     #
6222     # We need to recreate these files for each test, as the compiler may
6223     # overwrite some of them when testing with obscure command lines.
6224     # This happens at least with the AIX C compiler.
6225     : > sub/conftest.c
6226     for i in 1 2 3 4 5 6; do
6227       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6228       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6229       # Solaris 8's {/usr,}/bin/sh.
6230       touch sub/conftst$i.h
6231     done
6232     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6233
6234     case $depmode in
6235     nosideeffect)
6236       # after this tag, mechanisms are not by side-effect, so they'll
6237       # only be used when explicitly requested
6238       if test "x$enable_dependency_tracking" = xyes; then
6239         continue
6240       else
6241         break
6242       fi
6243       ;;
6244     none) break ;;
6245     esac
6246     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6247     # mode.  It turns out that the SunPro C++ compiler does not properly
6248     # handle `-M -o', and we need to detect this.
6249     if depmode=$depmode \
6250        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6251        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6252        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6253          >/dev/null 2>conftest.err &&
6254        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6255        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6256        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6257       # icc doesn't choke on unknown options, it will just issue warnings
6258       # or remarks (even with -Werror).  So we grep stderr for any message
6259       # that says an option was ignored or not supported.
6260       # When given -MP, icc 7.0 and 7.1 complain thusly:
6261       #   icc: Command line warning: ignoring option '-M'; no argument required
6262       # The diagnosis changed in icc 8.0:
6263       #   icc: Command line remark: option '-MP' not supported
6264       if (grep 'ignoring option' conftest.err ||
6265           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6266         am_cv_GCJ_dependencies_compiler_type=$depmode
6267         break
6268       fi
6269     fi
6270   done
6271
6272   cd ..
6273   rm -rf conftest.dir
6274 else
6275   am_cv_GCJ_dependencies_compiler_type=none
6276 fi
6277
6278 fi
6279 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6280 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6281 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6282
6283
6284
6285 if
6286   test "x$enable_dependency_tracking" != xno \
6287   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6288   am__fastdepGCJ_TRUE=
6289   am__fastdepGCJ_FALSE='#'
6290 else
6291   am__fastdepGCJ_TRUE='#'
6292   am__fastdepGCJ_FALSE=
6293 fi
6294
6295
6296
6297
6298 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6299 lt_save_CC="$CC"
6300 lt_save_CFLAGS="$CFLAGS"
6301 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6302 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6303 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6304 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6305 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6306 deplibs_check_method="$deplibs_check_method" \
6307 file_magic_cmd="$file_magic_cmd" \
6308 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6309 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6310 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6311 echo "$as_me: error: libtool tag configuration failed" >&2;}
6312    { (exit 1); exit 1; }; }
6313 CC="$lt_save_CC"
6314 CFLAGS="$lt_save_CFLAGS"
6315
6316 # Redirect the config.log output again, so that the ltconfig log is not
6317 # clobbered by the next message.
6318 exec 5>>./config.log
6319
6320
6321
6322 if test "x$CC" != xcc; then
6323   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6324 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6325 else
6326   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6327 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6328 fi
6329 set dummy $CC; ac_cc=`echo $2 |
6330                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6331 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340
6341 int
6342 main ()
6343 {
6344
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 # Make sure it works both with $CC and with simple cc.
6350 # We do the test twice because some compilers refuse to overwrite an
6351 # existing .o file with -o, though they will create one.
6352 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6353 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); } &&
6358    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); };
6363 then
6364   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6365   if test "x$CC" != xcc; then
6366     # Test first that cc exists at all.
6367     if { ac_try='cc -c conftest.$ac_ext >&5'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; }; then
6373       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6374       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } &&
6379          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); };
6384       then
6385         # cc works too.
6386         :
6387       else
6388         # cc exists but doesn't like -o.
6389         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6390       fi
6391     fi
6392   fi
6393 else
6394   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6395 fi
6396 rm -f conftest*
6397
6398 fi
6399 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6400   echo "$as_me:$LINENO: result: yes" >&5
6401 echo "${ECHO_T}yes" >&6
6402 else
6403   echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define NO_MINUS_C_MINUS_O 1
6408 _ACEOF
6409
6410 fi
6411
6412 # FIXME: we rely on the cache variable name because
6413 # there is no other way.
6414 set dummy $CC
6415 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6416 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6417    # Losing compiler, so override with the script.
6418    # FIXME: It is wrong to rewrite CC.
6419    # But if we don't then we get into trouble of one sort or another.
6420    # A longer-term fix would be to have automake use am__CC in this case,
6421    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6422    CC="$am_aux_dir/compile $CC"
6423 fi
6424
6425
6426
6427
6428 subdirs="$subdirs classpath libltdl"
6429
6430
6431 # The -no-testsuite modules omit the test subdir.
6432
6433
6434 if test -d $srcdir/testsuite; then
6435   TESTSUBDIR_TRUE=
6436   TESTSUBDIR_FALSE='#'
6437 else
6438   TESTSUBDIR_TRUE='#'
6439   TESTSUBDIR_FALSE=
6440 fi
6441
6442
6443 # Should the runtime set system properties by examining the
6444 # environment variable GCJ_PROPERTIES?
6445 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6446 if test "${enable_getenv_properties+set}" = set; then
6447   enableval="$enable_getenv_properties"
6448
6449 fi;
6450
6451 # Whether GCJ_PROPERTIES is used depends on the target.
6452 if test -z "$enable_getenv_properties"; then
6453    enable_getenv_properties=${enable_getenv_properties_default-yes}
6454 fi
6455 if test "$enable_getenv_properties" = no; then
6456
6457 cat >>confdefs.h <<\_ACEOF
6458 #define DISABLE_GETENV_PROPERTIES 1
6459 _ACEOF
6460
6461 fi
6462
6463 # Whether we should use arguments to main()
6464 if test -z "$enable_main_args"; then
6465    enable_main_args=${enable_main_args_default-yes}
6466 fi
6467 if test "$enable_main_args" = no; then
6468
6469 cat >>confdefs.h <<\_ACEOF
6470 #define DISABLE_MAIN_ARGS 1
6471 _ACEOF
6472
6473 fi
6474
6475
6476 # Should we use hashtable-based synchronization?
6477 # Currently works only for Linux X86/ia64
6478 # Typically faster and more space-efficient
6479 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6480 if test "${enable_hash_synchronization+set}" = set; then
6481   enableval="$enable_hash_synchronization"
6482
6483 fi;
6484
6485 if test -z "$enable_hash_synchronization"; then
6486    enable_hash_synchronization=$enable_hash_synchronization_default
6487 fi
6488
6489
6490 # Check whether --with-java-home or --without-java-home was given.
6491 if test "${with_java_home+set}" = set; then
6492   withval="$with_java_home"
6493   JAVA_HOME="${withval}"
6494 else
6495   JAVA_HOME=""
6496 fi;
6497
6498
6499 if test ! -z "$JAVA_HOME"; then
6500   JAVA_HOME_SET_TRUE=
6501   JAVA_HOME_SET_FALSE='#'
6502 else
6503   JAVA_HOME_SET_TRUE='#'
6504   JAVA_HOME_SET_FALSE=
6505 fi
6506
6507
6508
6509 # What is the native OS API for MinGW?
6510
6511 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6512 if test "${with_win32_nlsapi+set}" = set; then
6513   withval="$with_win32_nlsapi"
6514   case "${withval}" in
6515   ansi) with_win32_nlsapi=ansi ;;
6516   unicows) with_win32_nlsapi=unicows ;;
6517   unicode) with_win32_nlsapi=unicode ;;
6518   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6519 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6520    { (exit 1); exit 1; }; } ;;
6521 esac
6522 else
6523   with_win32_nlsapi=ansi
6524 fi;
6525
6526 case "${with_win32_nlsapi}" in
6527   unicows | unicode)
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define MINGW_LIBGCJ_UNICODE 1
6531 _ACEOF
6532
6533     ;;
6534 esac
6535
6536 # configure.host sets slow_pthread_self if the synchronization code should
6537 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6538 if test "${slow_pthread_self}" = "yes"; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define SLOW_PTHREAD_SELF 1
6542 _ACEOF
6543
6544 fi
6545
6546 # Check for gc debugging.  This option is handled both here and in the GC.
6547 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6548 if test "${enable_gc_debug+set}" = set; then
6549   enableval="$enable_gc_debug"
6550    if test "$enable_gc_debug" = "yes"; then
6551
6552 cat >>confdefs.h <<\_ACEOF
6553 #define LIBGCJ_GC_DEBUG 1
6554 _ACEOF
6555
6556   fi
6557 fi;
6558
6559 # See if the user has the interpreter included.
6560 # Check whether --enable-interpreter or --disable-interpreter was given.
6561 if test "${enable_interpreter+set}" = set; then
6562   enableval="$enable_interpreter"
6563   if test "$enable_interpreter" = yes; then
6564     # This can also be set in configure.host.
6565     libgcj_interpreter=yes
6566   elif test "$enable_interpreter" = no; then
6567     libgcj_interpreter=no
6568   fi
6569 fi;
6570
6571 if test "$libgcj_interpreter" = yes; then
6572
6573 cat >>confdefs.h <<\_ACEOF
6574 #define INTERPRETER 1
6575 _ACEOF
6576
6577 fi
6578 INTERPRETER="$libgcj_interpreter"
6579
6580
6581 echo "$as_me:$LINENO: checking for exception model to use" >&5
6582 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6583 ac_ext=cc
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6588
6589 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6590 if test "${enable_sjlj_exceptions+set}" = set; then
6591   enableval="$enable_sjlj_exceptions"
6592   :
6593 else
6594   cat > conftest.$ac_ext << EOF
6595 #line 6595 "configure"
6596 struct S { ~S(); };
6597 void bar();
6598 void foo()
6599 {
6600   S s;
6601   bar();
6602 }
6603 EOF
6604 old_CXXFLAGS="$CXXFLAGS"
6605 CXXFLAGS=-S
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607   (eval $ac_compile) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; then
6611   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6612     enable_sjlj_exceptions=yes
6613   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6614     enable_sjlj_exceptions=no
6615   fi
6616 fi
6617 CXXFLAGS="$old_CXXFLAGS"
6618 rm -f conftest*
6619 fi;
6620 if test x$enable_sjlj_exceptions = xyes; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define SJLJ_EXCEPTIONS 1
6624 _ACEOF
6625
6626   ac_exception_model_name=sjlj
6627 elif test x$enable_sjlj_exceptions = xno; then
6628   ac_exception_model_name="call frame"
6629 else
6630   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6631 echo "$as_me: error: unable to detect exception model" >&2;}
6632    { (exit 1); exit 1; }; }
6633 fi
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
6640 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6641 echo "${ECHO_T}$ac_exception_model_name" >&6
6642
6643 # If we are non using SJLJ exceptions, and this host does not have support
6644 # for unwinding from a signal handler, enable checked dereferences and divides.
6645 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6646   CHECKREFSPEC=-fcheck-references
6647   DIVIDESPEC=-fuse-divide-subroutine
6648   EXCEPTIONSPEC=
6649 fi
6650
6651 # See if the user wants to disable java.net.  This is the mildly
6652 # ugly way that we admit that target-side configuration sucks.
6653 # Check whether --enable-java-net or --disable-java-net was given.
6654 if test "${enable_java_net+set}" = set; then
6655   enableval="$enable_java_net"
6656
6657 fi;
6658
6659 # Whether java.net is built by default can depend on the target.
6660 if test -z "$enable_java_net"; then
6661    enable_java_net=${enable_java_net_default-yes}
6662 fi
6663 if test "$enable_java_net" = no; then
6664
6665 cat >>confdefs.h <<\_ACEOF
6666 #define DISABLE_JAVA_NET 1
6667 _ACEOF
6668
6669 fi
6670
6671 # See if the user wants to configure without libffi.  Some
6672 # architectures don't support it, and default values are set in
6673 # configure.host.
6674
6675 # Check whether --with-libffi or --without-libffi was given.
6676 if test "${with_libffi+set}" = set; then
6677   withval="$with_libffi"
6678   :
6679 else
6680   with_libffi=${with_libffi_default-yes}
6681 fi;
6682
6683 LIBFFI=
6684 LIBFFIINCS=
6685 if test "$with_libffi" != no; then
6686
6687 cat >>confdefs.h <<\_ACEOF
6688 #define USE_LIBFFI 1
6689 _ACEOF
6690
6691    LIBFFI=../libffi/libffi_convenience.la
6692    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6693 fi
6694
6695
6696
6697 # See if the user wants to disable JVMPI support.
6698 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6699 if test "${enable_jvmpi+set}" = set; then
6700   enableval="$enable_jvmpi"
6701
6702 fi;
6703
6704 if test "$enable_jvmpi" != no; then
6705
6706 cat >>confdefs.h <<\_ACEOF
6707 #define ENABLE_JVMPI 1
6708 _ACEOF
6709
6710 fi
6711
6712 # If the target is an eCos system, use the appropriate eCos
6713 # I/O routines.
6714 # FIXME: this should not be a local option but a global target
6715 # system; at present there is no eCos target.
6716 TARGET_ECOS=${PROCESS-"no"}
6717
6718 # Check whether --with-ecos or --without-ecos was given.
6719 if test "${with_ecos+set}" = set; then
6720   withval="$with_ecos"
6721   TARGET_ECOS="$with_ecos"
6722
6723 fi;
6724
6725 supply_backtrace=no
6726
6727 PLATFORM_INNER_NAT_HDRS=
6728 case "$TARGET_ECOS" in
6729    no) case "$host" in
6730       *mingw*)
6731             PLATFORM=Win32
6732             PLATFORMNET=Win32
6733             PLATFORMH=win32.h
6734
6735 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6736 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6737 LD_PROG=`$CC --print-prog-name=ld`
6738 LD_VERSION=`$LD_PROG --version`
6739 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6740 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6741 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6742   LD_OK="ok"
6743 else
6744   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6745     LD_OK="ok"
6746   fi
6747 fi
6748 if test "x$LD_OK" != x; then
6749   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6750 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6751 else
6752   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6753 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6754   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6755 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6756
6757 cat >>confdefs.h <<\_ACEOF
6758 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6759 _ACEOF
6760
6761 fi
6762       ;;
6763       *)
6764             PLATFORM=Posix
6765             PLATFORMNET=Posix
6766             PLATFORMH=posix.h
6767             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6768       ;;
6769       esac
6770       ;;
6771    *)
6772       PLATFORM=Ecos
6773       PLATFORMNET=NoNet
6774
6775 cat >>confdefs.h <<\_ACEOF
6776 #define ECOS 1
6777 _ACEOF
6778
6779       PLATFORMH=posix.h
6780       ;;
6781 esac
6782
6783           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6784
6785
6786 ac_ext=c
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6792 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6793 # On Suns, sometimes $CPP names a directory.
6794 if test -n "$CPP" && test -d "$CPP"; then
6795   CPP=
6796 fi
6797 if test -z "$CPP"; then
6798   if test "${ac_cv_prog_CPP+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801       # Double quotes because CPP needs to be expanded
6802     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6803     do
6804       ac_preproc_ok=false
6805 for ac_c_preproc_warn_flag in '' yes
6806 do
6807   # Use a header file that comes with gcc, so configuring glibc
6808   # with a fresh cross-compiler works.
6809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6810   # <limits.h> exists even on freestanding compilers.
6811   # On the NeXT, cc -E runs the code through the compiler's parser,
6812   # not just through cpp. "Syntax error" is here to catch this case.
6813   cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h.  */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h.  */
6819 #ifdef __STDC__
6820 # include <limits.h>
6821 #else
6822 # include <assert.h>
6823 #endif
6824                      Syntax error
6825 _ACEOF
6826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828   ac_status=$?
6829   grep -v '^ *+' conftest.er1 >conftest.err
6830   rm -f conftest.er1
6831   cat conftest.err >&5
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); } >/dev/null; then
6834   if test -s conftest.err; then
6835     ac_cpp_err=$ac_c_preproc_warn_flag
6836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6837   else
6838     ac_cpp_err=
6839   fi
6840 else
6841   ac_cpp_err=yes
6842 fi
6843 if test -z "$ac_cpp_err"; then
6844   :
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849   # Broken: fails on valid input.
6850 continue
6851 fi
6852 rm -f conftest.err conftest.$ac_ext
6853
6854   # OK, works on sane cases.  Now check whether non-existent headers
6855   # can be detected and how.
6856   cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862 #include <ac_nonexistent.h>
6863 _ACEOF
6864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } >/dev/null; then
6872   if test -s conftest.err; then
6873     ac_cpp_err=$ac_c_preproc_warn_flag
6874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875   else
6876     ac_cpp_err=
6877   fi
6878 else
6879   ac_cpp_err=yes
6880 fi
6881 if test -z "$ac_cpp_err"; then
6882   # Broken: success on invalid input.
6883 continue
6884 else
6885   echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888   # Passes both tests.
6889 ac_preproc_ok=:
6890 break
6891 fi
6892 rm -f conftest.err conftest.$ac_ext
6893
6894 done
6895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896 rm -f conftest.err conftest.$ac_ext
6897 if $ac_preproc_ok; then
6898   break
6899 fi
6900
6901     done
6902     ac_cv_prog_CPP=$CPP
6903
6904 fi
6905   CPP=$ac_cv_prog_CPP
6906 else
6907   ac_cv_prog_CPP=$CPP
6908 fi
6909 echo "$as_me:$LINENO: result: $CPP" >&5
6910 echo "${ECHO_T}$CPP" >&6
6911 ac_preproc_ok=false
6912 for ac_c_preproc_warn_flag in '' yes
6913 do
6914   # Use a header file that comes with gcc, so configuring glibc
6915   # with a fresh cross-compiler works.
6916   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6917   # <limits.h> exists even on freestanding compilers.
6918   # On the NeXT, cc -E runs the code through the compiler's parser,
6919   # not just through cpp. "Syntax error" is here to catch this case.
6920   cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926 #ifdef __STDC__
6927 # include <limits.h>
6928 #else
6929 # include <assert.h>
6930 #endif
6931                      Syntax error
6932 _ACEOF
6933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } >/dev/null; then
6941   if test -s conftest.err; then
6942     ac_cpp_err=$ac_c_preproc_warn_flag
6943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6944   else
6945     ac_cpp_err=
6946   fi
6947 else
6948   ac_cpp_err=yes
6949 fi
6950 if test -z "$ac_cpp_err"; then
6951   :
6952 else
6953   echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956   # Broken: fails on valid input.
6957 continue
6958 fi
6959 rm -f conftest.err conftest.$ac_ext
6960
6961   # OK, works on sane cases.  Now check whether non-existent headers
6962   # can be detected and how.
6963   cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969 #include <ac_nonexistent.h>
6970 _ACEOF
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973   ac_status=$?
6974   grep -v '^ *+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } >/dev/null; then
6979   if test -s conftest.err; then
6980     ac_cpp_err=$ac_c_preproc_warn_flag
6981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6982   else
6983     ac_cpp_err=
6984   fi
6985 else
6986   ac_cpp_err=yes
6987 fi
6988 if test -z "$ac_cpp_err"; then
6989   # Broken: success on invalid input.
6990 continue
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995   # Passes both tests.
6996 ac_preproc_ok=:
6997 break
6998 fi
6999 rm -f conftest.err conftest.$ac_ext
7000
7001 done
7002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003 rm -f conftest.err conftest.$ac_ext
7004 if $ac_preproc_ok; then
7005   :
7006 else
7007   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7008 See \`config.log' for more details." >&5
7009 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7010 See \`config.log' for more details." >&2;}
7011    { (exit 1); exit 1; }; }
7012 fi
7013
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020
7021 echo "$as_me:$LINENO: checking for egrep" >&5
7022 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7023 if test "${ac_cv_prog_egrep+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7027     then ac_cv_prog_egrep='grep -E'
7028     else ac_cv_prog_egrep='egrep'
7029     fi
7030 fi
7031 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7032 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7033  EGREP=$ac_cv_prog_egrep
7034
7035
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <stdint.h>
7043
7044 _ACEOF
7045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046   $EGREP "uint32_t" >/dev/null 2>&1; then
7047
7048 cat >>confdefs.h <<\_ACEOF
7049 #define HAVE_INT32_DEFINED 1
7050 _ACEOF
7051
7052 fi
7053 rm -f conftest*
7054
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 #include <inttypes.h>
7062
7063 _ACEOF
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065   $EGREP "uint32_t" >/dev/null 2>&1; then
7066
7067 cat >>confdefs.h <<\_ACEOF
7068 #define HAVE_INT32_DEFINED 1
7069 _ACEOF
7070
7071 fi
7072 rm -f conftest*
7073
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 #include <sys/types.h>
7081
7082 _ACEOF
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084   $EGREP "u_int32_t" >/dev/null 2>&1; then
7085
7086 cat >>confdefs.h <<\_ACEOF
7087 #define HAVE_BSD_INT32_DEFINED 1
7088 _ACEOF
7089
7090 fi
7091 rm -f conftest*
7092
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h.  */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h.  */
7099 #include <sys/config.h>
7100
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103   $EGREP "u_int32_t" >/dev/null 2>&1; then
7104
7105 cat >>confdefs.h <<\_ACEOF
7106 #define HAVE_BSD_INT32_DEFINED 1
7107 _ACEOF
7108
7109 fi
7110 rm -f conftest*
7111
7112
7113
7114
7115 if test "$PLATFORM" = Win32; then
7116   USING_WIN32_PLATFORM_TRUE=
7117   USING_WIN32_PLATFORM_FALSE='#'
7118 else
7119   USING_WIN32_PLATFORM_TRUE='#'
7120   USING_WIN32_PLATFORM_FALSE=
7121 fi
7122
7123
7124
7125 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7126   USING_POSIX_PLATFORM_TRUE=
7127   USING_POSIX_PLATFORM_FALSE='#'
7128 else
7129   USING_POSIX_PLATFORM_TRUE='#'
7130   USING_POSIX_PLATFORM_FALSE=
7131 fi
7132
7133
7134 case "$host" in
7135   *-darwin*) DARWIN_CRT=true ;;
7136   *) DARWIN_CRT=false ;;
7137 esac
7138
7139
7140 if $DARWIN_CRT; then
7141   USING_DARWIN_CRT_TRUE=
7142   USING_DARWIN_CRT_FALSE='#'
7143 else
7144   USING_DARWIN_CRT_TRUE='#'
7145   USING_DARWIN_CRT_FALSE=
7146 fi
7147
7148
7149 # These may not be defined in a non-ANS conformant embedded system.
7150 # FIXME: Should these case a runtime exception in that case?
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157 #include <time.h>
7158
7159 _ACEOF
7160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7161   $EGREP "mktime" >/dev/null 2>&1; then
7162
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_MKTIME 1
7165 _ACEOF
7166
7167 fi
7168 rm -f conftest*
7169
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 #include <time.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180   $EGREP "localtime" >/dev/null 2>&1; then
7181
7182 cat >>confdefs.h <<\_ACEOF
7183 #define HAVE_LOCALTIME 1
7184 _ACEOF
7185
7186 fi
7187 rm -f conftest*
7188
7189
7190 # Create the subdirectory for natFile.cc, or the attempt
7191 # to create the link will fail.
7192 test -d java || mkdir java
7193 test -d java/io || mkdir java/io
7194 test -d gnu || mkdir gnu
7195           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7196
7197
7198 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7199 test -d java/lang || mkdir java/lang
7200           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7201
7202           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7203
7204
7205 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7206 test -d java/net || mkdir java/net
7207           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7208
7209           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7210
7211
7212 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7213 test -d gnu/java || mkdir gnu/java
7214 test -d gnu/java/net || mkdir gnu/java/net
7215           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7216
7217           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7218
7219
7220 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7221 test -d gnu/java/nio || mkdir gnu/java/nio
7222           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7223
7224           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7225
7226 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7227           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7228
7229
7230 case "${host}" in
7231     *mingw*)
7232       SYSTEMSPEC="-lgdi32 -lws2_32"
7233       if test "${with_win32_nlsapi}" = "unicows"; then
7234         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7235       fi
7236     ;;
7237     *)
7238       SYSTEMSPEC=
7239     ;;
7240 esac
7241
7242
7243 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7244
7245
7246
7247 # Check whether --with-system-zlib or --without-system-zlib was given.
7248 if test "${with_system_zlib+set}" = set; then
7249   withval="$with_system_zlib"
7250
7251 fi;
7252 ZLIBSPEC=
7253
7254 ZLIBTESTSPEC=
7255
7256
7257 echo "$as_me:$LINENO: checking for X" >&5
7258 echo $ECHO_N "checking for X... $ECHO_C" >&6
7259
7260
7261 # Check whether --with-x or --without-x was given.
7262 if test "${with_x+set}" = set; then
7263   withval="$with_x"
7264
7265 fi;
7266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7267 if test "x$with_x" = xno; then
7268   # The user explicitly disabled X.
7269   have_x=disabled
7270 else
7271   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7272     # Both variables are already set.
7273     have_x=yes
7274   else
7275     if test "${ac_cv_have_x+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   # One or both of the vars are not set, and there is no cached value.
7279 ac_x_includes=no ac_x_libraries=no
7280 rm -fr conftest.dir
7281 if mkdir conftest.dir; then
7282   cd conftest.dir
7283   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7284   cat >Imakefile <<'_ACEOF'
7285 acfindx:
7286         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7287 _ACEOF
7288   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7289     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7290     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7291     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7292     for ac_extension in a so sl; do
7293       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7294          test -f $ac_im_libdir/libX11.$ac_extension; then
7295         ac_im_usrlibdir=$ac_im_libdir; break
7296       fi
7297     done
7298     # Screen out bogus values from the imake configuration.  They are
7299     # bogus both because they are the default anyway, and because
7300     # using them would break gcc on systems where it needs fixed includes.
7301     case $ac_im_incroot in
7302         /usr/include) ;;
7303         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7304     esac
7305     case $ac_im_usrlibdir in
7306         /usr/lib | /lib) ;;
7307         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7308     esac
7309   fi
7310   cd ..
7311   rm -fr conftest.dir
7312 fi
7313
7314 # Standard set of common directories for X headers.
7315 # Check X11 before X11Rn because it is often a symlink to the current release.
7316 ac_x_header_dirs='
7317 /usr/X11/include
7318 /usr/X11R6/include
7319 /usr/X11R5/include
7320 /usr/X11R4/include
7321
7322 /usr/include/X11
7323 /usr/include/X11R6
7324 /usr/include/X11R5
7325 /usr/include/X11R4
7326
7327 /usr/local/X11/include
7328 /usr/local/X11R6/include
7329 /usr/local/X11R5/include
7330 /usr/local/X11R4/include
7331
7332 /usr/local/include/X11
7333 /usr/local/include/X11R6
7334 /usr/local/include/X11R5
7335 /usr/local/include/X11R4
7336
7337 /usr/X386/include
7338 /usr/x386/include
7339 /usr/XFree86/include/X11
7340
7341 /usr/include
7342 /usr/local/include
7343 /usr/unsupported/include
7344 /usr/athena/include
7345 /usr/local/x11r5/include
7346 /usr/lpp/Xamples/include
7347
7348 /usr/openwin/include
7349 /usr/openwin/share/include'
7350
7351 if test "$ac_x_includes" = no; then
7352   # Guess where to find include files, by looking for Intrinsic.h.
7353   # First, try using that file with no special directory specified.
7354   cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h.  */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h.  */
7360 #include <X11/Intrinsic.h>
7361 _ACEOF
7362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } >/dev/null; then
7370   if test -s conftest.err; then
7371     ac_cpp_err=$ac_c_preproc_warn_flag
7372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7373   else
7374     ac_cpp_err=
7375   fi
7376 else
7377   ac_cpp_err=yes
7378 fi
7379 if test -z "$ac_cpp_err"; then
7380   # We can compile using X headers with no special include directory.
7381 ac_x_includes=
7382 else
7383   echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7385
7386   for ac_dir in $ac_x_header_dirs; do
7387   if test -r "$ac_dir/X11/Intrinsic.h"; then
7388     ac_x_includes=$ac_dir
7389     break
7390   fi
7391 done
7392 fi
7393 rm -f conftest.err conftest.$ac_ext
7394 fi # $ac_x_includes = no
7395
7396 if test "$ac_x_libraries" = no; then
7397   # Check for the libraries.
7398   # See if we find them without any special options.
7399   # Don't add to $LIBS permanently.
7400   ac_save_LIBS=$LIBS
7401   LIBS="-lXt $LIBS"
7402   if test x$gcc_no_link = xyes; then
7403   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7404 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7405    { (exit 1); exit 1; }; }
7406 fi
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413 #include <X11/Intrinsic.h>
7414 int
7415 main ()
7416 {
7417 XtMalloc (0)
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424   (eval $ac_link) 2>conftest.er1
7425   ac_status=$?
7426   grep -v '^ *+' conftest.er1 >conftest.err
7427   rm -f conftest.er1
7428   cat conftest.err >&5
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); } &&
7431          { ac_try='test -z "$ac_c_werror_flag"
7432                          || test ! -s conftest.err'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; } &&
7438          { ac_try='test -s conftest$ac_exeext'
7439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440   (eval $ac_try) 2>&5
7441   ac_status=$?
7442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443   (exit $ac_status); }; }; then
7444   LIBS=$ac_save_LIBS
7445 # We can link X programs with no special library path.
7446 ac_x_libraries=
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 LIBS=$ac_save_LIBS
7452 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7453 do
7454   # Don't even attempt the hair of trying to link an X program!
7455   for ac_extension in a so sl; do
7456     if test -r $ac_dir/libXt.$ac_extension; then
7457       ac_x_libraries=$ac_dir
7458       break 2
7459     fi
7460   done
7461 done
7462 fi
7463 rm -f conftest.err conftest.$ac_objext \
7464       conftest$ac_exeext conftest.$ac_ext
7465 fi # $ac_x_libraries = no
7466
7467 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7468   # Didn't find X anywhere.  Cache the known absence of X.
7469   ac_cv_have_x="have_x=no"
7470 else
7471   # Record where we found X for the cache.
7472   ac_cv_have_x="have_x=yes \
7473                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7474 fi
7475 fi
7476
7477   fi
7478   eval "$ac_cv_have_x"
7479 fi # $with_x != no
7480
7481 if test "$have_x" != yes; then
7482   echo "$as_me:$LINENO: result: $have_x" >&5
7483 echo "${ECHO_T}$have_x" >&6
7484   no_x=yes
7485 else
7486   # If each of the values was on the command line, it overrides each guess.
7487   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7488   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7489   # Update the cache value to reflect the command line values.
7490   ac_cv_have_x="have_x=yes \
7491                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7492   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7493 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7494 fi
7495
7496 if test "$no_x" = yes; then
7497   # Not all programs may use this symbol, but it does not hurt to define it.
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define X_DISPLAY_MISSING 1
7501 _ACEOF
7502
7503   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7504 else
7505   if test -n "$x_includes"; then
7506     X_CFLAGS="$X_CFLAGS -I$x_includes"
7507   fi
7508
7509   # It would also be nice to do this for all -L options, not just this one.
7510   if test -n "$x_libraries"; then
7511     X_LIBS="$X_LIBS -L$x_libraries"
7512     # For Solaris; some versions of Sun CC require a space after -R and
7513     # others require no space.  Words are not sufficient . . . .
7514     case `(uname -sr) 2>/dev/null` in
7515     "SunOS 5"*)
7516       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7517 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7518       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7519       if test x$gcc_no_link = xyes; then
7520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7522    { (exit 1); exit 1; }; }
7523 fi
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530
7531 int
7532 main ()
7533 {
7534
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541   (eval $ac_link) 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } &&
7548          { ac_try='test -z "$ac_c_werror_flag"
7549                          || test ! -s conftest.err'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; } &&
7555          { ac_try='test -s conftest$ac_exeext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_R_nospace=yes
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_R_nospace=no
7567 fi
7568 rm -f conftest.err conftest.$ac_objext \
7569       conftest$ac_exeext conftest.$ac_ext
7570       if test $ac_R_nospace = yes; then
7571         echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573         X_LIBS="$X_LIBS -R$x_libraries"
7574       else
7575         LIBS="$ac_xsave_LIBS -R $x_libraries"
7576         if test x$gcc_no_link = xyes; then
7577   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7579    { (exit 1); exit 1; }; }
7580 fi
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587
7588 int
7589 main ()
7590 {
7591
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext conftest$ac_exeext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598   (eval $ac_link) 2>conftest.er1
7599   ac_status=$?
7600   grep -v '^ *+' conftest.er1 >conftest.err
7601   rm -f conftest.er1
7602   cat conftest.err >&5
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } &&
7605          { ac_try='test -z "$ac_c_werror_flag"
7606                          || test ! -s conftest.err'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; } &&
7612          { ac_try='test -s conftest$ac_exeext'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; }; then
7618   ac_R_space=yes
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_R_space=no
7624 fi
7625 rm -f conftest.err conftest.$ac_objext \
7626       conftest$ac_exeext conftest.$ac_ext
7627         if test $ac_R_space = yes; then
7628           echo "$as_me:$LINENO: result: yes" >&5
7629 echo "${ECHO_T}yes" >&6
7630           X_LIBS="$X_LIBS -R $x_libraries"
7631         else
7632           echo "$as_me:$LINENO: result: neither works" >&5
7633 echo "${ECHO_T}neither works" >&6
7634         fi
7635       fi
7636       LIBS=$ac_xsave_LIBS
7637     esac
7638   fi
7639
7640   # Check for system-dependent libraries X programs must link with.
7641   # Do this before checking for the system-independent R6 libraries
7642   # (-lICE), since we may need -lsocket or whatever for X linking.
7643
7644   if test "$ISC" = yes; then
7645     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7646   else
7647     # Martyn Johnson says this is needed for Ultrix, if the X
7648     # libraries were built with DECnet support.  And Karl Berry says
7649     # the Alpha needs dnet_stub (dnet does not exist).
7650     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7651     if test x$gcc_no_link = xyes; then
7652   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7654    { (exit 1); exit 1; }; }
7655 fi
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662
7663 /* Override any gcc2 internal prototype to avoid an error.  */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668    builtin and then its argument prototype would still apply.  */
7669 char XOpenDisplay ();
7670 int
7671 main ()
7672 {
7673 XOpenDisplay ();
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680   (eval $ac_link) 2>conftest.er1
7681   ac_status=$?
7682   grep -v '^ *+' conftest.er1 >conftest.err
7683   rm -f conftest.er1
7684   cat conftest.err >&5
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } &&
7687          { ac_try='test -z "$ac_c_werror_flag"
7688                          || test ! -s conftest.err'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; } &&
7694          { ac_try='test -s conftest$ac_exeext'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; }; then
7700   :
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7706 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7707 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-ldnet  $LIBS"
7712 if test x$gcc_no_link = xyes; then
7713   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7715    { (exit 1); exit 1; }; }
7716 fi
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char dnet_ntoa ();
7731 int
7732 main ()
7733 {
7734 dnet_ntoa ();
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741   (eval $ac_link) 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -z "$ac_c_werror_flag"
7749                          || test ! -s conftest.err'
7750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751   (eval $ac_try) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   ac_cv_lib_dnet_dnet_ntoa=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_cv_lib_dnet_dnet_ntoa=no
7767 fi
7768 rm -f conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7773 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7774 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7775   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7776 fi
7777
7778     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7779       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7780 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7781 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-ldnet_stub  $LIBS"
7786 if test x$gcc_no_link = xyes; then
7787   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7789    { (exit 1); exit 1; }; }
7790 fi
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h.  */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h.  */
7797
7798 /* Override any gcc2 internal prototype to avoid an error.  */
7799 #ifdef __cplusplus
7800 extern "C"
7801 #endif
7802 /* We use char because int might match the return type of a gcc2
7803    builtin and then its argument prototype would still apply.  */
7804 char dnet_ntoa ();
7805 int
7806 main ()
7807 {
7808 dnet_ntoa ();
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815   (eval $ac_link) 2>conftest.er1
7816   ac_status=$?
7817   grep -v '^ *+' conftest.er1 >conftest.err
7818   rm -f conftest.er1
7819   cat conftest.err >&5
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); } &&
7822          { ac_try='test -z "$ac_c_werror_flag"
7823                          || test ! -s conftest.err'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; } &&
7829          { ac_try='test -s conftest$ac_exeext'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 ac_cv_lib_dnet_stub_dnet_ntoa=no
7841 fi
7842 rm -f conftest.err conftest.$ac_objext \
7843       conftest$ac_exeext conftest.$ac_ext
7844 LIBS=$ac_check_lib_save_LIBS
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7847 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7848 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7849   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7850 fi
7851
7852     fi
7853 fi
7854 rm -f conftest.err conftest.$ac_objext \
7855       conftest$ac_exeext conftest.$ac_ext
7856     LIBS="$ac_xsave_LIBS"
7857
7858     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7859     # to get the SysV transport functions.
7860     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7861     # needs -lnsl.
7862     # The nsl library prevents programs from opening the X display
7863     # on Irix 5.2, according to T.E. Dickey.
7864     # The functions gethostbyname, getservbyname, and inet_addr are
7865     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7866     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7867 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7868 if test "${ac_cv_func_gethostbyname+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   if test x$gcc_no_link = xyes; then
7872   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874    { (exit 1); exit 1; }; }
7875 fi
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7884 #define gethostbyname innocuous_gethostbyname
7885
7886 /* System header to define __stub macros and hopefully few prototypes,
7887     which can conflict with char gethostbyname (); below.
7888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889     <limits.h> exists even on freestanding compilers.  */
7890
7891 #ifdef __STDC__
7892 # include <limits.h>
7893 #else
7894 # include <assert.h>
7895 #endif
7896
7897 #undef gethostbyname
7898
7899 /* Override any gcc2 internal prototype to avoid an error.  */
7900 #ifdef __cplusplus
7901 extern "C"
7902 {
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905    builtin and then its argument prototype would still apply.  */
7906 char gethostbyname ();
7907 /* The GNU C library defines this for functions which it implements
7908     to always fail with ENOSYS.  Some functions are actually named
7909     something starting with __ and the normal name is an alias.  */
7910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7911 choke me
7912 #else
7913 char (*f) () = gethostbyname;
7914 #endif
7915 #ifdef __cplusplus
7916 }
7917 #endif
7918
7919 int
7920 main ()
7921 {
7922 return f != gethostbyname;
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929   (eval $ac_link) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest$ac_exeext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   ac_cv_func_gethostbyname=yes
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 ac_cv_func_gethostbyname=no
7955 fi
7956 rm -f conftest.err conftest.$ac_objext \
7957       conftest$ac_exeext conftest.$ac_ext
7958 fi
7959 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7960 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7961
7962     if test $ac_cv_func_gethostbyname = no; then
7963       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7964 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7965 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lnsl  $LIBS"
7970 if test x$gcc_no_link = xyes; then
7971   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7972 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7973    { (exit 1); exit 1; }; }
7974 fi
7975 cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h.  */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h.  */
7981
7982 /* Override any gcc2 internal prototype to avoid an error.  */
7983 #ifdef __cplusplus
7984 extern "C"
7985 #endif
7986 /* We use char because int might match the return type of a gcc2
7987    builtin and then its argument prototype would still apply.  */
7988 char gethostbyname ();
7989 int
7990 main ()
7991 {
7992 gethostbyname ();
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999   (eval $ac_link) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_cv_lib_nsl_gethostbyname=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_lib_nsl_gethostbyname=no
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8031 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8032 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8033   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8034 fi
8035
8036       if test $ac_cv_lib_nsl_gethostbyname = no; then
8037         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8038 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8039 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   ac_check_lib_save_LIBS=$LIBS
8043 LIBS="-lbsd  $LIBS"
8044 if test x$gcc_no_link = xyes; then
8045   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8047    { (exit 1); exit 1; }; }
8048 fi
8049 cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055
8056 /* Override any gcc2 internal prototype to avoid an error.  */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 /* We use char because int might match the return type of a gcc2
8061    builtin and then its argument prototype would still apply.  */
8062 char gethostbyname ();
8063 int
8064 main ()
8065 {
8066 gethostbyname ();
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8073   (eval $ac_link) 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -z "$ac_c_werror_flag"
8081                          || test ! -s conftest.err'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; } &&
8087          { ac_try='test -s conftest$ac_exeext'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   ac_cv_lib_bsd_gethostbyname=yes
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_lib_bsd_gethostbyname=no
8099 fi
8100 rm -f conftest.err conftest.$ac_objext \
8101       conftest$ac_exeext conftest.$ac_ext
8102 LIBS=$ac_check_lib_save_LIBS
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8105 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8106 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8107   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8108 fi
8109
8110       fi
8111     fi
8112
8113     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8114     # socket/setsockopt and other routines are undefined under SCO ODT
8115     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8116     # on later versions), says Simon Leinen: it contains gethostby*
8117     # variants that don't use the name server (or something).  -lsocket
8118     # must be given before -lnsl if both are needed.  We assume that
8119     # if connect needs -lnsl, so does gethostbyname.
8120     echo "$as_me:$LINENO: checking for connect" >&5
8121 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8122 if test "${ac_cv_func_connect+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   if test x$gcc_no_link = xyes; then
8126   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8128    { (exit 1); exit 1; }; }
8129 fi
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8138 #define connect innocuous_connect
8139
8140 /* System header to define __stub macros and hopefully few prototypes,
8141     which can conflict with char connect (); below.
8142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143     <limits.h> exists even on freestanding compilers.  */
8144
8145 #ifdef __STDC__
8146 # include <limits.h>
8147 #else
8148 # include <assert.h>
8149 #endif
8150
8151 #undef connect
8152
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 {
8157 #endif
8158 /* We use char because int might match the return type of a gcc2
8159    builtin and then its argument prototype would still apply.  */
8160 char connect ();
8161 /* The GNU C library defines this for functions which it implements
8162     to always fail with ENOSYS.  Some functions are actually named
8163     something starting with __ and the normal name is an alias.  */
8164 #if defined (__stub_connect) || defined (__stub___connect)
8165 choke me
8166 #else
8167 char (*f) () = connect;
8168 #endif
8169 #ifdef __cplusplus
8170 }
8171 #endif
8172
8173 int
8174 main ()
8175 {
8176 return f != connect;
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183   (eval $ac_link) 2>conftest.er1
8184   ac_status=$?
8185   grep -v '^ *+' conftest.er1 >conftest.err
8186   rm -f conftest.er1
8187   cat conftest.err >&5
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -z "$ac_c_werror_flag"
8191                          || test ! -s conftest.err'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; } &&
8197          { ac_try='test -s conftest$ac_exeext'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   ac_cv_func_connect=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_cv_func_connect=no
8209 fi
8210 rm -f conftest.err conftest.$ac_objext \
8211       conftest$ac_exeext conftest.$ac_ext
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8214 echo "${ECHO_T}$ac_cv_func_connect" >&6
8215
8216     if test $ac_cv_func_connect = no; then
8217       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8218 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8219 if test "${ac_cv_lib_socket_connect+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8224 if test x$gcc_no_link = xyes; then
8225   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8227    { (exit 1); exit 1; }; }
8228 fi
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235
8236 /* Override any gcc2 internal prototype to avoid an error.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 /* We use char because int might match the return type of a gcc2
8241    builtin and then its argument prototype would still apply.  */
8242 char connect ();
8243 int
8244 main ()
8245 {
8246 connect ();
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253   (eval $ac_link) 2>conftest.er1
8254   ac_status=$?
8255   grep -v '^ *+' conftest.er1 >conftest.err
8256   rm -f conftest.er1
8257   cat conftest.err >&5
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } &&
8260          { ac_try='test -z "$ac_c_werror_flag"
8261                          || test ! -s conftest.err'
8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263   (eval $ac_try) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); }; } &&
8267          { ac_try='test -s conftest$ac_exeext'
8268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269   (eval $ac_try) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; }; then
8273   ac_cv_lib_socket_connect=yes
8274 else
8275   echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278 ac_cv_lib_socket_connect=no
8279 fi
8280 rm -f conftest.err conftest.$ac_objext \
8281       conftest$ac_exeext conftest.$ac_ext
8282 LIBS=$ac_check_lib_save_LIBS
8283 fi
8284 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8285 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8286 if test $ac_cv_lib_socket_connect = yes; then
8287   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8288 fi
8289
8290     fi
8291
8292     # Guillermo Gomez says -lposix is necessary on A/UX.
8293     echo "$as_me:$LINENO: checking for remove" >&5
8294 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8295 if test "${ac_cv_func_remove+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   if test x$gcc_no_link = xyes; then
8299   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8301    { (exit 1); exit 1; }; }
8302 fi
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8311 #define remove innocuous_remove
8312
8313 /* System header to define __stub macros and hopefully few prototypes,
8314     which can conflict with char remove (); below.
8315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316     <limits.h> exists even on freestanding compilers.  */
8317
8318 #ifdef __STDC__
8319 # include <limits.h>
8320 #else
8321 # include <assert.h>
8322 #endif
8323
8324 #undef remove
8325
8326 /* Override any gcc2 internal prototype to avoid an error.  */
8327 #ifdef __cplusplus
8328 extern "C"
8329 {
8330 #endif
8331 /* We use char because int might match the return type of a gcc2
8332    builtin and then its argument prototype would still apply.  */
8333 char remove ();
8334 /* The GNU C library defines this for functions which it implements
8335     to always fail with ENOSYS.  Some functions are actually named
8336     something starting with __ and the normal name is an alias.  */
8337 #if defined (__stub_remove) || defined (__stub___remove)
8338 choke me
8339 #else
8340 char (*f) () = remove;
8341 #endif
8342 #ifdef __cplusplus
8343 }
8344 #endif
8345
8346 int
8347 main ()
8348 {
8349 return f != remove;
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   ac_cv_func_remove=yes
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 ac_cv_func_remove=no
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385 fi
8386 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8387 echo "${ECHO_T}$ac_cv_func_remove" >&6
8388
8389     if test $ac_cv_func_remove = no; then
8390       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8391 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8392 if test "${ac_cv_lib_posix_remove+set}" = set; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395   ac_check_lib_save_LIBS=$LIBS
8396 LIBS="-lposix  $LIBS"
8397 if test x$gcc_no_link = xyes; then
8398   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8400    { (exit 1); exit 1; }; }
8401 fi
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408
8409 /* Override any gcc2 internal prototype to avoid an error.  */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 /* We use char because int might match the return type of a gcc2
8414    builtin and then its argument prototype would still apply.  */
8415 char remove ();
8416 int
8417 main ()
8418 {
8419 remove ();
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426   (eval $ac_link) 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag"
8434                          || test ! -s conftest.err'
8435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436   (eval $ac_try) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); }; } &&
8440          { ac_try='test -s conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_lib_posix_remove=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_lib_posix_remove=no
8452 fi
8453 rm -f conftest.err conftest.$ac_objext \
8454       conftest$ac_exeext conftest.$ac_ext
8455 LIBS=$ac_check_lib_save_LIBS
8456 fi
8457 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8458 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8459 if test $ac_cv_lib_posix_remove = yes; then
8460   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8461 fi
8462
8463     fi
8464
8465     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8466     echo "$as_me:$LINENO: checking for shmat" >&5
8467 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8468 if test "${ac_cv_func_shmat+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   if test x$gcc_no_link = xyes; then
8472   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8474    { (exit 1); exit 1; }; }
8475 fi
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8484 #define shmat innocuous_shmat
8485
8486 /* System header to define __stub macros and hopefully few prototypes,
8487     which can conflict with char shmat (); below.
8488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8489     <limits.h> exists even on freestanding compilers.  */
8490
8491 #ifdef __STDC__
8492 # include <limits.h>
8493 #else
8494 # include <assert.h>
8495 #endif
8496
8497 #undef shmat
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 {
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505    builtin and then its argument prototype would still apply.  */
8506 char shmat ();
8507 /* The GNU C library defines this for functions which it implements
8508     to always fail with ENOSYS.  Some functions are actually named
8509     something starting with __ and the normal name is an alias.  */
8510 #if defined (__stub_shmat) || defined (__stub___shmat)
8511 choke me
8512 #else
8513 char (*f) () = shmat;
8514 #endif
8515 #ifdef __cplusplus
8516 }
8517 #endif
8518
8519 int
8520 main ()
8521 {
8522 return f != shmat;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529   (eval $ac_link) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag"
8537                          || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   ac_cv_func_shmat=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_cv_func_shmat=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext conftest.$ac_ext
8558 fi
8559 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8560 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8561
8562     if test $ac_cv_func_shmat = no; then
8563       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8564 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8565 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-lipc  $LIBS"
8570 if test x$gcc_no_link = xyes; then
8571   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8573    { (exit 1); exit 1; }; }
8574 fi
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 /* Override any gcc2 internal prototype to avoid an error.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587    builtin and then its argument prototype would still apply.  */
8588 char shmat ();
8589 int
8590 main ()
8591 {
8592 shmat ();
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599   (eval $ac_link) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"
8607                          || test ! -s conftest.err'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   ac_cv_lib_ipc_shmat=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_lib_ipc_shmat=no
8625 fi
8626 rm -f conftest.err conftest.$ac_objext \
8627       conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8629 fi
8630 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8631 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8632 if test $ac_cv_lib_ipc_shmat = yes; then
8633   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8634 fi
8635
8636     fi
8637   fi
8638
8639   # Check for libraries that X11R6 Xt/Xaw programs need.
8640   ac_save_LDFLAGS=$LDFLAGS
8641   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8642   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8643   # check for ICE first), but we must link in the order -lSM -lICE or
8644   # we get undefined symbols.  So assume we have SM if we have ICE.
8645   # These have to be linked with before -lX11, unlike the other
8646   # libraries we check for below, so use a different variable.
8647   # John Interrante, Karl Berry
8648   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8649 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8650 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   ac_check_lib_save_LIBS=$LIBS
8654 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8655 if test x$gcc_no_link = xyes; then
8656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8658    { (exit 1); exit 1; }; }
8659 fi
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666
8667 /* Override any gcc2 internal prototype to avoid an error.  */
8668 #ifdef __cplusplus
8669 extern "C"
8670 #endif
8671 /* We use char because int might match the return type of a gcc2
8672    builtin and then its argument prototype would still apply.  */
8673 char IceConnectionNumber ();
8674 int
8675 main ()
8676 {
8677 IceConnectionNumber ();
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag"
8692                          || test ! -s conftest.err'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; } &&
8698          { ac_try='test -s conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_cv_lib_ICE_IceConnectionNumber=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 ac_cv_lib_ICE_IceConnectionNumber=no
8710 fi
8711 rm -f conftest.err conftest.$ac_objext \
8712       conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8716 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8717 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8718   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8719 fi
8720
8721   LDFLAGS=$ac_save_LDFLAGS
8722
8723 fi
8724
8725
8726 # determine whether to enable the cairo GTK Graphics2D backend
8727 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8728 if test "${enable_gtk_cairo+set}" = set; then
8729   enableval="$enable_gtk_cairo"
8730
8731 fi;
8732
8733
8734 if test "x${enable_gtk_cairo}" = xyes; then
8735   GTK_CAIRO_TRUE=
8736   GTK_CAIRO_FALSE='#'
8737 else
8738   GTK_CAIRO_TRUE='#'
8739   GTK_CAIRO_FALSE=
8740 fi
8741
8742 if test "x${enable_gtk_cairo}" = xyes
8743 then
8744
8745   succeeded=no
8746
8747   if test -z "$PKG_CONFIG"; then
8748     # Extract the first word of "pkg-config", so it can be a program name with args.
8749 set dummy pkg-config; ac_word=$2
8750 echo "$as_me:$LINENO: checking for $ac_word" >&5
8751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   case $PKG_CONFIG in
8756   [\\/]* | ?:[\\/]*)
8757   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8758   ;;
8759   *)
8760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 for as_dir in $PATH
8762 do
8763   IFS=$as_save_IFS
8764   test -z "$as_dir" && as_dir=.
8765   for ac_exec_ext in '' $ac_executable_extensions; do
8766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8767     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769     break 2
8770   fi
8771 done
8772 done
8773
8774   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8775   ;;
8776 esac
8777 fi
8778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8779
8780 if test -n "$PKG_CONFIG"; then
8781   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8782 echo "${ECHO_T}$PKG_CONFIG" >&6
8783 else
8784   echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8786 fi
8787
8788   fi
8789
8790   if test "$PKG_CONFIG" = "no" ; then
8791      echo "*** The pkg-config script could not be found. Make sure it is"
8792      echo "*** in your path, or set the PKG_CONFIG environment variable"
8793      echo "*** to the full path to pkg-config."
8794      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8795   else
8796      PKG_CONFIG_MIN_VERSION=0.9.0
8797      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8798         echo "$as_me:$LINENO: checking for cairo" >&5
8799 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8800
8801         if $PKG_CONFIG --exists "cairo" ; then
8802             echo "$as_me:$LINENO: result: yes" >&5
8803 echo "${ECHO_T}yes" >&6
8804             succeeded=yes
8805
8806             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8807 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8808             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8809             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8810 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8811
8812             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8813 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8814             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8815             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8816 echo "${ECHO_T}$CAIRO_LIBS" >&6
8817         else
8818             CAIRO_CFLAGS=""
8819             CAIRO_LIBS=""
8820             ## If we have a custom action on failure, don't print errors, but
8821             ## do set a variable so people can do so.
8822             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8823             echo $CAIRO_PKG_ERRORS
8824         fi
8825
8826
8827
8828      else
8829         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8830         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8831      fi
8832   fi
8833
8834   if test $succeeded = yes; then
8835      :
8836   else
8837      { { 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
8838 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;}
8839    { (exit 1); exit 1; }; }
8840   fi
8841
8842
8843   succeeded=no
8844
8845   if test -z "$PKG_CONFIG"; then
8846     # Extract the first word of "pkg-config", so it can be a program name with args.
8847 set dummy pkg-config; ac_word=$2
8848 echo "$as_me:$LINENO: checking for $ac_word" >&5
8849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   case $PKG_CONFIG in
8854   [\\/]* | ?:[\\/]*)
8855   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8856   ;;
8857   *)
8858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861   IFS=$as_save_IFS
8862   test -z "$as_dir" && as_dir=.
8863   for ac_exec_ext in '' $ac_executable_extensions; do
8864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8865     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867     break 2
8868   fi
8869 done
8870 done
8871
8872   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8873   ;;
8874 esac
8875 fi
8876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8877
8878 if test -n "$PKG_CONFIG"; then
8879   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8880 echo "${ECHO_T}$PKG_CONFIG" >&6
8881 else
8882   echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8884 fi
8885
8886   fi
8887
8888   if test "$PKG_CONFIG" = "no" ; then
8889      echo "*** The pkg-config script could not be found. Make sure it is"
8890      echo "*** in your path, or set the PKG_CONFIG environment variable"
8891      echo "*** to the full path to pkg-config."
8892      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8893   else
8894      PKG_CONFIG_MIN_VERSION=0.9.0
8895      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8896         echo "$as_me:$LINENO: checking for pangoft2" >&5
8897 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8898
8899         if $PKG_CONFIG --exists "pangoft2" ; then
8900             echo "$as_me:$LINENO: result: yes" >&5
8901 echo "${ECHO_T}yes" >&6
8902             succeeded=yes
8903
8904             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8905 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8906             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8907             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8908 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8909
8910             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8911 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8912             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8913             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8914 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8915         else
8916             PANGOFT2_CFLAGS=""
8917             PANGOFT2_LIBS=""
8918             ## If we have a custom action on failure, don't print errors, but
8919             ## do set a variable so people can do so.
8920             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8921             echo $PANGOFT2_PKG_ERRORS
8922         fi
8923
8924
8925
8926      else
8927         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8928         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8929      fi
8930   fi
8931
8932   if test $succeeded = yes; then
8933      :
8934   else
8935      { { 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
8936 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;}
8937    { (exit 1); exit 1; }; }
8938   fi
8939
8940 fi
8941
8942
8943
8944
8945
8946 # FIXME: this should be _libs on some hosts.
8947 libsubdir=.libs
8948
8949 # extra LD Flags which are required for targets
8950 case "${host}" in
8951 *-*-darwin[0-7].*)
8952     # For now we have to disable it on darwin[8-9] because it slows down
8953     # the linking phase. A possible bug in ld?
8954     # on Darwin -single_module speeds up loading of the dynamic libraries.
8955     extra_ldflags_libjava=-Wl,-single_module
8956     ;;
8957 esac
8958
8959
8960 # Allow the GC to be disabled.  Can be useful when debugging.
8961 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8962 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8963 # Check whether --enable-java-gc or --disable-java-gc was given.
8964 if test "${enable_java_gc+set}" = set; then
8965   enableval="$enable_java_gc"
8966   GC=$enableval
8967 else
8968   GC=boehm
8969 fi;
8970 GCLIBS=
8971 GCINCS=
8972 GCDEPS=
8973 GCSPEC=
8974 JC1GCSPEC=
8975 GCTESTSPEC=
8976 case "$GC" in
8977  boehm)
8978     echo "$as_me:$LINENO: result: boehm" >&5
8979 echo "${ECHO_T}boehm" >&6
8980     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8981     JC1GCSPEC='-fuse-boehm-gc'
8982     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8983     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8984     GCOBJS=boehm.lo
8985     GCHDR=boehm-gc.h
8986     # The POSIX thread support needs to know this.
8987
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_BOEHM_GC 1
8990 _ACEOF
8991
8992     ;;
8993  no)
8994     echo "$as_me:$LINENO: result: none" >&5
8995 echo "${ECHO_T}none" >&6
8996     GCHDR=no-gc.h
8997     ;;
8998  *)
8999     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9000 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9001    { (exit 1); exit 1; }; }
9002     ;;
9003 esac
9004
9005
9006
9007
9008
9009
9010           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9011
9012
9013
9014 if test "$GC" = boehm; then
9015   USING_BOEHMGC_TRUE=
9016   USING_BOEHMGC_FALSE='#'
9017 else
9018   USING_BOEHMGC_TRUE='#'
9019   USING_BOEHMGC_FALSE=
9020 fi
9021
9022
9023
9024 if test "$GC" = no; then
9025   USING_NOGC_TRUE=
9026   USING_NOGC_FALSE='#'
9027 else
9028   USING_NOGC_TRUE='#'
9029   USING_NOGC_FALSE=
9030 fi
9031
9032
9033
9034 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9035 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9036 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9037 echo "$as_me:$LINENO: result: $THREADS" >&5
9038 echo "${ECHO_T}$THREADS" >&6
9039
9040 case "$THREADS" in
9041  no | none | single)
9042     THREADS=none
9043     ;;
9044  posix | posix95 | pthreads)
9045     THREADS=posix
9046     case "$host" in
9047      *-*-linux*)
9048
9049 cat >>confdefs.h <<\_ACEOF
9050 #define LINUX_THREADS 1
9051 _ACEOF
9052
9053         ;;
9054     esac
9055     ;;
9056  win32)
9057     ;;
9058  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9059     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9060 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9061    { (exit 1); exit 1; }; }
9062     ;;
9063  *)
9064     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9065 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9066    { (exit 1); exit 1; }; }
9067     ;;
9068 esac
9069
9070 THREADCXXFLAGS=
9071 THREADLDFLAGS=
9072 THREADLIBS=
9073 THREADINCS=
9074 THREADDEPS=
9075 THREADH=
9076 THREADSPEC=
9077 case "$THREADS" in
9078  posix)
9079     case "$host" in
9080      *-*-cygwin*)
9081         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9082         ;;
9083      *-*-freebsd[1234]*)
9084         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9085         # merely adds pthread_* functions) but it does have a -pthread switch
9086         # which is required at link-time to select -lc_r *instead* of -lc.
9087         THREADLDFLAGS=-pthread
9088         # Don't set THREADSPEC here as might be expected since -pthread is
9089         # not processed when found within a spec file, it must come from
9090         # the command line.  For now, the user must provide the -pthread
9091         # switch to link code compiled with gcj.  In future, consider adding
9092         # support for weak references to pthread_* functions ala gthr.h API.
9093         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9094         ;;
9095      *-*-freebsd*)
9096         # FreeBSD 5 implements a model much closer to other modern UNIX
9097         # which support threads.  However, it still does not support
9098         # -lpthread.
9099         THREADLDFLAGS=-pthread
9100         THREADSPEC=-lc_r
9101         ;;
9102      alpha*-dec-osf*)
9103         THREADCXXFLAGS=-pthread
9104         # boehm-gc needs some functions from librt, so link that too.
9105         THREADLIBS='-lpthread -lrt'
9106         THREADSPEC='-lpthread -lrt'
9107         ;;
9108      *)
9109         THREADLIBS=-lpthread
9110         THREADSPEC=-lpthread
9111         ;;
9112     esac
9113     THREADH=posix-threads.h
9114     # MIT pthreads doesn't seem to have the mutexattr functions.
9115     # But for now we don't check for it.  We just assume you aren't
9116     # using MIT pthreads.
9117
9118 cat >>confdefs.h <<\_ACEOF
9119 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9120 _ACEOF
9121
9122
9123     # If we're using the Boehm GC, then we happen to know that it
9124     # defines _REENTRANT, so we don't bother.  Eww.
9125     if test "$GC" != boehm; then
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define _REENTRANT 1
9129 _ACEOF
9130
9131     fi
9132
9133 cat >>confdefs.h <<\_ACEOF
9134 #define _POSIX_PTHREAD_SEMANTICS 1
9135 _ACEOF
9136
9137     ;;
9138
9139  win32)
9140     THREADH=win32-threads.h
9141     ;;
9142
9143  none)
9144     THREADH=no-threads.h
9145     ;;
9146 esac
9147           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 if test "$THREADS" = posix; then
9158   USING_POSIX_THREADS_TRUE=
9159   USING_POSIX_THREADS_FALSE='#'
9160 else
9161   USING_POSIX_THREADS_TRUE='#'
9162   USING_POSIX_THREADS_FALSE=
9163 fi
9164
9165
9166
9167 if test "$THREADS" = win32; then
9168   USING_WIN32_THREADS_TRUE=
9169   USING_WIN32_THREADS_FALSE='#'
9170 else
9171   USING_WIN32_THREADS_TRUE='#'
9172   USING_WIN32_THREADS_FALSE=
9173 fi
9174
9175
9176
9177 if test "$THREADS" = none; then
9178   USING_NO_THREADS_TRUE=
9179   USING_NO_THREADS_FALSE='#'
9180 else
9181   USING_NO_THREADS_TRUE='#'
9182   USING_NO_THREADS_FALSE=
9183 fi
9184
9185
9186 if test -d sysdep; then true; else mkdir sysdep; fi
9187           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9188
9189           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9190
9191           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9192
9193
9194 HASH_SYNC_SPEC=
9195 # Hash synchronization is only useful with posix threads right now.
9196 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9197    HASH_SYNC_SPEC=-fhash-synchronization
9198
9199 cat >>confdefs.h <<\_ACEOF
9200 #define JV_HASH_SYNCHRONIZATION 1
9201 _ACEOF
9202
9203 fi
9204
9205
9206
9207
9208 if test "$GCC" = yes; then
9209   USING_GCC_TRUE=
9210   USING_GCC_FALSE='#'
9211 else
9212   USING_GCC_TRUE='#'
9213   USING_GCC_FALSE=
9214 fi
9215
9216
9217 # We're in the tree with gcc, and need to include some of its headers.
9218 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9219
9220 if test "x${with_newlib}" = "xyes"; then
9221    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9222    # may not work correctly, because the compiler may not be able to
9223    # link executables.
9224
9225    # We assume newlib.  This lets us hard-code the functions we know
9226    # we'll have.
9227
9228 cat >>confdefs.h <<\_ACEOF
9229 #define HAVE_MEMMOVE 1
9230 _ACEOF
9231
9232
9233 cat >>confdefs.h <<\_ACEOF
9234 #define HAVE_MEMCPY 1
9235 _ACEOF
9236
9237
9238 cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_STRERROR 1
9240 _ACEOF
9241
9242
9243 cat >>confdefs.h <<\_ACEOF
9244 #define HAVE_TIME 1
9245 _ACEOF
9246
9247
9248 cat >>confdefs.h <<\_ACEOF
9249 #define HAVE_GMTIME_R 1
9250 _ACEOF
9251
9252
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_LOCALTIME_R 1
9255 _ACEOF
9256
9257
9258 cat >>confdefs.h <<\_ACEOF
9259 #define HAVE_USLEEP_DECL 1
9260 _ACEOF
9261
9262    # This is only for POSIX threads.
9263
9264 cat >>confdefs.h <<\_ACEOF
9265 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9266 _ACEOF
9267
9268    # We also assume we are using gcc, which provides alloca.
9269    cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_ALLOCA 1
9271 _ACEOF
9272
9273
9274    # Assume we do not have getuid and friends.
9275
9276 cat >>confdefs.h <<\_ACEOF
9277 #define NO_GETUID 1
9278 _ACEOF
9279
9280    PLATFORMNET=NoNet
9281 else
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9315                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9316                    access stat mkdir rename rmdir unlink realpath utime chmod \
9317                    nl_langinfo setlocale \
9318                    inet_pton uname inet_ntoa \
9319                    fork execvp pipe sigaction ftruncate
9320 do
9321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9322 echo "$as_me:$LINENO: checking for $ac_func" >&5
9323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9324 if eval "test \"\${$as_ac_var+set}\" = set"; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   if test x$gcc_no_link = xyes; then
9328   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9330    { (exit 1); exit 1; }; }
9331 fi
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9340 #define $ac_func innocuous_$ac_func
9341
9342 /* System header to define __stub macros and hopefully few prototypes,
9343     which can conflict with char $ac_func (); below.
9344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345     <limits.h> exists even on freestanding compilers.  */
9346
9347 #ifdef __STDC__
9348 # include <limits.h>
9349 #else
9350 # include <assert.h>
9351 #endif
9352
9353 #undef $ac_func
9354
9355 /* Override any gcc2 internal prototype to avoid an error.  */
9356 #ifdef __cplusplus
9357 extern "C"
9358 {
9359 #endif
9360 /* We use char because int might match the return type of a gcc2
9361    builtin and then its argument prototype would still apply.  */
9362 char $ac_func ();
9363 /* The GNU C library defines this for functions which it implements
9364     to always fail with ENOSYS.  Some functions are actually named
9365     something starting with __ and the normal name is an alias.  */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367 choke me
9368 #else
9369 char (*f) () = $ac_func;
9370 #endif
9371 #ifdef __cplusplus
9372 }
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return f != $ac_func;
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385   (eval $ac_link) 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } &&
9392          { ac_try='test -z "$ac_c_werror_flag"
9393                          || test ! -s conftest.err'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; } &&
9399          { ac_try='test -s conftest$ac_exeext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   eval "$as_ac_var=yes"
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 eval "$as_ac_var=no"
9411 fi
9412 rm -f conftest.err conftest.$ac_objext \
9413       conftest$ac_exeext conftest.$ac_ext
9414 fi
9415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9417 if test `eval echo '${'$as_ac_var'}'` = yes; then
9418   cat >>confdefs.h <<_ACEOF
9419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9420 _ACEOF
9421
9422 fi
9423 done
9424
9425
9426
9427 for ac_func in inet_aton inet_addr
9428 do
9429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430 echo "$as_me:$LINENO: checking for $ac_func" >&5
9431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9432 if eval "test \"\${$as_ac_var+set}\" = set"; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9448 #define $ac_func innocuous_$ac_func
9449
9450 /* System header to define __stub macros and hopefully few prototypes,
9451     which can conflict with char $ac_func (); below.
9452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9453     <limits.h> exists even on freestanding compilers.  */
9454
9455 #ifdef __STDC__
9456 # include <limits.h>
9457 #else
9458 # include <assert.h>
9459 #endif
9460
9461 #undef $ac_func
9462
9463 /* Override any gcc2 internal prototype to avoid an error.  */
9464 #ifdef __cplusplus
9465 extern "C"
9466 {
9467 #endif
9468 /* We use char because int might match the return type of a gcc2
9469    builtin and then its argument prototype would still apply.  */
9470 char $ac_func ();
9471 /* The GNU C library defines this for functions which it implements
9472     to always fail with ENOSYS.  Some functions are actually named
9473     something starting with __ and the normal name is an alias.  */
9474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9475 choke me
9476 #else
9477 char (*f) () = $ac_func;
9478 #endif
9479 #ifdef __cplusplus
9480 }
9481 #endif
9482
9483 int
9484 main ()
9485 {
9486 return f != $ac_func;
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -z "$ac_c_werror_flag"
9501                          || test ! -s conftest.err'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; } &&
9507          { ac_try='test -s conftest$ac_exeext'
9508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509   (eval $ac_try) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   eval "$as_ac_var=yes"
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 eval "$as_ac_var=no"
9519 fi
9520 rm -f conftest.err conftest.$ac_objext \
9521       conftest$ac_exeext conftest.$ac_ext
9522 fi
9523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9525 if test `eval echo '${'$as_ac_var'}'` = yes; then
9526   cat >>confdefs.h <<_ACEOF
9527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9528 _ACEOF
9529  break
9530 fi
9531 done
9532
9533    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9534 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9535 if test "${ac_cv_header_stdc+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 #include <stdlib.h>
9545 #include <stdarg.h>
9546 #include <string.h>
9547 #include <float.h>
9548
9549 int
9550 main ()
9551 {
9552
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559   (eval $ac_compile) 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -z "$ac_c_werror_flag"
9567                          || test ! -s conftest.err'
9568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569   (eval $ac_try) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; } &&
9573          { ac_try='test -s conftest.$ac_objext'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   ac_cv_header_stdc=yes
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ac_cv_header_stdc=no
9585 fi
9586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9587
9588 if test $ac_cv_header_stdc = yes; then
9589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9590   cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h.  */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h.  */
9596 #include <string.h>
9597
9598 _ACEOF
9599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9600   $EGREP "memchr" >/dev/null 2>&1; then
9601   :
9602 else
9603   ac_cv_header_stdc=no
9604 fi
9605 rm -f conftest*
9606
9607 fi
9608
9609 if test $ac_cv_header_stdc = yes; then
9610   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 #include <stdlib.h>
9618
9619 _ACEOF
9620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9621   $EGREP "free" >/dev/null 2>&1; then
9622   :
9623 else
9624   ac_cv_header_stdc=no
9625 fi
9626 rm -f conftest*
9627
9628 fi
9629
9630 if test $ac_cv_header_stdc = yes; then
9631   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9632   if test "$cross_compiling" = yes; then
9633   :
9634 else
9635   cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641 #include <ctype.h>
9642 #if ((' ' & 0x0FF) == 0x020)
9643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9645 #else
9646 # define ISLOWER(c) \
9647                    (('a' <= (c) && (c) <= 'i') \
9648                      || ('j' <= (c) && (c) <= 'r') \
9649                      || ('s' <= (c) && (c) <= 'z'))
9650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9651 #endif
9652
9653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9654 int
9655 main ()
9656 {
9657   int i;
9658   for (i = 0; i < 256; i++)
9659     if (XOR (islower (i), ISLOWER (i))
9660         || toupper (i) != TOUPPER (i))
9661       exit(2);
9662   exit (0);
9663 }
9664 _ACEOF
9665 rm -f conftest$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667   (eval $ac_link) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; }; then
9676   :
9677 else
9678   echo "$as_me: program exited with status $ac_status" >&5
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ( exit $ac_status )
9683 ac_cv_header_stdc=no
9684 fi
9685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9686 fi
9687 fi
9688 fi
9689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9691 if test $ac_cv_header_stdc = yes; then
9692
9693 cat >>confdefs.h <<\_ACEOF
9694 #define STDC_HEADERS 1
9695 _ACEOF
9696
9697 fi
9698
9699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9710                   inttypes.h stdint.h unistd.h
9711 do
9712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 echo "$as_me:$LINENO: checking for $ac_header" >&5
9714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   cat >conftest.$ac_ext <<_ACEOF
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724 $ac_includes_default
9725
9726 #include <$ac_header>
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730   (eval $ac_compile) 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } &&
9737          { ac_try='test -z "$ac_c_werror_flag"
9738                          || test ! -s conftest.err'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest.$ac_objext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   eval "$as_ac_Header=yes"
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 eval "$as_ac_Header=no"
9756 fi
9757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9758 fi
9759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9762   cat >>confdefs.h <<_ACEOF
9763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764 _ACEOF
9765
9766 fi
9767
9768 done
9769
9770
9771
9772
9773
9774 for ac_header in execinfo.h unistd.h dlfcn.h
9775 do
9776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778   echo "$as_me:$LINENO: checking for $ac_header" >&5
9779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 fi
9783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 else
9786   # Is the header compilable?
9787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h.  */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h.  */
9795 $ac_includes_default
9796 #include <$ac_header>
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9800   (eval $ac_compile) 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } &&
9807          { ac_try='test -z "$ac_c_werror_flag"
9808                          || test ! -s conftest.err'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest.$ac_objext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_header_compiler=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_header_compiler=no
9826 fi
9827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9829 echo "${ECHO_T}$ac_header_compiler" >&6
9830
9831 # Is the header present?
9832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h.  */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h.  */
9840 #include <$ac_header>
9841 _ACEOF
9842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9844   ac_status=$?
9845   grep -v '^ *+' conftest.er1 >conftest.err
9846   rm -f conftest.er1
9847   cat conftest.err >&5
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } >/dev/null; then
9850   if test -s conftest.err; then
9851     ac_cpp_err=$ac_c_preproc_warn_flag
9852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9853   else
9854     ac_cpp_err=
9855   fi
9856 else
9857   ac_cpp_err=yes
9858 fi
9859 if test -z "$ac_cpp_err"; then
9860   ac_header_preproc=yes
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865   ac_header_preproc=no
9866 fi
9867 rm -f conftest.err conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9869 echo "${ECHO_T}$ac_header_preproc" >&6
9870
9871 # So?  What about this header?
9872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9873   yes:no: )
9874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9878     ac_header_preproc=yes
9879     ;;
9880   no:yes:* )
9881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9893     (
9894       cat <<\_ASBOX
9895 ## ---------------------------------- ##
9896 ## Report this to the libjava lists.  ##
9897 ## ---------------------------------- ##
9898 _ASBOX
9899     ) |
9900       sed "s/^/$as_me: WARNING:     /" >&2
9901     ;;
9902 esac
9903 echo "$as_me:$LINENO: checking for $ac_header" >&5
9904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   eval "$as_ac_Header=\$ac_header_preproc"
9909 fi
9910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912
9913 fi
9914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9915   cat >>confdefs.h <<_ACEOF
9916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 _ACEOF
9918
9919 fi
9920
9921 done
9922
9923    echo "$as_me:$LINENO: checking for backtrace" >&5
9924 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9925 if test "${ac_cv_func_backtrace+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   if test x$gcc_no_link = xyes; then
9929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9931    { (exit 1); exit 1; }; }
9932 fi
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9941 #define backtrace innocuous_backtrace
9942
9943 /* System header to define __stub macros and hopefully few prototypes,
9944     which can conflict with char backtrace (); below.
9945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9946     <limits.h> exists even on freestanding compilers.  */
9947
9948 #ifdef __STDC__
9949 # include <limits.h>
9950 #else
9951 # include <assert.h>
9952 #endif
9953
9954 #undef backtrace
9955
9956 /* Override any gcc2 internal prototype to avoid an error.  */
9957 #ifdef __cplusplus
9958 extern "C"
9959 {
9960 #endif
9961 /* We use char because int might match the return type of a gcc2
9962    builtin and then its argument prototype would still apply.  */
9963 char backtrace ();
9964 /* The GNU C library defines this for functions which it implements
9965     to always fail with ENOSYS.  Some functions are actually named
9966     something starting with __ and the normal name is an alias.  */
9967 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9968 choke me
9969 #else
9970 char (*f) () = backtrace;
9971 #endif
9972 #ifdef __cplusplus
9973 }
9974 #endif
9975
9976 int
9977 main ()
9978 {
9979 return f != backtrace;
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986   (eval $ac_link) 2>conftest.er1
9987   ac_status=$?
9988   grep -v '^ *+' conftest.er1 >conftest.err
9989   rm -f conftest.er1
9990   cat conftest.err >&5
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -z "$ac_c_werror_flag"
9994                          || test ! -s conftest.err'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; } &&
10000          { ac_try='test -s conftest$ac_exeext'
10001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002   (eval $ac_try) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); }; }; then
10006   ac_cv_func_backtrace=yes
10007 else
10008   echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_cv_func_backtrace=no
10012 fi
10013 rm -f conftest.err conftest.$ac_objext \
10014       conftest$ac_exeext conftest.$ac_ext
10015 fi
10016 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
10017 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
10018 if test $ac_cv_func_backtrace = yes; then
10019
10020      case "$host" in
10021        ia64-*-linux*)
10022          # Has broken backtrace()
10023          ;;
10024        mips*-*-linux*)
10025          # Has broken backtrace(), but we supply our own.
10026          if test -d sysdep; then true; else mkdir -p sysdep; fi
10027          supply_backtrace=yes
10028
10029 cat >>confdefs.h <<\_ACEOF
10030 #define HAVE_BACKTRACE 1
10031 _ACEOF
10032
10033          ;;
10034        *)
10035
10036 cat >>confdefs.h <<\_ACEOF
10037 #define HAVE_BACKTRACE 1
10038 _ACEOF
10039
10040          ;;
10041      esac
10042
10043 else
10044
10045      case "$host" in
10046        *mingw*)
10047          # Has backtrace() defined in libgcj itself
10048
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_BACKTRACE 1
10051 _ACEOF
10052
10053          ;;
10054      esac
10055
10056 fi
10057
10058
10059    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10060 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10061 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10062   echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064   ac_check_lib_save_LIBS=$LIBS
10065 LIBS="-ldl  $LIBS"
10066 if test x$gcc_no_link = xyes; then
10067   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10069    { (exit 1); exit 1; }; }
10070 fi
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077
10078 /* Override any gcc2 internal prototype to avoid an error.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 /* We use char because int might match the return type of a gcc2
10083    builtin and then its argument prototype would still apply.  */
10084 char dladdr ();
10085 int
10086 main ()
10087 {
10088 dladdr ();
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095   (eval $ac_link) 2>conftest.er1
10096   ac_status=$?
10097   grep -v '^ *+' conftest.er1 >conftest.err
10098   rm -f conftest.er1
10099   cat conftest.err >&5
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } &&
10102          { ac_try='test -z "$ac_c_werror_flag"
10103                          || test ! -s conftest.err'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; } &&
10109          { ac_try='test -s conftest$ac_exeext'
10110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111   (eval $ac_try) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; }; then
10115   ac_cv_lib_dl_dladdr=yes
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 ac_cv_lib_dl_dladdr=no
10121 fi
10122 rm -f conftest.err conftest.$ac_objext \
10123       conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10125 fi
10126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10128 if test $ac_cv_lib_dl_dladdr = yes; then
10129
10130      if test "x${disable_dladdr}" = "xyes"; then
10131        #Broken dladdr().
10132        true
10133      else
10134
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_DLADDR 1
10137 _ACEOF
10138
10139      fi
10140
10141 fi
10142
10143    if test x"$build" = x"$host"; then
10144      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10145 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10146 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   test "$cross_compiling" = yes &&
10150   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10151 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10152    { (exit 1); exit 1; }; }
10153 if test -r "/proc/self/exe"; then
10154   ac_cv_file__proc_self_exe=yes
10155 else
10156   ac_cv_file__proc_self_exe=no
10157 fi
10158 fi
10159 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10160 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10161 if test $ac_cv_file__proc_self_exe = yes; then
10162
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE__PROC_SELF_EXE 1
10165 _ACEOF
10166
10167
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_PROC_SELF_EXE 1
10171 _ACEOF
10172
10173 fi
10174
10175    else
10176      case $host in
10177      *-linux*)
10178
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_PROC_SELF_EXE 1
10181 _ACEOF
10182
10183        ;;
10184      esac
10185    fi
10186
10187
10188       if test "X$prefix" = "XNONE"; then
10189     acl_final_prefix="$ac_default_prefix"
10190   else
10191     acl_final_prefix="$prefix"
10192   fi
10193   if test "X$exec_prefix" = "XNONE"; then
10194     acl_final_exec_prefix='${prefix}'
10195   else
10196     acl_final_exec_prefix="$exec_prefix"
10197   fi
10198   acl_save_prefix="$prefix"
10199   prefix="$acl_final_prefix"
10200   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10201   prefix="$acl_save_prefix"
10202
10203
10204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10205 if test "${with_gnu_ld+set}" = set; then
10206   withval="$with_gnu_ld"
10207   test "$withval" = no || with_gnu_ld=yes
10208 else
10209   with_gnu_ld=no
10210 fi;
10211 # Prepare PATH_SEPARATOR.
10212 # The user is always right.
10213 if test "${PATH_SEPARATOR+set}" != set; then
10214   echo "#! /bin/sh" >conf$$.sh
10215   echo  "exit 0"   >>conf$$.sh
10216   chmod +x conf$$.sh
10217   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10218     PATH_SEPARATOR=';'
10219   else
10220     PATH_SEPARATOR=:
10221   fi
10222   rm -f conf$$.sh
10223 fi
10224 ac_prog=ld
10225 if test "$GCC" = yes; then
10226   # Check if gcc -print-prog-name=ld gives a path.
10227   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10228 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10229   case $host in
10230   *-*-mingw*)
10231     # gcc leaves a trailing carriage return which upsets mingw
10232     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10233   *)
10234     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10235   esac
10236   case $ac_prog in
10237     # Accept absolute paths.
10238     [\\/]* | [A-Za-z]:[\\/]*)
10239       re_direlt='/[^/][^/]*/\.\./'
10240       # Canonicalize the path of ld
10241       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10242       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10244       done
10245       test -z "$LD" && LD="$ac_prog"
10246       ;;
10247   "")
10248     # If it fails, then pretend we aren't using GCC.
10249     ac_prog=ld
10250     ;;
10251   *)
10252     # If it is relative, then search for the first ld in PATH.
10253     with_gnu_ld=unknown
10254     ;;
10255   esac
10256 elif test "$with_gnu_ld" = yes; then
10257   echo "$as_me:$LINENO: checking for GNU ld" >&5
10258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10259 else
10260   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10262 fi
10263 if test "${acl_cv_path_LD+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   if test -z "$LD"; then
10267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10268   for ac_dir in $PATH; do
10269     test -z "$ac_dir" && ac_dir=.
10270     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10271       acl_cv_path_LD="$ac_dir/$ac_prog"
10272       # Check to see if the program is GNU ld.  I'd rather use --version,
10273       # but apparently some GNU ld's only accept -v.
10274       # Break only if it was the GNU/non-GNU ld that we prefer.
10275       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10276         test "$with_gnu_ld" != no && break
10277       else
10278         test "$with_gnu_ld" != yes && break
10279       fi
10280     fi
10281   done
10282   IFS="$ac_save_ifs"
10283 else
10284   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10285 fi
10286 fi
10287
10288 LD="$acl_cv_path_LD"
10289 if test -n "$LD"; then
10290   echo "$as_me:$LINENO: result: $LD" >&5
10291 echo "${ECHO_T}$LD" >&6
10292 else
10293   echo "$as_me:$LINENO: result: no" >&5
10294 echo "${ECHO_T}no" >&6
10295 fi
10296 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10297 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10298    { (exit 1); exit 1; }; }
10299 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10300 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10301 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10305 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10306   acl_cv_prog_gnu_ld=yes
10307 else
10308   acl_cv_prog_gnu_ld=no
10309 fi
10310 fi
10311 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10312 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10313 with_gnu_ld=$acl_cv_prog_gnu_ld
10314
10315
10316
10317                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10318 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10319 if test "${acl_cv_rpath+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322
10323     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10324     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10325     . ./conftest.sh
10326     rm -f ./conftest.sh
10327     acl_cv_rpath=done
10328
10329 fi
10330 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10331 echo "${ECHO_T}$acl_cv_rpath" >&6
10332   wl="$acl_cv_wl"
10333   libext="$acl_cv_libext"
10334   shlibext="$acl_cv_shlibext"
10335   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10336   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10337   hardcode_direct="$acl_cv_hardcode_direct"
10338   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10339     # Check whether --enable-rpath or --disable-rpath was given.
10340 if test "${enable_rpath+set}" = set; then
10341   enableval="$enable_rpath"
10342   :
10343 else
10344   enable_rpath=yes
10345 fi;
10346
10347
10348
10349
10350
10351
10352
10353     use_additional=yes
10354
10355   acl_save_prefix="$prefix"
10356   prefix="$acl_final_prefix"
10357   acl_save_exec_prefix="$exec_prefix"
10358   exec_prefix="$acl_final_exec_prefix"
10359
10360     eval additional_includedir=\"$includedir\"
10361     eval additional_libdir=\"$libdir\"
10362
10363   exec_prefix="$acl_save_exec_prefix"
10364   prefix="$acl_save_prefix"
10365
10366
10367 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10368 if test "${with_libiconv_prefix+set}" = set; then
10369   withval="$with_libiconv_prefix"
10370
10371     if test "X$withval" = "Xno"; then
10372       use_additional=no
10373     else
10374       if test "X$withval" = "X"; then
10375
10376   acl_save_prefix="$prefix"
10377   prefix="$acl_final_prefix"
10378   acl_save_exec_prefix="$exec_prefix"
10379   exec_prefix="$acl_final_exec_prefix"
10380
10381           eval additional_includedir=\"$includedir\"
10382           eval additional_libdir=\"$libdir\"
10383
10384   exec_prefix="$acl_save_exec_prefix"
10385   prefix="$acl_save_prefix"
10386
10387       else
10388         additional_includedir="$withval/include"
10389         additional_libdir="$withval/lib"
10390       fi
10391     fi
10392
10393 fi;
10394       LIBICONV=
10395   LTLIBICONV=
10396   INCICONV=
10397   rpathdirs=
10398   ltrpathdirs=
10399   names_already_handled=
10400   names_next_round='iconv '
10401   while test -n "$names_next_round"; do
10402     names_this_round="$names_next_round"
10403     names_next_round=
10404     for name in $names_this_round; do
10405       already_handled=
10406       for n in $names_already_handled; do
10407         if test "$n" = "$name"; then
10408           already_handled=yes
10409           break
10410         fi
10411       done
10412       if test -z "$already_handled"; then
10413         names_already_handled="$names_already_handled $name"
10414                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10415         eval value=\"\$HAVE_LIB$uppername\"
10416         if test -n "$value"; then
10417           if test "$value" = yes; then
10418             eval value=\"\$LIB$uppername\"
10419             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10420             eval value=\"\$LTLIB$uppername\"
10421             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10422           else
10423                                     :
10424           fi
10425         else
10426                               found_dir=
10427           found_la=
10428           found_so=
10429           found_a=
10430           if test $use_additional = yes; then
10431             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10432               found_dir="$additional_libdir"
10433               found_so="$additional_libdir/lib$name.$shlibext"
10434               if test -f "$additional_libdir/lib$name.la"; then
10435                 found_la="$additional_libdir/lib$name.la"
10436               fi
10437             else
10438               if test -f "$additional_libdir/lib$name.$libext"; then
10439                 found_dir="$additional_libdir"
10440                 found_a="$additional_libdir/lib$name.$libext"
10441                 if test -f "$additional_libdir/lib$name.la"; then
10442                   found_la="$additional_libdir/lib$name.la"
10443                 fi
10444               fi
10445             fi
10446           fi
10447           if test "X$found_dir" = "X"; then
10448             for x in $LDFLAGS $LTLIBICONV; do
10449
10450   acl_save_prefix="$prefix"
10451   prefix="$acl_final_prefix"
10452   acl_save_exec_prefix="$exec_prefix"
10453   exec_prefix="$acl_final_exec_prefix"
10454   eval x=\"$x\"
10455   exec_prefix="$acl_save_exec_prefix"
10456   prefix="$acl_save_prefix"
10457
10458               case "$x" in
10459                 -L*)
10460                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10461                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10462                     found_dir="$dir"
10463                     found_so="$dir/lib$name.$shlibext"
10464                     if test -f "$dir/lib$name.la"; then
10465                       found_la="$dir/lib$name.la"
10466                     fi
10467                   else
10468                     if test -f "$dir/lib$name.$libext"; then
10469                       found_dir="$dir"
10470                       found_a="$dir/lib$name.$libext"
10471                       if test -f "$dir/lib$name.la"; then
10472                         found_la="$dir/lib$name.la"
10473                       fi
10474                     fi
10475                   fi
10476                   ;;
10477               esac
10478               if test "X$found_dir" != "X"; then
10479                 break
10480               fi
10481             done
10482           fi
10483           if test "X$found_dir" != "X"; then
10484                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10485             if test "X$found_so" != "X"; then
10486                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10487                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10488               else
10489                                                                                 haveit=
10490                 for x in $ltrpathdirs; do
10491                   if test "X$x" = "X$found_dir"; then
10492                     haveit=yes
10493                     break
10494                   fi
10495                 done
10496                 if test -z "$haveit"; then
10497                   ltrpathdirs="$ltrpathdirs $found_dir"
10498                 fi
10499                                 if test "$hardcode_direct" = yes; then
10500                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10501                 else
10502                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10503                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10504                                                             haveit=
10505                     for x in $rpathdirs; do
10506                       if test "X$x" = "X$found_dir"; then
10507                         haveit=yes
10508                         break
10509                       fi
10510                     done
10511                     if test -z "$haveit"; then
10512                       rpathdirs="$rpathdirs $found_dir"
10513                     fi
10514                   else
10515                                                                                 haveit=
10516                     for x in $LDFLAGS $LIBICONV; do
10517
10518   acl_save_prefix="$prefix"
10519   prefix="$acl_final_prefix"
10520   acl_save_exec_prefix="$exec_prefix"
10521   exec_prefix="$acl_final_exec_prefix"
10522   eval x=\"$x\"
10523   exec_prefix="$acl_save_exec_prefix"
10524   prefix="$acl_save_prefix"
10525
10526                       if test "X$x" = "X-L$found_dir"; then
10527                         haveit=yes
10528                         break
10529                       fi
10530                     done
10531                     if test -z "$haveit"; then
10532                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10533                     fi
10534                     if test "$hardcode_minus_L" != no; then
10535                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10536                     else
10537                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10538                     fi
10539                   fi
10540                 fi
10541               fi
10542             else
10543               if test "X$found_a" != "X"; then
10544                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10545               else
10546                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10547               fi
10548             fi
10549                         additional_includedir=
10550             case "$found_dir" in
10551               */lib | */lib/)
10552                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10553                 additional_includedir="$basedir/include"
10554                 ;;
10555             esac
10556             if test "X$additional_includedir" != "X"; then
10557                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10558                 haveit=
10559                 if test "X$additional_includedir" = "X/usr/local/include"; then
10560                   if test -n "$GCC"; then
10561                     case $host_os in
10562                       linux*) haveit=yes;;
10563                     esac
10564                   fi
10565                 fi
10566                 if test -z "$haveit"; then
10567                   for x in $CPPFLAGS $INCICONV; do
10568
10569   acl_save_prefix="$prefix"
10570   prefix="$acl_final_prefix"
10571   acl_save_exec_prefix="$exec_prefix"
10572   exec_prefix="$acl_final_exec_prefix"
10573   eval x=\"$x\"
10574   exec_prefix="$acl_save_exec_prefix"
10575   prefix="$acl_save_prefix"
10576
10577                     if test "X$x" = "X-I$additional_includedir"; then
10578                       haveit=yes
10579                       break
10580                     fi
10581                   done
10582                   if test -z "$haveit"; then
10583                     if test -d "$additional_includedir"; then
10584                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10585                     fi
10586                   fi
10587                 fi
10588               fi
10589             fi
10590                         if test -n "$found_la"; then
10591                                                         save_libdir="$libdir"
10592               case "$found_la" in
10593                 */* | *\\*) . "$found_la" ;;
10594                 *) . "./$found_la" ;;
10595               esac
10596               libdir="$save_libdir"
10597                             for dep in $dependency_libs; do
10598                 case "$dep" in
10599                   -L*)
10600                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10601                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10602                       haveit=
10603                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10604                         if test -n "$GCC"; then
10605                           case $host_os in
10606                             linux*) haveit=yes;;
10607                           esac
10608                         fi
10609                       fi
10610                       if test -z "$haveit"; then
10611                         haveit=
10612                         for x in $LDFLAGS $LIBICONV; do
10613
10614   acl_save_prefix="$prefix"
10615   prefix="$acl_final_prefix"
10616   acl_save_exec_prefix="$exec_prefix"
10617   exec_prefix="$acl_final_exec_prefix"
10618   eval x=\"$x\"
10619   exec_prefix="$acl_save_exec_prefix"
10620   prefix="$acl_save_prefix"
10621
10622                           if test "X$x" = "X-L$additional_libdir"; then
10623                             haveit=yes
10624                             break
10625                           fi
10626                         done
10627                         if test -z "$haveit"; then
10628                           if test -d "$additional_libdir"; then
10629                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10630                           fi
10631                         fi
10632                         haveit=
10633                         for x in $LDFLAGS $LTLIBICONV; do
10634
10635   acl_save_prefix="$prefix"
10636   prefix="$acl_final_prefix"
10637   acl_save_exec_prefix="$exec_prefix"
10638   exec_prefix="$acl_final_exec_prefix"
10639   eval x=\"$x\"
10640   exec_prefix="$acl_save_exec_prefix"
10641   prefix="$acl_save_prefix"
10642
10643                           if test "X$x" = "X-L$additional_libdir"; then
10644                             haveit=yes
10645                             break
10646                           fi
10647                         done
10648                         if test -z "$haveit"; then
10649                           if test -d "$additional_libdir"; then
10650                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10651                           fi
10652                         fi
10653                       fi
10654                     fi
10655                     ;;
10656                   -R*)
10657                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10658                     if test "$enable_rpath" != no; then
10659                                                                   haveit=
10660                       for x in $rpathdirs; do
10661                         if test "X$x" = "X$dir"; then
10662                           haveit=yes
10663                           break
10664                         fi
10665                       done
10666                       if test -z "$haveit"; then
10667                         rpathdirs="$rpathdirs $dir"
10668                       fi
10669                                                                   haveit=
10670                       for x in $ltrpathdirs; do
10671                         if test "X$x" = "X$dir"; then
10672                           haveit=yes
10673                           break
10674                         fi
10675                       done
10676                       if test -z "$haveit"; then
10677                         ltrpathdirs="$ltrpathdirs $dir"
10678                       fi
10679                     fi
10680                     ;;
10681                   -l*)
10682                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10683                     ;;
10684                   *.la)
10685                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10686                     ;;
10687                   *)
10688                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10689                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10690                     ;;
10691                 esac
10692               done
10693             fi
10694           else
10695                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10696             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10697           fi
10698         fi
10699       fi
10700     done
10701   done
10702   if test "X$rpathdirs" != "X"; then
10703     if test -n "$hardcode_libdir_separator"; then
10704                         alldirs=
10705       for found_dir in $rpathdirs; do
10706         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10707       done
10708             acl_save_libdir="$libdir"
10709       libdir="$alldirs"
10710       eval flag=\"$hardcode_libdir_flag_spec\"
10711       libdir="$acl_save_libdir"
10712       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10713     else
10714             for found_dir in $rpathdirs; do
10715         acl_save_libdir="$libdir"
10716         libdir="$found_dir"
10717         eval flag=\"$hardcode_libdir_flag_spec\"
10718         libdir="$acl_save_libdir"
10719         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10720       done
10721     fi
10722   fi
10723   if test "X$ltrpathdirs" != "X"; then
10724             for found_dir in $ltrpathdirs; do
10725       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10726     done
10727   fi
10728
10729
10730
10731
10732
10733
10734
10735           am_save_CPPFLAGS="$CPPFLAGS"
10736
10737   for element in $INCICONV; do
10738     haveit=
10739     for x in $CPPFLAGS; do
10740
10741   acl_save_prefix="$prefix"
10742   prefix="$acl_final_prefix"
10743   acl_save_exec_prefix="$exec_prefix"
10744   exec_prefix="$acl_final_exec_prefix"
10745   eval x=\"$x\"
10746   exec_prefix="$acl_save_exec_prefix"
10747   prefix="$acl_save_prefix"
10748
10749       if test "X$x" = "X$element"; then
10750         haveit=yes
10751         break
10752       fi
10753     done
10754     if test -z "$haveit"; then
10755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10756     fi
10757   done
10758
10759
10760   echo "$as_me:$LINENO: checking for iconv" >&5
10761 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10762 if test "${am_cv_func_iconv+set}" = set; then
10763   echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765
10766     am_cv_func_iconv="no, consider installing GNU libiconv"
10767     am_cv_lib_iconv=no
10768     if test x$gcc_no_link = xyes; then
10769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10771    { (exit 1); exit 1; }; }
10772 fi
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 #include <stdlib.h>
10780 #include <iconv.h>
10781 int
10782 main ()
10783 {
10784 iconv_t cd = iconv_open("","");
10785        iconv(cd,NULL,NULL,NULL,NULL);
10786        iconv_close(cd);
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793   (eval $ac_link) 2>conftest.er1
10794   ac_status=$?
10795   grep -v '^ *+' conftest.er1 >conftest.err
10796   rm -f conftest.er1
10797   cat conftest.err >&5
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); } &&
10800          { ac_try='test -z "$ac_c_werror_flag"
10801                          || test ! -s conftest.err'
10802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803   (eval $ac_try) 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; } &&
10807          { ac_try='test -s conftest$ac_exeext'
10808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809   (eval $ac_try) 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; }; then
10813   am_cv_func_iconv=yes
10814 else
10815   echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10817
10818 fi
10819 rm -f conftest.err conftest.$ac_objext \
10820       conftest$ac_exeext conftest.$ac_ext
10821     if test "$am_cv_func_iconv" != yes; then
10822       am_save_LIBS="$LIBS"
10823       LIBS="$LIBS $LIBICONV"
10824       if test x$gcc_no_link = xyes; then
10825   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10827    { (exit 1); exit 1; }; }
10828 fi
10829 cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835 #include <stdlib.h>
10836 #include <iconv.h>
10837 int
10838 main ()
10839 {
10840 iconv_t cd = iconv_open("","");
10841          iconv(cd,NULL,NULL,NULL,NULL);
10842          iconv_close(cd);
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849   (eval $ac_link) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } &&
10856          { ac_try='test -z "$ac_c_werror_flag"
10857                          || test ! -s conftest.err'
10858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859   (eval $ac_try) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; } &&
10863          { ac_try='test -s conftest$ac_exeext'
10864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865   (eval $ac_try) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }; }; then
10869   am_cv_lib_iconv=yes
10870         am_cv_func_iconv=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 fi
10876 rm -f conftest.err conftest.$ac_objext \
10877       conftest$ac_exeext conftest.$ac_ext
10878       LIBS="$am_save_LIBS"
10879     fi
10880
10881 fi
10882 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10883 echo "${ECHO_T}$am_cv_func_iconv" >&6
10884   if test "$am_cv_func_iconv" = yes; then
10885
10886 cat >>confdefs.h <<\_ACEOF
10887 #define HAVE_ICONV 1
10888 _ACEOF
10889
10890   fi
10891   if test "$am_cv_lib_iconv" = yes; then
10892     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10893 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10894     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10895 echo "${ECHO_T}$LIBICONV" >&6
10896   else
10897             CPPFLAGS="$am_save_CPPFLAGS"
10898     LIBICONV=
10899     LTLIBICONV=
10900   fi
10901
10902
10903
10904   if test "$am_cv_func_iconv" = yes; then
10905     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10906 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10907     if test "${am_cv_proto_iconv+set}" = set; then
10908   echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910
10911       cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917
10918 #include <stdlib.h>
10919 #include <iconv.h>
10920 extern
10921 #ifdef __cplusplus
10922 "C"
10923 #endif
10924 #if defined(__STDC__) || defined(__cplusplus)
10925 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10926 #else
10927 size_t iconv();
10928 #endif
10929
10930 int
10931 main ()
10932 {
10933
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940   (eval $ac_compile) 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag"
10948                          || test ! -s conftest.err'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest.$ac_objext'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   am_cv_proto_iconv_arg1=""
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965 am_cv_proto_iconv_arg1="const"
10966 fi
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968       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);"
10969 fi
10970
10971     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10972     echo "$as_me:$LINENO: result: ${ac_t:-
10973          }$am_cv_proto_iconv" >&5
10974 echo "${ECHO_T}${ac_t:-
10975          }$am_cv_proto_iconv" >&6
10976
10977 cat >>confdefs.h <<_ACEOF
10978 #define ICONV_CONST $am_cv_proto_iconv_arg1
10979 _ACEOF
10980
10981   fi
10982
10983
10984   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10985 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10986 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   if test x$gcc_no_link = xyes; then
10990   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10992    { (exit 1); exit 1; }; }
10993 fi
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 #include <locale.h>
11001 int
11002 main ()
11003 {
11004 return LC_MESSAGES
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011   (eval $ac_link) 2>conftest.er1
11012   ac_status=$?
11013   grep -v '^ *+' conftest.er1 >conftest.err
11014   rm -f conftest.er1
11015   cat conftest.err >&5
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -z "$ac_c_werror_flag"
11019                          || test ! -s conftest.err'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest$ac_exeext'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   am_cv_val_LC_MESSAGES=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 am_cv_val_LC_MESSAGES=no
11037 fi
11038 rm -f conftest.err conftest.$ac_objext \
11039       conftest$ac_exeext conftest.$ac_ext
11040 fi
11041 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11042 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11043   if test $am_cv_val_LC_MESSAGES = yes; then
11044
11045 cat >>confdefs.h <<\_ACEOF
11046 #define HAVE_LC_MESSAGES 1
11047 _ACEOF
11048
11049   fi
11050
11051    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11052 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11053 if test "${ac_cv_struct_tm+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062 #include <sys/types.h>
11063 #include <time.h>
11064
11065 int
11066 main ()
11067 {
11068 struct tm *tp; tp->tm_sec;
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075   (eval $ac_compile) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"
11083                          || test ! -s conftest.err'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; } &&
11089          { ac_try='test -s conftest.$ac_objext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_struct_tm=time.h
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ac_cv_struct_tm=sys/time.h
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103 fi
11104 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11105 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11106 if test $ac_cv_struct_tm = sys/time.h; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define TM_IN_SYS_TIME 1
11110 _ACEOF
11111
11112 fi
11113
11114 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11115 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11116 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119   cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h.  */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h.  */
11125 #include <sys/types.h>
11126 #include <$ac_cv_struct_tm>
11127
11128
11129 int
11130 main ()
11131 {
11132 static struct tm ac_aggr;
11133 if (ac_aggr.tm_zone)
11134 return 0;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11141   (eval $ac_compile) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag"
11149                          || test ! -s conftest.err'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; } &&
11155          { ac_try='test -s conftest.$ac_objext'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; }; then
11161   ac_cv_member_struct_tm_tm_zone=yes
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 #include <sys/types.h>
11173 #include <$ac_cv_struct_tm>
11174
11175
11176 int
11177 main ()
11178 {
11179 static struct tm ac_aggr;
11180 if (sizeof ac_aggr.tm_zone)
11181 return 0;
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188   (eval $ac_compile) 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -z "$ac_c_werror_flag"
11196                          || test ! -s conftest.err'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; } &&
11202          { ac_try='test -s conftest.$ac_objext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_cv_member_struct_tm_tm_zone=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 ac_cv_member_struct_tm_tm_zone=no
11214 fi
11215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216 fi
11217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11218 fi
11219 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11220 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11221 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11222
11223 cat >>confdefs.h <<_ACEOF
11224 #define HAVE_STRUCT_TM_TM_ZONE 1
11225 _ACEOF
11226
11227
11228 fi
11229
11230 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11231
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_TM_ZONE 1
11234 _ACEOF
11235
11236 else
11237   echo "$as_me:$LINENO: checking for tzname" >&5
11238 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11239 if test "${ac_cv_var_tzname+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   if test x$gcc_no_link = xyes; then
11243   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11245    { (exit 1); exit 1; }; }
11246 fi
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h.  */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h.  */
11253 #include <time.h>
11254 #ifndef tzname /* For SGI.  */
11255 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11256 #endif
11257
11258 int
11259 main ()
11260 {
11261 atoi(*tzname);
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268   (eval $ac_link) 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } &&
11275          { ac_try='test -z "$ac_c_werror_flag"
11276                          || test ! -s conftest.err'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; } &&
11282          { ac_try='test -s conftest$ac_exeext'
11283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   ac_cv_var_tzname=yes
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 ac_cv_var_tzname=no
11294 fi
11295 rm -f conftest.err conftest.$ac_objext \
11296       conftest$ac_exeext conftest.$ac_ext
11297 fi
11298 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11299 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11300   if test $ac_cv_var_tzname = yes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_TZNAME 1
11304 _ACEOF
11305
11306   fi
11307 fi
11308
11309
11310
11311
11312 for ac_func in gethostbyname_r
11313 do
11314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315 echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11317 if eval "test \"\${$as_ac_var+set}\" = set"; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   if test x$gcc_no_link = xyes; then
11321   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11323    { (exit 1); exit 1; }; }
11324 fi
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11333 #define $ac_func innocuous_$ac_func
11334
11335 /* System header to define __stub macros and hopefully few prototypes,
11336     which can conflict with char $ac_func (); below.
11337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338     <limits.h> exists even on freestanding compilers.  */
11339
11340 #ifdef __STDC__
11341 # include <limits.h>
11342 #else
11343 # include <assert.h>
11344 #endif
11345
11346 #undef $ac_func
11347
11348 /* Override any gcc2 internal prototype to avoid an error.  */
11349 #ifdef __cplusplus
11350 extern "C"
11351 {
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354    builtin and then its argument prototype would still apply.  */
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 char (*f) () = $ac_func;
11363 #endif
11364 #ifdef __cplusplus
11365 }
11366 #endif
11367
11368 int
11369 main ()
11370 {
11371 return f != $ac_func;
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378   (eval $ac_link) 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -z "$ac_c_werror_flag"
11386                          || test ! -s conftest.err'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; } &&
11392          { ac_try='test -s conftest$ac_exeext'
11393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394   (eval $ac_try) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); }; }; then
11398   eval "$as_ac_var=yes"
11399 else
11400   echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11402
11403 eval "$as_ac_var=no"
11404 fi
11405 rm -f conftest.err conftest.$ac_objext \
11406       conftest$ac_exeext conftest.$ac_ext
11407 fi
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_GETHOSTBYNAME_R 1
11418 _ACEOF
11419
11420      # There are two different kinds of gethostbyname_r.
11421      # We look for the one that returns `int'.
11422      # Hopefully this check is robust enough.
11423      cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <netdb.h>
11430
11431 _ACEOF
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11434
11435
11436 cat >>confdefs.h <<\_ACEOF
11437 #define GETHOSTBYNAME_R_RETURNS_INT 1
11438 _ACEOF
11439
11440 fi
11441 rm -f conftest*
11442
11443
11444      case " $GCINCS " in
11445      *" -D_REENTRANT "*) ;;
11446      *)
11447                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11448 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11449 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452    ac_ext=cc
11453 ac_cpp='$CXXCPP $CPPFLAGS'
11454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11457
11458           cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #include <netdb.h>
11465 int
11466 main ()
11467 {
11468 gethostbyname_r("", 0, 0);
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475   (eval $ac_compile) 2>conftest.er1
11476   ac_status=$?
11477   grep -v '^ *+' conftest.er1 >conftest.err
11478   rm -f conftest.er1
11479   cat conftest.err >&5
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } &&
11482          { ac_try='test -z "$ac_cxx_werror_flag"
11483                          || test ! -s conftest.err'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; } &&
11489          { ac_try='test -s conftest.$ac_objext'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   libjava_cv_gethostbyname_r_needs_reentrant=no
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500                 CPPFLAGS_SAVE="$CPPFLAGS"
11501                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11502                 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 #include <netdb.h>
11509 int
11510 main ()
11511 {
11512 gethostbyname_r("", 0, 0);
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11519   (eval $ac_compile) 2>conftest.er1
11520   ac_status=$?
11521   grep -v '^ *+' conftest.er1 >conftest.err
11522   rm -f conftest.er1
11523   cat conftest.err >&5
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } &&
11526          { ac_try='test -z "$ac_cxx_werror_flag"
11527                          || test ! -s conftest.err'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; } &&
11533          { ac_try='test -s conftest.$ac_objext'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; }; then
11539   libjava_cv_gethostbyname_r_needs_reentrant=yes
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 libjava_cv_gethostbyname_r_needs_reentrant=fail
11545 fi
11546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11547                 CPPFLAGS="$CPPFLAGS_SAVE"
11548
11549 fi
11550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551           ac_ext=c
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556
11557
11558 fi
11559 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11560 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11561         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11562
11563 cat >>confdefs.h <<\_ACEOF
11564 #define _REENTRANT 1
11565 _ACEOF
11566
11567         fi
11568      ;;
11569      esac
11570
11571      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11572 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11573 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576         cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582
11583 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11584 # define _REENTRANT 1
11585 #endif
11586 #include <netdb.h>
11587 int
11588 main ()
11589 {
11590 struct hostent_data data;
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597   (eval $ac_compile) 2>conftest.er1
11598   ac_status=$?
11599   grep -v '^ *+' conftest.er1 >conftest.err
11600   rm -f conftest.er1
11601   cat conftest.err >&5
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -z "$ac_c_werror_flag"
11605                          || test ! -s conftest.err'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; } &&
11611          { ac_try='test -s conftest.$ac_objext'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   libjava_cv_struct_hostent_data=yes
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 libjava_cv_struct_hostent_data=no
11623 fi
11624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625 fi
11626 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11627 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11628      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11629
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_STRUCT_HOSTENT_DATA 1
11632 _ACEOF
11633
11634      fi
11635
11636 fi
11637 done
11638
11639
11640    # FIXME: libjava source code expects to find a prototype for
11641    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11642    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11643    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11644    # linkage check is enough, yet C++ code requires proper prototypes.)
11645    cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 #include <netdb.h>
11652
11653 _ACEOF
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11656
11657
11658 for ac_func in gethostbyaddr_r
11659 do
11660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11661 echo "$as_me:$LINENO: checking for $ac_func" >&5
11662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11663 if eval "test \"\${$as_ac_var+set}\" = set"; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   if test x$gcc_no_link = xyes; then
11667   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11669    { (exit 1); exit 1; }; }
11670 fi
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11679 #define $ac_func innocuous_$ac_func
11680
11681 /* System header to define __stub macros and hopefully few prototypes,
11682     which can conflict with char $ac_func (); below.
11683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684     <limits.h> exists even on freestanding compilers.  */
11685
11686 #ifdef __STDC__
11687 # include <limits.h>
11688 #else
11689 # include <assert.h>
11690 #endif
11691
11692 #undef $ac_func
11693
11694 /* Override any gcc2 internal prototype to avoid an error.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 {
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700    builtin and then its argument prototype would still apply.  */
11701 char $ac_func ();
11702 /* The GNU C library defines this for functions which it implements
11703     to always fail with ENOSYS.  Some functions are actually named
11704     something starting with __ and the normal name is an alias.  */
11705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11706 choke me
11707 #else
11708 char (*f) () = $ac_func;
11709 #endif
11710 #ifdef __cplusplus
11711 }
11712 #endif
11713
11714 int
11715 main ()
11716 {
11717 return f != $ac_func;
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -z "$ac_c_werror_flag"
11732                          || test ! -s conftest.err'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; } &&
11738          { ac_try='test -s conftest$ac_exeext'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; }; then
11744   eval "$as_ac_var=yes"
11745 else
11746   echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 eval "$as_ac_var=no"
11750 fi
11751 rm -f conftest.err conftest.$ac_objext \
11752       conftest$ac_exeext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11756 if test `eval echo '${'$as_ac_var'}'` = yes; then
11757   cat >>confdefs.h <<_ACEOF
11758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759 _ACEOF
11760
11761
11762 cat >>confdefs.h <<\_ACEOF
11763 #define HAVE_GETHOSTBYADDR_R 1
11764 _ACEOF
11765
11766      # There are two different kinds of gethostbyaddr_r.
11767      # We look for the one that returns `int'.
11768      # Hopefully this check is robust enough.
11769      cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <netdb.h>
11776
11777 _ACEOF
11778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11779   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11780
11781
11782 cat >>confdefs.h <<\_ACEOF
11783 #define GETHOSTBYADDR_R_RETURNS_INT 1
11784 _ACEOF
11785
11786 fi
11787 rm -f conftest*
11788
11789 fi
11790 done
11791
11792 fi
11793 rm -f conftest*
11794
11795
11796
11797 for ac_func in gethostname
11798 do
11799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11800 echo "$as_me:$LINENO: checking for $ac_func" >&5
11801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11802 if eval "test \"\${$as_ac_var+set}\" = set"; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   if test x$gcc_no_link = xyes; then
11806   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11808    { (exit 1); exit 1; }; }
11809 fi
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11818 #define $ac_func innocuous_$ac_func
11819
11820 /* System header to define __stub macros and hopefully few prototypes,
11821     which can conflict with char $ac_func (); below.
11822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823     <limits.h> exists even on freestanding compilers.  */
11824
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11830
11831 #undef $ac_func
11832
11833 /* Override any gcc2 internal prototype to avoid an error.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 {
11837 #endif
11838 /* We use char because int might match the return type of a gcc2
11839    builtin and then its argument prototype would still apply.  */
11840 char $ac_func ();
11841 /* The GNU C library defines this for functions which it implements
11842     to always fail with ENOSYS.  Some functions are actually named
11843     something starting with __ and the normal name is an alias.  */
11844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11845 choke me
11846 #else
11847 char (*f) () = $ac_func;
11848 #endif
11849 #ifdef __cplusplus
11850 }
11851 #endif
11852
11853 int
11854 main ()
11855 {
11856 return f != $ac_func;
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863   (eval $ac_link) 2>conftest.er1
11864   ac_status=$?
11865   grep -v '^ *+' conftest.er1 >conftest.err
11866   rm -f conftest.er1
11867   cat conftest.err >&5
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); } &&
11870          { ac_try='test -z "$ac_c_werror_flag"
11871                          || test ! -s conftest.err'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; } &&
11877          { ac_try='test -s conftest$ac_exeext'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   eval "$as_ac_var=yes"
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 eval "$as_ac_var=no"
11889 fi
11890 rm -f conftest.err conftest.$ac_objext \
11891       conftest$ac_exeext conftest.$ac_ext
11892 fi
11893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11895 if test `eval echo '${'$as_ac_var'}'` = yes; then
11896   cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_GETHOSTNAME 1
11903 _ACEOF
11904
11905      cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h.  */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h.  */
11911 #include <unistd.h>
11912
11913 _ACEOF
11914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11915   $EGREP "gethostname" >/dev/null 2>&1; then
11916
11917
11918 cat >>confdefs.h <<\_ACEOF
11919 #define HAVE_GETHOSTNAME_DECL 1
11920 _ACEOF
11921
11922 fi
11923 rm -f conftest*
11924
11925 fi
11926 done
11927
11928
11929
11930 for ac_func in usleep
11931 do
11932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11933 echo "$as_me:$LINENO: checking for $ac_func" >&5
11934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11935 if eval "test \"\${$as_ac_var+set}\" = set"; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   if test x$gcc_no_link = xyes; then
11939   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11941    { (exit 1); exit 1; }; }
11942 fi
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11951 #define $ac_func innocuous_$ac_func
11952
11953 /* System header to define __stub macros and hopefully few prototypes,
11954     which can conflict with char $ac_func (); below.
11955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956     <limits.h> exists even on freestanding compilers.  */
11957
11958 #ifdef __STDC__
11959 # include <limits.h>
11960 #else
11961 # include <assert.h>
11962 #endif
11963
11964 #undef $ac_func
11965
11966 /* Override any gcc2 internal prototype to avoid an error.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 {
11970 #endif
11971 /* We use char because int might match the return type of a gcc2
11972    builtin and then its argument prototype would still apply.  */
11973 char $ac_func ();
11974 /* The GNU C library defines this for functions which it implements
11975     to always fail with ENOSYS.  Some functions are actually named
11976     something starting with __ and the normal name is an alias.  */
11977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11978 choke me
11979 #else
11980 char (*f) () = $ac_func;
11981 #endif
11982 #ifdef __cplusplus
11983 }
11984 #endif
11985
11986 int
11987 main ()
11988 {
11989 return f != $ac_func;
11990   ;
11991   return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996   (eval $ac_link) 2>conftest.er1
11997   ac_status=$?
11998   grep -v '^ *+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -z "$ac_c_werror_flag"
12004                          || test ! -s conftest.err'
12005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006   (eval $ac_try) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest$ac_exeext'
12011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012   (eval $ac_try) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; }; then
12016   eval "$as_ac_var=yes"
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 eval "$as_ac_var=no"
12022 fi
12023 rm -f conftest.err conftest.$ac_objext \
12024       conftest$ac_exeext conftest.$ac_ext
12025 fi
12026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029   cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 _ACEOF
12032
12033      cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 #include <unistd.h>
12040
12041 _ACEOF
12042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12043   $EGREP "usleep" >/dev/null 2>&1; then
12044
12045
12046 cat >>confdefs.h <<\_ACEOF
12047 #define HAVE_USLEEP_DECL 1
12048 _ACEOF
12049
12050 fi
12051 rm -f conftest*
12052
12053 fi
12054 done
12055
12056
12057    # Look for these functions in the thread library, but only bother
12058    # if using POSIX threads.
12059    if test "$THREADS" = posix; then
12060       save_LIBS="$LIBS"
12061       LIBS="$LIBS $THREADLIBS"
12062       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12063       # E.g., Solaris.
12064
12065
12066 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12067 do
12068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12069 echo "$as_me:$LINENO: checking for $ac_func" >&5
12070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12071 if eval "test \"\${$as_ac_var+set}\" = set"; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   if test x$gcc_no_link = xyes; then
12075   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12077    { (exit 1); exit 1; }; }
12078 fi
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12087 #define $ac_func innocuous_$ac_func
12088
12089 /* System header to define __stub macros and hopefully few prototypes,
12090     which can conflict with char $ac_func (); below.
12091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12092     <limits.h> exists even on freestanding compilers.  */
12093
12094 #ifdef __STDC__
12095 # include <limits.h>
12096 #else
12097 # include <assert.h>
12098 #endif
12099
12100 #undef $ac_func
12101
12102 /* Override any gcc2 internal prototype to avoid an error.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 {
12106 #endif
12107 /* We use char because int might match the return type of a gcc2
12108    builtin and then its argument prototype would still apply.  */
12109 char $ac_func ();
12110 /* The GNU C library defines this for functions which it implements
12111     to always fail with ENOSYS.  Some functions are actually named
12112     something starting with __ and the normal name is an alias.  */
12113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12114 choke me
12115 #else
12116 char (*f) () = $ac_func;
12117 #endif
12118 #ifdef __cplusplus
12119 }
12120 #endif
12121
12122 int
12123 main ()
12124 {
12125 return f != $ac_func;
12126   ;
12127   return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12132   (eval $ac_link) 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } &&
12139          { ac_try='test -z "$ac_c_werror_flag"
12140                          || test ! -s conftest.err'
12141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142   (eval $ac_try) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; } &&
12146          { ac_try='test -s conftest$ac_exeext'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; }; then
12152   eval "$as_ac_var=yes"
12153 else
12154   echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157 eval "$as_ac_var=no"
12158 fi
12159 rm -f conftest.err conftest.$ac_objext \
12160       conftest$ac_exeext conftest.$ac_ext
12161 fi
12162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12164 if test `eval echo '${'$as_ac_var'}'` = yes; then
12165   cat >>confdefs.h <<_ACEOF
12166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12167 _ACEOF
12168
12169 fi
12170 done
12171
12172
12173       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12174       # Solaris 7 the name librt is preferred.
12175
12176 for ac_func in sched_yield
12177 do
12178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12179 echo "$as_me:$LINENO: checking for $ac_func" >&5
12180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_var+set}\" = set"; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   if test x$gcc_no_link = xyes; then
12185   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12187    { (exit 1); exit 1; }; }
12188 fi
12189 cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12197 #define $ac_func innocuous_$ac_func
12198
12199 /* System header to define __stub macros and hopefully few prototypes,
12200     which can conflict with char $ac_func (); below.
12201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202     <limits.h> exists even on freestanding compilers.  */
12203
12204 #ifdef __STDC__
12205 # include <limits.h>
12206 #else
12207 # include <assert.h>
12208 #endif
12209
12210 #undef $ac_func
12211
12212 /* Override any gcc2 internal prototype to avoid an error.  */
12213 #ifdef __cplusplus
12214 extern "C"
12215 {
12216 #endif
12217 /* We use char because int might match the return type of a gcc2
12218    builtin and then its argument prototype would still apply.  */
12219 char $ac_func ();
12220 /* The GNU C library defines this for functions which it implements
12221     to always fail with ENOSYS.  Some functions are actually named
12222     something starting with __ and the normal name is an alias.  */
12223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12224 choke me
12225 #else
12226 char (*f) () = $ac_func;
12227 #endif
12228 #ifdef __cplusplus
12229 }
12230 #endif
12231
12232 int
12233 main ()
12234 {
12235 return f != $ac_func;
12236   ;
12237   return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12242   (eval $ac_link) 2>conftest.er1
12243   ac_status=$?
12244   grep -v '^ *+' conftest.er1 >conftest.err
12245   rm -f conftest.er1
12246   cat conftest.err >&5
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -z "$ac_c_werror_flag"
12250                          || test ! -s conftest.err'
12251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252   (eval $ac_try) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; } &&
12256          { ac_try='test -s conftest$ac_exeext'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; }; then
12262   eval "$as_ac_var=yes"
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 eval "$as_ac_var=no"
12268 fi
12269 rm -f conftest.err conftest.$ac_objext \
12270       conftest$ac_exeext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12274 if test `eval echo '${'$as_ac_var'}'` = yes; then
12275   cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 else
12280
12281         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12282 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12283 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lrt  $LIBS"
12288 if test x$gcc_no_link = xyes; then
12289   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12291    { (exit 1); exit 1; }; }
12292 fi
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h.  */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h.  */
12299
12300 /* Override any gcc2 internal prototype to avoid an error.  */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 /* We use char because int might match the return type of a gcc2
12305    builtin and then its argument prototype would still apply.  */
12306 char sched_yield ();
12307 int
12308 main ()
12309 {
12310 sched_yield ();
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317   (eval $ac_link) 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag"
12325                          || test ! -s conftest.err'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; } &&
12331          { ac_try='test -s conftest$ac_exeext'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337   ac_cv_lib_rt_sched_yield=yes
12338 else
12339   echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 ac_cv_lib_rt_sched_yield=no
12343 fi
12344 rm -f conftest.err conftest.$ac_objext \
12345       conftest$ac_exeext conftest.$ac_ext
12346 LIBS=$ac_check_lib_save_LIBS
12347 fi
12348 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12349 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12350 if test $ac_cv_lib_rt_sched_yield = yes; then
12351
12352           cat >>confdefs.h <<\_ACEOF
12353 #define HAVE_SCHED_YIELD 1
12354 _ACEOF
12355
12356           THREADLIBS="$THREADLIBS -lrt"
12357           THREADSPEC="$THREADSPEC -lrt"
12358 else
12359
12360           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12361 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12362 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-lposix4  $LIBS"
12367 if test x$gcc_no_link = xyes; then
12368   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12370    { (exit 1); exit 1; }; }
12371 fi
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h.  */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h.  */
12378
12379 /* Override any gcc2 internal prototype to avoid an error.  */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 /* We use char because int might match the return type of a gcc2
12384    builtin and then its argument prototype would still apply.  */
12385 char sched_yield ();
12386 int
12387 main ()
12388 {
12389 sched_yield ();
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396   (eval $ac_link) 2>conftest.er1
12397   ac_status=$?
12398   grep -v '^ *+' conftest.er1 >conftest.err
12399   rm -f conftest.er1
12400   cat conftest.err >&5
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } &&
12403          { ac_try='test -z "$ac_c_werror_flag"
12404                          || test ! -s conftest.err'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; } &&
12410          { ac_try='test -s conftest$ac_exeext'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; }; then
12416   ac_cv_lib_posix4_sched_yield=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_cv_lib_posix4_sched_yield=no
12422 fi
12423 rm -f conftest.err conftest.$ac_objext \
12424       conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12428 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12429 if test $ac_cv_lib_posix4_sched_yield = yes; then
12430
12431             cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_SCHED_YIELD 1
12433 _ACEOF
12434
12435             THREADLIBS="$THREADLIBS -lposix4"
12436             THREADSPEC="$THREADSPEC -lposix4"
12437 fi
12438
12439 fi
12440
12441 fi
12442 done
12443
12444       LIBS="$save_LIBS"
12445
12446       # We can save a little space at runtime if the mutex has m_count
12447       # or __m_count.  This is a nice hack for Linux.
12448       cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h.  */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h.  */
12454 #include <pthread.h>
12455 int
12456 main ()
12457 {
12458
12459           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12460
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag"
12475                          || test ! -s conftest.err'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest.$ac_objext'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487
12488 cat >>confdefs.h <<\_ACEOF
12489 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12490 _ACEOF
12491
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496
12497         cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503 #include <pthread.h>
12504 int
12505 main ()
12506 {
12507
12508             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest.$ac_objext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12539 _ACEOF
12540
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 fi
12546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12547 fi
12548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549    fi
12550
12551    # We require a way to get the time.
12552    time_found=no
12553
12554
12555
12556 for ac_func in gettimeofday time ftime
12557 do
12558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559 echo "$as_me:$LINENO: checking for $ac_func" >&5
12560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12561 if eval "test \"\${$as_ac_var+set}\" = set"; then
12562   echo $ECHO_N "(cached) $ECHO_C" >&6
12563 else
12564   if test x$gcc_no_link = xyes; then
12565   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12567    { (exit 1); exit 1; }; }
12568 fi
12569 cat >conftest.$ac_ext <<_ACEOF
12570 /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12577 #define $ac_func innocuous_$ac_func
12578
12579 /* System header to define __stub macros and hopefully few prototypes,
12580     which can conflict with char $ac_func (); below.
12581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582     <limits.h> exists even on freestanding compilers.  */
12583
12584 #ifdef __STDC__
12585 # include <limits.h>
12586 #else
12587 # include <assert.h>
12588 #endif
12589
12590 #undef $ac_func
12591
12592 /* Override any gcc2 internal prototype to avoid an error.  */
12593 #ifdef __cplusplus
12594 extern "C"
12595 {
12596 #endif
12597 /* We use char because int might match the return type of a gcc2
12598    builtin and then its argument prototype would still apply.  */
12599 char $ac_func ();
12600 /* The GNU C library defines this for functions which it implements
12601     to always fail with ENOSYS.  Some functions are actually named
12602     something starting with __ and the normal name is an alias.  */
12603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12604 choke me
12605 #else
12606 char (*f) () = $ac_func;
12607 #endif
12608 #ifdef __cplusplus
12609 }
12610 #endif
12611
12612 int
12613 main ()
12614 {
12615 return f != $ac_func;
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12622   (eval $ac_link) 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag"
12630                          || test ! -s conftest.err'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; } &&
12636          { ac_try='test -s conftest$ac_exeext'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   eval "$as_ac_var=yes"
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 eval "$as_ac_var=no"
12648 fi
12649 rm -f conftest.err conftest.$ac_objext \
12650       conftest$ac_exeext conftest.$ac_ext
12651 fi
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12658  time_found=yes
12659 fi
12660 done
12661
12662    if test "$time_found" = no; then
12663       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12664 echo "$as_me: error: no function found to get the time" >&2;}
12665    { (exit 1); exit 1; }; }
12666    fi
12667
12668
12669 for ac_func in memmove
12670 do
12671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12674 if eval "test \"\${$as_ac_var+set}\" = set"; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   if test x$gcc_no_link = xyes; then
12678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12680    { (exit 1); exit 1; }; }
12681 fi
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12690 #define $ac_func innocuous_$ac_func
12691
12692 /* System header to define __stub macros and hopefully few prototypes,
12693     which can conflict with char $ac_func (); below.
12694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695     <limits.h> exists even on freestanding compilers.  */
12696
12697 #ifdef __STDC__
12698 # include <limits.h>
12699 #else
12700 # include <assert.h>
12701 #endif
12702
12703 #undef $ac_func
12704
12705 /* Override any gcc2 internal prototype to avoid an error.  */
12706 #ifdef __cplusplus
12707 extern "C"
12708 {
12709 #endif
12710 /* We use char because int might match the return type of a gcc2
12711    builtin and then its argument prototype would still apply.  */
12712 char $ac_func ();
12713 /* The GNU C library defines this for functions which it implements
12714     to always fail with ENOSYS.  Some functions are actually named
12715     something starting with __ and the normal name is an alias.  */
12716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12717 choke me
12718 #else
12719 char (*f) () = $ac_func;
12720 #endif
12721 #ifdef __cplusplus
12722 }
12723 #endif
12724
12725 int
12726 main ()
12727 {
12728 return f != $ac_func;
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735   (eval $ac_link) 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -z "$ac_c_werror_flag"
12743                          || test ! -s conftest.err'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest$ac_exeext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   eval "$as_ac_var=yes"
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 eval "$as_ac_var=no"
12761 fi
12762 rm -f conftest.err conftest.$ac_objext \
12763       conftest$ac_exeext conftest.$ac_ext
12764 fi
12765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12767 if test `eval echo '${'$as_ac_var'}'` = yes; then
12768   cat >>confdefs.h <<_ACEOF
12769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12770 _ACEOF
12771
12772 fi
12773 done
12774
12775
12776    # We require memcpy.
12777    memcpy_found=no
12778
12779 for ac_func in memcpy
12780 do
12781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782 echo "$as_me:$LINENO: checking for $ac_func" >&5
12783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12784 if eval "test \"\${$as_ac_var+set}\" = set"; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   if test x$gcc_no_link = xyes; then
12788   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12790    { (exit 1); exit 1; }; }
12791 fi
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12800 #define $ac_func innocuous_$ac_func
12801
12802 /* System header to define __stub macros and hopefully few prototypes,
12803     which can conflict with char $ac_func (); below.
12804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12805     <limits.h> exists even on freestanding compilers.  */
12806
12807 #ifdef __STDC__
12808 # include <limits.h>
12809 #else
12810 # include <assert.h>
12811 #endif
12812
12813 #undef $ac_func
12814
12815 /* Override any gcc2 internal prototype to avoid an error.  */
12816 #ifdef __cplusplus
12817 extern "C"
12818 {
12819 #endif
12820 /* We use char because int might match the return type of a gcc2
12821    builtin and then its argument prototype would still apply.  */
12822 char $ac_func ();
12823 /* The GNU C library defines this for functions which it implements
12824     to always fail with ENOSYS.  Some functions are actually named
12825     something starting with __ and the normal name is an alias.  */
12826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12827 choke me
12828 #else
12829 char (*f) () = $ac_func;
12830 #endif
12831 #ifdef __cplusplus
12832 }
12833 #endif
12834
12835 int
12836 main ()
12837 {
12838 return f != $ac_func;
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12845   (eval $ac_link) 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -z "$ac_c_werror_flag"
12853                          || test ! -s conftest.err'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; } &&
12859          { ac_try='test -s conftest$ac_exeext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   eval "$as_ac_var=yes"
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 eval "$as_ac_var=no"
12871 fi
12872 rm -f conftest.err conftest.$ac_objext \
12873       conftest$ac_exeext conftest.$ac_ext
12874 fi
12875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12877 if test `eval echo '${'$as_ac_var'}'` = yes; then
12878   cat >>confdefs.h <<_ACEOF
12879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12880 _ACEOF
12881  memcpy_found=yes
12882 fi
12883 done
12884
12885    if test "$memcpy_found" = no; then
12886       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12887 echo "$as_me: error: memcpy is required" >&2;}
12888    { (exit 1); exit 1; }; }
12889    fi
12890
12891    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12894   echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896   ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-ldl  $LIBS"
12898 if test x$gcc_no_link = xyes; then
12899   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12901    { (exit 1); exit 1; }; }
12902 fi
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909
12910 /* Override any gcc2 internal prototype to avoid an error.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 /* We use char because int might match the return type of a gcc2
12915    builtin and then its argument prototype would still apply.  */
12916 char dlopen ();
12917 int
12918 main ()
12919 {
12920 dlopen ();
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927   (eval $ac_link) 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag"
12935                          || test ! -s conftest.err'
12936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937   (eval $ac_try) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; } &&
12941          { ac_try='test -s conftest$ac_exeext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   ac_cv_lib_dl_dlopen=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 ac_cv_lib_dl_dlopen=no
12953 fi
12954 rm -f conftest.err conftest.$ac_objext \
12955       conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12957 fi
12958 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12960 if test $ac_cv_lib_dl_dlopen = yes; then
12961
12962
12963 cat >>confdefs.h <<\_ACEOF
12964 #define HAVE_DLOPEN 1
12965 _ACEOF
12966
12967 fi
12968
12969
12970    # Some library-finding code we stole from Tcl.
12971    #--------------------------------------------------------------------
12972    #    Check for the existence of the -lsocket and -lnsl libraries.
12973    #    The order here is important, so that they end up in the right
12974    #    order in the command line generated by make.  Here are some
12975    #    special considerations:
12976    #    1. Use "connect" and "accept" to check for -lsocket, and
12977    #       "gethostbyname" to check for -lnsl.
12978    #    2. Use each function name only once:  can't redo a check because
12979    #       autoconf caches the results of the last check and won't redo it.
12980    #    3. Use -lnsl and -lsocket only if they supply procedures that
12981    #       aren't already present in the normal libraries.  This is because
12982    #       IRIX 5.2 has libraries, but they aren't needed and they're
12983    #       bogus:  they goof up name resolution if used.
12984    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12985    #       To get around this problem, check for both libraries together
12986    #       if -lsocket doesn't work by itself.
12987    #--------------------------------------------------------------------
12988
12989    echo "$as_me:$LINENO: checking for socket libraries" >&5
12990 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12991 if test "${gcj_cv_lib_sockets+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   gcj_cv_lib_sockets=
12995      gcj_checkBoth=0
12996      unset ac_cv_func_connect
12997      echo "$as_me:$LINENO: checking for connect" >&5
12998 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12999 if test "${ac_cv_func_connect+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   if test x$gcc_no_link = xyes; then
13003   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13004 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13005    { (exit 1); exit 1; }; }
13006 fi
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13015 #define connect innocuous_connect
13016
13017 /* System header to define __stub macros and hopefully few prototypes,
13018     which can conflict with char connect (); below.
13019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13020     <limits.h> exists even on freestanding compilers.  */
13021
13022 #ifdef __STDC__
13023 # include <limits.h>
13024 #else
13025 # include <assert.h>
13026 #endif
13027
13028 #undef connect
13029
13030 /* Override any gcc2 internal prototype to avoid an error.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 {
13034 #endif
13035 /* We use char because int might match the return type of a gcc2
13036    builtin and then its argument prototype would still apply.  */
13037 char connect ();
13038 /* The GNU C library defines this for functions which it implements
13039     to always fail with ENOSYS.  Some functions are actually named
13040     something starting with __ and the normal name is an alias.  */
13041 #if defined (__stub_connect) || defined (__stub___connect)
13042 choke me
13043 #else
13044 char (*f) () = connect;
13045 #endif
13046 #ifdef __cplusplus
13047 }
13048 #endif
13049
13050 int
13051 main ()
13052 {
13053 return f != connect;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -z "$ac_c_werror_flag"
13068                          || test ! -s conftest.err'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; } &&
13074          { ac_try='test -s conftest$ac_exeext'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080   ac_cv_func_connect=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_cv_func_connect=no
13086 fi
13087 rm -f conftest.err conftest.$ac_objext \
13088       conftest$ac_exeext conftest.$ac_ext
13089 fi
13090 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13091 echo "${ECHO_T}$ac_cv_func_connect" >&6
13092 if test $ac_cv_func_connect = yes; then
13093   gcj_checkSocket=0
13094 else
13095   gcj_checkSocket=1
13096 fi
13097
13098      if test "$gcj_checkSocket" = 1; then
13099          unset ac_cv_func_connect
13100          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13101 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13102 if test "${ac_cv_lib_socket_main+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-lsocket  $LIBS"
13107 if test x$gcc_no_link = xyes; then
13108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13110    { (exit 1); exit 1; }; }
13111 fi
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118
13119
13120 int
13121 main ()
13122 {
13123 main ();
13124   ;
13125   return 0;
13126 }
13127 _ACEOF
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13130   (eval $ac_link) 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -z "$ac_c_werror_flag"
13138                          || test ! -s conftest.err'
13139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140   (eval $ac_try) 2>&5
13141   ac_status=$?
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; } &&
13144          { ac_try='test -s conftest$ac_exeext'
13145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146   (eval $ac_try) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; }; then
13150   ac_cv_lib_socket_main=yes
13151 else
13152   echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_cv_lib_socket_main=no
13156 fi
13157 rm -f conftest.err conftest.$ac_objext \
13158       conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13162 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13163 if test $ac_cv_lib_socket_main = yes; then
13164   gcj_cv_lib_sockets="-lsocket"
13165 else
13166   gcj_checkBoth=1
13167 fi
13168
13169      fi
13170      if test "$gcj_checkBoth" = 1; then
13171          gcj_oldLibs=$LIBS
13172          LIBS="$LIBS -lsocket -lnsl"
13173          unset ac_cv_func_accept
13174          echo "$as_me:$LINENO: checking for accept" >&5
13175 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13176 if test "${ac_cv_func_accept+set}" = set; then
13177   echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179   if test x$gcc_no_link = xyes; then
13180   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13182    { (exit 1); exit 1; }; }
13183 fi
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h.  */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h.  */
13190 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13192 #define accept innocuous_accept
13193
13194 /* System header to define __stub macros and hopefully few prototypes,
13195     which can conflict with char accept (); below.
13196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13197     <limits.h> exists even on freestanding compilers.  */
13198
13199 #ifdef __STDC__
13200 # include <limits.h>
13201 #else
13202 # include <assert.h>
13203 #endif
13204
13205 #undef accept
13206
13207 /* Override any gcc2 internal prototype to avoid an error.  */
13208 #ifdef __cplusplus
13209 extern "C"
13210 {
13211 #endif
13212 /* We use char because int might match the return type of a gcc2
13213    builtin and then its argument prototype would still apply.  */
13214 char accept ();
13215 /* The GNU C library defines this for functions which it implements
13216     to always fail with ENOSYS.  Some functions are actually named
13217     something starting with __ and the normal name is an alias.  */
13218 #if defined (__stub_accept) || defined (__stub___accept)
13219 choke me
13220 #else
13221 char (*f) () = accept;
13222 #endif
13223 #ifdef __cplusplus
13224 }
13225 #endif
13226
13227 int
13228 main ()
13229 {
13230 return f != accept;
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13237   (eval $ac_link) 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag"
13245                          || test ! -s conftest.err'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; } &&
13251          { ac_try='test -s conftest$ac_exeext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_func_accept=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 ac_cv_func_accept=no
13263 fi
13264 rm -f conftest.err conftest.$ac_objext \
13265       conftest$ac_exeext conftest.$ac_ext
13266 fi
13267 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13268 echo "${ECHO_T}$ac_cv_func_accept" >&6
13269 if test $ac_cv_func_accept = yes; then
13270   gcj_checkNsl=0
13271                         gcj_cv_lib_sockets="-lsocket -lnsl"
13272 fi
13273
13274          unset ac_cv_func_accept
13275          LIBS=$gcj_oldLibs
13276      fi
13277      unset ac_cv_func_gethostbyname
13278      gcj_oldLibs=$LIBS
13279      LIBS="$LIBS $gcj_cv_lib_sockets"
13280      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13281 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13282 if test "${ac_cv_func_gethostbyname+set}" = set; then
13283   echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285   if test x$gcc_no_link = xyes; then
13286   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13288    { (exit 1); exit 1; }; }
13289 fi
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13298 #define gethostbyname innocuous_gethostbyname
13299
13300 /* System header to define __stub macros and hopefully few prototypes,
13301     which can conflict with char gethostbyname (); below.
13302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13303     <limits.h> exists even on freestanding compilers.  */
13304
13305 #ifdef __STDC__
13306 # include <limits.h>
13307 #else
13308 # include <assert.h>
13309 #endif
13310
13311 #undef gethostbyname
13312
13313 /* Override any gcc2 internal prototype to avoid an error.  */
13314 #ifdef __cplusplus
13315 extern "C"
13316 {
13317 #endif
13318 /* We use char because int might match the return type of a gcc2
13319    builtin and then its argument prototype would still apply.  */
13320 char gethostbyname ();
13321 /* The GNU C library defines this for functions which it implements
13322     to always fail with ENOSYS.  Some functions are actually named
13323     something starting with __ and the normal name is an alias.  */
13324 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13325 choke me
13326 #else
13327 char (*f) () = gethostbyname;
13328 #endif
13329 #ifdef __cplusplus
13330 }
13331 #endif
13332
13333 int
13334 main ()
13335 {
13336 return f != gethostbyname;
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343   (eval $ac_link) 2>conftest.er1
13344   ac_status=$?
13345   grep -v '^ *+' conftest.er1 >conftest.err
13346   rm -f conftest.er1
13347   cat conftest.err >&5
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } &&
13350          { ac_try='test -z "$ac_c_werror_flag"
13351                          || test ! -s conftest.err'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; } &&
13357          { ac_try='test -s conftest$ac_exeext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   ac_cv_func_gethostbyname=yes
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 ac_cv_func_gethostbyname=no
13369 fi
13370 rm -f conftest.err conftest.$ac_objext \
13371       conftest$ac_exeext conftest.$ac_ext
13372 fi
13373 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13374 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13375 if test $ac_cv_func_gethostbyname = yes; then
13376   :
13377 else
13378   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13379 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13380 if test "${ac_cv_lib_nsl_main+set}" = set; then
13381   echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383   ac_check_lib_save_LIBS=$LIBS
13384 LIBS="-lnsl  $LIBS"
13385 if test x$gcc_no_link = xyes; then
13386   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13388    { (exit 1); exit 1; }; }
13389 fi
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396
13397
13398 int
13399 main ()
13400 {
13401 main ();
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408   (eval $ac_link) 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } &&
13415          { ac_try='test -z "$ac_c_werror_flag"
13416                          || test ! -s conftest.err'
13417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418   (eval $ac_try) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest$ac_exeext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_cv_lib_nsl_main=yes
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_cv_lib_nsl_main=no
13434 fi
13435 rm -f conftest.err conftest.$ac_objext \
13436       conftest$ac_exeext conftest.$ac_ext
13437 LIBS=$ac_check_lib_save_LIBS
13438 fi
13439 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13440 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13441 if test $ac_cv_lib_nsl_main = yes; then
13442   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13443 fi
13444
13445 fi
13446
13447      unset ac_cv_func_gethostbyname
13448      LIBS=$gcj_oldLIBS
13449
13450 fi
13451 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13452 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13453    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13454
13455    if test "$with_system_zlib" = yes; then
13456       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13457 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13458 if test "${ac_cv_lib_z_deflate+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461   ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-lz  $LIBS"
13463 if test x$gcc_no_link = xyes; then
13464   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13466    { (exit 1); exit 1; }; }
13467 fi
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474
13475 /* Override any gcc2 internal prototype to avoid an error.  */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 /* We use char because int might match the return type of a gcc2
13480    builtin and then its argument prototype would still apply.  */
13481 char deflate ();
13482 int
13483 main ()
13484 {
13485 deflate ();
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492   (eval $ac_link) 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -z "$ac_c_werror_flag"
13500                          || test ! -s conftest.err'
13501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502   (eval $ac_try) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest$ac_exeext'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   ac_cv_lib_z_deflate=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 ac_cv_lib_z_deflate=no
13518 fi
13519 rm -f conftest.err conftest.$ac_objext \
13520       conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13522 fi
13523 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13524 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13525 if test $ac_cv_lib_z_deflate = yes; then
13526   ZLIBSPEC=-lz
13527 else
13528   ZLIBSPEC=
13529 fi
13530
13531    fi
13532
13533    # Test for Gtk stuff, if asked for.
13534    if test "$use_gtk_awt" = yes; then
13535
13536   succeeded=no
13537
13538   if test -z "$PKG_CONFIG"; then
13539     # Extract the first word of "pkg-config", so it can be a program name with args.
13540 set dummy pkg-config; ac_word=$2
13541 echo "$as_me:$LINENO: checking for $ac_word" >&5
13542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13543 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13544   echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546   case $PKG_CONFIG in
13547   [\\/]* | ?:[\\/]*)
13548   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13549   ;;
13550   *)
13551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554   IFS=$as_save_IFS
13555   test -z "$as_dir" && as_dir=.
13556   for ac_exec_ext in '' $ac_executable_extensions; do
13557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560     break 2
13561   fi
13562 done
13563 done
13564
13565   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13566   ;;
13567 esac
13568 fi
13569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13570
13571 if test -n "$PKG_CONFIG"; then
13572   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13573 echo "${ECHO_T}$PKG_CONFIG" >&6
13574 else
13575   echo "$as_me:$LINENO: result: no" >&5
13576 echo "${ECHO_T}no" >&6
13577 fi
13578
13579   fi
13580
13581   if test "$PKG_CONFIG" = "no" ; then
13582      echo "*** The pkg-config script could not be found. Make sure it is"
13583      echo "*** in your path, or set the PKG_CONFIG environment variable"
13584      echo "*** to the full path to pkg-config."
13585      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13586   else
13587      PKG_CONFIG_MIN_VERSION=0.9.0
13588      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13589         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13590 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13591
13592         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13593             echo "$as_me:$LINENO: result: yes" >&5
13594 echo "${ECHO_T}yes" >&6
13595             succeeded=yes
13596
13597             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13598 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13599             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13600             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13601 echo "${ECHO_T}$GTK_CFLAGS" >&6
13602
13603             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13604 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13605             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13606             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13607 echo "${ECHO_T}$GTK_LIBS" >&6
13608         else
13609             GTK_CFLAGS=""
13610             GTK_LIBS=""
13611             ## If we have a custom action on failure, don't print errors, but
13612             ## do set a variable so people can do so.
13613             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13614             echo $GTK_PKG_ERRORS
13615         fi
13616
13617
13618
13619      else
13620         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13621         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13622      fi
13623   fi
13624
13625   if test $succeeded = yes; then
13626      :
13627   else
13628      { { 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
13629 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;}
13630    { (exit 1); exit 1; }; }
13631   fi
13632
13633
13634
13635
13636
13637   succeeded=no
13638
13639   if test -z "$PKG_CONFIG"; then
13640     # Extract the first word of "pkg-config", so it can be a program name with args.
13641 set dummy pkg-config; ac_word=$2
13642 echo "$as_me:$LINENO: checking for $ac_word" >&5
13643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13645   echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647   case $PKG_CONFIG in
13648   [\\/]* | ?:[\\/]*)
13649   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13650   ;;
13651   *)
13652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13654 do
13655   IFS=$as_save_IFS
13656   test -z "$as_dir" && as_dir=.
13657   for ac_exec_ext in '' $ac_executable_extensions; do
13658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13661     break 2
13662   fi
13663 done
13664 done
13665
13666   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13667   ;;
13668 esac
13669 fi
13670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13671
13672 if test -n "$PKG_CONFIG"; then
13673   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13674 echo "${ECHO_T}$PKG_CONFIG" >&6
13675 else
13676   echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6
13678 fi
13679
13680   fi
13681
13682   if test "$PKG_CONFIG" = "no" ; then
13683      echo "*** The pkg-config script could not be found. Make sure it is"
13684      echo "*** in your path, or set the PKG_CONFIG environment variable"
13685      echo "*** to the full path to pkg-config."
13686      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13687   else
13688      PKG_CONFIG_MIN_VERSION=0.9.0
13689      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13690         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13691 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13692
13693         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13694             echo "$as_me:$LINENO: result: yes" >&5
13695 echo "${ECHO_T}yes" >&6
13696             succeeded=yes
13697
13698             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13699 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13700             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13701             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13702 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13703
13704             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13705 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13706             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13707             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13708 echo "${ECHO_T}$GLIB_LIBS" >&6
13709         else
13710             GLIB_CFLAGS=""
13711             GLIB_LIBS=""
13712             ## If we have a custom action on failure, don't print errors, but
13713             ## do set a variable so people can do so.
13714             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13715             echo $GLIB_PKG_ERRORS
13716         fi
13717
13718
13719
13720      else
13721         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13722         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13723      fi
13724   fi
13725
13726   if test $succeeded = yes; then
13727      :
13728   else
13729      { { 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
13730 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;}
13731    { (exit 1); exit 1; }; }
13732   fi
13733
13734
13735
13736
13737
13738   succeeded=no
13739
13740   if test -z "$PKG_CONFIG"; then
13741     # Extract the first word of "pkg-config", so it can be a program name with args.
13742 set dummy pkg-config; ac_word=$2
13743 echo "$as_me:$LINENO: checking for $ac_word" >&5
13744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13746   echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748   case $PKG_CONFIG in
13749   [\\/]* | ?:[\\/]*)
13750   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13751   ;;
13752   *)
13753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13755 do
13756   IFS=$as_save_IFS
13757   test -z "$as_dir" && as_dir=.
13758   for ac_exec_ext in '' $ac_executable_extensions; do
13759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762     break 2
13763   fi
13764 done
13765 done
13766
13767   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13768   ;;
13769 esac
13770 fi
13771 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13772
13773 if test -n "$PKG_CONFIG"; then
13774   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13775 echo "${ECHO_T}$PKG_CONFIG" >&6
13776 else
13777   echo "$as_me:$LINENO: result: no" >&5
13778 echo "${ECHO_T}no" >&6
13779 fi
13780
13781   fi
13782
13783   if test "$PKG_CONFIG" = "no" ; then
13784      echo "*** The pkg-config script could not be found. Make sure it is"
13785      echo "*** in your path, or set the PKG_CONFIG environment variable"
13786      echo "*** to the full path to pkg-config."
13787      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13788   else
13789      PKG_CONFIG_MIN_VERSION=0.9.0
13790      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13791         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13792 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13793
13794         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13795             echo "$as_me:$LINENO: result: yes" >&5
13796 echo "${ECHO_T}yes" >&6
13797             succeeded=yes
13798
13799             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13800 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13801             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13802             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13803 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13804
13805             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13806 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13807             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13808             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13809 echo "${ECHO_T}$LIBART_LIBS" >&6
13810         else
13811             LIBART_CFLAGS=""
13812             LIBART_LIBS=""
13813             ## If we have a custom action on failure, don't print errors, but
13814             ## do set a variable so people can do so.
13815             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13816             echo $LIBART_PKG_ERRORS
13817         fi
13818
13819
13820
13821      else
13822         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13823         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13824      fi
13825   fi
13826
13827   if test $succeeded = yes; then
13828      :
13829   else
13830      { { 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
13831 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;}
13832    { (exit 1); exit 1; }; }
13833   fi
13834
13835
13836
13837
13838       # We require the XTest Extension to support java.awt.Robot.
13839       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13840 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13841 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13842   echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844   ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lXtst ${X_LIBS} $LIBS"
13846 if test x$gcc_no_link = xyes; then
13847   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13849    { (exit 1); exit 1; }; }
13850 fi
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857
13858 /* Override any gcc2 internal prototype to avoid an error.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 #endif
13862 /* We use char because int might match the return type of a gcc2
13863    builtin and then its argument prototype would still apply.  */
13864 char XTestQueryExtension ();
13865 int
13866 main ()
13867 {
13868 XTestQueryExtension ();
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875   (eval $ac_link) 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag"
13883                          || test ! -s conftest.err'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; } &&
13889          { ac_try='test -s conftest$ac_exeext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_cv_lib_Xtst_XTestQueryExtension=yes
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_cv_lib_Xtst_XTestQueryExtension=no
13901 fi
13902 rm -f conftest.err conftest.$ac_objext \
13903       conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13905 fi
13906 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13907 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13908 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13909   true
13910 else
13911   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13912 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13913    { (exit 1); exit 1; }; }
13914 fi
13915
13916    fi
13917
13918    # On Solaris, and maybe other architectures, the Boehm collector
13919    # requires -ldl.
13920    if test "$GC" = boehm; then
13921       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13922 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13923 if test "${ac_cv_lib_dl_main+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   ac_check_lib_save_LIBS=$LIBS
13927 LIBS="-ldl  $LIBS"
13928 if test x$gcc_no_link = xyes; then
13929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13931    { (exit 1); exit 1; }; }
13932 fi
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939
13940
13941 int
13942 main ()
13943 {
13944 main ();
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951   (eval $ac_link) 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } &&
13958          { ac_try='test -z "$ac_c_werror_flag"
13959                          || test ! -s conftest.err'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; } &&
13965          { ac_try='test -s conftest$ac_exeext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_cv_lib_dl_main=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ac_cv_lib_dl_main=no
13977 fi
13978 rm -f conftest.err conftest.$ac_objext \
13979       conftest$ac_exeext conftest.$ac_ext
13980 LIBS=$ac_check_lib_save_LIBS
13981 fi
13982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13983 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13984 if test $ac_cv_lib_dl_main = yes; then
13985   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13986 fi
13987
13988    fi
13989 fi
13990
13991
13992 if test "$supply_backtrace" = yes; then
13993   SUPPLY_BACKTRACE_TRUE=
13994   SUPPLY_BACKTRACE_FALSE='#'
13995 else
13996   SUPPLY_BACKTRACE_TRUE='#'
13997   SUPPLY_BACKTRACE_FALSE=
13998 fi
13999
14000
14001 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14002 case $build in
14003     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14004     *)         CLASSPATH_SEPARATOR=':' ;;
14005 esac
14006
14007
14008 # We must search the source tree for java.lang, since we still don't
14009 # have libgcj.jar nor java/lang/*.class
14010 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14011 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14012
14013 # Since some classes depend on this one, we need its source available
14014 # before we can do any GCJ compilation test :-(
14015 if test ! -f gnu/classpath/Configuration.java; then
14016   test -d gnu || mkdir gnu
14017   test -d gnu/classpath || mkdir gnu/classpath
14018   # Note that it is not crucial that all the values here be correct.
14019   sed -e "s,@prefix@,$prefix," \
14020       -e "s,@VERSION@,$VERSION," \
14021       -e "s,@LIBDEBUG@,false," \
14022       -e "s,@INIT_LOAD_LIBRARY@,false," \
14023       -e "s,@@,$LIBGCJDEBUG," \
14024       -e "s,@default_toolkit@,$TOOLKIT," \
14025       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14026       -e "s,@GTK_CAIRO_ENABLED@,false," \
14027         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14028         > gnu/classpath/Configuration.java
14029   # We do not want to redirect the output of the grep below to /dev/null,
14030   # but we add /dev/null to the input list so that grep will print the
14031   # filename of Configuration.java in case it finds any matches.
14032   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14033     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14034 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14035    { (exit 1); exit 1; }; }
14036   fi
14037 fi
14038
14039 if test -n "$ac_tool_prefix"; then
14040   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14041 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14042 echo "$as_me:$LINENO: checking for $ac_word" >&5
14043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14044 if test "${ac_cv_prog_GCJ+set}" = set; then
14045   echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047   if test -n "$GCJ"; then
14048   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14049 else
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14052 do
14053   IFS=$as_save_IFS
14054   test -z "$as_dir" && as_dir=.
14055   for ac_exec_ext in '' $ac_executable_extensions; do
14056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14059     break 2
14060   fi
14061 done
14062 done
14063
14064 fi
14065 fi
14066 GCJ=$ac_cv_prog_GCJ
14067 if test -n "$GCJ"; then
14068   echo "$as_me:$LINENO: result: $GCJ" >&5
14069 echo "${ECHO_T}$GCJ" >&6
14070 else
14071   echo "$as_me:$LINENO: result: no" >&5
14072 echo "${ECHO_T}no" >&6
14073 fi
14074
14075 fi
14076 if test -z "$ac_cv_prog_GCJ"; then
14077   ac_ct_GCJ=$GCJ
14078   # Extract the first word of "gcj", so it can be a program name with args.
14079 set dummy gcj; ac_word=$2
14080 echo "$as_me:$LINENO: checking for $ac_word" >&5
14081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14082 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085   if test -n "$ac_ct_GCJ"; then
14086   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14087 else
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14090 do
14091   IFS=$as_save_IFS
14092   test -z "$as_dir" && as_dir=.
14093   for ac_exec_ext in '' $ac_executable_extensions; do
14094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095     ac_cv_prog_ac_ct_GCJ="gcj"
14096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14097     break 2
14098   fi
14099 done
14100 done
14101
14102   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14103 fi
14104 fi
14105 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14106 if test -n "$ac_ct_GCJ"; then
14107   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14108 echo "${ECHO_T}$ac_ct_GCJ" >&6
14109 else
14110   echo "$as_me:$LINENO: result: no" >&5
14111 echo "${ECHO_T}no" >&6
14112 fi
14113
14114   GCJ=$ac_ct_GCJ
14115 else
14116   GCJ="$ac_cv_prog_GCJ"
14117 fi
14118
14119   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14120
14121
14122
14123
14124 # Now remove it.
14125 rm -f gnu/classpath/Configuration.java
14126
14127 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14128
14129 echo "$as_me:$LINENO: checking for void *" >&5
14130 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14131 if test "${ac_cv_type_void_p+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 $ac_includes_default
14141 int
14142 main ()
14143 {
14144 if ((void * *) 0)
14145   return 0;
14146 if (sizeof (void *))
14147   return 0;
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154   (eval $ac_compile) 2>conftest.er1
14155   ac_status=$?
14156   grep -v '^ *+' conftest.er1 >conftest.err
14157   rm -f conftest.er1
14158   cat conftest.err >&5
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -z "$ac_c_werror_flag"
14162                          || test ! -s conftest.err'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; } &&
14168          { ac_try='test -s conftest.$ac_objext'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; }; then
14174   ac_cv_type_void_p=yes
14175 else
14176   echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 ac_cv_type_void_p=no
14180 fi
14181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14182 fi
14183 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14184 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14185
14186 echo "$as_me:$LINENO: checking size of void *" >&5
14187 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14188 if test "${ac_cv_sizeof_void_p+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   if test "$ac_cv_type_void_p" = yes; then
14192   # The cast to unsigned long works around a bug in the HP C Compiler
14193   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14194   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14195   # This bug is HP SR number 8606223364.
14196   if test "$cross_compiling" = yes; then
14197   # Depending upon the size, compute the lo and hi bounds.
14198 cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 $ac_includes_default
14205 int
14206 main ()
14207 {
14208 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14209 test_array [0] = 0
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217   (eval $ac_compile) 2>conftest.er1
14218   ac_status=$?
14219   grep -v '^ *+' conftest.er1 >conftest.err
14220   rm -f conftest.er1
14221   cat conftest.err >&5
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } &&
14224          { ac_try='test -z "$ac_c_werror_flag"
14225                          || test ! -s conftest.err'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_lo=0 ac_mid=0
14238   while :; do
14239     cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 $ac_includes_default
14246 int
14247 main ()
14248 {
14249 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14250 test_array [0] = 0
14251
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14258   (eval $ac_compile) 2>conftest.er1
14259   ac_status=$?
14260   grep -v '^ *+' conftest.er1 >conftest.err
14261   rm -f conftest.er1
14262   cat conftest.err >&5
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } &&
14265          { ac_try='test -z "$ac_c_werror_flag"
14266                          || test ! -s conftest.err'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; } &&
14272          { ac_try='test -s conftest.$ac_objext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_hi=$ac_mid; break
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 ac_lo=`expr $ac_mid + 1`
14284                     if test $ac_lo -le $ac_mid; then
14285                       ac_lo= ac_hi=
14286                       break
14287                     fi
14288                     ac_mid=`expr 2 '*' $ac_mid + 1`
14289 fi
14290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14291   done
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302 $ac_includes_default
14303 int
14304 main ()
14305 {
14306 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14307 test_array [0] = 0
14308
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>conftest.er1
14316   ac_status=$?
14317   grep -v '^ *+' conftest.er1 >conftest.err
14318   rm -f conftest.er1
14319   cat conftest.err >&5
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } &&
14322          { ac_try='test -z "$ac_c_werror_flag"
14323                          || test ! -s conftest.err'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_hi=-1 ac_mid=-1
14336   while :; do
14337     cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 $ac_includes_default
14344 int
14345 main ()
14346 {
14347 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14348 test_array [0] = 0
14349
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14356   (eval $ac_compile) 2>conftest.er1
14357   ac_status=$?
14358   grep -v '^ *+' conftest.er1 >conftest.err
14359   rm -f conftest.er1
14360   cat conftest.err >&5
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); } &&
14363          { ac_try='test -z "$ac_c_werror_flag"
14364                          || test ! -s conftest.err'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; }; then
14376   ac_lo=$ac_mid; break
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_hi=`expr '(' $ac_mid ')' - 1`
14382                        if test $ac_mid -le $ac_hi; then
14383                          ac_lo= ac_hi=
14384                          break
14385                        fi
14386                        ac_mid=`expr 2 '*' $ac_mid`
14387 fi
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389   done
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_lo= ac_hi=
14395 fi
14396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 fi
14398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14399 # Binary search between lo and hi bounds.
14400 while test "x$ac_lo" != "x$ac_hi"; do
14401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14402   cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408 $ac_includes_default
14409 int
14410 main ()
14411 {
14412 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14413 test_array [0] = 0
14414
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421   (eval $ac_compile) 2>conftest.er1
14422   ac_status=$?
14423   grep -v '^ *+' conftest.er1 >conftest.err
14424   rm -f conftest.er1
14425   cat conftest.err >&5
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } &&
14428          { ac_try='test -z "$ac_c_werror_flag"
14429                          || test ! -s conftest.err'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; } &&
14435          { ac_try='test -s conftest.$ac_objext'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; }; then
14441   ac_hi=$ac_mid
14442 else
14443   echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 ac_lo=`expr '(' $ac_mid ')' + 1`
14447 fi
14448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449 done
14450 case $ac_lo in
14451 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14452 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14453 See \`config.log' for more details." >&5
14454 echo "$as_me: error: cannot compute sizeof (void *), 77
14455 See \`config.log' for more details." >&2;}
14456    { (exit 1); exit 1; }; } ;;
14457 esac
14458 else
14459   if test "$cross_compiling" = yes; then
14460   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14461 See \`config.log' for more details." >&5
14462 echo "$as_me: error: cannot run test program while cross compiling
14463 See \`config.log' for more details." >&2;}
14464    { (exit 1); exit 1; }; }
14465 else
14466   cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h.  */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h.  */
14472 $ac_includes_default
14473 long longval () { return (long) (sizeof (void *)); }
14474 unsigned long ulongval () { return (long) (sizeof (void *)); }
14475 #include <stdio.h>
14476 #include <stdlib.h>
14477 int
14478 main ()
14479 {
14480
14481   FILE *f = fopen ("conftest.val", "w");
14482   if (! f)
14483     exit (1);
14484   if (((long) (sizeof (void *))) < 0)
14485     {
14486       long i = longval ();
14487       if (i != ((long) (sizeof (void *))))
14488         exit (1);
14489       fprintf (f, "%ld\n", i);
14490     }
14491   else
14492     {
14493       unsigned long i = ulongval ();
14494       if (i != ((long) (sizeof (void *))))
14495         exit (1);
14496       fprintf (f, "%lu\n", i);
14497     }
14498   exit (ferror (f) || fclose (f) != 0);
14499
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest$ac_exeext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14506   (eval $ac_link) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; }; then
14515   ac_cv_sizeof_void_p=`cat conftest.val`
14516 else
14517   echo "$as_me: program exited with status $ac_status" >&5
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ( exit $ac_status )
14522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14523 See \`config.log' for more details." >&5
14524 echo "$as_me: error: cannot compute sizeof (void *), 77
14525 See \`config.log' for more details." >&2;}
14526    { (exit 1); exit 1; }; }
14527 fi
14528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14529 fi
14530 fi
14531 rm -f conftest.val
14532 else
14533   ac_cv_sizeof_void_p=0
14534 fi
14535 fi
14536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14537 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14538 cat >>confdefs.h <<_ACEOF
14539 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14540 _ACEOF
14541
14542
14543
14544 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14545 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14546 if test "${ac_cv_c_bigendian+set}" = set; then
14547   echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549   # See if sys/param.h defines the BYTE_ORDER macro.
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 #include <sys/types.h>
14557 #include <sys/param.h>
14558
14559 int
14560 main ()
14561 {
14562 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14563  bogus endian macros
14564 #endif
14565
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572   (eval $ac_compile) 2>conftest.er1
14573   ac_status=$?
14574   grep -v '^ *+' conftest.er1 >conftest.err
14575   rm -f conftest.er1
14576   cat conftest.err >&5
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -z "$ac_c_werror_flag"
14580                          || test ! -s conftest.err'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   # It does; now see whether it defined to BIG_ENDIAN or not.
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 #include <sys/types.h>
14600 #include <sys/param.h>
14601
14602 int
14603 main ()
14604 {
14605 #if BYTE_ORDER != BIG_ENDIAN
14606  not big endian
14607 #endif
14608
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615   (eval $ac_compile) 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_c_werror_flag"
14623                          || test ! -s conftest.err'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; } &&
14629          { ac_try='test -s conftest.$ac_objext'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   ac_cv_c_bigendian=yes
14636 else
14637   echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 ac_cv_c_bigendian=no
14641 fi
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 # It does not; compile a test program.
14648 if test "$cross_compiling" = yes; then
14649   # try to guess the endianness by grepping values into an object file
14650   ac_cv_c_bigendian=unknown
14651   cat >conftest.$ac_ext <<_ACEOF
14652 /* confdefs.h.  */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h.  */
14657 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14658 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14659 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14660 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14661 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14662 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14663 int
14664 main ()
14665 {
14666  _ascii (); _ebcdic ();
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673   (eval $ac_compile) 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } &&
14680          { ac_try='test -z "$ac_c_werror_flag"
14681                          || test ! -s conftest.err'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14694   ac_cv_c_bigendian=yes
14695 fi
14696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14697   if test "$ac_cv_c_bigendian" = unknown; then
14698     ac_cv_c_bigendian=no
14699   else
14700     # finding both strings is unlikely to happen, but who knows?
14701     ac_cv_c_bigendian=unknown
14702   fi
14703 fi
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 fi
14709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14710 else
14711   cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717 int
14718 main ()
14719 {
14720   /* Are we little or big endian?  From Harbison&Steele.  */
14721   union
14722   {
14723     long l;
14724     char c[sizeof (long)];
14725   } u;
14726   u.l = 1;
14727   exit (u.c[sizeof (long) - 1] == 1);
14728 }
14729 _ACEOF
14730 rm -f conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732   (eval $ac_link) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; }; then
14741   ac_cv_c_bigendian=no
14742 else
14743   echo "$as_me: program exited with status $ac_status" >&5
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ( exit $ac_status )
14748 ac_cv_c_bigendian=yes
14749 fi
14750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14751 fi
14752 fi
14753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754 fi
14755 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14756 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14757 case $ac_cv_c_bigendian in
14758   yes)
14759
14760 cat >>confdefs.h <<\_ACEOF
14761 #define WORDS_BIGENDIAN 1
14762 _ACEOF
14763  ;;
14764   no)
14765      ;;
14766   *)
14767     { { echo "$as_me:$LINENO: error: unknown endianness
14768 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14769 echo "$as_me: error: unknown endianness
14770 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14771    { (exit 1); exit 1; }; } ;;
14772 esac
14773
14774
14775 ZLIBS=
14776 SYS_ZLIBS=
14777 ZINCS=
14778
14779 if test -z "$ZLIBSPEC"; then
14780    # Use zlib from the GCC tree.
14781    ZINCS='-I$(top_srcdir)/../zlib'
14782    ZLIBS=../zlib/libzgcj_convenience.la
14783 else
14784    # System's zlib.
14785    SYS_ZLIBS="$ZLIBSPEC"
14786 fi
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798 if test "$NATIVE" = yes; then
14799   NATIVE_TRUE=
14800   NATIVE_FALSE='#'
14801 else
14802   NATIVE_TRUE='#'
14803   NATIVE_FALSE=
14804 fi
14805
14806
14807
14808 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14809   NEEDS_DATA_START_TRUE=
14810   NEEDS_DATA_START_FALSE='#'
14811 else
14812   NEEDS_DATA_START_TRUE='#'
14813   NEEDS_DATA_START_FALSE=
14814 fi
14815
14816
14817
14818 # Process the option "--enable-version-specific-runtime-libs"
14819 # Calculate toolexeclibdir
14820 case ${version_specific_libs} in
14821   yes)
14822     # Need the gcc compiler version to know where to install libraries
14823     # and header files if --enable-version-specific-runtime-libs option
14824     # is selected.
14825     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14826     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14827     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14828     toolexeclibdir=$toolexecmainlibdir
14829     ;;
14830   no)
14831     if test -n "$with_cross_host" &&
14832        test x"$with_cross_host" != x"no"; then
14833       # Install a library built with a cross compiler in tooldir, not libdir.
14834       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14835       toolexecmainlibdir='$(toolexecdir)/lib'
14836     else
14837       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14838       toolexecmainlibdir='$(libdir)'
14839     fi
14840     multi_os_directory=`$CC -print-multi-os-directory`
14841     case $multi_os_directory in
14842       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14843       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14844     esac
14845     ;;
14846 esac
14847
14848
14849
14850
14851 # Determine gcj version number.
14852 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14853 GCJVERSION=$gcjversion
14854
14855
14856 cat >>confdefs.h <<_ACEOF
14857 #define GCJVERSION "$GCJVERSION"
14858 _ACEOF
14859
14860
14861
14862 cat >>confdefs.h <<\_ACEOF
14863 #define JV_VERSION "1.4.2"
14864 _ACEOF
14865
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define JV_API_VERSION "1.4"
14869 _ACEOF
14870
14871
14872
14873 case "${with_gxx_include_dir}" in
14874   yes)
14875     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14876 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14877    { (exit 1); exit 1; }; }
14878     ;;
14879   no | "")
14880     case "${enable_version_specific_runtime_libs}" in
14881       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14882       *)
14883         libstdcxx_incdir='c++/$(gcc_version)'
14884         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14885     esac ;;
14886   *) gxx_include_dir=${with_gxx_include_dir} ;;
14887 esac
14888
14889
14890
14891
14892 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14893 # On that system, sys/ioctl.h will not include sys/filio.h unless
14894 # BSD_COMP is defined; just including sys/filio.h is simpler.
14895 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14896 # for now.  If you change this, you also must update natFile.cc.
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14918                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14919                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14920                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
14921                   dirent.h
14922 do
14923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925   echo "$as_me:$LINENO: checking for $ac_header" >&5
14926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14928   echo $ECHO_N "(cached) $ECHO_C" >&6
14929 fi
14930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14932 else
14933   # Is the header compilable?
14934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942 $ac_includes_default
14943 #include <$ac_header>
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14947   (eval $ac_compile) 2>conftest.er1
14948   ac_status=$?
14949   grep -v '^ *+' conftest.er1 >conftest.err
14950   rm -f conftest.er1
14951   cat conftest.err >&5
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); } &&
14954          { ac_try='test -z "$ac_c_werror_flag"
14955                          || test ! -s conftest.err'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; } &&
14961          { ac_try='test -s conftest.$ac_objext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_header_compiler=yes
14968 else
14969   echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 ac_header_compiler=no
14973 fi
14974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6
14977
14978 # Is the header present?
14979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 #include <$ac_header>
14988 _ACEOF
14989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14991   ac_status=$?
14992   grep -v '^ *+' conftest.er1 >conftest.err
14993   rm -f conftest.er1
14994   cat conftest.err >&5
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } >/dev/null; then
14997   if test -s conftest.err; then
14998     ac_cpp_err=$ac_c_preproc_warn_flag
14999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15000   else
15001     ac_cpp_err=
15002   fi
15003 else
15004   ac_cpp_err=yes
15005 fi
15006 if test -z "$ac_cpp_err"; then
15007   ac_header_preproc=yes
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012   ac_header_preproc=no
15013 fi
15014 rm -f conftest.err conftest.$ac_ext
15015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016 echo "${ECHO_T}$ac_header_preproc" >&6
15017
15018 # So?  What about this header?
15019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020   yes:no: )
15021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025     ac_header_preproc=yes
15026     ;;
15027   no:yes:* )
15028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15040     (
15041       cat <<\_ASBOX
15042 ## ---------------------------------- ##
15043 ## Report this to the libjava lists.  ##
15044 ## ---------------------------------- ##
15045 _ASBOX
15046     ) |
15047       sed "s/^/$as_me: WARNING:     /" >&2
15048     ;;
15049 esac
15050 echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   eval "$as_ac_Header=\$ac_header_preproc"
15056 fi
15057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15059
15060 fi
15061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15062   cat >>confdefs.h <<_ACEOF
15063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15064 _ACEOF
15065
15066 fi
15067
15068 done
15069
15070
15071 for ac_header in inttypes.h
15072 do
15073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15075   echo "$as_me:$LINENO: checking for $ac_header" >&5
15076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 fi
15080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15082 else
15083   # Is the header compilable?
15084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 $ac_includes_default
15093 #include <$ac_header>
15094 _ACEOF
15095 rm -f conftest.$ac_objext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15097   (eval $ac_compile) 2>conftest.er1
15098   ac_status=$?
15099   grep -v '^ *+' conftest.er1 >conftest.err
15100   rm -f conftest.er1
15101   cat conftest.err >&5
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } &&
15104          { ac_try='test -z "$ac_c_werror_flag"
15105                          || test ! -s conftest.err'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; } &&
15111          { ac_try='test -s conftest.$ac_objext'
15112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113   (eval $ac_try) 2>&5
15114   ac_status=$?
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); }; }; then
15117   ac_header_compiler=yes
15118 else
15119   echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122 ac_header_compiler=no
15123 fi
15124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15126 echo "${ECHO_T}$ac_header_compiler" >&6
15127
15128 # Is the header present?
15129 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15131 cat >conftest.$ac_ext <<_ACEOF
15132 /* confdefs.h.  */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h.  */
15137 #include <$ac_header>
15138 _ACEOF
15139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } >/dev/null; then
15147   if test -s conftest.err; then
15148     ac_cpp_err=$ac_c_preproc_warn_flag
15149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15150   else
15151     ac_cpp_err=
15152   fi
15153 else
15154   ac_cpp_err=yes
15155 fi
15156 if test -z "$ac_cpp_err"; then
15157   ac_header_preproc=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162   ac_header_preproc=no
15163 fi
15164 rm -f conftest.err conftest.$ac_ext
15165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166 echo "${ECHO_T}$ac_header_preproc" >&6
15167
15168 # So?  What about this header?
15169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170   yes:no: )
15171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175     ac_header_preproc=yes
15176     ;;
15177   no:yes:* )
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190     (
15191       cat <<\_ASBOX
15192 ## ---------------------------------- ##
15193 ## Report this to the libjava lists.  ##
15194 ## ---------------------------------- ##
15195 _ASBOX
15196     ) |
15197       sed "s/^/$as_me: WARNING:     /" >&2
15198     ;;
15199 esac
15200 echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15203   echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205   eval "$as_ac_Header=\$ac_header_preproc"
15206 fi
15207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15209
15210 fi
15211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15212   cat >>confdefs.h <<_ACEOF
15213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15214 _ACEOF
15215
15216
15217 cat >>confdefs.h <<\_ACEOF
15218 #define HAVE_INTTYPES_H 1
15219 _ACEOF
15220
15221
15222 cat >>confdefs.h <<\_ACEOF
15223 #define JV_HAVE_INTTYPES_H 1
15224 _ACEOF
15225
15226
15227 fi
15228
15229 done
15230
15231 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15232 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15233 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242 #include <sys/types.h>
15243 #include <sys/wait.h>
15244 #ifndef WEXITSTATUS
15245 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15246 #endif
15247 #ifndef WIFEXITED
15248 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15249 #endif
15250
15251 int
15252 main ()
15253 {
15254   int s;
15255   wait (&s);
15256   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15263   (eval $ac_compile) 2>conftest.er1
15264   ac_status=$?
15265   grep -v '^ *+' conftest.er1 >conftest.err
15266   rm -f conftest.er1
15267   cat conftest.err >&5
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } &&
15270          { ac_try='test -z "$ac_c_werror_flag"
15271                          || test ! -s conftest.err'
15272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273   (eval $ac_try) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; } &&
15277          { ac_try='test -s conftest.$ac_objext'
15278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279   (eval $ac_try) 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); }; }; then
15283   ac_cv_header_sys_wait_h=yes
15284 else
15285   echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 ac_cv_header_sys_wait_h=no
15289 fi
15290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15291 fi
15292 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15293 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15294 if test $ac_cv_header_sys_wait_h = yes; then
15295
15296 cat >>confdefs.h <<\_ACEOF
15297 #define HAVE_SYS_WAIT_H 1
15298 _ACEOF
15299
15300 fi
15301
15302
15303 echo "$as_me:$LINENO: checking for ssize_t" >&5
15304 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15305 if test "${ac_cv_type_ssize_t+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 $ac_includes_default
15315 int
15316 main ()
15317 {
15318 if ((ssize_t *) 0)
15319   return 0;
15320 if (sizeof (ssize_t))
15321   return 0;
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328   (eval $ac_compile) 2>conftest.er1
15329   ac_status=$?
15330   grep -v '^ *+' conftest.er1 >conftest.err
15331   rm -f conftest.er1
15332   cat conftest.err >&5
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } &&
15335          { ac_try='test -z "$ac_c_werror_flag"
15336                          || test ! -s conftest.err'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; } &&
15342          { ac_try='test -s conftest.$ac_objext'
15343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344   (eval $ac_try) 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; }; then
15348   ac_cv_type_ssize_t=yes
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_cv_type_ssize_t=no
15354 fi
15355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15356 fi
15357 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15358 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15359 if test $ac_cv_type_ssize_t = yes; then
15360   :
15361 else
15362
15363 cat >>confdefs.h <<_ACEOF
15364 #define ssize_t int
15365 _ACEOF
15366
15367 fi
15368
15369
15370 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15371 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378 #include <sys/types.h>
15379 #if STDC_HEADERS
15380 #include <stdlib.h>
15381 #include <stddef.h>
15382 #endif
15383 #if HAVE_NETINET_IN_H
15384 #include <netinet/in.h>
15385 #endif
15386 int
15387 main ()
15388 {
15389 in_addr_t foo;
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396   (eval $ac_compile) 2>conftest.er1
15397   ac_status=$?
15398   grep -v '^ *+' conftest.er1 >conftest.err
15399   rm -f conftest.er1
15400   cat conftest.err >&5
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); } &&
15403          { ac_try='test -z "$ac_c_werror_flag"
15404                          || test ! -s conftest.err'
15405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406   (eval $ac_try) 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; } &&
15410          { ac_try='test -s conftest.$ac_objext'
15411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412   (eval $ac_try) 2>&5
15413   ac_status=$?
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); }; }; then
15416
15417 cat >>confdefs.h <<\_ACEOF
15418 #define HAVE_IN_ADDR_T 1
15419 _ACEOF
15420
15421    echo "$as_me:$LINENO: result: yes" >&5
15422 echo "${ECHO_T}yes" >&6
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427 echo "$as_me:$LINENO: result: no" >&5
15428 echo "${ECHO_T}no" >&6
15429 fi
15430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15431
15432 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15433 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 #include <netinet/in.h>
15441 int
15442 main ()
15443 {
15444 struct ip_mreq mreq;
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451   (eval $ac_compile) 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_c_werror_flag"
15459                          || test ! -s conftest.err'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; } &&
15465          { ac_try='test -s conftest.$ac_objext'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; }; then
15471
15472 cat >>confdefs.h <<\_ACEOF
15473 #define HAVE_STRUCT_IP_MREQ 1
15474 _ACEOF
15475
15476    echo "$as_me:$LINENO: result: yes" >&5
15477 echo "${ECHO_T}yes" >&6
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 echo "$as_me:$LINENO: result: no" >&5
15483 echo "${ECHO_T}no" >&6
15484 fi
15485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15486
15487 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15488 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h.  */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h.  */
15495 #include <netinet/in.h>
15496 int
15497 main ()
15498 {
15499 struct ipv6_mreq mreq6;
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506   (eval $ac_compile) 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } &&
15513          { ac_try='test -z "$ac_c_werror_flag"
15514                          || test ! -s conftest.err'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; } &&
15520          { ac_try='test -s conftest.$ac_objext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526
15527 cat >>confdefs.h <<\_ACEOF
15528 #define HAVE_STRUCT_IPV6_MREQ 1
15529 _ACEOF
15530
15531    echo "$as_me:$LINENO: result: yes" >&5
15532 echo "${ECHO_T}yes" >&6
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 echo "$as_me:$LINENO: result: no" >&5
15538 echo "${ECHO_T}no" >&6
15539 fi
15540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15541
15542 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15543 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15544 cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 #include <netinet/in.h>
15551 int
15552 main ()
15553 {
15554 struct sockaddr_in6 addr6;
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561   (eval $ac_compile) 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -z "$ac_c_werror_flag"
15569                          || test ! -s conftest.err'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; } &&
15575          { ac_try='test -s conftest.$ac_objext'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_INET6 1
15584 _ACEOF
15585
15586    echo "$as_me:$LINENO: result: yes" >&5
15587 echo "${ECHO_T}yes" >&6
15588 else
15589   echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15591
15592 echo "$as_me:$LINENO: result: no" >&5
15593 echo "${ECHO_T}no" >&6
15594 fi
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596
15597 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15598 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 #define _POSIX_PII_SOCKET
15606 #include <sys/types.h>
15607 #include <sys/socket.h>
15608 int
15609 main ()
15610 {
15611 socklen_t x = 5;
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"
15626                          || test ! -s conftest.err'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_SOCKLEN_T 1
15641 _ACEOF
15642
15643    echo "$as_me:$LINENO: result: yes" >&5
15644 echo "${ECHO_T}yes" >&6
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 echo "$as_me:$LINENO: result: no" >&5
15650 echo "${ECHO_T}no" >&6
15651 fi
15652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15653
15654 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15655 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 #include <time.h>
15663 int
15664 main ()
15665 {
15666 struct tm tim; tim.tm_gmtoff = 0;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag"
15681                          || test ! -s conftest.err'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest.$ac_objext'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693
15694 cat >>confdefs.h <<\_ACEOF
15695 #define STRUCT_TM_HAS_GMTOFF 1
15696 _ACEOF
15697
15698    echo "$as_me:$LINENO: result: yes" >&5
15699 echo "${ECHO_T}yes" >&6
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 echo "$as_me:$LINENO: result: no" >&5
15705 echo "${ECHO_T}no" >&6
15706    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15707 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15708                cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714 #include <time.h>
15715 int
15716 main ()
15717 {
15718 void i(){long z2 = 2*timezone;}
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag"
15733                          || test ! -s conftest.err'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745
15746 cat >>confdefs.h <<\_ACEOF
15747 #define HAVE_TIMEZONE 1
15748 _ACEOF
15749
15750       echo "$as_me:$LINENO: result: yes" >&5
15751 echo "${ECHO_T}yes" >&6
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 echo "$as_me:$LINENO: result: no" >&5
15757 echo "${ECHO_T}no" >&6
15758        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15759 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15760               cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766 #include <time.h>
15767 int
15768 main ()
15769 {
15770 long z2 = _timezone;
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15777   (eval $ac_compile) 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -z "$ac_c_werror_flag"
15785                          || test ! -s conftest.err'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; } &&
15791          { ac_try='test -s conftest.$ac_objext'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797
15798 cat >>confdefs.h <<\_ACEOF
15799 #define HAVE_UNDERSCORE_TIMEZONE 1
15800 _ACEOF
15801
15802           echo "$as_me:$LINENO: result: yes" >&5
15803 echo "${ECHO_T}yes" >&6
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 echo "$as_me:$LINENO: result: no" >&5
15809 echo "${ECHO_T}no" >&6
15810 fi
15811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15812 fi
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 fi
15815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15816
15817 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15818 # for constant arguments.  Useless!
15819 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15820 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15821 if test "${ac_cv_working_alloca_h+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   if test x$gcc_no_link = xyes; then
15825   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15827    { (exit 1); exit 1; }; }
15828 fi
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 #include <alloca.h>
15836 int
15837 main ()
15838 {
15839 char *p = (char *) alloca (2 * sizeof (int));
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15846   (eval $ac_link) 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } &&
15853          { ac_try='test -z "$ac_c_werror_flag"
15854                          || test ! -s conftest.err'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } &&
15860          { ac_try='test -s conftest$ac_exeext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_cv_working_alloca_h=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 ac_cv_working_alloca_h=no
15872 fi
15873 rm -f conftest.err conftest.$ac_objext \
15874       conftest$ac_exeext conftest.$ac_ext
15875 fi
15876 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15877 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15878 if test $ac_cv_working_alloca_h = yes; then
15879
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE_ALLOCA_H 1
15882 _ACEOF
15883
15884 fi
15885
15886 echo "$as_me:$LINENO: checking for alloca" >&5
15887 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15888 if test "${ac_cv_func_alloca_works+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   if test x$gcc_no_link = xyes; then
15892   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15894    { (exit 1); exit 1; }; }
15895 fi
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h.  */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h.  */
15902 #ifdef __GNUC__
15903 # define alloca __builtin_alloca
15904 #else
15905 # ifdef _MSC_VER
15906 #  include <malloc.h>
15907 #  define alloca _alloca
15908 # else
15909 #  if HAVE_ALLOCA_H
15910 #   include <alloca.h>
15911 #  else
15912 #   ifdef _AIX
15913  #pragma alloca
15914 #   else
15915 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15916 char *alloca ();
15917 #    endif
15918 #   endif
15919 #  endif
15920 # endif
15921 #endif
15922
15923 int
15924 main ()
15925 {
15926 char *p = (char *) alloca (1);
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933   (eval $ac_link) 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag"
15941                          || test ! -s conftest.err'
15942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943   (eval $ac_try) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest$ac_exeext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953   ac_cv_func_alloca_works=yes
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_cv_func_alloca_works=no
15959 fi
15960 rm -f conftest.err conftest.$ac_objext \
15961       conftest$ac_exeext conftest.$ac_ext
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15964 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15965
15966 if test $ac_cv_func_alloca_works = yes; then
15967
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_ALLOCA 1
15970 _ACEOF
15971
15972 else
15973   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15974 # that cause trouble.  Some versions do not even contain alloca or
15975 # contain a buggy version.  If you still want to use their alloca,
15976 # use ar to extract alloca.o from them instead of compiling alloca.c.
15977
15978 ALLOCA=alloca.$ac_objext
15979
15980 cat >>confdefs.h <<\_ACEOF
15981 #define C_ALLOCA 1
15982 _ACEOF
15983
15984
15985 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15986 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15987 if test "${ac_cv_os_cray+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996 #if defined(CRAY) && ! defined(CRAY2)
15997 webecray
15998 #else
15999 wenotbecray
16000 #endif
16001
16002 _ACEOF
16003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16004   $EGREP "webecray" >/dev/null 2>&1; then
16005   ac_cv_os_cray=yes
16006 else
16007   ac_cv_os_cray=no
16008 fi
16009 rm -f conftest*
16010
16011 fi
16012 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16013 echo "${ECHO_T}$ac_cv_os_cray" >&6
16014 if test $ac_cv_os_cray = yes; then
16015   for ac_func in _getb67 GETB67 getb67; do
16016     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017 echo "$as_me:$LINENO: checking for $ac_func" >&5
16018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16019 if eval "test \"\${$as_ac_var+set}\" = set"; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022   if test x$gcc_no_link = xyes; then
16023   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16024 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16025    { (exit 1); exit 1; }; }
16026 fi
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h.  */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h.  */
16033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16035 #define $ac_func innocuous_$ac_func
16036
16037 /* System header to define __stub macros and hopefully few prototypes,
16038     which can conflict with char $ac_func (); below.
16039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16040     <limits.h> exists even on freestanding compilers.  */
16041
16042 #ifdef __STDC__
16043 # include <limits.h>
16044 #else
16045 # include <assert.h>
16046 #endif
16047
16048 #undef $ac_func
16049
16050 /* Override any gcc2 internal prototype to avoid an error.  */
16051 #ifdef __cplusplus
16052 extern "C"
16053 {
16054 #endif
16055 /* We use char because int might match the return type of a gcc2
16056    builtin and then its argument prototype would still apply.  */
16057 char $ac_func ();
16058 /* The GNU C library defines this for functions which it implements
16059     to always fail with ENOSYS.  Some functions are actually named
16060     something starting with __ and the normal name is an alias.  */
16061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16062 choke me
16063 #else
16064 char (*f) () = $ac_func;
16065 #endif
16066 #ifdef __cplusplus
16067 }
16068 #endif
16069
16070 int
16071 main ()
16072 {
16073 return f != $ac_func;
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080   (eval $ac_link) 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } &&
16087          { ac_try='test -z "$ac_c_werror_flag"
16088                          || test ! -s conftest.err'
16089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090   (eval $ac_try) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; } &&
16094          { ac_try='test -s conftest$ac_exeext'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   eval "$as_ac_var=yes"
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 eval "$as_ac_var=no"
16106 fi
16107 rm -f conftest.err conftest.$ac_objext \
16108       conftest$ac_exeext conftest.$ac_ext
16109 fi
16110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16112 if test `eval echo '${'$as_ac_var'}'` = yes; then
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define CRAY_STACKSEG_END $ac_func
16116 _ACEOF
16117
16118     break
16119 fi
16120
16121   done
16122 fi
16123
16124 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16125 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16126 if test "${ac_cv_c_stack_direction+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   if test "$cross_compiling" = yes; then
16130   ac_cv_c_stack_direction=0
16131 else
16132   cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138 int
16139 find_stack_direction ()
16140 {
16141   static char *addr = 0;
16142   auto char dummy;
16143   if (addr == 0)
16144     {
16145       addr = &dummy;
16146       return find_stack_direction ();
16147     }
16148   else
16149     return (&dummy > addr) ? 1 : -1;
16150 }
16151
16152 int
16153 main ()
16154 {
16155   exit (find_stack_direction () < 0);
16156 }
16157 _ACEOF
16158 rm -f conftest$ac_exeext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160   (eval $ac_link) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165   (eval $ac_try) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; }; then
16169   ac_cv_c_stack_direction=1
16170 else
16171   echo "$as_me: program exited with status $ac_status" >&5
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175 ( exit $ac_status )
16176 ac_cv_c_stack_direction=-1
16177 fi
16178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16179 fi
16180 fi
16181 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16182 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16183
16184 cat >>confdefs.h <<_ACEOF
16185 #define STACK_DIRECTION $ac_cv_c_stack_direction
16186 _ACEOF
16187
16188
16189 fi
16190
16191 if test x$gcc_no_link = xyes; then
16192   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16193     ac_cv_func_mmap_fixed_mapped=no
16194   fi
16195 fi
16196 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16197
16198
16199 for ac_header in stdlib.h unistd.h
16200 do
16201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16203   echo "$as_me:$LINENO: checking for $ac_header" >&5
16204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 fi
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16210 else
16211   # Is the header compilable?
16212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220 $ac_includes_default
16221 #include <$ac_header>
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225   (eval $ac_compile) 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -z "$ac_c_werror_flag"
16233                          || test ! -s conftest.err'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   ac_header_compiler=yes
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250 ac_header_compiler=no
16251 fi
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16254 echo "${ECHO_T}$ac_header_compiler" >&6
16255
16256 # Is the header present?
16257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16259 cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265 #include <$ac_header>
16266 _ACEOF
16267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } >/dev/null; then
16275   if test -s conftest.err; then
16276     ac_cpp_err=$ac_c_preproc_warn_flag
16277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16278   else
16279     ac_cpp_err=
16280   fi
16281 else
16282   ac_cpp_err=yes
16283 fi
16284 if test -z "$ac_cpp_err"; then
16285   ac_header_preproc=yes
16286 else
16287   echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16289
16290   ac_header_preproc=no
16291 fi
16292 rm -f conftest.err conftest.$ac_ext
16293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6
16295
16296 # So?  What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298   yes:no: )
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303     ac_header_preproc=yes
16304     ;;
16305   no:yes:* )
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318     (
16319       cat <<\_ASBOX
16320 ## ---------------------------------- ##
16321 ## Report this to the libjava lists.  ##
16322 ## ---------------------------------- ##
16323 _ASBOX
16324     ) |
16325       sed "s/^/$as_me: WARNING:     /" >&2
16326     ;;
16327 esac
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   eval "$as_ac_Header=\$ac_header_preproc"
16334 fi
16335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16337
16338 fi
16339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16340   cat >>confdefs.h <<_ACEOF
16341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16342 _ACEOF
16343
16344 fi
16345
16346 done
16347
16348
16349 for ac_func in getpagesize
16350 do
16351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16352 echo "$as_me:$LINENO: checking for $ac_func" >&5
16353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16354 if eval "test \"\${$as_ac_var+set}\" = set"; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   if test x$gcc_no_link = xyes; then
16358   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16360    { (exit 1); exit 1; }; }
16361 fi
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16370 #define $ac_func innocuous_$ac_func
16371
16372 /* System header to define __stub macros and hopefully few prototypes,
16373     which can conflict with char $ac_func (); below.
16374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375     <limits.h> exists even on freestanding compilers.  */
16376
16377 #ifdef __STDC__
16378 # include <limits.h>
16379 #else
16380 # include <assert.h>
16381 #endif
16382
16383 #undef $ac_func
16384
16385 /* Override any gcc2 internal prototype to avoid an error.  */
16386 #ifdef __cplusplus
16387 extern "C"
16388 {
16389 #endif
16390 /* We use char because int might match the return type of a gcc2
16391    builtin and then its argument prototype would still apply.  */
16392 char $ac_func ();
16393 /* The GNU C library defines this for functions which it implements
16394     to always fail with ENOSYS.  Some functions are actually named
16395     something starting with __ and the normal name is an alias.  */
16396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16397 choke me
16398 #else
16399 char (*f) () = $ac_func;
16400 #endif
16401 #ifdef __cplusplus
16402 }
16403 #endif
16404
16405 int
16406 main ()
16407 {
16408 return f != $ac_func;
16409   ;
16410   return 0;
16411 }
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16415   (eval $ac_link) 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } &&
16422          { ac_try='test -z "$ac_c_werror_flag"
16423                          || test ! -s conftest.err'
16424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425   (eval $ac_try) 2>&5
16426   ac_status=$?
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); }; } &&
16429          { ac_try='test -s conftest$ac_exeext'
16430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431   (eval $ac_try) 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   eval "$as_ac_var=yes"
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440 eval "$as_ac_var=no"
16441 fi
16442 rm -f conftest.err conftest.$ac_objext \
16443       conftest$ac_exeext conftest.$ac_ext
16444 fi
16445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16447 if test `eval echo '${'$as_ac_var'}'` = yes; then
16448   cat >>confdefs.h <<_ACEOF
16449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16450 _ACEOF
16451
16452 fi
16453 done
16454
16455 echo "$as_me:$LINENO: checking for working mmap" >&5
16456 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16457 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   if test "$cross_compiling" = yes; then
16461   ac_cv_func_mmap_fixed_mapped=no
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 $ac_includes_default
16470 /* malloc might have been renamed as rpl_malloc. */
16471 #undef malloc
16472
16473 /* Thanks to Mike Haertel and Jim Avera for this test.
16474    Here is a matrix of mmap possibilities:
16475         mmap private not fixed
16476         mmap private fixed at somewhere currently unmapped
16477         mmap private fixed at somewhere already mapped
16478         mmap shared not fixed
16479         mmap shared fixed at somewhere currently unmapped
16480         mmap shared fixed at somewhere already mapped
16481    For private mappings, we should verify that changes cannot be read()
16482    back from the file, nor mmap's back from the file at a different
16483    address.  (There have been systems where private was not correctly
16484    implemented like the infamous i386 svr4.0, and systems where the
16485    VM page cache was not coherent with the file system buffer cache
16486    like early versions of FreeBSD and possibly contemporary NetBSD.)
16487    For shared mappings, we should conversely verify that changes get
16488    propagated back to all the places they're supposed to be.
16489
16490    Grep wants private fixed already mapped.
16491    The main things grep needs to know about mmap are:
16492    * does it exist and is it safe to write into the mmap'd area
16493    * how to use it (BSD variants)  */
16494
16495 #include <fcntl.h>
16496 #include <sys/mman.h>
16497
16498 #if !STDC_HEADERS && !HAVE_STDLIB_H
16499 char *malloc ();
16500 #endif
16501
16502 /* This mess was copied from the GNU getpagesize.h.  */
16503 #if !HAVE_GETPAGESIZE
16504 /* Assume that all systems that can run configure have sys/param.h.  */
16505 # if !HAVE_SYS_PARAM_H
16506 #  define HAVE_SYS_PARAM_H 1
16507 # endif
16508
16509 # ifdef _SC_PAGESIZE
16510 #  define getpagesize() sysconf(_SC_PAGESIZE)
16511 # else /* no _SC_PAGESIZE */
16512 #  if HAVE_SYS_PARAM_H
16513 #   include <sys/param.h>
16514 #   ifdef EXEC_PAGESIZE
16515 #    define getpagesize() EXEC_PAGESIZE
16516 #   else /* no EXEC_PAGESIZE */
16517 #    ifdef NBPG
16518 #     define getpagesize() NBPG * CLSIZE
16519 #     ifndef CLSIZE
16520 #      define CLSIZE 1
16521 #     endif /* no CLSIZE */
16522 #    else /* no NBPG */
16523 #     ifdef NBPC
16524 #      define getpagesize() NBPC
16525 #     else /* no NBPC */
16526 #      ifdef PAGESIZE
16527 #       define getpagesize() PAGESIZE
16528 #      endif /* PAGESIZE */
16529 #     endif /* no NBPC */
16530 #    endif /* no NBPG */
16531 #   endif /* no EXEC_PAGESIZE */
16532 #  else /* no HAVE_SYS_PARAM_H */
16533 #   define getpagesize() 8192   /* punt totally */
16534 #  endif /* no HAVE_SYS_PARAM_H */
16535 # endif /* no _SC_PAGESIZE */
16536
16537 #endif /* no HAVE_GETPAGESIZE */
16538
16539 int
16540 main ()
16541 {
16542   char *data, *data2, *data3;
16543   int i, pagesize;
16544   int fd;
16545
16546   pagesize = getpagesize ();
16547
16548   /* First, make a file with some known garbage in it. */
16549   data = (char *) malloc (pagesize);
16550   if (!data)
16551     exit (1);
16552   for (i = 0; i < pagesize; ++i)
16553     *(data + i) = rand ();
16554   umask (0);
16555   fd = creat ("conftest.mmap", 0600);
16556   if (fd < 0)
16557     exit (1);
16558   if (write (fd, data, pagesize) != pagesize)
16559     exit (1);
16560   close (fd);
16561
16562   /* Next, try to mmap the file at a fixed address which already has
16563      something else allocated at it.  If we can, also make sure that
16564      we see the same garbage.  */
16565   fd = open ("conftest.mmap", O_RDWR);
16566   if (fd < 0)
16567     exit (1);
16568   data2 = (char *) malloc (2 * pagesize);
16569   if (!data2)
16570     exit (1);
16571   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16572   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16573                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16574     exit (1);
16575   for (i = 0; i < pagesize; ++i)
16576     if (*(data + i) != *(data2 + i))
16577       exit (1);
16578
16579   /* Finally, make sure that changes to the mapped area do not
16580      percolate back to the file as seen by read().  (This is a bug on
16581      some variants of i386 svr4.0.)  */
16582   for (i = 0; i < pagesize; ++i)
16583     *(data2 + i) = *(data2 + i) + 1;
16584   data3 = (char *) malloc (pagesize);
16585   if (!data3)
16586     exit (1);
16587   if (read (fd, data3, pagesize) != pagesize)
16588     exit (1);
16589   for (i = 0; i < pagesize; ++i)
16590     if (*(data + i) != *(data3 + i))
16591       exit (1);
16592   close (fd);
16593   exit (0);
16594 }
16595 _ACEOF
16596 rm -f conftest$ac_exeext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16598   (eval $ac_link) 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_cv_func_mmap_fixed_mapped=yes
16608 else
16609   echo "$as_me: program exited with status $ac_status" >&5
16610 echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613 ( exit $ac_status )
16614 ac_cv_func_mmap_fixed_mapped=no
16615 fi
16616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 fi
16619 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16620 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16621 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16622
16623 cat >>confdefs.h <<\_ACEOF
16624 #define HAVE_MMAP 1
16625 _ACEOF
16626
16627 fi
16628 rm -f conftest.mmap
16629
16630 fi
16631
16632 for ac_prog in perl
16633 do
16634   # Extract the first word of "$ac_prog", so it can be a program name with args.
16635 set dummy $ac_prog; ac_word=$2
16636 echo "$as_me:$LINENO: checking for $ac_word" >&5
16637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16638 if test "${ac_cv_prog_PERL+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   if test -n "$PERL"; then
16642   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16643 else
16644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16645 for as_dir in $PATH
16646 do
16647   IFS=$as_save_IFS
16648   test -z "$as_dir" && as_dir=.
16649   for ac_exec_ext in '' $ac_executable_extensions; do
16650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16651     ac_cv_prog_PERL="$ac_prog"
16652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16653     break 2
16654   fi
16655 done
16656 done
16657
16658 fi
16659 fi
16660 PERL=$ac_cv_prog_PERL
16661 if test -n "$PERL"; then
16662   echo "$as_me:$LINENO: result: $PERL" >&5
16663 echo "${ECHO_T}$PERL" >&6
16664 else
16665   echo "$as_me:$LINENO: result: no" >&5
16666 echo "${ECHO_T}no" >&6
16667 fi
16668
16669   test -n "$PERL" && break
16670 done
16671 test -n "$PERL" || PERL="false"
16672
16673
16674 SYSDEP_SOURCES=
16675 SIGNAL_HANDLER_AUX=
16676
16677 case "${host}" in
16678  i?86-*-linux*)
16679     SIGNAL_HANDLER=include/i386-signal.h
16680     ;;
16681  sparc*-sun-solaris*)
16682     SIGNAL_HANDLER=include/sparc-signal.h
16683     ;;
16684 # ia64-*)
16685 #    SYSDEP_SOURCES=sysdep/ia64.c
16686 #    test -d sysdep || mkdir sysdep
16687 #    ;;
16688  hppa*-*-linux*)
16689     SIGNAL_HANDLER=include/pa-signal.h
16690     ;;
16691  ia64-*-linux*)
16692     SIGNAL_HANDLER=include/dwarf2-signal.h
16693     ;;
16694  powerpc*-*-linux*)
16695     SIGNAL_HANDLER=include/powerpc-signal.h
16696     ;;
16697  alpha*-*-linux*)
16698     SIGNAL_HANDLER=include/dwarf2-signal.h
16699     ;;
16700  s390*-*-linux*)
16701     SIGNAL_HANDLER=include/s390-signal.h
16702     ;;
16703  x86_64*-*-linux*)
16704     SIGNAL_HANDLER=include/x86_64-signal.h
16705     SIGNAL_HANDLER_AUX=include/i386-signal.h
16706     ;;
16707  sparc*-*-linux*)
16708     SIGNAL_HANDLER=include/dwarf2-signal.h
16709     ;;
16710  sh*-*-linux*)
16711     SIGNAL_HANDLER=include/sh-signal.h
16712     ;;
16713  *mingw*)
16714     SIGNAL_HANDLER=include/win32-signal.h
16715     ;;
16716  mips*-*-linux*)
16717     SIGNAL_HANDLER=include/mips-signal.h
16718     ;;
16719  *-*-darwin*)
16720     SIGNAL_HANDLER=include/darwin-signal.h
16721     ;;
16722  *)
16723     SIGNAL_HANDLER=include/default-signal.h
16724     ;;
16725 esac
16726
16727 # If we're using sjlj exceptions, forget what we just learned.
16728 if test "$enable_sjlj_exceptions" = yes; then
16729    SIGNAL_HANDLER=include/default-signal.h
16730    SIGNAL_HANDLER_AUX=
16731 fi
16732
16733
16734
16735 if test -z "$SIGNAL_HANDLER_AUX"; then
16736   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16737 fi
16738
16739                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16740
16741
16742 if test "${multilib}" = "yes"; then
16743   multilib_arg="--enable-multilib"
16744 else
16745   multilib_arg=
16746 fi
16747
16748 # See if we support thread-local storage.
16749
16750    # Check whether --enable-tls or --disable-tls was given.
16751 if test "${enable_tls+set}" = set; then
16752   enableval="$enable_tls"
16753
16754       case "$enableval" in
16755        yes|no) ;;
16756        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16757 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16758    { (exit 1); exit 1; }; } ;;
16759       esac
16760
16761 else
16762   enable_tls=yes
16763 fi;
16764
16765   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16766 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16767 if test "${have_tls+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770
16771     if test "$cross_compiling" = yes; then
16772   cat >conftest.$ac_ext <<_ACEOF
16773 __thread int foo;
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777   (eval $ac_compile) 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } &&
16784          { ac_try='test -z "$ac_c_werror_flag"
16785                          || test ! -s conftest.err'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; } &&
16791          { ac_try='test -s conftest.$ac_objext'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797   have_tls=yes
16798 else
16799   echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 have_tls=no
16803 fi
16804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 __thread int a; int b; int main() { return a = b; }
16809 _ACEOF
16810 rm -f conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812   (eval $ac_link) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817   (eval $ac_try) 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; }; then
16821                     save_LDFLAGS="$LDFLAGS"
16822       LDFLAGS="-static $LDFLAGS"
16823       if test "$cross_compiling" = yes; then
16824   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16825 See \`config.log' for more details." >&5
16826 echo "$as_me: error: cannot run test program while cross compiling
16827 See \`config.log' for more details." >&2;}
16828    { (exit 1); exit 1; }; }
16829 else
16830   cat >conftest.$ac_ext <<_ACEOF
16831 __thread int a; int b; int main() { return a = b; }
16832 _ACEOF
16833 rm -f conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835   (eval $ac_link) 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   have_tls=yes
16845 else
16846   echo "$as_me: program exited with status $ac_status" >&5
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 ( exit $ac_status )
16851 have_tls=no
16852 fi
16853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16854 fi
16855       LDFLAGS="$save_LDFLAGS"
16856 else
16857   echo "$as_me: program exited with status $ac_status" >&5
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861 ( exit $ac_status )
16862 have_tls=no
16863 fi
16864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 fi
16867 echo "$as_me:$LINENO: result: $have_tls" >&5
16868 echo "${ECHO_T}$have_tls" >&6
16869   if test "$enable_tls $have_tls" = "yes yes"; then
16870
16871 cat >>confdefs.h <<\_ACEOF
16872 #define HAVE_TLS 1
16873 _ACEOF
16874
16875   fi
16876
16877
16878 here=`${PWDCMD-pwd}`
16879
16880
16881 # We get this from the environment.
16882
16883
16884                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16885
16886
16887           ac_config_commands="$ac_config_commands default"
16888
16889
16890 cat >confcache <<\_ACEOF
16891 # This file is a shell script that caches the results of configure
16892 # tests run on this system so they can be shared between configure
16893 # scripts and configure runs, see configure's option --config-cache.
16894 # It is not useful on other systems.  If it contains results you don't
16895 # want to keep, you may remove or edit it.
16896 #
16897 # config.status only pays attention to the cache file if you give it
16898 # the --recheck option to rerun configure.
16899 #
16900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16902 # following values.
16903
16904 _ACEOF
16905
16906 # The following way of writing the cache mishandles newlines in values,
16907 # but we know of no workaround that is simple, portable, and efficient.
16908 # So, don't put newlines in cache variables' values.
16909 # Ultrix sh set writes to stderr and can't be redirected directly,
16910 # and sets the high bit in the cache file unless we assign to the vars.
16911 {
16912   (set) 2>&1 |
16913     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16914     *ac_space=\ *)
16915       # `set' does not quote correctly, so add quotes (double-quote
16916       # substitution turns \\\\ into \\, and sed turns \\ into \).
16917       sed -n \
16918         "s/'/'\\\\''/g;
16919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16920       ;;
16921     *)
16922       # `set' quotes correctly as required by POSIX, so do not add quotes.
16923       sed -n \
16924         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16925       ;;
16926     esac;
16927 } |
16928   sed '
16929      t clear
16930      : clear
16931      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16932      t end
16933      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16934      : end' >>confcache
16935 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16936   if test -w $cache_file; then
16937     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16938     cat confcache >$cache_file
16939   else
16940     echo "not updating unwritable cache $cache_file"
16941   fi
16942 fi
16943 rm -f confcache
16944
16945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16946 # Let make expand exec_prefix.
16947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16948
16949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16951 # trailing colons and then remove the whole line if VPATH becomes empty
16952 # (actually we leave an empty line to preserve line numbers).
16953 if test "x$srcdir" = x.; then
16954   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16955 s/:*\$(srcdir):*/:/;
16956 s/:*\${srcdir}:*/:/;
16957 s/:*@srcdir@:*/:/;
16958 s/^\([^=]*=[     ]*\):*/\1/;
16959 s/:*$//;
16960 s/^[^=]*=[       ]*$//;
16961 }'
16962 fi
16963
16964 DEFS=-DHAVE_CONFIG_H
16965
16966 ac_libobjs=
16967 ac_ltlibobjs=
16968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16969   # 1. Remove the extension, and $U if already installed.
16970   ac_i=`echo "$ac_i" |
16971          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16972   # 2. Add them.
16973   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16974   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16975 done
16976 LIBOBJS=$ac_libobjs
16977
16978 LTLIBOBJS=$ac_ltlibobjs
16979
16980
16981 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16982   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16983 Usually this means the macro was only invoked conditionally." >&5
16984 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16985 Usually this means the macro was only invoked conditionally." >&2;}
16986    { (exit 1); exit 1; }; }
16987 fi
16988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16989   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16990 Usually this means the macro was only invoked conditionally." >&5
16991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16992 Usually this means the macro was only invoked conditionally." >&2;}
16993    { (exit 1); exit 1; }; }
16994 fi
16995 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16996   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16997 Usually this means the macro was only invoked conditionally." >&5
16998 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16999 Usually this means the macro was only invoked conditionally." >&2;}
17000    { (exit 1); exit 1; }; }
17001 fi
17002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17003   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17004 Usually this means the macro was only invoked conditionally." >&5
17005 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17006 Usually this means the macro was only invoked conditionally." >&2;}
17007    { (exit 1); exit 1; }; }
17008 fi
17009 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17010   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17011 Usually this means the macro was only invoked conditionally." >&5
17012 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17013 Usually this means the macro was only invoked conditionally." >&2;}
17014    { (exit 1); exit 1; }; }
17015 fi
17016 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17017   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17018 Usually this means the macro was only invoked conditionally." >&5
17019 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17020 Usually this means the macro was only invoked conditionally." >&2;}
17021    { (exit 1); exit 1; }; }
17022 fi
17023 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17024   { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17025 Usually this means the macro was only invoked conditionally." >&5
17026 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17027 Usually this means the macro was only invoked conditionally." >&2;}
17028    { (exit 1); exit 1; }; }
17029 fi
17030 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17031   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17032 Usually this means the macro was only invoked conditionally." >&5
17033 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17034 Usually this means the macro was only invoked conditionally." >&2;}
17035    { (exit 1); exit 1; }; }
17036 fi
17037 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17038   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17039 Usually this means the macro was only invoked conditionally." >&5
17040 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17041 Usually this means the macro was only invoked conditionally." >&2;}
17042    { (exit 1); exit 1; }; }
17043 fi
17044 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17045   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17046 Usually this means the macro was only invoked conditionally." >&5
17047 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17048 Usually this means the macro was only invoked conditionally." >&2;}
17049    { (exit 1); exit 1; }; }
17050 fi
17051 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17052   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17053 Usually this means the macro was only invoked conditionally." >&5
17054 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17055 Usually this means the macro was only invoked conditionally." >&2;}
17056    { (exit 1); exit 1; }; }
17057 fi
17058 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17059   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17060 Usually this means the macro was only invoked conditionally." >&5
17061 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17062 Usually this means the macro was only invoked conditionally." >&2;}
17063    { (exit 1); exit 1; }; }
17064 fi
17065 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17066   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17067 Usually this means the macro was only invoked conditionally." >&5
17068 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17069 Usually this means the macro was only invoked conditionally." >&2;}
17070    { (exit 1); exit 1; }; }
17071 fi
17072 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17073   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17074 Usually this means the macro was only invoked conditionally." >&5
17075 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17076 Usually this means the macro was only invoked conditionally." >&2;}
17077    { (exit 1); exit 1; }; }
17078 fi
17079 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17080   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17081 Usually this means the macro was only invoked conditionally." >&5
17082 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17083 Usually this means the macro was only invoked conditionally." >&2;}
17084    { (exit 1); exit 1; }; }
17085 fi
17086 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17087   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17088 Usually this means the macro was only invoked conditionally." >&5
17089 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17090 Usually this means the macro was only invoked conditionally." >&2;}
17091    { (exit 1); exit 1; }; }
17092 fi
17093 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17094   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17095 Usually this means the macro was only invoked conditionally." >&5
17096 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17097 Usually this means the macro was only invoked conditionally." >&2;}
17098    { (exit 1); exit 1; }; }
17099 fi
17100 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17101   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17102 Usually this means the macro was only invoked conditionally." >&5
17103 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17104 Usually this means the macro was only invoked conditionally." >&2;}
17105    { (exit 1); exit 1; }; }
17106 fi
17107 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17108   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17109 Usually this means the macro was only invoked conditionally." >&5
17110 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17111 Usually this means the macro was only invoked conditionally." >&2;}
17112    { (exit 1); exit 1; }; }
17113 fi
17114 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17115   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17116 Usually this means the macro was only invoked conditionally." >&5
17117 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17118 Usually this means the macro was only invoked conditionally." >&2;}
17119    { (exit 1); exit 1; }; }
17120 fi
17121 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
17122   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17123 Usually this means the macro was only invoked conditionally." >&5
17124 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
17125 Usually this means the macro was only invoked conditionally." >&2;}
17126    { (exit 1); exit 1; }; }
17127 fi
17128 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17129   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17130 Usually this means the macro was only invoked conditionally." >&5
17131 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17132 Usually this means the macro was only invoked conditionally." >&2;}
17133    { (exit 1); exit 1; }; }
17134 fi
17135 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17136   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17137 Usually this means the macro was only invoked conditionally." >&5
17138 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17139 Usually this means the macro was only invoked conditionally." >&2;}
17140    { (exit 1); exit 1; }; }
17141 fi
17142
17143 : ${CONFIG_STATUS=./config.status}
17144 ac_clean_files_save=$ac_clean_files
17145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17146 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17147 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17148 cat >$CONFIG_STATUS <<_ACEOF
17149 #! $SHELL
17150 # Generated by $as_me.
17151 # Run this file to recreate the current configuration.
17152 # Compiler output produced by configure, useful for debugging
17153 # configure, is in config.log if it exists.
17154
17155 debug=false
17156 ac_cs_recheck=false
17157 ac_cs_silent=false
17158 SHELL=\${CONFIG_SHELL-$SHELL}
17159 _ACEOF
17160
17161 cat >>$CONFIG_STATUS <<\_ACEOF
17162 ## --------------------- ##
17163 ## M4sh Initialization.  ##
17164 ## --------------------- ##
17165
17166 # Be Bourne compatible
17167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17168   emulate sh
17169   NULLCMD=:
17170   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17171   # is contrary to our usage.  Disable this feature.
17172   alias -g '${1+"$@"}'='"$@"'
17173 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17174   set -o posix
17175 fi
17176 DUALCASE=1; export DUALCASE # for MKS sh
17177
17178 # Support unset when possible.
17179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17180   as_unset=unset
17181 else
17182   as_unset=false
17183 fi
17184
17185
17186 # Work around bugs in pre-3.0 UWIN ksh.
17187 $as_unset ENV MAIL MAILPATH
17188 PS1='$ '
17189 PS2='> '
17190 PS4='+ '
17191
17192 # NLS nuisances.
17193 for as_var in \
17194   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17195   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17196   LC_TELEPHONE LC_TIME
17197 do
17198   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17199     eval $as_var=C; export $as_var
17200   else
17201     $as_unset $as_var
17202   fi
17203 done
17204
17205 # Required to use basename.
17206 if expr a : '\(a\)' >/dev/null 2>&1; then
17207   as_expr=expr
17208 else
17209   as_expr=false
17210 fi
17211
17212 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17213   as_basename=basename
17214 else
17215   as_basename=false
17216 fi
17217
17218
17219 # Name of the executable.
17220 as_me=`$as_basename "$0" ||
17221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17222          X"$0" : 'X\(//\)$' \| \
17223          X"$0" : 'X\(/\)$' \| \
17224          .     : '\(.\)' 2>/dev/null ||
17225 echo X/"$0" |
17226     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17227           /^X\/\(\/\/\)$/{ s//\1/; q; }
17228           /^X\/\(\/\).*/{ s//\1/; q; }
17229           s/.*/./; q'`
17230
17231
17232 # PATH needs CR, and LINENO needs CR and PATH.
17233 # Avoid depending upon Character Ranges.
17234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17237 as_cr_digits='0123456789'
17238 as_cr_alnum=$as_cr_Letters$as_cr_digits
17239
17240 # The user is always right.
17241 if test "${PATH_SEPARATOR+set}" != set; then
17242   echo "#! /bin/sh" >conf$$.sh
17243   echo  "exit 0"   >>conf$$.sh
17244   chmod +x conf$$.sh
17245   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17246     PATH_SEPARATOR=';'
17247   else
17248     PATH_SEPARATOR=:
17249   fi
17250   rm -f conf$$.sh
17251 fi
17252
17253
17254   as_lineno_1=$LINENO
17255   as_lineno_2=$LINENO
17256   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17257   test "x$as_lineno_1" != "x$as_lineno_2" &&
17258   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17259   # Find who we are.  Look in the path if we contain no path at all
17260   # relative or not.
17261   case $0 in
17262     *[\\/]* ) as_myself=$0 ;;
17263     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17264 for as_dir in $PATH
17265 do
17266   IFS=$as_save_IFS
17267   test -z "$as_dir" && as_dir=.
17268   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17269 done
17270
17271        ;;
17272   esac
17273   # We did not find ourselves, most probably we were run as `sh COMMAND'
17274   # in which case we are not to be found in the path.
17275   if test "x$as_myself" = x; then
17276     as_myself=$0
17277   fi
17278   if test ! -f "$as_myself"; then
17279     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17280 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17281    { (exit 1); exit 1; }; }
17282   fi
17283   case $CONFIG_SHELL in
17284   '')
17285     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17287 do
17288   IFS=$as_save_IFS
17289   test -z "$as_dir" && as_dir=.
17290   for as_base in sh bash ksh sh5; do
17291          case $as_dir in
17292          /*)
17293            if ("$as_dir/$as_base" -c '
17294   as_lineno_1=$LINENO
17295   as_lineno_2=$LINENO
17296   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17297   test "x$as_lineno_1" != "x$as_lineno_2" &&
17298   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17299              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17300              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17301              CONFIG_SHELL=$as_dir/$as_base
17302              export CONFIG_SHELL
17303              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17304            fi;;
17305          esac
17306        done
17307 done
17308 ;;
17309   esac
17310
17311   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17312   # uniformly replaced by the line number.  The first 'sed' inserts a
17313   # line-number line before each line; the second 'sed' does the real
17314   # work.  The second script uses 'N' to pair each line-number line
17315   # with the numbered line, and appends trailing '-' during
17316   # substitution so that $LINENO is not a special case at line end.
17317   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17318   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17319   sed '=' <$as_myself |
17320     sed '
17321       N
17322       s,$,-,
17323       : loop
17324       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17325       t loop
17326       s,-$,,
17327       s,^['$as_cr_digits']*\n,,
17328     ' >$as_me.lineno &&
17329   chmod +x $as_me.lineno ||
17330     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17331 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17332    { (exit 1); exit 1; }; }
17333
17334   # Don't try to exec as it changes $[0], causing all sort of problems
17335   # (the dirname of $[0] is not the place where we might find the
17336   # original and so on.  Autoconf is especially sensible to this).
17337   . ./$as_me.lineno
17338   # Exit status is that of the last command.
17339   exit
17340 }
17341
17342
17343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17344   *c*,-n*) ECHO_N= ECHO_C='
17345 ' ECHO_T='      ' ;;
17346   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17347   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17348 esac
17349
17350 if expr a : '\(a\)' >/dev/null 2>&1; then
17351   as_expr=expr
17352 else
17353   as_expr=false
17354 fi
17355
17356 rm -f conf$$ conf$$.exe conf$$.file
17357 echo >conf$$.file
17358 if ln -s conf$$.file conf$$ 2>/dev/null; then
17359   # We could just check for DJGPP; but this test a) works b) is more generic
17360   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17361   if test -f conf$$.exe; then
17362     # Don't use ln at all; we don't have any links
17363     as_ln_s='cp -p'
17364   else
17365     as_ln_s='ln -s'
17366   fi
17367 elif ln conf$$.file conf$$ 2>/dev/null; then
17368   as_ln_s=ln
17369 else
17370   as_ln_s='cp -p'
17371 fi
17372 rm -f conf$$ conf$$.exe conf$$.file
17373
17374 if mkdir -p . 2>/dev/null; then
17375   as_mkdir_p=:
17376 else
17377   test -d ./-p && rmdir ./-p
17378   as_mkdir_p=false
17379 fi
17380
17381 as_executable_p="test -f"
17382
17383 # Sed expression to map a string onto a valid CPP name.
17384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17385
17386 # Sed expression to map a string onto a valid variable name.
17387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17388
17389
17390 # IFS
17391 # We need space, tab and new line, in precisely that order.
17392 as_nl='
17393 '
17394 IFS="   $as_nl"
17395
17396 # CDPATH.
17397 $as_unset CDPATH
17398
17399 exec 6>&1
17400
17401 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17402 # report actual input values of CONFIG_FILES etc. instead of their
17403 # values after options handling.  Logging --version etc. is OK.
17404 exec 5>>config.log
17405 {
17406   echo
17407   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17408 ## Running $as_me. ##
17409 _ASBOX
17410 } >&5
17411 cat >&5 <<_CSEOF
17412
17413 This file was extended by libjava $as_me version-unused, which was
17414 generated by GNU Autoconf 2.59.  Invocation command line was
17415
17416   CONFIG_FILES    = $CONFIG_FILES
17417   CONFIG_HEADERS  = $CONFIG_HEADERS
17418   CONFIG_LINKS    = $CONFIG_LINKS
17419   CONFIG_COMMANDS = $CONFIG_COMMANDS
17420   $ $0 $@
17421
17422 _CSEOF
17423 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17424 echo >&5
17425 _ACEOF
17426
17427 # Files that config.status was made for.
17428 if test -n "$ac_config_files"; then
17429   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17430 fi
17431
17432 if test -n "$ac_config_headers"; then
17433   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17434 fi
17435
17436 if test -n "$ac_config_links"; then
17437   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17438 fi
17439
17440 if test -n "$ac_config_commands"; then
17441   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17442 fi
17443
17444 cat >>$CONFIG_STATUS <<\_ACEOF
17445
17446 ac_cs_usage="\
17447 \`$as_me' instantiates files from templates according to the
17448 current configuration.
17449
17450 Usage: $0 [OPTIONS] [FILE]...
17451
17452   -h, --help       print this help, then exit
17453   -V, --version    print version number, then exit
17454   -q, --quiet      do not print progress messages
17455   -d, --debug      don't remove temporary files
17456       --recheck    update $as_me by reconfiguring in the same conditions
17457   --file=FILE[:TEMPLATE]
17458                    instantiate the configuration file FILE
17459   --header=FILE[:TEMPLATE]
17460                    instantiate the configuration header FILE
17461
17462 Configuration files:
17463 $config_files
17464
17465 Configuration headers:
17466 $config_headers
17467
17468 Configuration links:
17469 $config_links
17470
17471 Configuration commands:
17472 $config_commands
17473
17474 Report bugs to <bug-autoconf@gnu.org>."
17475 _ACEOF
17476
17477 cat >>$CONFIG_STATUS <<_ACEOF
17478 ac_cs_version="\\
17479 libjava config.status version-unused
17480 configured by $0, generated by GNU Autoconf 2.59,
17481   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17482
17483 Copyright (C) 2003 Free Software Foundation, Inc.
17484 This config.status script is free software; the Free Software Foundation
17485 gives unlimited permission to copy, distribute and modify it."
17486 srcdir=$srcdir
17487 INSTALL="$INSTALL"
17488 _ACEOF
17489
17490 cat >>$CONFIG_STATUS <<\_ACEOF
17491 # If no file are specified by the user, then we need to provide default
17492 # value.  By we need to know if files were specified by the user.
17493 ac_need_defaults=:
17494 while test $# != 0
17495 do
17496   case $1 in
17497   --*=*)
17498     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17499     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17500     ac_shift=:
17501     ;;
17502   -*)
17503     ac_option=$1
17504     ac_optarg=$2
17505     ac_shift=shift
17506     ;;
17507   *) # This is not an option, so the user has probably given explicit
17508      # arguments.
17509      ac_option=$1
17510      ac_need_defaults=false;;
17511   esac
17512
17513   case $ac_option in
17514   # Handling of the options.
17515 _ACEOF
17516 cat >>$CONFIG_STATUS <<\_ACEOF
17517   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17518     ac_cs_recheck=: ;;
17519   --version | --vers* | -V )
17520     echo "$ac_cs_version"; exit 0 ;;
17521   --he | --h)
17522     # Conflict between --help and --header
17523     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17524 Try \`$0 --help' for more information." >&5
17525 echo "$as_me: error: ambiguous option: $1
17526 Try \`$0 --help' for more information." >&2;}
17527    { (exit 1); exit 1; }; };;
17528   --help | --hel | -h )
17529     echo "$ac_cs_usage"; exit 0 ;;
17530   --debug | --d* | -d )
17531     debug=: ;;
17532   --file | --fil | --fi | --f )
17533     $ac_shift
17534     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17535     ac_need_defaults=false;;
17536   --header | --heade | --head | --hea )
17537     $ac_shift
17538     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17539     ac_need_defaults=false;;
17540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17541   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17542     ac_cs_silent=: ;;
17543
17544   # This is an error.
17545   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17546 Try \`$0 --help' for more information." >&5
17547 echo "$as_me: error: unrecognized option: $1
17548 Try \`$0 --help' for more information." >&2;}
17549    { (exit 1); exit 1; }; } ;;
17550
17551   *) ac_config_targets="$ac_config_targets $1" ;;
17552
17553   esac
17554   shift
17555 done
17556
17557 ac_configure_extra_args=
17558
17559 if $ac_cs_silent; then
17560   exec 6>/dev/null
17561   ac_configure_extra_args="$ac_configure_extra_args --silent"
17562 fi
17563
17564 _ACEOF
17565 cat >>$CONFIG_STATUS <<_ACEOF
17566 if \$ac_cs_recheck; then
17567   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17568   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17569 fi
17570
17571 _ACEOF
17572
17573 cat >>$CONFIG_STATUS <<_ACEOF
17574 #
17575 # INIT-COMMANDS section.
17576 #
17577
17578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17579 srcdir=${srcdir}
17580 host=${host}
17581 target=${target}
17582 with_multisubdir=${with_multisubdir}
17583 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17584 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17585 libgcj_basedir=${libgcj_basedir}
17586 CC="${CC}"
17587 CXX="${CXX}"
17588 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17589
17590
17591 _ACEOF
17592
17593
17594
17595 cat >>$CONFIG_STATUS <<\_ACEOF
17596 for ac_config_target in $ac_config_targets
17597 do
17598   case "$ac_config_target" in
17599   # Handling of arguments.
17600   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17601   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17602   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17603   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17604   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17605   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17606   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17607   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17608   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17609   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17610   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17611   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17612   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17613   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17614   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17615   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17616   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17617   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17618   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17619   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17620   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17621   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17622   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17623   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17624   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17625   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17626   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17627   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17628   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17629   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17631    { (exit 1); exit 1; }; };;
17632   esac
17633 done
17634
17635 # If the user did not use the arguments to specify the items to instantiate,
17636 # then the envvar interface is used.  Set only those that are not.
17637 # We use the long form for the default assignment because of an extremely
17638 # bizarre bug on SunOS 4.1.3.
17639 if $ac_need_defaults; then
17640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17642   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17643   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17644 fi
17645
17646 # Have a temporary directory for convenience.  Make it in the build tree
17647 # simply because there is no reason to put it here, and in addition,
17648 # creating and moving files from /tmp can sometimes cause problems.
17649 # Create a temporary directory, and hook for its removal unless debugging.
17650 $debug ||
17651 {
17652   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17653   trap '{ (exit 1); exit 1; }' 1 2 13 15
17654 }
17655
17656 # Create a (secure) tmp directory for tmp files.
17657
17658 {
17659   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17660   test -n "$tmp" && test -d "$tmp"
17661 }  ||
17662 {
17663   tmp=./confstat$$-$RANDOM
17664   (umask 077 && mkdir $tmp)
17665 } ||
17666 {
17667    echo "$me: cannot create a temporary directory in ." >&2
17668    { (exit 1); exit 1; }
17669 }
17670
17671 _ACEOF
17672
17673 cat >>$CONFIG_STATUS <<_ACEOF
17674
17675 #
17676 # CONFIG_FILES section.
17677 #
17678
17679 # No need to generate the scripts if there are no CONFIG_FILES.
17680 # This happens for instance when ./config.status config.h
17681 if test -n "\$CONFIG_FILES"; then
17682   # Protect against being on the right side of a sed subst in config.status.
17683   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17684    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17685 s,@SHELL@,$SHELL,;t t
17686 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17687 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17688 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17689 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17690 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17691 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17692 s,@exec_prefix@,$exec_prefix,;t t
17693 s,@prefix@,$prefix,;t t
17694 s,@program_transform_name@,$program_transform_name,;t t
17695 s,@bindir@,$bindir,;t t
17696 s,@sbindir@,$sbindir,;t t
17697 s,@libexecdir@,$libexecdir,;t t
17698 s,@datadir@,$datadir,;t t
17699 s,@sysconfdir@,$sysconfdir,;t t
17700 s,@sharedstatedir@,$sharedstatedir,;t t
17701 s,@localstatedir@,$localstatedir,;t t
17702 s,@libdir@,$libdir,;t t
17703 s,@includedir@,$includedir,;t t
17704 s,@oldincludedir@,$oldincludedir,;t t
17705 s,@infodir@,$infodir,;t t
17706 s,@mandir@,$mandir,;t t
17707 s,@build_alias@,$build_alias,;t t
17708 s,@host_alias@,$host_alias,;t t
17709 s,@target_alias@,$target_alias,;t t
17710 s,@DEFS@,$DEFS,;t t
17711 s,@ECHO_C@,$ECHO_C,;t t
17712 s,@ECHO_N@,$ECHO_N,;t t
17713 s,@ECHO_T@,$ECHO_T,;t t
17714 s,@LIBS@,$LIBS,;t t
17715 s,@build@,$build,;t t
17716 s,@build_cpu@,$build_cpu,;t t
17717 s,@build_vendor@,$build_vendor,;t t
17718 s,@build_os@,$build_os,;t t
17719 s,@build_subdir@,$build_subdir,;t t
17720 s,@host_subdir@,$host_subdir,;t t
17721 s,@target_subdir@,$target_subdir,;t t
17722 s,@libgcj_basedir@,$libgcj_basedir,;t t
17723 s,@host@,$host,;t t
17724 s,@host_cpu@,$host_cpu,;t t
17725 s,@host_vendor@,$host_vendor,;t t
17726 s,@host_os@,$host_os,;t t
17727 s,@target@,$target,;t t
17728 s,@target_cpu@,$target_cpu,;t t
17729 s,@target_vendor@,$target_vendor,;t t
17730 s,@target_os@,$target_os,;t t
17731 s,@target_noncanonical@,$target_noncanonical,;t t
17732 s,@LN_S@,$LN_S,;t t
17733 s,@mkinstalldirs@,$mkinstalldirs,;t t
17734 s,@CC@,$CC,;t t
17735 s,@ac_ct_CC@,$ac_ct_CC,;t t
17736 s,@EXEEXT@,$EXEEXT,;t t
17737 s,@OBJEXT@,$OBJEXT,;t t
17738 s,@CXX@,$CXX,;t t
17739 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17740 s,@CFLAGS@,$CFLAGS,;t t
17741 s,@CXXFLAGS@,$CXXFLAGS,;t t
17742 s,@LDFLAGS@,$LDFLAGS,;t t
17743 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17744 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17745 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17746 s,@CYGPATH_W@,$CYGPATH_W,;t t
17747 s,@PACKAGE@,$PACKAGE,;t t
17748 s,@VERSION@,$VERSION,;t t
17749 s,@ACLOCAL@,$ACLOCAL,;t t
17750 s,@AUTOCONF@,$AUTOCONF,;t t
17751 s,@AUTOMAKE@,$AUTOMAKE,;t t
17752 s,@AUTOHEADER@,$AUTOHEADER,;t t
17753 s,@MAKEINFO@,$MAKEINFO,;t t
17754 s,@install_sh@,$install_sh,;t t
17755 s,@STRIP@,$STRIP,;t t
17756 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17757 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17758 s,@mkdir_p@,$mkdir_p,;t t
17759 s,@AWK@,$AWK,;t t
17760 s,@SET_MAKE@,$SET_MAKE,;t t
17761 s,@am__leading_dot@,$am__leading_dot,;t t
17762 s,@AMTAR@,$AMTAR,;t t
17763 s,@am__tar@,$am__tar,;t t
17764 s,@am__untar@,$am__untar,;t t
17765 s,@DEPDIR@,$DEPDIR,;t t
17766 s,@am__include@,$am__include,;t t
17767 s,@am__quote@,$am__quote,;t t
17768 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17769 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17770 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17771 s,@CCDEPMODE@,$CCDEPMODE,;t t
17772 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17773 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17774 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17775 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17776 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17777 s,@AS@,$AS,;t t
17778 s,@ac_ct_AS@,$ac_ct_AS,;t t
17779 s,@AR@,$AR,;t t
17780 s,@ac_ct_AR@,$ac_ct_AR,;t t
17781 s,@RANLIB@,$RANLIB,;t t
17782 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17783 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17784 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17785 s,@MAINT@,$MAINT,;t t
17786 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17787 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17788 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17789 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17790 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17791 s,@TOOLKIT@,$TOOLKIT,;t t
17792 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17793 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17794 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17795 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17796 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17797 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17798 s,@GCJH@,$GCJH,;t t
17799 s,@ZIP@,$ZIP,;t t
17800 s,@INCLTDL@,$INCLTDL,;t t
17801 s,@LIBLTDL@,$LIBLTDL,;t t
17802 s,@DIRLTDL@,$DIRLTDL,;t t
17803 s,@LIBTOOL@,$LIBTOOL,;t t
17804 s,@CXXCPP@,$CXXCPP,;t t
17805 s,@CPPFLAGS@,$CPPFLAGS,;t t
17806 s,@GCJ@,$GCJ,;t t
17807 s,@GCJFLAGS@,$GCJFLAGS,;t t
17808 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17809 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17810 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17811 s,@subdirs@,$subdirs,;t t
17812 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17813 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17814 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17815 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17816 s,@JAVA_HOME@,$JAVA_HOME,;t t
17817 s,@INTERPRETER@,$INTERPRETER,;t t
17818 s,@LIBFFI@,$LIBFFI,;t t
17819 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17820 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17821 s,@CPP@,$CPP,;t t
17822 s,@EGREP@,$EGREP,;t t
17823 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17824 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17825 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17826 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17827 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17828 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17829 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17830 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17831 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17832 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17833 s,@X_CFLAGS@,$X_CFLAGS,;t t
17834 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17835 s,@X_LIBS@,$X_LIBS,;t t
17836 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17837 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17838 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17839 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17840 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17841 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17842 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17843 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17844 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17845 s,@GCLIBS@,$GCLIBS,;t t
17846 s,@GCINCS@,$GCINCS,;t t
17847 s,@GCDEPS@,$GCDEPS,;t t
17848 s,@GCSPEC@,$GCSPEC,;t t
17849 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17850 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17851 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17852 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17853 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17854 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17855 s,@THREADLIBS@,$THREADLIBS,;t t
17856 s,@THREADINCS@,$THREADINCS,;t t
17857 s,@THREADDEPS@,$THREADDEPS,;t t
17858 s,@THREADSPEC@,$THREADSPEC,;t t
17859 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17860 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17861 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17862 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17863 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17864 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17865 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17866 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17867 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17868 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17869 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17870 s,@LIBICONV@,$LIBICONV,;t t
17871 s,@LTLIBICONV@,$LTLIBICONV,;t t
17872 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17873 s,@GTK_LIBS@,$GTK_LIBS,;t t
17874 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17875 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17876 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17877 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17878 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17879 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17880 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17881 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17882 s,@ZLIBS@,$ZLIBS,;t t
17883 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17884 s,@ZINCS@,$ZINCS,;t t
17885 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17886 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17887 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17888 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17889 s,@IEEESPEC@,$IEEESPEC,;t t
17890 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17891 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17892 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17893 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17894 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17895 s,@toolexecdir@,$toolexecdir,;t t
17896 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17897 s,@toolexeclibdir@,$toolexeclibdir,;t t
17898 s,@GCJVERSION@,$GCJVERSION,;t t
17899 s,@gxx_include_dir@,$gxx_include_dir,;t t
17900 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17901 s,@ALLOCA@,$ALLOCA,;t t
17902 s,@PERL@,$PERL,;t t
17903 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17904 s,@here@,$here,;t t
17905 s,@LIBOBJS@,$LIBOBJS,;t t
17906 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17907 CEOF
17908
17909 _ACEOF
17910
17911   cat >>$CONFIG_STATUS <<\_ACEOF
17912   # Split the substitutions into bite-sized pieces for seds with
17913   # small command number limits, like on Digital OSF/1 and HP-UX.
17914   ac_max_sed_lines=48
17915   ac_sed_frag=1 # Number of current file.
17916   ac_beg=1 # First line for current file.
17917   ac_end=$ac_max_sed_lines # Line after last line for current file.
17918   ac_more_lines=:
17919   ac_sed_cmds=
17920   while $ac_more_lines; do
17921     if test $ac_beg -gt 1; then
17922       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17923     else
17924       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17925     fi
17926     if test ! -s $tmp/subs.frag; then
17927       ac_more_lines=false
17928     else
17929       # The purpose of the label and of the branching condition is to
17930       # speed up the sed processing (if there are no `@' at all, there
17931       # is no need to browse any of the substitutions).
17932       # These are the two extra sed commands mentioned above.
17933       (echo ':t
17934   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17935       if test -z "$ac_sed_cmds"; then
17936         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17937       else
17938         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17939       fi
17940       ac_sed_frag=`expr $ac_sed_frag + 1`
17941       ac_beg=$ac_end
17942       ac_end=`expr $ac_end + $ac_max_sed_lines`
17943     fi
17944   done
17945   if test -z "$ac_sed_cmds"; then
17946     ac_sed_cmds=cat
17947   fi
17948 fi # test -n "$CONFIG_FILES"
17949
17950 _ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17952 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17953   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17954   case $ac_file in
17955   - | *:- | *:-:* ) # input from stdin
17956         cat >$tmp/stdin
17957         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17958         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17959   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17960         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17961   * )   ac_file_in=$ac_file.in ;;
17962   esac
17963
17964   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17965   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17967          X"$ac_file" : 'X\(//\)[^/]' \| \
17968          X"$ac_file" : 'X\(//\)$' \| \
17969          X"$ac_file" : 'X\(/\)' \| \
17970          .     : '\(.\)' 2>/dev/null ||
17971 echo X"$ac_file" |
17972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17974           /^X\(\/\/\)$/{ s//\1/; q; }
17975           /^X\(\/\).*/{ s//\1/; q; }
17976           s/.*/./; q'`
17977   { if $as_mkdir_p; then
17978     mkdir -p "$ac_dir"
17979   else
17980     as_dir="$ac_dir"
17981     as_dirs=
17982     while test ! -d "$as_dir"; do
17983       as_dirs="$as_dir $as_dirs"
17984       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17986          X"$as_dir" : 'X\(//\)[^/]' \| \
17987          X"$as_dir" : 'X\(//\)$' \| \
17988          X"$as_dir" : 'X\(/\)' \| \
17989          .     : '\(.\)' 2>/dev/null ||
17990 echo X"$as_dir" |
17991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17993           /^X\(\/\/\)$/{ s//\1/; q; }
17994           /^X\(\/\).*/{ s//\1/; q; }
17995           s/.*/./; q'`
17996     done
17997     test ! -n "$as_dirs" || mkdir $as_dirs
17998   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18000    { (exit 1); exit 1; }; }; }
18001
18002   ac_builddir=.
18003
18004 if test "$ac_dir" != .; then
18005   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18006   # A "../" for each directory in $ac_dir_suffix.
18007   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18008 else
18009   ac_dir_suffix= ac_top_builddir=
18010 fi
18011
18012 case $srcdir in
18013   .)  # No --srcdir option.  We are building in place.
18014     ac_srcdir=.
18015     if test -z "$ac_top_builddir"; then
18016        ac_top_srcdir=.
18017     else
18018        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18019     fi ;;
18020   [\\/]* | ?:[\\/]* )  # Absolute path.
18021     ac_srcdir=$srcdir$ac_dir_suffix;
18022     ac_top_srcdir=$srcdir ;;
18023   *) # Relative path.
18024     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18025     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18026 esac
18027
18028 # Do not use `cd foo && pwd` to compute absolute paths, because
18029 # the directories may not exist.
18030 case `pwd` in
18031 .) ac_abs_builddir="$ac_dir";;
18032 *)
18033   case "$ac_dir" in
18034   .) ac_abs_builddir=`pwd`;;
18035   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18036   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18037   esac;;
18038 esac
18039 case $ac_abs_builddir in
18040 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18041 *)
18042   case ${ac_top_builddir}. in
18043   .) ac_abs_top_builddir=$ac_abs_builddir;;
18044   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18045   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18046   esac;;
18047 esac
18048 case $ac_abs_builddir in
18049 .) ac_abs_srcdir=$ac_srcdir;;
18050 *)
18051   case $ac_srcdir in
18052   .) ac_abs_srcdir=$ac_abs_builddir;;
18053   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18054   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18055   esac;;
18056 esac
18057 case $ac_abs_builddir in
18058 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18059 *)
18060   case $ac_top_srcdir in
18061   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18062   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18063   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18064   esac;;
18065 esac
18066
18067
18068   case $INSTALL in
18069   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18070   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18071   esac
18072
18073   if test x"$ac_file" != x-; then
18074     { echo "$as_me:$LINENO: creating $ac_file" >&5
18075 echo "$as_me: creating $ac_file" >&6;}
18076     rm -f "$ac_file"
18077   fi
18078   # Let's still pretend it is `configure' which instantiates (i.e., don't
18079   # use $as_me), people would be surprised to read:
18080   #    /* config.h.  Generated by config.status.  */
18081   if test x"$ac_file" = x-; then
18082     configure_input=
18083   else
18084     configure_input="$ac_file.  "
18085   fi
18086   configure_input=$configure_input"Generated from `echo $ac_file_in |
18087                                      sed 's,.*/,,'` by configure."
18088
18089   # First look for the input files in the build tree, otherwise in the
18090   # src tree.
18091   ac_file_inputs=`IFS=:
18092     for f in $ac_file_in; do
18093       case $f in
18094       -) echo $tmp/stdin ;;
18095       [\\/$]*)
18096          # Absolute (can't be DOS-style, as IFS=:)
18097          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18098 echo "$as_me: error: cannot find input file: $f" >&2;}
18099    { (exit 1); exit 1; }; }
18100          echo "$f";;
18101       *) # Relative
18102          if test -f "$f"; then
18103            # Build tree
18104            echo "$f"
18105          elif test -f "$srcdir/$f"; then
18106            # Source tree
18107            echo "$srcdir/$f"
18108          else
18109            # /dev/null tree
18110            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18111 echo "$as_me: error: cannot find input file: $f" >&2;}
18112    { (exit 1); exit 1; }; }
18113          fi;;
18114       esac
18115     done` || { (exit 1); exit 1; }
18116 _ACEOF
18117 cat >>$CONFIG_STATUS <<_ACEOF
18118   sed "$ac_vpsub
18119 $extrasub
18120 _ACEOF
18121 cat >>$CONFIG_STATUS <<\_ACEOF
18122 :t
18123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18124 s,@configure_input@,$configure_input,;t t
18125 s,@srcdir@,$ac_srcdir,;t t
18126 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18127 s,@top_srcdir@,$ac_top_srcdir,;t t
18128 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18129 s,@builddir@,$ac_builddir,;t t
18130 s,@abs_builddir@,$ac_abs_builddir,;t t
18131 s,@top_builddir@,$ac_top_builddir,;t t
18132 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18133 s,@INSTALL@,$ac_INSTALL,;t t
18134 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18135   rm -f $tmp/stdin
18136   if test x"$ac_file" != x-; then
18137     mv $tmp/out $ac_file
18138   else
18139     cat $tmp/out
18140     rm -f $tmp/out
18141   fi
18142
18143 done
18144 _ACEOF
18145 cat >>$CONFIG_STATUS <<\_ACEOF
18146
18147 #
18148 # CONFIG_HEADER section.
18149 #
18150
18151 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18152 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18153 #
18154 # ac_d sets the value in "#define NAME VALUE" lines.
18155 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18156 ac_dB='[         ].*$,\1#\2'
18157 ac_dC=' '
18158 ac_dD=',;t'
18159 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18160 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18161 ac_uB='$,\1#\2define\3'
18162 ac_uC=' '
18163 ac_uD=',;t'
18164
18165 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18166   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18167   case $ac_file in
18168   - | *:- | *:-:* ) # input from stdin
18169         cat >$tmp/stdin
18170         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18171         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18172   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18173         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18174   * )   ac_file_in=$ac_file.in ;;
18175   esac
18176
18177   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18178 echo "$as_me: creating $ac_file" >&6;}
18179
18180   # First look for the input files in the build tree, otherwise in the
18181   # src tree.
18182   ac_file_inputs=`IFS=:
18183     for f in $ac_file_in; do
18184       case $f in
18185       -) echo $tmp/stdin ;;
18186       [\\/$]*)
18187          # Absolute (can't be DOS-style, as IFS=:)
18188          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18189 echo "$as_me: error: cannot find input file: $f" >&2;}
18190    { (exit 1); exit 1; }; }
18191          # Do quote $f, to prevent DOS paths from being IFS'd.
18192          echo "$f";;
18193       *) # Relative
18194          if test -f "$f"; then
18195            # Build tree
18196            echo "$f"
18197          elif test -f "$srcdir/$f"; then
18198            # Source tree
18199            echo "$srcdir/$f"
18200          else
18201            # /dev/null tree
18202            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18203 echo "$as_me: error: cannot find input file: $f" >&2;}
18204    { (exit 1); exit 1; }; }
18205          fi;;
18206       esac
18207     done` || { (exit 1); exit 1; }
18208   # Remove the trailing spaces.
18209   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18210
18211 _ACEOF
18212
18213 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18214 # `conftest.undefs', that substitutes the proper values into
18215 # config.h.in to produce config.h.  The first handles `#define'
18216 # templates, and the second `#undef' templates.
18217 # And first: Protect against being on the right side of a sed subst in
18218 # config.status.  Protect against being in an unquoted here document
18219 # in config.status.
18220 rm -f conftest.defines conftest.undefs
18221 # Using a here document instead of a string reduces the quoting nightmare.
18222 # Putting comments in sed scripts is not portable.
18223 #
18224 # `end' is used to avoid that the second main sed command (meant for
18225 # 0-ary CPP macros) applies to n-ary macro definitions.
18226 # See the Autoconf documentation for `clear'.
18227 cat >confdef2sed.sed <<\_ACEOF
18228 s/[\\&,]/\\&/g
18229 s,[\\$`],\\&,g
18230 t clear
18231 : clear
18232 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18233 t end
18234 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18235 : end
18236 _ACEOF
18237 # If some macros were called several times there might be several times
18238 # the same #defines, which is useless.  Nevertheless, we may not want to
18239 # sort them, since we want the *last* AC-DEFINE to be honored.
18240 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18241 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18242 rm -f confdef2sed.sed
18243
18244 # This sed command replaces #undef with comments.  This is necessary, for
18245 # example, in the case of _POSIX_SOURCE, which is predefined and required
18246 # on some systems where configure will not decide to define it.
18247 cat >>conftest.undefs <<\_ACEOF
18248 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18249 _ACEOF
18250
18251 # Break up conftest.defines because some shells have a limit on the size
18252 # of here documents, and old seds have small limits too (100 cmds).
18253 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18254 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18255 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18256 echo '  :' >>$CONFIG_STATUS
18257 rm -f conftest.tail
18258 while grep . conftest.defines >/dev/null
18259 do
18260   # Write a limited-size here document to $tmp/defines.sed.
18261   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18262   # Speed up: don't consider the non `#define' lines.
18263   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18264   # Work around the forget-to-reset-the-flag bug.
18265   echo 't clr' >>$CONFIG_STATUS
18266   echo ': clr' >>$CONFIG_STATUS
18267   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18268   echo 'CEOF
18269   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18270   rm -f $tmp/in
18271   mv $tmp/out $tmp/in
18272 ' >>$CONFIG_STATUS
18273   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18274   rm -f conftest.defines
18275   mv conftest.tail conftest.defines
18276 done
18277 rm -f conftest.defines
18278 echo '  fi # grep' >>$CONFIG_STATUS
18279 echo >>$CONFIG_STATUS
18280
18281 # Break up conftest.undefs because some shells have a limit on the size
18282 # of here documents, and old seds have small limits too (100 cmds).
18283 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18284 rm -f conftest.tail
18285 while grep . conftest.undefs >/dev/null
18286 do
18287   # Write a limited-size here document to $tmp/undefs.sed.
18288   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18289   # Speed up: don't consider the non `#undef'
18290   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18291   # Work around the forget-to-reset-the-flag bug.
18292   echo 't clr' >>$CONFIG_STATUS
18293   echo ': clr' >>$CONFIG_STATUS
18294   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18295   echo 'CEOF
18296   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18297   rm -f $tmp/in
18298   mv $tmp/out $tmp/in
18299 ' >>$CONFIG_STATUS
18300   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18301   rm -f conftest.undefs
18302   mv conftest.tail conftest.undefs
18303 done
18304 rm -f conftest.undefs
18305
18306 cat >>$CONFIG_STATUS <<\_ACEOF
18307   # Let's still pretend it is `configure' which instantiates (i.e., don't
18308   # use $as_me), people would be surprised to read:
18309   #    /* config.h.  Generated by config.status.  */
18310   if test x"$ac_file" = x-; then
18311     echo "/* Generated by configure.  */" >$tmp/config.h
18312   else
18313     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18314   fi
18315   cat $tmp/in >>$tmp/config.h
18316   rm -f $tmp/in
18317   if test x"$ac_file" != x-; then
18318     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18319       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18320 echo "$as_me: $ac_file is unchanged" >&6;}
18321     else
18322       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324          X"$ac_file" : 'X\(//\)[^/]' \| \
18325          X"$ac_file" : 'X\(//\)$' \| \
18326          X"$ac_file" : 'X\(/\)' \| \
18327          .     : '\(.\)' 2>/dev/null ||
18328 echo X"$ac_file" |
18329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18331           /^X\(\/\/\)$/{ s//\1/; q; }
18332           /^X\(\/\).*/{ s//\1/; q; }
18333           s/.*/./; q'`
18334       { if $as_mkdir_p; then
18335     mkdir -p "$ac_dir"
18336   else
18337     as_dir="$ac_dir"
18338     as_dirs=
18339     while test ! -d "$as_dir"; do
18340       as_dirs="$as_dir $as_dirs"
18341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18343          X"$as_dir" : 'X\(//\)[^/]' \| \
18344          X"$as_dir" : 'X\(//\)$' \| \
18345          X"$as_dir" : 'X\(/\)' \| \
18346          .     : '\(.\)' 2>/dev/null ||
18347 echo X"$as_dir" |
18348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18350           /^X\(\/\/\)$/{ s//\1/; q; }
18351           /^X\(\/\).*/{ s//\1/; q; }
18352           s/.*/./; q'`
18353     done
18354     test ! -n "$as_dirs" || mkdir $as_dirs
18355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18356 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18357    { (exit 1); exit 1; }; }; }
18358
18359       rm -f $ac_file
18360       mv $tmp/config.h $ac_file
18361     fi
18362   else
18363     cat $tmp/config.h
18364     rm -f $tmp/config.h
18365   fi
18366 # Compute $ac_file's index in $config_headers.
18367 _am_stamp_count=1
18368 for _am_header in $config_headers :; do
18369   case $_am_header in
18370     $ac_file | $ac_file:* )
18371       break ;;
18372     * )
18373       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18374   esac
18375 done
18376 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18377 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18378          X$ac_file : 'X\(//\)[^/]' \| \
18379          X$ac_file : 'X\(//\)$' \| \
18380          X$ac_file : 'X\(/\)' \| \
18381          .     : '\(.\)' 2>/dev/null ||
18382 echo X$ac_file |
18383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18384           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18385           /^X\(\/\/\)$/{ s//\1/; q; }
18386           /^X\(\/\).*/{ s//\1/; q; }
18387           s/.*/./; q'`/stamp-h$_am_stamp_count
18388 done
18389 _ACEOF
18390 cat >>$CONFIG_STATUS <<\_ACEOF
18391
18392 #
18393 # CONFIG_LINKS section.
18394 #
18395
18396 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18397   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18398   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18399
18400   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18401 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18402
18403   if test ! -r $srcdir/$ac_source; then
18404     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18405 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18406    { (exit 1); exit 1; }; }
18407   fi
18408   rm -f $ac_dest
18409
18410   # Make relative symlinks.
18411   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18412 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18413          X"$ac_dest" : 'X\(//\)[^/]' \| \
18414          X"$ac_dest" : 'X\(//\)$' \| \
18415          X"$ac_dest" : 'X\(/\)' \| \
18416          .     : '\(.\)' 2>/dev/null ||
18417 echo X"$ac_dest" |
18418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18420           /^X\(\/\/\)$/{ s//\1/; q; }
18421           /^X\(\/\).*/{ s//\1/; q; }
18422           s/.*/./; q'`
18423   { if $as_mkdir_p; then
18424     mkdir -p "$ac_dest_dir"
18425   else
18426     as_dir="$ac_dest_dir"
18427     as_dirs=
18428     while test ! -d "$as_dir"; do
18429       as_dirs="$as_dir $as_dirs"
18430       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18432          X"$as_dir" : 'X\(//\)[^/]' \| \
18433          X"$as_dir" : 'X\(//\)$' \| \
18434          X"$as_dir" : 'X\(/\)' \| \
18435          .     : '\(.\)' 2>/dev/null ||
18436 echo X"$as_dir" |
18437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18438           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18439           /^X\(\/\/\)$/{ s//\1/; q; }
18440           /^X\(\/\).*/{ s//\1/; q; }
18441           s/.*/./; q'`
18442     done
18443     test ! -n "$as_dirs" || mkdir $as_dirs
18444   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18445 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18446    { (exit 1); exit 1; }; }; }
18447
18448   ac_builddir=.
18449
18450 if test "$ac_dest_dir" != .; then
18451   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18452   # A "../" for each directory in $ac_dir_suffix.
18453   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18454 else
18455   ac_dir_suffix= ac_top_builddir=
18456 fi
18457
18458 case $srcdir in
18459   .)  # No --srcdir option.  We are building in place.
18460     ac_srcdir=.
18461     if test -z "$ac_top_builddir"; then
18462        ac_top_srcdir=.
18463     else
18464        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18465     fi ;;
18466   [\\/]* | ?:[\\/]* )  # Absolute path.
18467     ac_srcdir=$srcdir$ac_dir_suffix;
18468     ac_top_srcdir=$srcdir ;;
18469   *) # Relative path.
18470     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18471     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18472 esac
18473
18474 # Do not use `cd foo && pwd` to compute absolute paths, because
18475 # the directories may not exist.
18476 case `pwd` in
18477 .) ac_abs_builddir="$ac_dest_dir";;
18478 *)
18479   case "$ac_dest_dir" in
18480   .) ac_abs_builddir=`pwd`;;
18481   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18482   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18483   esac;;
18484 esac
18485 case $ac_abs_builddir in
18486 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18487 *)
18488   case ${ac_top_builddir}. in
18489   .) ac_abs_top_builddir=$ac_abs_builddir;;
18490   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18491   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18492   esac;;
18493 esac
18494 case $ac_abs_builddir in
18495 .) ac_abs_srcdir=$ac_srcdir;;
18496 *)
18497   case $ac_srcdir in
18498   .) ac_abs_srcdir=$ac_abs_builddir;;
18499   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18500   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18501   esac;;
18502 esac
18503 case $ac_abs_builddir in
18504 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18505 *)
18506   case $ac_top_srcdir in
18507   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18508   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18509   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18510   esac;;
18511 esac
18512
18513
18514   case $srcdir in
18515   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18516       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18517   esac
18518
18519   # Try a symlink, then a hard link, then a copy.
18520   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18521     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18522     cp -p $srcdir/$ac_source $ac_dest ||
18523     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18524 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18525    { (exit 1); exit 1; }; }
18526 done
18527 _ACEOF
18528 cat >>$CONFIG_STATUS <<\_ACEOF
18529
18530 #
18531 # CONFIG_COMMANDS section.
18532 #
18533 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18534   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18535   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18536   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18537 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18538          X"$ac_dest" : 'X\(//\)[^/]' \| \
18539          X"$ac_dest" : 'X\(//\)$' \| \
18540          X"$ac_dest" : 'X\(/\)' \| \
18541          .     : '\(.\)' 2>/dev/null ||
18542 echo X"$ac_dest" |
18543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18545           /^X\(\/\/\)$/{ s//\1/; q; }
18546           /^X\(\/\).*/{ s//\1/; q; }
18547           s/.*/./; q'`
18548   { if $as_mkdir_p; then
18549     mkdir -p "$ac_dir"
18550   else
18551     as_dir="$ac_dir"
18552     as_dirs=
18553     while test ! -d "$as_dir"; do
18554       as_dirs="$as_dir $as_dirs"
18555       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18557          X"$as_dir" : 'X\(//\)[^/]' \| \
18558          X"$as_dir" : 'X\(//\)$' \| \
18559          X"$as_dir" : 'X\(/\)' \| \
18560          .     : '\(.\)' 2>/dev/null ||
18561 echo X"$as_dir" |
18562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18564           /^X\(\/\/\)$/{ s//\1/; q; }
18565           /^X\(\/\).*/{ s//\1/; q; }
18566           s/.*/./; q'`
18567     done
18568     test ! -n "$as_dirs" || mkdir $as_dirs
18569   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18571    { (exit 1); exit 1; }; }; }
18572
18573   ac_builddir=.
18574
18575 if test "$ac_dir" != .; then
18576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18577   # A "../" for each directory in $ac_dir_suffix.
18578   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18579 else
18580   ac_dir_suffix= ac_top_builddir=
18581 fi
18582
18583 case $srcdir in
18584   .)  # No --srcdir option.  We are building in place.
18585     ac_srcdir=.
18586     if test -z "$ac_top_builddir"; then
18587        ac_top_srcdir=.
18588     else
18589        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18590     fi ;;
18591   [\\/]* | ?:[\\/]* )  # Absolute path.
18592     ac_srcdir=$srcdir$ac_dir_suffix;
18593     ac_top_srcdir=$srcdir ;;
18594   *) # Relative path.
18595     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18596     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18597 esac
18598
18599 # Do not use `cd foo && pwd` to compute absolute paths, because
18600 # the directories may not exist.
18601 case `pwd` in
18602 .) ac_abs_builddir="$ac_dir";;
18603 *)
18604   case "$ac_dir" in
18605   .) ac_abs_builddir=`pwd`;;
18606   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18607   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18608   esac;;
18609 esac
18610 case $ac_abs_builddir in
18611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18612 *)
18613   case ${ac_top_builddir}. in
18614   .) ac_abs_top_builddir=$ac_abs_builddir;;
18615   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18616   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18617   esac;;
18618 esac
18619 case $ac_abs_builddir in
18620 .) ac_abs_srcdir=$ac_srcdir;;
18621 *)
18622   case $ac_srcdir in
18623   .) ac_abs_srcdir=$ac_abs_builddir;;
18624   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18625   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18626   esac;;
18627 esac
18628 case $ac_abs_builddir in
18629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18630 *)
18631   case $ac_top_srcdir in
18632   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18633   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18634   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18635   esac;;
18636 esac
18637
18638
18639   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18640 echo "$as_me: executing $ac_dest commands" >&6;}
18641   case $ac_dest in
18642     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18643   # Strip MF so we end up with the name of the file.
18644   mf=`echo "$mf" | sed -e 's/:.*$//'`
18645   # Check whether this is an Automake generated Makefile or not.
18646   # We used to match only the files named `Makefile.in', but
18647   # some people rename them; so instead we look at the file content.
18648   # Grep'ing the first line is not enough: some people post-process
18649   # each Makefile.in and add a new line on top of each file to say so.
18650   # So let's grep whole file.
18651   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18652     dirpart=`(dirname "$mf") 2>/dev/null ||
18653 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18654          X"$mf" : 'X\(//\)[^/]' \| \
18655          X"$mf" : 'X\(//\)$' \| \
18656          X"$mf" : 'X\(/\)' \| \
18657          .     : '\(.\)' 2>/dev/null ||
18658 echo X"$mf" |
18659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18661           /^X\(\/\/\)$/{ s//\1/; q; }
18662           /^X\(\/\).*/{ s//\1/; q; }
18663           s/.*/./; q'`
18664   else
18665     continue
18666   fi
18667   # Extract the definition of DEPDIR, am__include, and am__quote
18668   # from the Makefile without running `make'.
18669   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18670   test -z "$DEPDIR" && continue
18671   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18672   test -z "am__include" && continue
18673   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18674   # When using ansi2knr, U may be empty or an underscore; expand it
18675   U=`sed -n 's/^U = //p' < "$mf"`
18676   # Find all dependency output files, they are included files with
18677   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18678   # simplest approach to changing $(DEPDIR) to its actual value in the
18679   # expansion.
18680   for file in `sed -n "
18681     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18682        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18683     # Make sure the directory exists.
18684     test -f "$dirpart/$file" && continue
18685     fdir=`(dirname "$file") 2>/dev/null ||
18686 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18687          X"$file" : 'X\(//\)[^/]' \| \
18688          X"$file" : 'X\(//\)$' \| \
18689          X"$file" : 'X\(/\)' \| \
18690          .     : '\(.\)' 2>/dev/null ||
18691 echo X"$file" |
18692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18694           /^X\(\/\/\)$/{ s//\1/; q; }
18695           /^X\(\/\).*/{ s//\1/; q; }
18696           s/.*/./; q'`
18697     { if $as_mkdir_p; then
18698     mkdir -p $dirpart/$fdir
18699   else
18700     as_dir=$dirpart/$fdir
18701     as_dirs=
18702     while test ! -d "$as_dir"; do
18703       as_dirs="$as_dir $as_dirs"
18704       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18706          X"$as_dir" : 'X\(//\)[^/]' \| \
18707          X"$as_dir" : 'X\(//\)$' \| \
18708          X"$as_dir" : 'X\(/\)' \| \
18709          .     : '\(.\)' 2>/dev/null ||
18710 echo X"$as_dir" |
18711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18713           /^X\(\/\/\)$/{ s//\1/; q; }
18714           /^X\(\/\).*/{ s//\1/; q; }
18715           s/.*/./; q'`
18716     done
18717     test ! -n "$as_dirs" || mkdir $as_dirs
18718   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18719 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18720    { (exit 1); exit 1; }; }; }
18721
18722     # echo "creating $dirpart/$file"
18723     echo '# dummy' > "$dirpart/$file"
18724   done
18725 done
18726  ;;
18727     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18728 case " $CONFIG_FILES " in
18729  *" Makefile "*)
18730    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18731    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18732    ;;
18733 esac
18734 for ac_multi_file in $CONFIG_FILES; do
18735   case $ac_multi_file in
18736   */Makefile)
18737     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18738   esac
18739 done
18740  ;;
18741   esac
18742 done
18743 _ACEOF
18744
18745 cat >>$CONFIG_STATUS <<\_ACEOF
18746
18747 { (exit 0); exit 0; }
18748 _ACEOF
18749 chmod +x $CONFIG_STATUS
18750 ac_clean_files=$ac_clean_files_save
18751
18752
18753 # configure is writing to config.log, and then calls config.status.
18754 # config.status does its own redirection, appending to config.log.
18755 # Unfortunately, on DOS this fails, as config.log is still kept open
18756 # by configure, so config.status won't be able to write to it; its
18757 # output is simply discarded.  So we exec the FD to /dev/null,
18758 # effectively closing config.log, so it can be properly (re)opened and
18759 # appended to by config.status.  When coming back to configure, we
18760 # need to make the FD available again.
18761 if test "$no_create" != yes; then
18762   ac_cs_success=:
18763   ac_config_status_args=
18764   test "$silent" = yes &&
18765     ac_config_status_args="$ac_config_status_args --quiet"
18766   exec 5>/dev/null
18767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18768   exec 5>>config.log
18769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18770   # would make configure fail if this is the last instruction.
18771   $ac_cs_success || { (exit 1); exit 1; }
18772 fi
18773
18774 #
18775 # CONFIG_SUBDIRS section.
18776 #
18777 if test "$no_recursion" != yes; then
18778
18779   # Remove --cache-file and --srcdir arguments so they do not pile up.
18780   ac_sub_configure_args=
18781   ac_prev=
18782   for ac_arg in $ac_configure_args; do
18783     if test -n "$ac_prev"; then
18784       ac_prev=
18785       continue
18786     fi
18787     case $ac_arg in
18788     -cache-file | --cache-file | --cache-fil | --cache-fi \
18789     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18790       ac_prev=cache_file ;;
18791     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18792     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18793     | --c=*)
18794       ;;
18795     --config-cache | -C)
18796       ;;
18797     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18798       ac_prev=srcdir ;;
18799     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18800       ;;
18801     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18802       ac_prev=prefix ;;
18803     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18804       ;;
18805     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18806     esac
18807   done
18808
18809   # Always prepend --prefix to ensure using the same prefix
18810   # in subdir configurations.
18811   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18812
18813   ac_popdir=`pwd`
18814   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18815
18816     # Do not complain, so a configure script can configure whichever
18817     # parts of a large source tree are present.
18818     test -d $srcdir/$ac_dir || continue
18819
18820     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18821 echo "$as_me: configuring in $ac_dir" >&6;}
18822     { if $as_mkdir_p; then
18823     mkdir -p "$ac_dir"
18824   else
18825     as_dir="$ac_dir"
18826     as_dirs=
18827     while test ! -d "$as_dir"; do
18828       as_dirs="$as_dir $as_dirs"
18829       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18831          X"$as_dir" : 'X\(//\)[^/]' \| \
18832          X"$as_dir" : 'X\(//\)$' \| \
18833          X"$as_dir" : 'X\(/\)' \| \
18834          .     : '\(.\)' 2>/dev/null ||
18835 echo X"$as_dir" |
18836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18837           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18838           /^X\(\/\/\)$/{ s//\1/; q; }
18839           /^X\(\/\).*/{ s//\1/; q; }
18840           s/.*/./; q'`
18841     done
18842     test ! -n "$as_dirs" || mkdir $as_dirs
18843   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18845    { (exit 1); exit 1; }; }; }
18846
18847     ac_builddir=.
18848
18849 if test "$ac_dir" != .; then
18850   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18851   # A "../" for each directory in $ac_dir_suffix.
18852   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18853 else
18854   ac_dir_suffix= ac_top_builddir=
18855 fi
18856
18857 case $srcdir in
18858   .)  # No --srcdir option.  We are building in place.
18859     ac_srcdir=.
18860     if test -z "$ac_top_builddir"; then
18861        ac_top_srcdir=.
18862     else
18863        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18864     fi ;;
18865   [\\/]* | ?:[\\/]* )  # Absolute path.
18866     ac_srcdir=$srcdir$ac_dir_suffix;
18867     ac_top_srcdir=$srcdir ;;
18868   *) # Relative path.
18869     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18870     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18871 esac
18872
18873 # Do not use `cd foo && pwd` to compute absolute paths, because
18874 # the directories may not exist.
18875 case `pwd` in
18876 .) ac_abs_builddir="$ac_dir";;
18877 *)
18878   case "$ac_dir" in
18879   .) ac_abs_builddir=`pwd`;;
18880   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18881   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18882   esac;;
18883 esac
18884 case $ac_abs_builddir in
18885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18886 *)
18887   case ${ac_top_builddir}. in
18888   .) ac_abs_top_builddir=$ac_abs_builddir;;
18889   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18890   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18891   esac;;
18892 esac
18893 case $ac_abs_builddir in
18894 .) ac_abs_srcdir=$ac_srcdir;;
18895 *)
18896   case $ac_srcdir in
18897   .) ac_abs_srcdir=$ac_abs_builddir;;
18898   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18899   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18900   esac;;
18901 esac
18902 case $ac_abs_builddir in
18903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18904 *)
18905   case $ac_top_srcdir in
18906   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18907   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18908   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18909   esac;;
18910 esac
18911
18912
18913     cd $ac_dir
18914
18915     # Check for guested configure; otherwise get Cygnus style configure.
18916     if test -f $ac_srcdir/configure.gnu; then
18917       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18918     elif test -f $ac_srcdir/configure; then
18919       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18920     elif test -f $ac_srcdir/configure.in; then
18921       ac_sub_configure=$ac_configure
18922     else
18923       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18925       ac_sub_configure=
18926     fi
18927
18928     # The recursion is here.
18929     if test -n "$ac_sub_configure"; then
18930       # Make the cache file name correct relative to the subdirectory.
18931       case $cache_file in
18932       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18933       *) # Relative path.
18934         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18935       esac
18936
18937       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18938 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18939       # The eval makes quoting arguments work.
18940       eval $ac_sub_configure $ac_sub_configure_args \
18941            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18942         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18943 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18944    { (exit 1); exit 1; }; }
18945     fi
18946
18947     cd $ac_popdir
18948   done
18949 fi
18950