OSDN Git Service

config
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir 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 LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH 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 extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-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   --enable-plugin         build gcjwebplugin web browser plugin
857   --enable-gconf-peer     compile GConf native peers for util.preferences
858   --disable-dependency-tracking  speeds up one-time build
859   --enable-dependency-tracking   do not reject slow dependency extractors
860   --enable-maintainer-mode  enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --enable-libgcj-debug   enable runtime debugging code
863   --enable-java-awt       list of AWT peer implementations to be built
864   --enable-shared=PKGS  build shared libraries default=yes
865   --enable-static=PKGS  build static libraries default=yes
866   --enable-fast-install=PKGS  optimize for fast installation default=yes
867   --disable-libtool-lock  avoid locking (might break parallel builds)
868   --disable-getenv-properties
869                           don't set system properties from GCJ_PROPERTIES
870   --enable-hash-synchronization
871                           use global hash table for monitor locks
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
879   --disable-rpath         do not hardcode runtime library paths
880   --enable-tls            Use thread-local storage [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-build-libsubdir=DIR  Directory where to find libraries for build system
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438
1439 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1440 # have matching libraries, they should use host libraries: Makefile.tpl
1441 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1442 # However, they still use the build modules, because the corresponding
1443 # host modules (e.g. bison) are only built for the host when bootstrap
1444 # finishes. So:
1445 # - build_subdir is where we find build modules, and never changes.
1446 # - build_libsubdir is where we find build libraries, and can be overridden.
1447
1448 # Prefix 'build-' so this never conflicts with target_subdir.
1449 build_subdir="build-${build_noncanonical}"
1450
1451 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1452 if test "${with_build_libsubdir+set}" = set; then
1453   withval="$with_build_libsubdir"
1454   build_libsubdir="$withval"
1455 else
1456   build_libsubdir="$build_subdir"
1457 fi;
1458 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1459 if ( test $srcdir = . && test -d gcc ) \
1460    || test -d $srcdir/../host-${host_noncanonical}; then
1461   host_subdir="host-${host_noncanonical}"
1462 else
1463   host_subdir=.
1464 fi
1465 # No prefix.
1466 target_subdir=${target_noncanonical}
1467
1468
1469 # We use these options to decide which functions to include.
1470
1471 # Check whether --with-target-subdir or --without-target-subdir was given.
1472 if test "${with_target_subdir+set}" = set; then
1473   withval="$with_target_subdir"
1474
1475 fi;
1476
1477 # We may get other options which we don't document:
1478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1479
1480 # When building with srcdir == objdir, links to the source files will
1481 # be created in directories within the target_subdir.  We have to
1482 # adjust toplevel_srcdir accordingly, so that configure finds
1483 # install-sh and other auxiliary files that live in the top-level
1484 # source directory.
1485 if test "${srcdir}" = "."; then
1486   if test -z "${with_target_subdir}"; then
1487     toprel=".."
1488   else
1489     if test "${with_target_subdir}" != "."; then
1490       toprel="${with_multisrctop}../.."
1491     else
1492       toprel="${with_multisrctop}.."
1493     fi
1494   fi
1495 else
1496   toprel=".."
1497 fi
1498
1499 libgcj_basedir=$srcdir/$toprel/./libjava
1500
1501
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509   ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513    { (exit 1); exit 1; }; }
1514
1515 fi
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1518 host=$ac_cv_host
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1522
1523
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531   ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549   test "$program_prefix$program_suffix$program_transform_name" = \
1550     NONENONEs,x,x, &&
1551   program_prefix=${target_alias}-
1552  case ${build_alias} in
1553   "") build_noncanonical=${build} ;;
1554   *) build_noncanonical=${build_alias} ;;
1555 esac
1556
1557  case ${target_alias} in
1558   "") target_noncanonical=${host_noncanonical} ;;
1559   *) target_noncanonical=${target_alias} ;;
1560 esac
1561
1562
1563
1564
1565 # This works around the fact that libtool configuration may change LD
1566 # for this particular configuration, but some shells, instead of
1567 # keeping the changes in LD private, export them just because LD is
1568 # exported.
1569 ORIGINAL_LD_FOR_MULTILIBS=$LD
1570
1571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1573 LN_S=$as_ln_s
1574 if test "$LN_S" = "ln -s"; then
1575   echo "$as_me:$LINENO: result: yes" >&5
1576 echo "${ECHO_T}yes" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1579 echo "${ECHO_T}no, using $LN_S" >&6
1580 fi
1581
1582
1583 # This works around an automake problem.
1584 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1585
1586
1587
1588 # Check whether --with-cross-host or --without-cross-host was given.
1589 if test "${with_cross_host+set}" = set; then
1590   withval="$with_cross_host"
1591
1592 fi;
1593
1594
1595 # Check whether --with-newlib or --without-newlib was given.
1596 if test "${with_newlib+set}" = set; then
1597   withval="$with_newlib"
1598
1599 fi;
1600
1601 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1602 if test "${enable_version_specific_runtime_libs+set}" = set; then
1603   enableval="$enable_version_specific_runtime_libs"
1604   case "$enableval" in
1605       yes) version_specific_libs=yes ;;
1606       no)  version_specific_libs=no ;;
1607       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1608 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1609    { (exit 1); exit 1; }; };;
1610      esac
1611 else
1612   version_specific_libs=no
1613
1614 fi;
1615
1616 # Default to --enable-multilib
1617 # Check whether --enable-multilib or --disable-multilib was given.
1618 if test "${enable_multilib+set}" = set; then
1619   enableval="$enable_multilib"
1620   case "${enableval}" in
1621   yes) multilib=yes ;;
1622   no)  multilib=no ;;
1623   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1624 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1625    { (exit 1); exit 1; }; } ;;
1626  esac
1627 else
1628   multilib=yes
1629 fi;
1630 # Check whether --enable-plugin or --disable-plugin was given.
1631 if test "${enable_plugin+set}" = set; then
1632   enableval="$enable_plugin"
1633   case "$enableval" in
1634       yes) plugin_enabled=yes ;;
1635       no)  plugin_enabled=no ;;
1636       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1637 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1638    { (exit 1); exit 1; }; };;
1639      esac
1640 else
1641   plugin_enabled=no
1642
1643 fi;
1644
1645 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1646 if test "${enable_gconf_peer+set}" = set; then
1647   enableval="$enable_gconf_peer"
1648   case "$enableval" in
1649       yes) gconf_enabled=yes ;;
1650       no)  gconf_enabled=no ;;
1651       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1652 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1653    { (exit 1); exit 1; }; };;
1654      esac
1655 else
1656   gconf_enabled=no
1657
1658 fi;
1659
1660 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1661
1662
1663 # (1) We use an abnormal CXX (without library references), so we
1664 # must cache it under a different name.
1665 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1666 # the non-multilib-adjusted value will be used in multilibs.
1667 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1668 # (4) As another side effect, automake doesn't automatically include them
1669 # in Makefile.in.
1670 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1671 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1672 # used in later tests.  This may not be necessary in libjava; I don't know.
1673
1674
1675
1676 save_CXXFLAGS="$CXXFLAGS"
1677 CXXFLAGS="$CXXFLAGS -fno-builtin"
1678 ac_ext=c
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712   echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$ac_cv_prog_CC"; then
1721   ac_ct_CC=$CC
1722   # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   if test -n "$ac_ct_CC"; then
1730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   for ac_exec_ext in '' $ac_executable_extensions; do
1738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739     ac_cv_prog_ac_ct_CC="gcc"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   CC=$ac_ct_CC
1758 else
1759   CC="$ac_cv_prog_CC"
1760 fi
1761
1762 if test -z "$CC"; then
1763   if test -n "$ac_tool_prefix"; then
1764   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="${ac_tool_prefix}cc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799 fi
1800 if test -z "$ac_cv_prog_CC"; then
1801   ac_ct_CC=$CC
1802   # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$ac_ct_CC"; then
1810   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_ac_ct_CC="cc"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   CC=$ac_ct_CC
1838 else
1839   CC="$ac_cv_prog_CC"
1840 fi
1841
1842 fi
1843 if test -z "$CC"; then
1844   # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$CC"; then
1852   ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854   ac_prog_rejected=no
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863        ac_prog_rejected=yes
1864        continue
1865      fi
1866     ac_cv_prog_CC="cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 if test $ac_prog_rejected = yes; then
1874   # We found a bogon in the path, so make sure we never use it.
1875   set dummy $ac_cv_prog_CC
1876   shift
1877   if test $# != 0; then
1878     # We chose a different compiler from the bogus one.
1879     # However, it has the same basename, so the bogon will be chosen
1880     # first if we set CC to just the basename; use the full file name.
1881     shift
1882     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883   fi
1884 fi
1885 fi
1886 fi
1887 CC=$ac_cv_prog_CC
1888 if test -n "$CC"; then
1889   echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896 fi
1897 if test -z "$CC"; then
1898   if test -n "$ac_tool_prefix"; then
1899   for ac_prog in cl
1900   do
1901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   if test -n "$CC"; then
1909   ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916   for ac_exec_ext in '' $ac_executable_extensions; do
1917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920     break 2
1921   fi
1922 done
1923 done
1924
1925 fi
1926 fi
1927 CC=$ac_cv_prog_CC
1928 if test -n "$CC"; then
1929   echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1931 else
1932   echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936     test -n "$CC" && break
1937   done
1938 fi
1939 if test -z "$CC"; then
1940   ac_ct_CC=$CC
1941   for ac_prog in cl
1942 do
1943   # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_CC"; then
1951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_CC="$ac_prog"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978   test -n "$ac_ct_CC" && break
1979 done
1980
1981   CC=$ac_ct_CC
1982 fi
1983
1984 fi
1985
1986
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991    { (exit 1); exit 1; }; }
1992
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO:" \
1995      "checking for C compiler version" >&5
1996 ac_compiler=`set X $ac_compile; echo $2`
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1998   (eval $ac_compiler --version </dev/null >&5) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2003   (eval $ac_compiler -v </dev/null >&5) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2008   (eval $ac_compiler -V </dev/null >&5) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }
2012
2013 cat >conftest.$ac_ext <<_ACEOF
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 # FIXME: Cleanup?
2029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2030   (eval $ac_link) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }; then
2034   gcc_no_link=no
2035 else
2036   gcc_no_link=yes
2037 fi
2038
2039 if test x$gcc_no_link = xyes; then
2040   # Setting cross_compile will disable run tests; it will
2041   # also disable AC_CHECK_FILE but that's generally
2042   # correct if we can't link.
2043   cross_compiling=yes
2044   EXEEXT=
2045 else
2046   cat >conftest.$ac_ext <<_ACEOF
2047 /* confdefs.h.  */
2048 _ACEOF
2049 cat confdefs.h >>conftest.$ac_ext
2050 cat >>conftest.$ac_ext <<_ACEOF
2051 /* end confdefs.h.  */
2052
2053 int
2054 main ()
2055 {
2056
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 ac_clean_files_save=$ac_clean_files
2062 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2063 # Try to create an executable without -o first, disregard a.out.
2064 # It will help us diagnose broken compilers, and finding out an intuition
2065 # of exeext.
2066 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2067 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2068 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2069 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2070   (eval $ac_link_default) 2>&5
2071   ac_status=$?
2072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073   (exit $ac_status); }; then
2074   # Find the output, starting from the most likely.  This scheme is
2075 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2076 # resort.
2077
2078 # Be careful to initialize this variable, since it used to be cached.
2079 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2080 ac_cv_exeext=
2081 # b.out is created by i960 compilers.
2082 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2083 do
2084   test -f "$ac_file" || continue
2085   case $ac_file in
2086     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2087         ;;
2088     conftest.$ac_ext )
2089         # This is the source file.
2090         ;;
2091     [ab].out )
2092         # We found the default executable, but exeext='' is most
2093         # certainly right.
2094         break;;
2095     *.* )
2096         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097         # FIXME: I believe we export ac_cv_exeext for Libtool,
2098         # but it would be cool to find out if it's true.  Does anybody
2099         # maintain Libtool? --akim.
2100         export ac_cv_exeext
2101         break;;
2102     * )
2103         break;;
2104   esac
2105 done
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: C compiler cannot create executables
2113 See \`config.log' for more details." >&2;}
2114    { (exit 77); exit 77; }; }
2115 fi
2116
2117 ac_exeext=$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_file" >&5
2119 echo "${ECHO_T}$ac_file" >&6
2120
2121 # Check the compiler produces executables we can run.  If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2124 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2125 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2126 # If not cross compiling, check that we can run a simple program.
2127 if test "$cross_compiling" != yes; then
2128   if { ac_try='./$ac_file'
2129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130   (eval $ac_try) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }; }; then
2134     cross_compiling=no
2135   else
2136     if test "$cross_compiling" = maybe; then
2137         cross_compiling=yes
2138     else
2139         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2140 If you meant to cross compile, use \`--host'.
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: cannot run C compiled programs.
2143 If you meant to cross compile, use \`--host'.
2144 See \`config.log' for more details." >&2;}
2145    { (exit 1); exit 1; }; }
2146     fi
2147   fi
2148 fi
2149 echo "$as_me:$LINENO: result: yes" >&5
2150 echo "${ECHO_T}yes" >&6
2151
2152 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2153 ac_clean_files=$ac_clean_files_save
2154 # Check the compiler produces executables we can run.  If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2157 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2158 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2159 echo "${ECHO_T}$cross_compiling" >&6
2160
2161 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2162 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2164   (eval $ac_link) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; then
2168   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2169 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2170 # work properly (i.e., refer to `conftest.exe'), while it won't with
2171 # `rm'.
2172 for ac_file in conftest.exe conftest conftest.*; do
2173   test -f "$ac_file" || continue
2174   case $ac_file in
2175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2176     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177           export ac_cv_exeext
2178           break;;
2179     * ) break;;
2180   esac
2181 done
2182 else
2183   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2184 See \`config.log' for more details." >&5
2185 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2186 See \`config.log' for more details." >&2;}
2187    { (exit 1); exit 1; }; }
2188 fi
2189
2190 rm -f conftest$ac_cv_exeext
2191 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2192 echo "${ECHO_T}$ac_cv_exeext" >&6
2193
2194 rm -f conftest.$ac_ext
2195 EXEEXT=$ac_cv_exeext
2196 ac_exeext=$EXEEXT
2197 fi
2198 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2199 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2200 if test "${ac_cv_objext+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209
2210 int
2211 main ()
2212 {
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.o conftest.obj
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; then
2224   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2227     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2228        break;;
2229   esac
2230 done
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2243 fi
2244 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2245 echo "${ECHO_T}$ac_cv_objext" >&6
2246 OBJEXT=$ac_cv_objext
2247 ac_objext=$OBJEXT
2248 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2249 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2250 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263 #ifndef __GNUC__
2264        choke me
2265 #endif
2266
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273   (eval $ac_compile) 2>conftest.er1
2274   ac_status=$?
2275   grep -v '^ *+' conftest.er1 >conftest.err
2276   rm -f conftest.er1
2277   cat conftest.err >&5
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); } &&
2280          { ac_try='test -z "$ac_c_werror_flag"
2281                          || test ! -s conftest.err'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   ac_compiler_gnu=yes
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_compiler_gnu=no
2299 fi
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2302
2303 fi
2304 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2306 GCC=`test $ac_compiler_gnu = yes && echo yes`
2307 ac_test_CFLAGS=${CFLAGS+set}
2308 ac_save_CFLAGS=$CFLAGS
2309 CFLAGS="-g"
2310 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_g+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h.  */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h.  */
2321
2322 int
2323 main ()
2324 {
2325
2326   ;
2327   return 0;
2328 }
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332   (eval $ac_compile) 2>conftest.er1
2333   ac_status=$?
2334   grep -v '^ *+' conftest.er1 >conftest.err
2335   rm -f conftest.er1
2336   cat conftest.err >&5
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -z "$ac_c_werror_flag"
2340                          || test ! -s conftest.err'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; } &&
2346          { ac_try='test -s conftest.$ac_objext'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; }; then
2352   ac_cv_prog_cc_g=yes
2353 else
2354   echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357 ac_cv_prog_cc_g=no
2358 fi
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364   CFLAGS=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366   if test "$GCC" = yes; then
2367     CFLAGS="-g -O2"
2368   else
2369     CFLAGS="-g"
2370   fi
2371 else
2372   if test "$GCC" = yes; then
2373     CFLAGS="-O2"
2374   else
2375     CFLAGS=
2376   fi
2377 fi
2378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   ac_cv_prog_cc_stdc=no
2384 ac_save_CC=$CC
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 #include <stdarg.h>
2392 #include <stdio.h>
2393 #include <sys/types.h>
2394 #include <sys/stat.h>
2395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2396 struct buf { int x; };
2397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2398 static char *e (p, i)
2399      char **p;
2400      int i;
2401 {
2402   return p[i];
2403 }
2404 static char *f (char * (*g) (char **, int), char **p, ...)
2405 {
2406   char *s;
2407   va_list v;
2408   va_start (v,p);
2409   s = g (p, va_arg (v,int));
2410   va_end (v);
2411   return s;
2412 }
2413
2414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2415    function prototypes and stuff, but not '\xHH' hex character constants.
2416    These don't provoke an error unfortunately, instead are silently treated
2417    as 'x'.  The following induces an error, until -std1 is added to get
2418    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2419    array size at least.  It's necessary to write '\x00'==0 to get something
2420    that's true only with -std1.  */
2421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2422
2423 int test (int i, double x);
2424 struct s1 {int (*f) (int a);};
2425 struct s2 {int (*f) (double a);};
2426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2427 int argc;
2428 char **argv;
2429 int
2430 main ()
2431 {
2432 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 # Don't try gcc -ansi; that turns off useful extensions and
2438 # breaks some systems' header files.
2439 # AIX                   -qlanglvl=ansi
2440 # Ultrix and OSF/1      -std1
2441 # HP-UX 10.20 and later -Ae
2442 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2443 # SVR4                  -Xc -D__EXTENSIONS__
2444 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2445 do
2446   CC="$ac_save_CC $ac_arg"
2447   rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449   (eval $ac_compile) 2>conftest.er1
2450   ac_status=$?
2451   grep -v '^ *+' conftest.er1 >conftest.err
2452   rm -f conftest.er1
2453   cat conftest.err >&5
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); } &&
2456          { ac_try='test -z "$ac_c_werror_flag"
2457                          || test ! -s conftest.err'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; } &&
2463          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2469   ac_cv_prog_cc_stdc=$ac_arg
2470 break
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 fi
2476 rm -f conftest.err conftest.$ac_objext
2477 done
2478 rm -f conftest.$ac_ext conftest.$ac_objext
2479 CC=$ac_save_CC
2480
2481 fi
2482
2483 case "x$ac_cv_prog_cc_stdc" in
2484   x|xno)
2485     echo "$as_me:$LINENO: result: none needed" >&5
2486 echo "${ECHO_T}none needed" >&6 ;;
2487   *)
2488     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2490     CC="$CC $ac_cv_prog_cc_stdc" ;;
2491 esac
2492
2493 # Some people use a C++ compiler to compile C.  Since we use `exit',
2494 # in C++ we need to declare it.  In case someone uses the same compiler
2495 # for both compiling C and C++ we need to have the C++ compiler decide
2496 # the declaration of exit, since it's the most demanding environment.
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #ifndef __cplusplus
2499   choke me
2500 #endif
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504   (eval $ac_compile) 2>conftest.er1
2505   ac_status=$?
2506   grep -v '^ *+' conftest.er1 >conftest.err
2507   rm -f conftest.er1
2508   cat conftest.err >&5
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } &&
2511          { ac_try='test -z "$ac_c_werror_flag"
2512                          || test ! -s conftest.err'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; } &&
2518          { ac_try='test -s conftest.$ac_objext'
2519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520   (eval $ac_try) 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   for ac_declaration in \
2525    '' \
2526    'extern "C" void std::exit (int) throw (); using std::exit;' \
2527    'extern "C" void std::exit (int); using std::exit;' \
2528    'extern "C" void exit (int) throw ();' \
2529    'extern "C" void exit (int);' \
2530    'void exit (int);'
2531 do
2532   cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538 $ac_declaration
2539 #include <stdlib.h>
2540 int
2541 main ()
2542 {
2543 exit (42);
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550   (eval $ac_compile) 2>conftest.er1
2551   ac_status=$?
2552   grep -v '^ *+' conftest.er1 >conftest.err
2553   rm -f conftest.er1
2554   cat conftest.err >&5
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -z "$ac_c_werror_flag"
2558                          || test ! -s conftest.err'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   :
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 continue
2576 fi
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584 $ac_declaration
2585 int
2586 main ()
2587 {
2588 exit (42);
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag"
2603                          || test ! -s conftest.err'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; } &&
2609          { ac_try='test -s conftest.$ac_objext'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; }; then
2615   break
2616 else
2617   echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2619
2620 fi
2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 done
2623 rm -f conftest*
2624 if test -n "$ac_declaration"; then
2625   echo '#ifdef __cplusplus' >>confdefs.h
2626   echo $ac_declaration      >>confdefs.h
2627   echo '#endif'             >>confdefs.h
2628 fi
2629
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 fi
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642 ac_ext=cc
2643 ac_cpp='$CXXCPP $CPPFLAGS'
2644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2647 if test -n "$ac_tool_prefix"; then
2648   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2649   do
2650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2652 echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   if test -n "$CXX"; then
2658   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672 done
2673
2674 fi
2675 fi
2676 CXX=$glibcxx_cv_prog_CXX
2677 if test -n "$CXX"; then
2678   echo "$as_me:$LINENO: result: $CXX" >&5
2679 echo "${ECHO_T}$CXX" >&6
2680 else
2681   echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2683 fi
2684
2685     test -n "$CXX" && break
2686   done
2687 fi
2688 if test -z "$CXX"; then
2689   ac_ct_CXX=$CXX
2690   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2691 do
2692   # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   if test -n "$ac_ct_CXX"; then
2700   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707   for ac_exec_ext in '' $ac_executable_extensions; do
2708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709     ac_cv_prog_ac_ct_CXX="$ac_prog"
2710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714 done
2715
2716 fi
2717 fi
2718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2719 if test -n "$ac_ct_CXX"; then
2720   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2721 echo "${ECHO_T}$ac_ct_CXX" >&6
2722 else
2723   echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2725 fi
2726
2727   test -n "$ac_ct_CXX" && break
2728 done
2729 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2730
2731   CXX=$ac_ct_CXX
2732 fi
2733
2734
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO:" \
2737      "checking for C++ compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2740   (eval $ac_compiler --version </dev/null >&5) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }
2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2745   (eval $ac_compiler -v </dev/null >&5) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }
2749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2750   (eval $ac_compiler -V </dev/null >&5) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754
2755 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2756 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2757 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770 #ifndef __GNUC__
2771        choke me
2772 #endif
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_cxx_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_compiler_gnu=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_compiler_gnu=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2809
2810 fi
2811 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2812 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2813 GXX=`test $ac_compiler_gnu = yes && echo yes`
2814 ac_test_CXXFLAGS=${CXXFLAGS+set}
2815 ac_save_CXXFLAGS=$CXXFLAGS
2816 CXXFLAGS="-g"
2817 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2818 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2819 if test "${ac_cv_prog_cxx_g+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839   (eval $ac_compile) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } &&
2846          { ac_try='test -z "$ac_cxx_werror_flag"
2847                          || test ! -s conftest.err'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; } &&
2853          { ac_try='test -s conftest.$ac_objext'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   ac_cv_prog_cxx_g=yes
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 ac_cv_prog_cxx_g=no
2865 fi
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2870 if test "$ac_test_CXXFLAGS" = set; then
2871   CXXFLAGS=$ac_save_CXXFLAGS
2872 elif test $ac_cv_prog_cxx_g = yes; then
2873   if test "$GXX" = yes; then
2874     CXXFLAGS="-g -O2"
2875   else
2876     CXXFLAGS="-g"
2877   fi
2878 else
2879   if test "$GXX" = yes; then
2880     CXXFLAGS="-O2"
2881   else
2882     CXXFLAGS=
2883   fi
2884 fi
2885 for ac_declaration in \
2886    '' \
2887    'extern "C" void std::exit (int) throw (); using std::exit;' \
2888    'extern "C" void std::exit (int); using std::exit;' \
2889    'extern "C" void exit (int) throw ();' \
2890    'extern "C" void exit (int);' \
2891    'void exit (int);'
2892 do
2893   cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899 $ac_declaration
2900 #include <stdlib.h>
2901 int
2902 main ()
2903 {
2904 exit (42);
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } &&
2918          { ac_try='test -z "$ac_cxx_werror_flag"
2919                          || test ! -s conftest.err'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; } &&
2925          { ac_try='test -s conftest.$ac_objext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   :
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 continue
2937 fi
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 $ac_declaration
2946 int
2947 main ()
2948 {
2949 exit (42);
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956   (eval $ac_compile) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_cxx_werror_flag"
2964                          || test ! -s conftest.err'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972   (eval $ac_try) 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; }; then
2976   break
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 fi
2982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 done
2984 rm -f conftest*
2985 if test -n "$ac_declaration"; then
2986   echo '#ifdef __cplusplus' >>confdefs.h
2987   echo $ac_declaration      >>confdefs.h
2988   echo '#endif'             >>confdefs.h
2989 fi
2990
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996
2997 CXXFLAGS="$save_CXXFLAGS"
2998
2999
3000
3001
3002
3003 am__api_version="1.9"
3004 # Find a good install program.  We prefer a C program (faster),
3005 # so one script is as good as another.  But avoid the broken or
3006 # incompatible versions:
3007 # SysV /etc/install, /usr/sbin/install
3008 # SunOS /usr/etc/install
3009 # IRIX /sbin/install
3010 # AIX /bin/install
3011 # AmigaOS /C/install, which installs bootblocks on floppy discs
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # OS/2's system install, which has a completely different semantic
3016 # ./install, which can be erroneously created by make from ./install.sh.
3017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3019 if test -z "$INSTALL"; then
3020 if test "${ac_cv_path_install+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028   # Account for people who put trailing slashes in PATH elements.
3029 case $as_dir/ in
3030   ./ | .// | /cC/* | \
3031   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3032   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3033   /usr/ucb/* ) ;;
3034   *)
3035     # OSF1 and SCO ODT 3.0 have their own names for install.
3036     # Don't use installbsd from OSF since it installs stuff as root
3037     # by default.
3038     for ac_prog in ginstall scoinst install; do
3039       for ac_exec_ext in '' $ac_executable_extensions; do
3040         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3041           if test $ac_prog = install &&
3042             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3043             # AIX install.  It has an incompatible calling convention.
3044             :
3045           elif test $ac_prog = install &&
3046             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3047             # program-specific install script used by HP pwplus--don't use.
3048             :
3049           else
3050             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3051             break 3
3052           fi
3053         fi
3054       done
3055     done
3056     ;;
3057 esac
3058 done
3059
3060
3061 fi
3062   if test "${ac_cv_path_install+set}" = set; then
3063     INSTALL=$ac_cv_path_install
3064   else
3065     # As a last resort, use the slow shell script.  We don't cache a
3066     # path for INSTALL within a source directory, because that will
3067     # break other packages using the cache if that directory is
3068     # removed, or if the path is relative.
3069     INSTALL=$ac_install_sh
3070   fi
3071 fi
3072 echo "$as_me:$LINENO: result: $INSTALL" >&5
3073 echo "${ECHO_T}$INSTALL" >&6
3074
3075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3076 # It thinks the first close brace ends the variable substitution.
3077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078
3079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080
3081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082
3083 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3084 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3085 # Just in case
3086 sleep 1
3087 echo timestamp > conftest.file
3088 # Do `set' in a subshell so we don't clobber the current shell's
3089 # arguments.  Must try -L first in case configure is actually a
3090 # symlink; some systems play weird games with the mod time of symlinks
3091 # (eg FreeBSD returns the mod time of the symlink's containing
3092 # directory).
3093 if (
3094    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3095    if test "$*" = "X"; then
3096       # -L didn't work.
3097       set X `ls -t $srcdir/configure conftest.file`
3098    fi
3099    rm -f conftest.file
3100    if test "$*" != "X $srcdir/configure conftest.file" \
3101       && test "$*" != "X conftest.file $srcdir/configure"; then
3102
3103       # If neither matched, then we have a broken ls.  This can happen
3104       # if, for instance, CONFIG_SHELL is bash and it inherits a
3105       # broken ls alias from the environment.  This has actually
3106       # happened.  Such a system could not be considered "sane".
3107       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3108 alias in your environment" >&5
3109 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3110 alias in your environment" >&2;}
3111    { (exit 1); exit 1; }; }
3112    fi
3113
3114    test "$2" = conftest.file
3115    )
3116 then
3117    # Ok.
3118    :
3119 else
3120    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3121 Check your system clock" >&5
3122 echo "$as_me: error: newly created file is older than distributed files!
3123 Check your system clock" >&2;}
3124    { (exit 1); exit 1; }; }
3125 fi
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3128 test "$program_prefix" != NONE &&
3129   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3130 # Use a double $ so make ignores it.
3131 test "$program_suffix" != NONE &&
3132   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3133 # Double any \ or $.  echo might interpret backslashes.
3134 # By default was `s,x,x', remove it if useless.
3135 cat <<\_ACEOF >conftest.sed
3136 s/[\\$]/&&/g;s/;s,x,x,$//
3137 _ACEOF
3138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3139 rm conftest.sed
3140
3141 # expand $ac_aux_dir to an absolute path
3142 am_aux_dir=`cd $ac_aux_dir && pwd`
3143
3144 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3145 # Use eval to expand $SHELL
3146 if eval "$MISSING --run true"; then
3147   am_missing_run="$MISSING --run "
3148 else
3149   am_missing_run=
3150   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3151 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3152 fi
3153
3154 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3155   # We used to keeping the `.' as first argument, in order to
3156   # allow $(mkdir_p) to be used without argument.  As in
3157   #   $(mkdir_p) $(somedir)
3158   # where $(somedir) is conditionally defined.  However this is wrong
3159   # for two reasons:
3160   #  1. if the package is installed by a user who cannot write `.'
3161   #     make install will fail,
3162   #  2. the above comment should most certainly read
3163   #     $(mkdir_p) $(DESTDIR)$(somedir)
3164   #     so it does not work when $(somedir) is undefined and
3165   #     $(DESTDIR) is not.
3166   #  To support the latter case, we have to write
3167   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3168   #  so the `.' trick is pointless.
3169   mkdir_p='mkdir -p --'
3170 else
3171   # On NextStep and OpenStep, the `mkdir' command does not
3172   # recognize any option.  It will interpret all options as
3173   # directories to create, and then abort because `.' already
3174   # exists.
3175   for d in ./-p ./--version;
3176   do
3177     test -d $d && rmdir $d
3178   done
3179   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3180   if test -f "$ac_aux_dir/mkinstalldirs"; then
3181     mkdir_p='$(mkinstalldirs)'
3182   else
3183     mkdir_p='$(install_sh) -d'
3184   fi
3185 fi
3186
3187 for ac_prog in gawk mawk nawk awk
3188 do
3189   # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_AWK+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$AWK"; then
3197   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_AWK="$ac_prog"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212
3213 fi
3214 fi
3215 AWK=$ac_cv_prog_AWK
3216 if test -n "$AWK"; then
3217   echo "$as_me:$LINENO: result: $AWK" >&5
3218 echo "${ECHO_T}$AWK" >&6
3219 else
3220   echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222 fi
3223
3224   test -n "$AWK" && break
3225 done
3226
3227 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3228 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3229 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3230 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   cat >conftest.make <<\_ACEOF
3234 all:
3235         @echo 'ac_maketemp="$(MAKE)"'
3236 _ACEOF
3237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3238 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3239 if test -n "$ac_maketemp"; then
3240   eval ac_cv_prog_make_${ac_make}_set=yes
3241 else
3242   eval ac_cv_prog_make_${ac_make}_set=no
3243 fi
3244 rm -f conftest.make
3245 fi
3246 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3247   echo "$as_me:$LINENO: result: yes" >&5
3248 echo "${ECHO_T}yes" >&6
3249   SET_MAKE=
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253   SET_MAKE="MAKE=${MAKE-make}"
3254 fi
3255
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3259   am__leading_dot=.
3260 else
3261   am__leading_dot=_
3262 fi
3263 rmdir .tst 2>/dev/null
3264
3265 DEPDIR="${am__leading_dot}deps"
3266
3267           ac_config_commands="$ac_config_commands depfiles"
3268
3269
3270 am_make=${MAKE-make}
3271 cat > confinc << 'END'
3272 am__doit:
3273         @echo done
3274 .PHONY: am__doit
3275 END
3276 # If we don't find an include directive, just comment out the code.
3277 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3278 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3279 am__include="#"
3280 am__quote=
3281 _am_result=none
3282 # First try GNU make style include.
3283 echo "include confinc" > confmf
3284 # We grep out `Entering directory' and `Leaving directory'
3285 # messages which can occur if `w' ends up in MAKEFLAGS.
3286 # In particular we don't look at `^make:' because GNU make might
3287 # be invoked under some other name (usually "gmake"), in which
3288 # case it prints its new name instead of `make'.
3289 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3290    am__include=include
3291    am__quote=
3292    _am_result=GNU
3293 fi
3294 # Now try BSD make style include.
3295 if test "$am__include" = "#"; then
3296    echo '.include "confinc"' > confmf
3297    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3298       am__include=.include
3299       am__quote="\""
3300       _am_result=BSD
3301    fi
3302 fi
3303
3304
3305 echo "$as_me:$LINENO: result: $_am_result" >&5
3306 echo "${ECHO_T}$_am_result" >&6
3307 rm -f confinc confmf
3308
3309 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3310 if test "${enable_dependency_tracking+set}" = set; then
3311   enableval="$enable_dependency_tracking"
3312
3313 fi;
3314 if test "x$enable_dependency_tracking" != xno; then
3315   am_depcomp="$ac_aux_dir/depcomp"
3316   AMDEPBACKSLASH='\'
3317 fi
3318
3319
3320 if test "x$enable_dependency_tracking" != xno; then
3321   AMDEP_TRUE=
3322   AMDEP_FALSE='#'
3323 else
3324   AMDEP_TRUE='#'
3325   AMDEP_FALSE=
3326 fi
3327
3328
3329
3330 # test to see if srcdir already configured
3331 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3332    test -f $srcdir/config.status; then
3333   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3334 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3335    { (exit 1); exit 1; }; }
3336 fi
3337
3338 # test whether we have cygpath
3339 if test -z "$CYGPATH_W"; then
3340   if (cygpath --version) >/dev/null 2>/dev/null; then
3341     CYGPATH_W='cygpath -w'
3342   else
3343     CYGPATH_W=echo
3344   fi
3345 fi
3346
3347
3348 # Define the identity of the package.
3349  PACKAGE='libjava'
3350  VERSION='version-unused'
3351
3352
3353 cat >>confdefs.h <<_ACEOF
3354 #define PACKAGE "$PACKAGE"
3355 _ACEOF
3356
3357
3358 cat >>confdefs.h <<_ACEOF
3359 #define VERSION "$VERSION"
3360 _ACEOF
3361
3362 # Some tools Automake needs.
3363
3364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3365
3366
3367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3368
3369
3370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3371
3372
3373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3374
3375
3376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3377
3378 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3379
3380 # Installed binaries are usually stripped using `strip' when the user
3381 # run `make install-strip'.  However `strip' might not be the right
3382 # tool to use in cross-compilation environments, therefore Automake
3383 # will honor the `STRIP' environment variable to overrule this program.
3384 if test "$cross_compiling" != no; then
3385   if test -n "$ac_tool_prefix"; then
3386   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}strip; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_prog_STRIP+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   if test -n "$STRIP"; then
3394   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409
3410 fi
3411 fi
3412 STRIP=$ac_cv_prog_STRIP
3413 if test -n "$STRIP"; then
3414   echo "$as_me:$LINENO: result: $STRIP" >&5
3415 echo "${ECHO_T}$STRIP" >&6
3416 else
3417   echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3419 fi
3420
3421 fi
3422 if test -z "$ac_cv_prog_STRIP"; then
3423   ac_ct_STRIP=$STRIP
3424   # Extract the first word of "strip", so it can be a program name with args.
3425 set dummy strip; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   if test -n "$ac_ct_STRIP"; then
3432   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439   for ac_exec_ext in '' $ac_executable_extensions; do
3440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441     ac_cv_prog_ac_ct_STRIP="strip"
3442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443     break 2
3444   fi
3445 done
3446 done
3447
3448   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3449 fi
3450 fi
3451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3452 if test -n "$ac_ct_STRIP"; then
3453   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3454 echo "${ECHO_T}$ac_ct_STRIP" >&6
3455 else
3456   echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458 fi
3459
3460   STRIP=$ac_ct_STRIP
3461 else
3462   STRIP="$ac_cv_prog_STRIP"
3463 fi
3464
3465 fi
3466 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3467
3468 # We need awk for the "check" target.  The system "awk" is bad on
3469 # some platforms.
3470 # Always define AMTAR for backward compatibility.
3471
3472 AMTAR=${AMTAR-"${am_missing_run}tar"}
3473
3474 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3475
3476
3477
3478
3479 depcc="$CC"   am_compiler_list=
3480
3481 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3482 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3483 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3487   # We make a subdir and do the tests there.  Otherwise we can end up
3488   # making bogus files that we don't know about and never remove.  For
3489   # instance it was reported that on HP-UX the gcc test will end up
3490   # making a dummy file named `D' -- because `-MD' means `put the output
3491   # in D'.
3492   mkdir conftest.dir
3493   # Copy depcomp to subdir because otherwise we won't find it if we're
3494   # using a relative directory.
3495   cp "$am_depcomp" conftest.dir
3496   cd conftest.dir
3497   # We will build objects and dependencies in a subdirectory because
3498   # it helps to detect inapplicable dependency modes.  For instance
3499   # both Tru64's cc and ICC support -MD to output dependencies as a
3500   # side effect of compilation, but ICC will put the dependencies in
3501   # the current directory while Tru64 will put them in the object
3502   # directory.
3503   mkdir sub
3504
3505   am_cv_CC_dependencies_compiler_type=none
3506   if test "$am_compiler_list" = ""; then
3507      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3508   fi
3509   for depmode in $am_compiler_list; do
3510     # Setup a source with many dependencies, because some compilers
3511     # like to wrap large dependency lists on column 80 (with \), and
3512     # we should not choose a depcomp mode which is confused by this.
3513     #
3514     # We need to recreate these files for each test, as the compiler may
3515     # overwrite some of them when testing with obscure command lines.
3516     # This happens at least with the AIX C compiler.
3517     : > sub/conftest.c
3518     for i in 1 2 3 4 5 6; do
3519       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3520       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3521       # Solaris 8's {/usr,}/bin/sh.
3522       touch sub/conftst$i.h
3523     done
3524     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3525
3526     case $depmode in
3527     nosideeffect)
3528       # after this tag, mechanisms are not by side-effect, so they'll
3529       # only be used when explicitly requested
3530       if test "x$enable_dependency_tracking" = xyes; then
3531         continue
3532       else
3533         break
3534       fi
3535       ;;
3536     none) break ;;
3537     esac
3538     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3539     # mode.  It turns out that the SunPro C++ compiler does not properly
3540     # handle `-M -o', and we need to detect this.
3541     if depmode=$depmode \
3542        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3543        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3544        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3545          >/dev/null 2>conftest.err &&
3546        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3547        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3548        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3549       # icc doesn't choke on unknown options, it will just issue warnings
3550       # or remarks (even with -Werror).  So we grep stderr for any message
3551       # that says an option was ignored or not supported.
3552       # When given -MP, icc 7.0 and 7.1 complain thusly:
3553       #   icc: Command line warning: ignoring option '-M'; no argument required
3554       # The diagnosis changed in icc 8.0:
3555       #   icc: Command line remark: option '-MP' not supported
3556       if (grep 'ignoring option' conftest.err ||
3557           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3558         am_cv_CC_dependencies_compiler_type=$depmode
3559         break
3560       fi
3561     fi
3562   done
3563
3564   cd ..
3565   rm -rf conftest.dir
3566 else
3567   am_cv_CC_dependencies_compiler_type=none
3568 fi
3569
3570 fi
3571 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3572 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3574
3575
3576
3577 if
3578   test "x$enable_dependency_tracking" != xno \
3579   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3580   am__fastdepCC_TRUE=
3581   am__fastdepCC_FALSE='#'
3582 else
3583   am__fastdepCC_TRUE='#'
3584   am__fastdepCC_FALSE=
3585 fi
3586
3587
3588 depcc="$CXX"  am_compiler_list=
3589
3590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3592 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3596   # We make a subdir and do the tests there.  Otherwise we can end up
3597   # making bogus files that we don't know about and never remove.  For
3598   # instance it was reported that on HP-UX the gcc test will end up
3599   # making a dummy file named `D' -- because `-MD' means `put the output
3600   # in D'.
3601   mkdir conftest.dir
3602   # Copy depcomp to subdir because otherwise we won't find it if we're
3603   # using a relative directory.
3604   cp "$am_depcomp" conftest.dir
3605   cd conftest.dir
3606   # We will build objects and dependencies in a subdirectory because
3607   # it helps to detect inapplicable dependency modes.  For instance
3608   # both Tru64's cc and ICC support -MD to output dependencies as a
3609   # side effect of compilation, but ICC will put the dependencies in
3610   # the current directory while Tru64 will put them in the object
3611   # directory.
3612   mkdir sub
3613
3614   am_cv_CXX_dependencies_compiler_type=none
3615   if test "$am_compiler_list" = ""; then
3616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3617   fi
3618   for depmode in $am_compiler_list; do
3619     # Setup a source with many dependencies, because some compilers
3620     # like to wrap large dependency lists on column 80 (with \), and
3621     # we should not choose a depcomp mode which is confused by this.
3622     #
3623     # We need to recreate these files for each test, as the compiler may
3624     # overwrite some of them when testing with obscure command lines.
3625     # This happens at least with the AIX C compiler.
3626     : > sub/conftest.c
3627     for i in 1 2 3 4 5 6; do
3628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630       # Solaris 8's {/usr,}/bin/sh.
3631       touch sub/conftst$i.h
3632     done
3633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634
3635     case $depmode in
3636     nosideeffect)
3637       # after this tag, mechanisms are not by side-effect, so they'll
3638       # only be used when explicitly requested
3639       if test "x$enable_dependency_tracking" = xyes; then
3640         continue
3641       else
3642         break
3643       fi
3644       ;;
3645     none) break ;;
3646     esac
3647     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3648     # mode.  It turns out that the SunPro C++ compiler does not properly
3649     # handle `-M -o', and we need to detect this.
3650     if depmode=$depmode \
3651        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3653        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3654          >/dev/null 2>conftest.err &&
3655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658       # icc doesn't choke on unknown options, it will just issue warnings
3659       # or remarks (even with -Werror).  So we grep stderr for any message
3660       # that says an option was ignored or not supported.
3661       # When given -MP, icc 7.0 and 7.1 complain thusly:
3662       #   icc: Command line warning: ignoring option '-M'; no argument required
3663       # The diagnosis changed in icc 8.0:
3664       #   icc: Command line remark: option '-MP' not supported
3665       if (grep 'ignoring option' conftest.err ||
3666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667         am_cv_CXX_dependencies_compiler_type=$depmode
3668         break
3669       fi
3670     fi
3671   done
3672
3673   cd ..
3674   rm -rf conftest.dir
3675 else
3676   am_cv_CXX_dependencies_compiler_type=none
3677 fi
3678
3679 fi
3680 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3681 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3682 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3683
3684
3685
3686 if
3687   test "x$enable_dependency_tracking" != xno \
3688   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3689   am__fastdepCXX_TRUE=
3690   am__fastdepCXX_FALSE='#'
3691 else
3692   am__fastdepCXX_TRUE='#'
3693   am__fastdepCXX_FALSE=
3694 fi
3695
3696
3697
3698
3699 if test -n "$ac_tool_prefix"; then
3700   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}as; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_AS+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -n "$AS"; then
3708   ac_cv_prog_AS="$AS" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_AS="${ac_tool_prefix}as"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724 fi
3725 fi
3726 AS=$ac_cv_prog_AS
3727 if test -n "$AS"; then
3728   echo "$as_me:$LINENO: result: $AS" >&5
3729 echo "${ECHO_T}$AS" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735 fi
3736 if test -z "$ac_cv_prog_AS"; then
3737   ac_ct_AS=$AS
3738   # Extract the first word of "as", so it can be a program name with args.
3739 set dummy as; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   if test -n "$ac_ct_AS"; then
3746   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_prog_ac_ct_AS="as"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762 fi
3763 fi
3764 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3765 if test -n "$ac_ct_AS"; then
3766   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3767 echo "${ECHO_T}$ac_ct_AS" >&6
3768 else
3769   echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 fi
3772
3773   AS=$ac_ct_AS
3774 else
3775   AS="$ac_cv_prog_AS"
3776 fi
3777
3778 if test -n "$ac_tool_prefix"; then
3779   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}ld; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_prog_LD+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   if test -n "$LD"; then
3787   ac_cv_prog_LD="$LD" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_LD="${ac_tool_prefix}ld"
3797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801 done
3802
3803 fi
3804 fi
3805 LD=$ac_cv_prog_LD
3806 if test -n "$LD"; then
3807   echo "$as_me:$LINENO: result: $LD" >&5
3808 echo "${ECHO_T}$LD" >&6
3809 else
3810   echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3812 fi
3813
3814 fi
3815 if test -z "$ac_cv_prog_LD"; then
3816   ac_ct_LD=$LD
3817   # Extract the first word of "ld", so it can be a program name with args.
3818 set dummy ld; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   if test -n "$ac_ct_LD"; then
3825   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830   IFS=$as_save_IFS
3831   test -z "$as_dir" && as_dir=.
3832   for ac_exec_ext in '' $ac_executable_extensions; do
3833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834     ac_cv_prog_ac_ct_LD="ld"
3835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836     break 2
3837   fi
3838 done
3839 done
3840
3841 fi
3842 fi
3843 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3844 if test -n "$ac_ct_LD"; then
3845   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3846 echo "${ECHO_T}$ac_ct_LD" >&6
3847 else
3848   echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850 fi
3851
3852   LD=$ac_ct_LD
3853 else
3854   LD="$ac_cv_prog_LD"
3855 fi
3856
3857 if test -n "$ac_tool_prefix"; then
3858   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ar; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_AR+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   if test -n "$AR"; then
3866   ac_cv_prog_AR="$AR" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_prog_AR="${ac_tool_prefix}ar"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882 fi
3883 fi
3884 AR=$ac_cv_prog_AR
3885 if test -n "$AR"; then
3886   echo "$as_me:$LINENO: result: $AR" >&5
3887 echo "${ECHO_T}$AR" >&6
3888 else
3889   echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893 fi
3894 if test -z "$ac_cv_prog_AR"; then
3895   ac_ct_AR=$AR
3896   # Extract the first word of "ar", so it can be a program name with args.
3897 set dummy ar; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if test -n "$ac_ct_AR"; then
3904   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_prog_ac_ct_AR="ar"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920 fi
3921 fi
3922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3923 if test -n "$ac_ct_AR"; then
3924   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3925 echo "${ECHO_T}$ac_ct_AR" >&6
3926 else
3927   echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3929 fi
3930
3931   AR=$ac_ct_AR
3932 else
3933   AR="$ac_cv_prog_AR"
3934 fi
3935
3936 if test -n "$ac_tool_prefix"; then
3937   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_RANLIB+set}" = set; then
3942   echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944   if test -n "$RANLIB"; then
3945   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952   for ac_exec_ext in '' $ac_executable_extensions; do
3953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959 done
3960
3961 fi
3962 fi
3963 RANLIB=$ac_cv_prog_RANLIB
3964 if test -n "$RANLIB"; then
3965   echo "$as_me:$LINENO: result: $RANLIB" >&5
3966 echo "${ECHO_T}$RANLIB" >&6
3967 else
3968   echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3970 fi
3971
3972 fi
3973 if test -z "$ac_cv_prog_RANLIB"; then
3974   ac_ct_RANLIB=$RANLIB
3975   # Extract the first word of "ranlib", so it can be a program name with args.
3976 set dummy ranlib; ac_word=$2
3977 echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   if test -n "$ac_ct_RANLIB"; then
3983   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_exec_ext in '' $ac_executable_extensions; do
3991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992     ac_cv_prog_ac_ct_RANLIB="ranlib"
3993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997 done
3998
3999   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4000 fi
4001 fi
4002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4003 if test -n "$ac_ct_RANLIB"; then
4004   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4006 else
4007   echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011   RANLIB=$ac_ct_RANLIB
4012 else
4013   RANLIB="$ac_cv_prog_RANLIB"
4014 fi
4015
4016 for ac_prog in gawk mawk nawk awk
4017 do
4018   # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_AWK+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$AWK"; then
4026   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_prog_AWK="$ac_prog"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042 fi
4043 fi
4044 AWK=$ac_cv_prog_AWK
4045 if test -n "$AWK"; then
4046   echo "$as_me:$LINENO: result: $AWK" >&5
4047 echo "${ECHO_T}$AWK" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053   test -n "$AWK" && break
4054 done
4055
4056 for ac_prog in jar fastjar
4057 do
4058   # Extract the first word of "$ac_prog", so it can be a program name with args.
4059 set dummy $ac_prog; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_JAR+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   if test -n "$JAR"; then
4066   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075     ac_cv_prog_JAR="$ac_prog"
4076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080 done
4081
4082 fi
4083 fi
4084 JAR=$ac_cv_prog_JAR
4085 if test -n "$JAR"; then
4086   echo "$as_me:$LINENO: result: $JAR" >&5
4087 echo "${ECHO_T}$JAR" >&6
4088 else
4089   echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091 fi
4092
4093   test -n "$JAR" && break
4094 done
4095 test -n "$JAR" || JAR="no"
4096
4097 # Extract the first word of "zip", so it can be a program name with args.
4098 set dummy zip; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_path_ZIP+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   case $ZIP in
4105   [\\/]* | ?:[\\/]*)
4106   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4107   ;;
4108   *)
4109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114   for ac_exec_ext in '' $ac_executable_extensions; do
4115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121 done
4122
4123   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4124   ;;
4125 esac
4126 fi
4127 ZIP=$ac_cv_path_ZIP
4128
4129 if test -n "$ZIP"; then
4130   echo "$as_me:$LINENO: result: $ZIP" >&5
4131 echo "${ECHO_T}$ZIP" >&6
4132 else
4133   echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4135 fi
4136
4137 # Extract the first word of "unzip", so it can be a program name with args.
4138 set dummy unzip; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_UNZIP+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   case $UNZIP in
4145   [\\/]* | ?:[\\/]*)
4146   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4147   ;;
4148   *)
4149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154   for ac_exec_ext in '' $ac_executable_extensions; do
4155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161 done
4162
4163   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4164   ;;
4165 esac
4166 fi
4167 UNZIP=$ac_cv_path_UNZIP
4168
4169 if test -n "$UNZIP"; then
4170   echo "$as_me:$LINENO: result: $UNZIP" >&5
4171 echo "${ECHO_T}$UNZIP" >&6
4172 else
4173   echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177
4178
4179 if test "$JAR" = no; then
4180   BASH_JAR_TRUE=
4181   BASH_JAR_FALSE='#'
4182 else
4183   BASH_JAR_TRUE='#'
4184   BASH_JAR_FALSE=
4185 fi
4186
4187 if test "$ZIP" = no; then
4188   if test "$JAR" = no; then
4189     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4190 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4191    { (exit 1); exit 1; }; }
4192   fi
4193 else
4194   # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4195   JAR=`pwd`/scripts/jar
4196 fi
4197
4198 # Find a good install program.  We prefer a C program (faster),
4199 # so one script is as good as another.  But avoid the broken or
4200 # incompatible versions:
4201 # SysV /etc/install, /usr/sbin/install
4202 # SunOS /usr/etc/install
4203 # IRIX /sbin/install
4204 # AIX /bin/install
4205 # AmigaOS /C/install, which installs bootblocks on floppy discs
4206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4209 # OS/2's system install, which has a completely different semantic
4210 # ./install, which can be erroneously created by make from ./install.sh.
4211 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4212 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4213 if test -z "$INSTALL"; then
4214 if test "${ac_cv_path_install+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222   # Account for people who put trailing slashes in PATH elements.
4223 case $as_dir/ in
4224   ./ | .// | /cC/* | \
4225   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4226   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4227   /usr/ucb/* ) ;;
4228   *)
4229     # OSF1 and SCO ODT 3.0 have their own names for install.
4230     # Don't use installbsd from OSF since it installs stuff as root
4231     # by default.
4232     for ac_prog in ginstall scoinst install; do
4233       for ac_exec_ext in '' $ac_executable_extensions; do
4234         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4235           if test $ac_prog = install &&
4236             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4237             # AIX install.  It has an incompatible calling convention.
4238             :
4239           elif test $ac_prog = install &&
4240             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4241             # program-specific install script used by HP pwplus--don't use.
4242             :
4243           else
4244             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245             break 3
4246           fi
4247         fi
4248       done
4249     done
4250     ;;
4251 esac
4252 done
4253
4254
4255 fi
4256   if test "${ac_cv_path_install+set}" = set; then
4257     INSTALL=$ac_cv_path_install
4258   else
4259     # As a last resort, use the slow shell script.  We don't cache a
4260     # path for INSTALL within a source directory, because that will
4261     # break other packages using the cache if that directory is
4262     # removed, or if the path is relative.
4263     INSTALL=$ac_install_sh
4264   fi
4265 fi
4266 echo "$as_me:$LINENO: result: $INSTALL" >&5
4267 echo "${ECHO_T}$INSTALL" >&6
4268
4269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4270 # It thinks the first close brace ends the variable substitution.
4271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4272
4273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4274
4275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4276
4277
4278 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4279 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4280     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4281 if test "${enable_maintainer_mode+set}" = set; then
4282   enableval="$enable_maintainer_mode"
4283   USE_MAINTAINER_MODE=$enableval
4284 else
4285   USE_MAINTAINER_MODE=no
4286 fi;
4287   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4288 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4289
4290
4291 if test $USE_MAINTAINER_MODE = yes; then
4292   MAINTAINER_MODE_TRUE=
4293   MAINTAINER_MODE_FALSE='#'
4294 else
4295   MAINTAINER_MODE_TRUE='#'
4296   MAINTAINER_MODE_FALSE=
4297 fi
4298
4299   MAINT=$MAINTAINER_MODE_TRUE
4300
4301
4302
4303
4304
4305 # configure.host sets the following important variables
4306 #       libgcj_cflags    - host specific C compiler flags
4307 #       libgcj_cxxflags  - host specific C++ compiler flags
4308 #       libgcj_javaflags - host specific Java compiler flags
4309
4310 libgcj_cflags=
4311 libgcj_cxxflags=
4312 libgcj_javaflags=
4313
4314 . ${srcdir}/configure.host
4315
4316 LIBGCJ_CFLAGS="${libgcj_cflags}"
4317 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4318 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4319 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4320
4321
4322
4323
4324
4325 # Only use libltdl for non-newlib builds.
4326 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4327    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4329 library_names_spec=
4330 libname_spec='lib$name'
4331 soname_spec=
4332 shrext=".so"
4333 postinstall_cmds=
4334 postuninstall_cmds=
4335 finish_cmds=
4336 finish_eval=
4337 shlibpath_var=
4338 shlibpath_overrides_runpath=unknown
4339 version_type=none
4340 dynamic_linker="$host_os ld.so"
4341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4342 if test "$GCC" = yes; then
4343   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4344   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4345     # if the path contains ";" then we assume it to be the separator
4346     # otherwise default to the standard path separator (i.e. ":") - it is
4347     # assumed that no part of a normal pathname contains ";" but that should
4348     # okay in the real world where ";" in dirpaths is itself problematic.
4349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4350   else
4351     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4352   fi
4353 else
4354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4355 fi
4356 need_lib_prefix=unknown
4357 hardcode_into_libs=no
4358
4359 # when you set need_version to no, make sure it does not cause -set_version
4360 # flags to be left without arguments
4361 need_version=unknown
4362
4363 case $host_os in
4364 aix3*)
4365   version_type=linux
4366   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4367   shlibpath_var=LIBPATH
4368
4369   # AIX 3 has no versioning support, so we append a major version to the name.
4370   soname_spec='${libname}${release}${shared_ext}$major'
4371   ;;
4372
4373 aix4* | aix5*)
4374   version_type=linux
4375   need_lib_prefix=no
4376   need_version=no
4377   hardcode_into_libs=yes
4378   if test "$host_cpu" = ia64; then
4379     # AIX 5 supports IA64
4380     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4381     shlibpath_var=LD_LIBRARY_PATH
4382   else
4383     # With GCC up to 2.95.x, collect2 would create an import file
4384     # for dependence libraries.  The import file would start with
4385     # the line `#! .'.  This would cause the generated library to
4386     # depend on `.', always an invalid library.  This was fixed in
4387     # development snapshots of GCC prior to 3.0.
4388     case $host_os in
4389       aix4 | aix4.[01] | aix4.[01].*)
4390       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4391            echo ' yes '
4392            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4393         :
4394       else
4395         can_build_shared=no
4396       fi
4397       ;;
4398     esac
4399     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4400     # soname into executable. Probably we can add versioning support to
4401     # collect2, so additional links can be useful in future.
4402     if test "$aix_use_runtimelinking" = yes; then
4403       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4404       # instead of lib<name>.a to let people know that these are not
4405       # typical AIX shared libraries.
4406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407     else
4408       # We preserve .a as extension for shared libraries through AIX4.2
4409       # and later when we are not doing run time linking.
4410       library_names_spec='${libname}${release}.a $libname.a'
4411       soname_spec='${libname}${release}${shared_ext}$major'
4412     fi
4413     shlibpath_var=LIBPATH
4414   fi
4415   ;;
4416
4417 amigaos*)
4418   library_names_spec='$libname.ixlibrary $libname.a'
4419   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4420   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'
4421   ;;
4422
4423 beos*)
4424   library_names_spec='${libname}${shared_ext}'
4425   dynamic_linker="$host_os ld.so"
4426   shlibpath_var=LIBRARY_PATH
4427   ;;
4428
4429 bsdi4*)
4430   version_type=linux
4431   need_version=no
4432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4433   soname_spec='${libname}${release}${shared_ext}$major'
4434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4435   shlibpath_var=LD_LIBRARY_PATH
4436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4438   # the default ld.so.conf also contains /usr/contrib/lib and
4439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4440   # libtool to hard-code these into programs
4441   ;;
4442
4443 cygwin* | mingw* | pw32*)
4444   version_type=windows
4445   shrext=".dll"
4446   need_version=no
4447   need_lib_prefix=no
4448
4449   case $GCC,$host_os in
4450   yes,cygwin* | yes,mingw* | yes,pw32*)
4451     library_names_spec='$libname.dll.a'
4452     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4453     postinstall_cmds='base_file=`basename \${file}`~
4454       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4455       dldir=$destdir/`dirname \$dlpath`~
4456       test -d \$dldir || mkdir -p \$dldir~
4457       $install_prog $dir/$dlname \$dldir/$dlname'
4458     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4459       dlpath=$dir/\$dldll~
4460        $rm \$dlpath'
4461     shlibpath_overrides_runpath=yes
4462
4463     case $host_os in
4464     cygwin*)
4465       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4466       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4467       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4468       ;;
4469     mingw*)
4470       # MinGW DLLs use traditional 'lib' prefix
4471       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4472       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4473       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4474         # It is most probably a Windows format PATH printed by
4475         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4476         # path with ; separators, and with drive letters. We can handle the
4477         # drive letters (cygwin fileutils understands them), so leave them,
4478         # especially as we might pass files found there to a mingw objdump,
4479         # which wouldn't understand a cygwinified path. Ahh.
4480         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4481       else
4482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4483       fi
4484       ;;
4485     pw32*)
4486       # pw32 DLLs use 'pw' prefix rather than 'lib'
4487       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4488       ;;
4489     esac
4490     ;;
4491
4492   *)
4493     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4494     ;;
4495   esac
4496   dynamic_linker='Win32 ld.exe'
4497   # FIXME: first we should search . and the directory the executable is in
4498   shlibpath_var=PATH
4499   ;;
4500
4501 darwin* | rhapsody*)
4502   dynamic_linker="$host_os dyld"
4503   version_type=darwin
4504   need_lib_prefix=no
4505   need_version=no
4506   # FIXME: Relying on posixy $() will cause problems for
4507   #        cross-compilation, but unfortunately the echo tests do not
4508   #        yet detect zsh echo's removal of \ escapes.
4509   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4510   soname_spec='${libname}${release}${major}$shared_ext'
4511   shlibpath_overrides_runpath=yes
4512   shlibpath_var=DYLD_LIBRARY_PATH
4513   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4514   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4515   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4516   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"`
4517   fi
4518   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4519   ;;
4520
4521 dgux*)
4522   version_type=linux
4523   need_lib_prefix=no
4524   need_version=no
4525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4526   soname_spec='${libname}${release}${shared_ext}$major'
4527   shlibpath_var=LD_LIBRARY_PATH
4528   ;;
4529
4530 freebsd1*)
4531   dynamic_linker=no
4532   ;;
4533
4534 freebsd*)
4535   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4536   version_type=freebsd-$objformat
4537   case $version_type in
4538     freebsd-elf*)
4539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4540       need_version=no
4541       need_lib_prefix=no
4542       ;;
4543     freebsd-*)
4544       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4545       need_version=yes
4546       ;;
4547   esac
4548   shlibpath_var=LD_LIBRARY_PATH
4549   case $host_os in
4550   freebsd2*)
4551     shlibpath_overrides_runpath=yes
4552     ;;
4553   freebsd3.01* | freebsdelf3.01*)
4554     shlibpath_overrides_runpath=yes
4555     hardcode_into_libs=yes
4556     ;;
4557   *) # from 3.2 on
4558     shlibpath_overrides_runpath=no
4559     hardcode_into_libs=yes
4560     ;;
4561   esac
4562   ;;
4563
4564 gnu*)
4565   version_type=linux
4566   need_lib_prefix=no
4567   need_version=no
4568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4569   soname_spec='${libname}${release}${shared_ext}$major'
4570   shlibpath_var=LD_LIBRARY_PATH
4571   hardcode_into_libs=yes
4572   ;;
4573
4574 hpux9* | hpux10* | hpux11*)
4575   # Give a soname corresponding to the major version so that dld.sl refuses to
4576   # link against other versions.
4577   version_type=sunos
4578   need_lib_prefix=no
4579   need_version=no
4580   case "$host_cpu" in
4581   ia64*)
4582     shrext='.so'
4583     hardcode_into_libs=yes
4584     dynamic_linker="$host_os dld.so"
4585     shlibpath_var=LD_LIBRARY_PATH
4586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588     soname_spec='${libname}${release}${shared_ext}$major'
4589     if test "X$HPUX_IA64_MODE" = X32; then
4590       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4591     else
4592       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4593     fi
4594     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4595     ;;
4596    hppa*64*)
4597      shrext='.sl'
4598      hardcode_into_libs=yes
4599      dynamic_linker="$host_os dld.sl"
4600      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4601      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4603      soname_spec='${libname}${release}${shared_ext}$major'
4604      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4605      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4606      ;;
4607    *)
4608     shrext='.sl'
4609     dynamic_linker="$host_os dld.sl"
4610     shlibpath_var=SHLIB_PATH
4611     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4613     soname_spec='${libname}${release}${shared_ext}$major'
4614     ;;
4615   esac
4616   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4617   postinstall_cmds='chmod 555 $lib'
4618   ;;
4619
4620 irix5* | irix6* | nonstopux*)
4621   case $host_os in
4622     nonstopux*) version_type=nonstopux ;;
4623     *)
4624         if test "$lt_cv_prog_gnu_ld" = yes; then
4625                 version_type=linux
4626         else
4627                 version_type=irix
4628         fi ;;
4629   esac
4630   need_lib_prefix=no
4631   need_version=no
4632   soname_spec='${libname}${release}${shared_ext}$major'
4633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4634   case $host_os in
4635   irix5* | nonstopux*)
4636     libsuff= shlibsuff=
4637     ;;
4638   *)
4639     case $LD in # libtool.m4 will add one of these switches to LD
4640     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4641       libsuff= shlibsuff= libmagic=32-bit;;
4642     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4643       libsuff=32 shlibsuff=N32 libmagic=N32;;
4644     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4645       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4646     *) libsuff= shlibsuff= libmagic=never-match;;
4647     esac
4648     ;;
4649   esac
4650   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4651   shlibpath_overrides_runpath=no
4652   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4653   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4654   hardcode_into_libs=yes
4655   ;;
4656
4657 # No shared lib support for Linux oldld, aout, or coff.
4658 linux*oldld* | linux*aout* | linux*coff*)
4659   dynamic_linker=no
4660   ;;
4661
4662 # This must be Linux ELF.
4663 linux*|k*bsd*-gnu)
4664   version_type=linux
4665   need_lib_prefix=no
4666   need_version=no
4667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4668   soname_spec='${libname}${release}${shared_ext}$major'
4669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4670   shlibpath_var=LD_LIBRARY_PATH
4671   shlibpath_overrides_runpath=no
4672   # This implies no fast_install, which is unacceptable.
4673   # Some rework will be needed to allow for fast_install
4674   # before this can be enabled.
4675   hardcode_into_libs=yes
4676
4677   # We used to test for /lib/ld.so.1 and disable shared libraries on
4678   # powerpc, because MkLinux only supported shared libraries with the
4679   # GNU dynamic linker.  Since this was broken with cross compilers,
4680   # most powerpc-linux boxes support dynamic linking these days and
4681   # people can always --disable-shared, the test was removed, and we
4682   # assume the GNU/Linux dynamic linker is in use.
4683   dynamic_linker='GNU/Linux ld.so'
4684   ;;
4685
4686 netbsd*)
4687   version_type=sunos
4688   need_lib_prefix=no
4689   need_version=no
4690   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4692     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4693     dynamic_linker='NetBSD (a.out) ld.so'
4694   else
4695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4696     soname_spec='${libname}${release}${shared_ext}$major'
4697     dynamic_linker='NetBSD ld.elf_so'
4698   fi
4699   shlibpath_var=LD_LIBRARY_PATH
4700   shlibpath_overrides_runpath=yes
4701   hardcode_into_libs=yes
4702   ;;
4703
4704 newsos6)
4705   version_type=linux
4706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4707   shlibpath_var=LD_LIBRARY_PATH
4708   shlibpath_overrides_runpath=yes
4709   ;;
4710
4711 nto-qnx)
4712   version_type=linux
4713   need_lib_prefix=no
4714   need_version=no
4715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4716   soname_spec='${libname}${release}${shared_ext}$major'
4717   shlibpath_var=LD_LIBRARY_PATH
4718   shlibpath_overrides_runpath=yes
4719   ;;
4720
4721 openbsd*)
4722   version_type=sunos
4723   need_lib_prefix=no
4724   need_version=no
4725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4727   shlibpath_var=LD_LIBRARY_PATH
4728   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4729     case $host_os in
4730       openbsd2.[89] | openbsd2.[89].*)
4731         shlibpath_overrides_runpath=no
4732         ;;
4733       *)
4734         shlibpath_overrides_runpath=yes
4735         ;;
4736       esac
4737   else
4738     shlibpath_overrides_runpath=yes
4739   fi
4740   ;;
4741
4742 os2*)
4743   libname_spec='$name'
4744   shrext=".dll"
4745   need_lib_prefix=no
4746   library_names_spec='$libname${shared_ext} $libname.a'
4747   dynamic_linker='OS/2 ld.exe'
4748   shlibpath_var=LIBPATH
4749   ;;
4750
4751 osf3* | osf4* | osf5*)
4752   version_type=osf
4753   need_lib_prefix=no
4754   need_version=no
4755   soname_spec='${libname}${release}${shared_ext}$major'
4756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4757   shlibpath_var=LD_LIBRARY_PATH
4758   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4759   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4760   ;;
4761
4762 sco3.2v5*)
4763   version_type=osf
4764   soname_spec='${libname}${release}${shared_ext}$major'
4765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4766   shlibpath_var=LD_LIBRARY_PATH
4767   ;;
4768
4769 solaris*)
4770   version_type=linux
4771   need_lib_prefix=no
4772   need_version=no
4773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4774   soname_spec='${libname}${release}${shared_ext}$major'
4775   shlibpath_var=LD_LIBRARY_PATH
4776   shlibpath_overrides_runpath=yes
4777   hardcode_into_libs=yes
4778   # ldd complains unless libraries are executable
4779   postinstall_cmds='chmod +x $lib'
4780   ;;
4781
4782 sunos4*)
4783   version_type=sunos
4784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4786   shlibpath_var=LD_LIBRARY_PATH
4787   shlibpath_overrides_runpath=yes
4788   if test "$with_gnu_ld" = yes; then
4789     need_lib_prefix=no
4790   fi
4791   need_version=yes
4792   ;;
4793
4794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4795   version_type=linux
4796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4797   soname_spec='${libname}${release}${shared_ext}$major'
4798   shlibpath_var=LD_LIBRARY_PATH
4799   case $host_vendor in
4800     sni)
4801       shlibpath_overrides_runpath=no
4802       need_lib_prefix=no
4803       export_dynamic_flag_spec='${wl}-Blargedynsym'
4804       runpath_var=LD_RUN_PATH
4805       ;;
4806     siemens)
4807       need_lib_prefix=no
4808       ;;
4809     motorola)
4810       need_lib_prefix=no
4811       need_version=no
4812       shlibpath_overrides_runpath=no
4813       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4814       ;;
4815   esac
4816   ;;
4817
4818 sysv4*MP*)
4819   if test -d /usr/nec ;then
4820     version_type=linux
4821     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4822     soname_spec='$libname${shared_ext}.$major'
4823     shlibpath_var=LD_LIBRARY_PATH
4824   fi
4825   ;;
4826
4827 uts4*)
4828   version_type=linux
4829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4830   soname_spec='${libname}${release}${shared_ext}$major'
4831   shlibpath_var=LD_LIBRARY_PATH
4832   ;;
4833
4834 *)
4835   dynamic_linker=no
4836   ;;
4837 esac
4838 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4839 echo "${ECHO_T}$dynamic_linker" >&6
4840 test "$dynamic_linker" = no && can_build_shared=no
4841
4842
4843 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4844 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4845 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   libltdl_cv_shlibpath_var="$shlibpath_var"
4849 fi
4850 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4851 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4852 if test -n "$libltdl_cv_shlibpath_var"; then
4853
4854 cat >>confdefs.h <<_ACEOF
4855 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4856 _ACEOF
4857
4858 fi
4859
4860 fi
4861
4862                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4863
4864
4865 # See if the user has requested runtime debugging.
4866 LIBGCJDEBUG="disable"
4867
4868 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4869 if test "${enable_libgcj_debug+set}" = set; then
4870   enableval="$enable_libgcj_debug"
4871   if test "$enable_libgcj_debug" = yes; then
4872
4873 cat >>confdefs.h <<\_ACEOF
4874 #define DEBUG 1
4875 _ACEOF
4876
4877     LIBGCJDEBUG="enable"
4878   fi
4879 fi;
4880
4881 # Determine which AWT peer libraries to build
4882 # Check whether --enable-java-awt or --disable-java-awt was given.
4883 if test "${enable_java_awt+set}" = set; then
4884   enableval="$enable_java_awt"
4885
4886 fi;
4887
4888 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4889 use_xlib_awt=""
4890 use_gtk_awt=""
4891 use_qt_awt=""
4892 # The default toolkit to use is the first one specified.
4893 TOOLKIT=
4894
4895
4896 for peer in $peerlibs ; do
4897   case $peer in
4898     xlib)
4899       if test "$no_x" = yes; then
4900         echo "*** xlib peers requested but no X library available" 1>&2
4901         exit 1
4902       else
4903         use_xlib_awt="yes"
4904         if test -z "$TOOLKIT"; then
4905            TOOLKIT=gnu.awt.xlib.XToolkit
4906         fi
4907       fi
4908       ;;
4909     gtk)
4910       if test "$no_x" = yes; then
4911          echo "*** gtk peers requested but no X library available" 1>&2
4912          exit 1
4913       else
4914          use_gtk_awt=yes
4915          if test -z "$TOOLKIT"; then
4916             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4917          fi
4918       fi
4919       ;;
4920     qt)
4921       if test "$no_x" = yes; then
4922          # Perhaps we should admit the possibility of embedded Qt.
4923          echo "*** Qt peers requested but no X library available" 1>&2
4924          exit 1
4925       else
4926          use_qt_awt=yes
4927          if test -z "$TOOLKIT"; then
4928             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4929          fi
4930       fi
4931       ;;
4932     no)
4933       use_xlib_awt=
4934       use_gtk_awt=
4935       use_qt_awt=
4936       break
4937       ;;
4938     *)
4939       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4940       exit 1
4941   esac
4942 done
4943
4944
4945
4946 if test "$use_xlib_awt" = yes; then
4947   XLIB_AWT_TRUE=
4948   XLIB_AWT_FALSE='#'
4949 else
4950   XLIB_AWT_TRUE='#'
4951   XLIB_AWT_FALSE=
4952 fi
4953
4954
4955 # Create standard.omit based on decisions we just made.
4956 cp $srcdir/standard.omit.in standard.omit
4957 if test "$use_xlib_awt" != yes; then
4958    echo gnu/awt/xlib >> standard.omit
4959    echo gnu/gcj/xlib >> standard.omit
4960 fi
4961
4962 if test -z "${with_multisubdir}"; then
4963    builddotdot=.
4964 else
4965    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4966 fi
4967
4968 NATIVE=yes
4969
4970 # Which gcj do we use?
4971 which_gcj=default
4972 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4973 if test -n "${with_cross_host}"; then
4974   # We are being configured with a cross compiler. We can't
4975   # use ac_exeext, because that is for the target platform.
4976   NATIVE=no
4977   cross_host_exeext=
4978   case "${with_cross_host}" in
4979      *mingw* | *cygwin*)
4980          cross_host_exeext=.exe
4981      ;;
4982   esac
4983   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4984      if test x"$build_noncanonical" = x"$with_cross_host"; then
4985         # Ordinary cross (host!=target and host=build)
4986         which_gcj=built
4987      else
4988         # Canadian cross (host!=target and host!=build)
4989         which_gcj=cross
4990      fi
4991   else
4992      which_gcj=cross
4993   fi
4994 else
4995   # We are being configured with a native or crossed-native compiler
4996   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4997      if test x"$build" = x"$host"; then
4998         # True native build (host=target and host=build)
4999         which_gcj=built
5000      else
5001         # Crossed-native build (host=target and host!=build)
5002         which_gcj=cross
5003      fi
5004   else
5005      which_gcj=path
5006   fi
5007 fi
5008 case "${which_gcj}" in
5009    built)
5010       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5011       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5012    ;;
5013    cross)
5014       if test "x${with_newlib}" = "xyes"; then
5015          # FIXME (comment): Why is this needed?
5016          GCC_UNWIND_INCLUDE=
5017          GCJ="${target_noncanonical}-gcj"
5018       else
5019          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5020       fi
5021       GCJH='$(target_noncanonical)-gcjh'
5022    ;;
5023    path)
5024       GCJ="gcj -B`${PWDCMD-pwd}`/"
5025       GCJH=gcjh
5026    ;;
5027 esac
5028
5029
5030
5031 # Create it, so that compile/link tests don't fail
5032 test -f libgcj.spec || touch libgcj.spec
5033
5034
5035
5036 # Set up to configure Classpath.
5037 # FIXME: no supported way to pass args in autoconf.
5038 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5039 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5040 ac_configure_args="$ac_configure_args --disable-load-library"
5041 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5042 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5043 dir1=`cd $srcdir && pwd`
5044 dir2=`pwd`
5045 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5046 ac_configure_args="$ac_configure_args --disable-core-jni"
5047 ac_configure_args="$ac_configure_args --disable-examples"
5048 ac_configure_args="$ac_configure_args --with-glibj=build"
5049 if test "$plugin_enabled" != yes; then
5050   ac_configure_args="$ac_configure_args --disable-plugin"
5051 fi
5052 if test "$gconf_enabled" != yes; then
5053   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5054   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5055 fi
5056 if test "$use_gtk_awt" != yes; then
5057   ac_configure_args="$ac_configure_args --disable-gtk-peer"
5058 fi
5059 if test "$use_qt_awt" != yes; then
5060   ac_configure_args="$ac_configure_args --disable-qt-peer"
5061 else
5062   # We need this as qt is disabled by default in classpath.
5063   ac_configure_args="$ac_configure_args --enable-qt-peer"
5064 fi
5065
5066 # Only use libltdl for non-newlib builds.
5067 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5068      case $enable_ltdl_convenience in
5069   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5070 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5071    { (exit 1); exit 1; }; } ;;
5072   "") enable_ltdl_convenience=yes
5073       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5074   esac
5075   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5076   INCLTDL='-I${top_srcdir}/''libltdl'
5077
5078
5079    DIRLTDL=libltdl
5080
5081 cat >>confdefs.h <<\_ACEOF
5082 #define USE_LTDL 1
5083 _ACEOF
5084
5085    # Sigh.  Libtool's macro doesn't do the right thing.
5086    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5087    # FIXME: this is a hack.
5088    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5089    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5090 fi
5091
5092
5093
5094 # Check whether --enable-shared or --disable-shared was given.
5095 if test "${enable_shared+set}" = set; then
5096   enableval="$enable_shared"
5097   p=${PACKAGE-default}
5098 case $enableval in
5099 yes) enable_shared=yes ;;
5100 no) enable_shared=no ;;
5101 *)
5102   enable_shared=no
5103   # Look at the argument we got.  We use all the common list separators.
5104   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5105   for pkg in $enableval; do
5106     if test "X$pkg" = "X$p"; then
5107       enable_shared=yes
5108     fi
5109   done
5110   IFS="$ac_save_ifs"
5111   ;;
5112 esac
5113 else
5114   enable_shared=yes
5115 fi;
5116 # Check whether --enable-static or --disable-static was given.
5117 if test "${enable_static+set}" = set; then
5118   enableval="$enable_static"
5119   p=${PACKAGE-default}
5120 case $enableval in
5121 yes) enable_static=yes ;;
5122 no) enable_static=no ;;
5123 *)
5124   enable_static=no
5125   # Look at the argument we got.  We use all the common list separators.
5126   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5127   for pkg in $enableval; do
5128     if test "X$pkg" = "X$p"; then
5129       enable_static=yes
5130     fi
5131   done
5132   IFS="$ac_save_ifs"
5133   ;;
5134 esac
5135 else
5136   enable_static=yes
5137 fi;
5138 # Check whether --enable-fast-install or --disable-fast-install was given.
5139 if test "${enable_fast_install+set}" = set; then
5140   enableval="$enable_fast_install"
5141   p=${PACKAGE-default}
5142 case $enableval in
5143 yes) enable_fast_install=yes ;;
5144 no) enable_fast_install=no ;;
5145 *)
5146   enable_fast_install=no
5147   # Look at the argument we got.  We use all the common list separators.
5148   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5149   for pkg in $enableval; do
5150     if test "X$pkg" = "X$p"; then
5151       enable_fast_install=yes
5152     fi
5153   done
5154   IFS="$ac_save_ifs"
5155   ;;
5156 esac
5157 else
5158   enable_fast_install=yes
5159 fi;
5160
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163   withval="$with_gnu_ld"
5164   test "$withval" = no || with_gnu_ld=yes
5165 else
5166   with_gnu_ld=no
5167 fi;
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170   # Check if gcc -print-prog-name=ld gives a path.
5171   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5172 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5173   case $host in
5174   *-*-mingw*)
5175     # gcc leaves a trailing carriage return which upsets mingw
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177   *)
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179   esac
5180   case $ac_prog in
5181     # Accept absolute paths.
5182     [\\/]* | [A-Za-z]:[\\/]*)
5183       re_direlt='/[^/][^/]*/\.\./'
5184       # Canonicalize the path of ld
5185       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5186       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5187         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5188       done
5189       test -z "$LD" && LD="$ac_prog"
5190       ;;
5191   "")
5192     # If it fails, then pretend we aren't using GCC.
5193     ac_prog=ld
5194     ;;
5195   *)
5196     # If it is relative, then search for the first ld in PATH.
5197     with_gnu_ld=unknown
5198     ;;
5199   esac
5200 elif test "$with_gnu_ld" = yes; then
5201   echo "$as_me:$LINENO: checking for GNU ld" >&5
5202 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5203 else
5204   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5205 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5206 fi
5207 if test "${lt_cv_path_LD+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   if test -z "$LD"; then
5211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5212   for ac_dir in $PATH; do
5213     test -z "$ac_dir" && ac_dir=.
5214     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215       lt_cv_path_LD="$ac_dir/$ac_prog"
5216       # Check to see if the program is GNU ld.  I'd rather use --version,
5217       # but apparently some GNU ld's only accept -v.
5218       # Break only if it was the GNU/non-GNU ld that we prefer.
5219       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5220         test "$with_gnu_ld" != no && break
5221       else
5222         test "$with_gnu_ld" != yes && break
5223       fi
5224     fi
5225   done
5226   IFS="$ac_save_ifs"
5227 else
5228   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5229 fi
5230 fi
5231
5232 LD="$lt_cv_path_LD"
5233 if test -n "$LD"; then
5234   echo "$as_me:$LINENO: result: $LD" >&5
5235 echo "${ECHO_T}$LD" >&6
5236 else
5237   echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5239 fi
5240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5242    { (exit 1); exit 1; }; }
5243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5250   lt_cv_prog_gnu_ld=yes
5251 else
5252   lt_cv_prog_gnu_ld=no
5253 fi
5254 fi
5255 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5256 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5257 with_gnu_ld=$lt_cv_prog_gnu_ld
5258
5259
5260 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5261 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5262 if test "${lt_cv_ld_reload_flag+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   lt_cv_ld_reload_flag='-r'
5266 fi
5267 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5268 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5269 reload_flag=$lt_cv_ld_reload_flag
5270 test -n "$reload_flag" && reload_flag=" $reload_flag"
5271
5272 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5273 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5274 if test "${lt_cv_path_NM+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$NM"; then
5278   # Let the user override the test.
5279   lt_cv_path_NM="$NM"
5280 else
5281   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5282   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5283     test -z "$ac_dir" && ac_dir=.
5284     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5285     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5286       # Check to see if the nm accepts a BSD-compat flag.
5287       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5288       #   nm: unknown option "B" ignored
5289       # Tru64's nm complains that /dev/null is an invalid object file
5290       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5291         lt_cv_path_NM="$tmp_nm -B"
5292         break
5293       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5294         lt_cv_path_NM="$tmp_nm -p"
5295         break
5296       else
5297         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5298         continue # so that we can try to find one that supports BSD flags
5299       fi
5300     fi
5301   done
5302   IFS="$ac_save_ifs"
5303   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5304 fi
5305 fi
5306
5307 NM="$lt_cv_path_NM"
5308 echo "$as_me:$LINENO: result: $NM" >&5
5309 echo "${ECHO_T}$NM" >&6
5310
5311 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5312 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5313 if test "${lt_cv_deplibs_check_method+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   lt_cv_file_magic_cmd='$MAGIC_CMD'
5317 lt_cv_file_magic_test_file=
5318 lt_cv_deplibs_check_method='unknown'
5319 # Need to set the preceding variable on all platforms that support
5320 # interlibrary dependencies.
5321 # 'none' -- dependencies not supported.
5322 # `unknown' -- same as none, but documents that we really don't know.
5323 # 'pass_all' -- all dependencies passed with no checks.
5324 # 'test_compile' -- check by making test program.
5325 # 'file_magic [regex]' -- check by looking for files in library path
5326 # which responds to the $file_magic_cmd with a given egrep regex.
5327 # If you have `file' or equivalent on your system and you're not sure
5328 # whether `pass_all' will *always* work, you probably want this one.
5329
5330 case $host_os in
5331 aix*)
5332   lt_cv_deplibs_check_method=pass_all
5333   ;;
5334
5335 beos*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 bsdi4*)
5340   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5341   lt_cv_file_magic_cmd='/usr/bin/file -L'
5342   lt_cv_file_magic_test_file=/shlib/libc.so
5343   ;;
5344
5345 cygwin* | mingw* |pw32*)
5346   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5347   lt_cv_file_magic_cmd='$OBJDUMP -f'
5348   ;;
5349
5350 darwin* | rhapsody*)
5351   # this will be overwritten by pass_all, but leave it in just in case
5352   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5353   lt_cv_file_magic_cmd='/usr/bin/file -L'
5354   case "$host_os" in
5355   rhapsody* | darwin1.012)
5356     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5357     ;;
5358   *) # Darwin 1.3 on
5359     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5360     ;;
5361   esac
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 freebsd* | kfreebsd*-gnu)
5366   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5367     case $host_cpu in
5368     i*86 )
5369       # Not sure whether the presence of OpenBSD here was a mistake.
5370       # Let's accept both of them until this is cleared up.
5371       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5372       lt_cv_file_magic_cmd=/usr/bin/file
5373       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5374       ;;
5375     esac
5376   else
5377     lt_cv_deplibs_check_method=pass_all
5378   fi
5379   ;;
5380
5381 gnu*)
5382   lt_cv_deplibs_check_method=pass_all
5383   ;;
5384
5385 hpux10.20*|hpux11*)
5386   case $host_cpu in
5387   hppa*)
5388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5389     lt_cv_file_magic_cmd=/usr/bin/file
5390     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5391     ;;
5392   ia64*)
5393     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394     lt_cv_file_magic_cmd=/usr/bin/file
5395     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5396     ;;
5397   esac
5398   ;;
5399
5400 irix5* | irix6*)
5401   case $host_os in
5402   irix5*)
5403     # this will be overridden with pass_all, but let us keep it just in case
5404     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5405     ;;
5406   *)
5407     case $LD in
5408     *-32|*"-32 ") libmagic=32-bit;;
5409     *-n32|*"-n32 ") libmagic=N32;;
5410     *-64|*"-64 ") libmagic=64-bit;;
5411     *) libmagic=never-match;;
5412     esac
5413     # this will be overridden with pass_all, but let us keep it just in case
5414     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5415     ;;
5416   esac
5417   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 # This must be Linux ELF.
5422 linux-gnu*)
5423   lt_cv_deplibs_check_method=pass_all
5424   ;;
5425
5426 netbsd* | knetbsd*-gnu)
5427   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5428     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5429   else
5430     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5431   fi
5432   ;;
5433
5434 newsos6)
5435   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436   lt_cv_file_magic_cmd=/usr/bin/file
5437   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5438   ;;
5439
5440 osf3* | osf4* | osf5*)
5441   # this will be overridden with pass_all, but let us keep it just in case
5442   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5443   lt_cv_file_magic_test_file=/shlib/libc.so
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 sco3.2v5*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 solaris*)
5452   lt_cv_deplibs_check_method=pass_all
5453   lt_cv_file_magic_test_file=/lib/libc.so
5454   ;;
5455
5456 sysv5uw[78]* | sysv4*uw2*)
5457   lt_cv_deplibs_check_method=pass_all
5458   ;;
5459
5460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5461   case $host_vendor in
5462   ncr)
5463     lt_cv_deplibs_check_method=pass_all
5464     ;;
5465   motorola)
5466     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]'
5467     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5468     ;;
5469   esac
5470   ;;
5471 esac
5472
5473 fi
5474 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5475 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5476 file_magic_cmd=$lt_cv_file_magic_cmd
5477 deplibs_check_method=$lt_cv_deplibs_check_method
5478
5479
5480
5481
5482 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5483
5484 # find the maximum length of command line arguments
5485 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490     i=0
5491   teststring="ABCD"
5492
5493   case $build_os in
5494   msdosdjgpp*)
5495     # On DJGPP, this test can blow up pretty badly due to problems in libc
5496     # (any single argument exceeding 2000 bytes causes a buffer overrun
5497     # during glob expansion).  Even if it were fixed, the result of this
5498     # check would be larger than it should be.
5499     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5500     ;;
5501
5502   cygwin* | mingw*)
5503     # On Win9x/ME, this test blows up -- it succeeds, but takes
5504     # about 5 minutes as the teststring grows exponentially.
5505     # Worse, since 9x/ME are not pre-emptively multitasking,
5506     # you end up with a "frozen" computer, even though with patience
5507     # the test eventually succeeds (with a max line length of 256k).
5508     # Instead, let's just punt: use the minimum linelength reported by
5509     # all of the supported platforms: 8192 (on NT/2K/XP).
5510     lt_cv_sys_max_cmd_len=8192;
5511     ;;
5512
5513   amigaos*)
5514     # On AmigaOS with pdksh, this test takes hours, literally.
5515     # So we just punt and use a minimum line length of 8192.
5516     lt_cv_sys_max_cmd_len=8192;
5517     ;;
5518
5519   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5520     # This has been around since 386BSD, at least.  Likely further.
5521     if test -x /sbin/sysctl; then
5522       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5523     elif test -x /usr/sbin/sysctl; then
5524       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5525     else
5526       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5527     fi
5528     # And add a safety zone
5529     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5531     ;;
5532   esac
5533
5534 fi
5535
5536 if test -n "$lt_cv_sys_max_cmd_len" ; then
5537   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5538 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5539 else
5540   echo "$as_me:$LINENO: result: none" >&5
5541 echo "${ECHO_T}none" >&6
5542 fi
5543
5544
5545 # Only perform the check for file, if the check method requires it
5546 case $deplibs_check_method in
5547 file_magic*)
5548   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5549     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5550 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   case $MAGIC_CMD in
5555   /*)
5556   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5557   ;;
5558   ?:/*)
5559   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5560   ;;
5561   *)
5562   ac_save_MAGIC_CMD="$MAGIC_CMD"
5563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5564   ac_dummy="/usr/bin:$PATH"
5565   for ac_dir in $ac_dummy; do
5566     test -z "$ac_dir" && ac_dir=.
5567     if test -f $ac_dir/${ac_tool_prefix}file; then
5568       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5569       if test -n "$file_magic_test_file"; then
5570         case $deplibs_check_method in
5571         "file_magic "*)
5572           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5573           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5574           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5575             egrep "$file_magic_regex" > /dev/null; then
5576             :
5577           else
5578             cat <<EOF 1>&2
5579
5580 *** Warning: the command libtool uses to detect shared libraries,
5581 *** $file_magic_cmd, produces output that libtool cannot recognize.
5582 *** The result is that libtool may fail to recognize shared libraries
5583 *** as such.  This will affect the creation of libtool libraries that
5584 *** depend on shared libraries, but programs linked with such libtool
5585 *** libraries will work regardless of this problem.  Nevertheless, you
5586 *** may want to report the problem to your system manager and/or to
5587 *** bug-libtool@gnu.org
5588
5589 EOF
5590           fi ;;
5591         esac
5592       fi
5593       break
5594     fi
5595   done
5596   IFS="$ac_save_ifs"
5597   MAGIC_CMD="$ac_save_MAGIC_CMD"
5598   ;;
5599 esac
5600 fi
5601
5602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5603 if test -n "$MAGIC_CMD"; then
5604   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5605 echo "${ECHO_T}$MAGIC_CMD" >&6
5606 else
5607   echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5609 fi
5610
5611 if test -z "$lt_cv_path_MAGIC_CMD"; then
5612   if test -n "$ac_tool_prefix"; then
5613     echo "$as_me:$LINENO: checking for file" >&5
5614 echo $ECHO_N "checking for file... $ECHO_C" >&6
5615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   case $MAGIC_CMD in
5619   /*)
5620   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5621   ;;
5622   ?:/*)
5623   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5624   ;;
5625   *)
5626   ac_save_MAGIC_CMD="$MAGIC_CMD"
5627   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5628   ac_dummy="/usr/bin:$PATH"
5629   for ac_dir in $ac_dummy; do
5630     test -z "$ac_dir" && ac_dir=.
5631     if test -f $ac_dir/file; then
5632       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5633       if test -n "$file_magic_test_file"; then
5634         case $deplibs_check_method in
5635         "file_magic "*)
5636           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5637           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5638           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5639             egrep "$file_magic_regex" > /dev/null; then
5640             :
5641           else
5642             cat <<EOF 1>&2
5643
5644 *** Warning: the command libtool uses to detect shared libraries,
5645 *** $file_magic_cmd, produces output that libtool cannot recognize.
5646 *** The result is that libtool may fail to recognize shared libraries
5647 *** as such.  This will affect the creation of libtool libraries that
5648 *** depend on shared libraries, but programs linked with such libtool
5649 *** libraries will work regardless of this problem.  Nevertheless, you
5650 *** may want to report the problem to your system manager and/or to
5651 *** bug-libtool@gnu.org
5652
5653 EOF
5654           fi ;;
5655         esac
5656       fi
5657       break
5658     fi
5659   done
5660   IFS="$ac_save_ifs"
5661   MAGIC_CMD="$ac_save_MAGIC_CMD"
5662   ;;
5663 esac
5664 fi
5665
5666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5667 if test -n "$MAGIC_CMD"; then
5668   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5669 echo "${ECHO_T}$MAGIC_CMD" >&6
5670 else
5671   echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6
5673 fi
5674
5675   else
5676     MAGIC_CMD=:
5677   fi
5678 fi
5679
5680   fi
5681   ;;
5682 esac
5683
5684 if test -n "$ac_tool_prefix"; then
5685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_RANLIB+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$RANLIB"; then
5693   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_exec_ext in '' $ac_executable_extensions; do
5701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707 done
5708
5709 fi
5710 fi
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713   echo "$as_me:$LINENO: result: $RANLIB" >&5
5714 echo "${ECHO_T}$RANLIB" >&6
5715 else
5716   echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720 fi
5721 if test -z "$ac_cv_prog_RANLIB"; then
5722   ac_ct_RANLIB=$RANLIB
5723   # Extract the first word of "ranlib", so it can be a program name with args.
5724 set dummy ranlib; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   if test -n "$ac_ct_RANLIB"; then
5731   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738   for ac_exec_ext in '' $ac_executable_extensions; do
5739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_ac_ct_RANLIB="ranlib"
5741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745 done
5746
5747   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5748 fi
5749 fi
5750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5751 if test -n "$ac_ct_RANLIB"; then
5752   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5753 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759   RANLIB=$ac_ct_RANLIB
5760 else
5761   RANLIB="$ac_cv_prog_RANLIB"
5762 fi
5763
5764 if test -n "$ac_tool_prefix"; then
5765   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_STRIP+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$STRIP"; then
5773   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789 fi
5790 fi
5791 STRIP=$ac_cv_prog_STRIP
5792 if test -n "$STRIP"; then
5793   echo "$as_me:$LINENO: result: $STRIP" >&5
5794 echo "${ECHO_T}$STRIP" >&6
5795 else
5796   echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800 fi
5801 if test -z "$ac_cv_prog_STRIP"; then
5802   ac_ct_STRIP=$STRIP
5803   # Extract the first word of "strip", so it can be a program name with args.
5804 set dummy strip; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   if test -n "$ac_ct_STRIP"; then
5811   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820     ac_cv_prog_ac_ct_STRIP="strip"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826
5827   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5828 fi
5829 fi
5830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831 if test -n "$ac_ct_STRIP"; then
5832   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5833 echo "${ECHO_T}$ac_ct_STRIP" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839   STRIP=$ac_ct_STRIP
5840 else
5841   STRIP="$ac_cv_prog_STRIP"
5842 fi
5843
5844
5845 # Check for any special flags to pass to ltconfig.
5846 libtool_flags="--cache-file=$cache_file"
5847 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5848 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5849 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5850 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5851 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5852
5853
5854 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5855 if test "${enable_libtool_lock+set}" = set; then
5856   enableval="$enable_libtool_lock"
5857
5858 fi;
5859 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5860 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5861
5862
5863 # Check whether --with-pic or --without-pic was given.
5864 if test "${with_pic+set}" = set; then
5865   withval="$with_pic"
5866   pic_mode="$withval"
5867 else
5868   pic_mode=default
5869 fi;
5870 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5871 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5872
5873 # Some flags need to be propagated to the compiler or linker for good
5874 # libtool support.
5875 case $host in
5876 *-*-irix6*)
5877   # Find out which ABI we are using.
5878   echo '#line 5878 "configure"' > conftest.$ac_ext
5879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880   (eval $ac_compile) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; then
5884    if test "$lt_cv_prog_gnu_ld" = yes; then
5885     case `/usr/bin/file conftest.$ac_objext` in
5886     *32-bit*)
5887       LD="${LD-ld} -melf32bsmip"
5888       ;;
5889     *N32*)
5890       LD="${LD-ld} -melf32bmipn32"
5891       ;;
5892     *64-bit*)
5893       LD="${LD-ld} -melf64bmip"
5894       ;;
5895     esac
5896    else
5897     case `/usr/bin/file conftest.$ac_objext` in
5898     *32-bit*)
5899       LD="${LD-ld} -32"
5900       ;;
5901     *N32*)
5902       LD="${LD-ld} -n32"
5903       ;;
5904     *64-bit*)
5905       LD="${LD-ld} -64"
5906       ;;
5907     esac
5908    fi
5909   fi
5910   rm -rf conftest*
5911   ;;
5912
5913 ia64-*-hpux*)
5914   # Find out which ABI we are using.
5915   echo 'int i;' > conftest.$ac_ext
5916   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917   (eval $ac_compile) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; then
5921     case "`/usr/bin/file conftest.o`" in
5922     *ELF-32*)
5923       HPUX_IA64_MODE="32"
5924       ;;
5925     *ELF-64*)
5926       HPUX_IA64_MODE="64"
5927       ;;
5928     esac
5929   fi
5930   rm -rf conftest*
5931   ;;
5932
5933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5934   # Find out which ABI we are using.
5935   echo 'int i;' > conftest.$ac_ext
5936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; then
5941     case "`/usr/bin/file conftest.o`" in
5942     *32-bit*)
5943       case $host in
5944         x86_64-*linux*)
5945           LD="${LD-ld} -m elf_i386"
5946           ;;
5947         ppc64-*linux*|powerpc64-*linux*)
5948           LD="${LD-ld} -m elf32ppclinux"
5949           ;;
5950         s390x-*linux*)
5951           LD="${LD-ld} -m elf_s390"
5952           ;;
5953         sparc64-*linux*)
5954           LD="${LD-ld} -m elf32_sparc"
5955           ;;
5956       esac
5957       ;;
5958     *64-bit*)
5959       case $host in
5960         x86_64-*linux*)
5961           LD="${LD-ld} -m elf_x86_64"
5962           ;;
5963         ppc*-*linux*|powerpc*-*linux*)
5964           LD="${LD-ld} -m elf64ppc"
5965           ;;
5966         s390*-*linux*)
5967           LD="${LD-ld} -m elf64_s390"
5968           ;;
5969         sparc*-*linux*)
5970           LD="${LD-ld} -m elf64_sparc"
5971           ;;
5972       esac
5973       ;;
5974     esac
5975   fi
5976   rm -rf conftest*
5977   ;;
5978
5979 *-*-sco3.2v5*)
5980   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5981   SAVE_CFLAGS="$CFLAGS"
5982   CFLAGS="$CFLAGS -belf"
5983   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5985 if test "${lt_cv_cc_needs_belf+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988
5989
5990      ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996      if test x$gcc_no_link = xyes; then
5997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5999    { (exit 1); exit 1; }; }
6000 fi
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007
6008 int
6009 main ()
6010 {
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -z "$ac_c_werror_flag"
6026                          || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest$ac_exeext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   lt_cv_cc_needs_belf=yes
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 lt_cv_cc_needs_belf=no
6044 fi
6045 rm -f conftest.err conftest.$ac_objext \
6046       conftest$ac_exeext conftest.$ac_ext
6047      ac_ext=c
6048 ac_cpp='$CPP $CPPFLAGS'
6049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6052
6053 fi
6054 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6055 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6056   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6057     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6058     CFLAGS="$SAVE_CFLAGS"
6059   fi
6060   ;;
6061
6062
6063 esac
6064
6065
6066 # Save cache, so that ltconfig can load it
6067 cat >confcache <<\_ACEOF
6068 # This file is a shell script that caches the results of configure
6069 # tests run on this system so they can be shared between configure
6070 # scripts and configure runs, see configure's option --config-cache.
6071 # It is not useful on other systems.  If it contains results you don't
6072 # want to keep, you may remove or edit it.
6073 #
6074 # config.status only pays attention to the cache file if you give it
6075 # the --recheck option to rerun configure.
6076 #
6077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6079 # following values.
6080
6081 _ACEOF
6082
6083 # The following way of writing the cache mishandles newlines in values,
6084 # but we know of no workaround that is simple, portable, and efficient.
6085 # So, don't put newlines in cache variables' values.
6086 # Ultrix sh set writes to stderr and can't be redirected directly,
6087 # and sets the high bit in the cache file unless we assign to the vars.
6088 {
6089   (set) 2>&1 |
6090     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6091     *ac_space=\ *)
6092       # `set' does not quote correctly, so add quotes (double-quote
6093       # substitution turns \\\\ into \\, and sed turns \\ into \).
6094       sed -n \
6095         "s/'/'\\\\''/g;
6096           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6097       ;;
6098     *)
6099       # `set' quotes correctly as required by POSIX, so do not add quotes.
6100       sed -n \
6101         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6102       ;;
6103     esac;
6104 } |
6105   sed '
6106      t clear
6107      : clear
6108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6109      t end
6110      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6111      : end' >>confcache
6112 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6113   if test -w $cache_file; then
6114     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6115     cat confcache >$cache_file
6116   else
6117     echo "not updating unwritable cache $cache_file"
6118   fi
6119 fi
6120 rm -f confcache
6121
6122 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6123 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6124 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6125 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6126 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6127 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6128 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6129 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6130 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6131 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6132 echo "$as_me: error: libtool configure failed" >&2;}
6133    { (exit 1); exit 1; }; }
6134
6135 # Reload cache, that may have been modified by ltconfig
6136 if test -r "$cache_file"; then
6137   # Some versions of bash will fail to source /dev/null (special
6138   # files actually), so we avoid doing that.
6139   if test -f "$cache_file"; then
6140     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6141 echo "$as_me: loading cache $cache_file" >&6;}
6142     case $cache_file in
6143       [\\/]* | ?:[\\/]* ) . $cache_file;;
6144       *)                      . ./$cache_file;;
6145     esac
6146   fi
6147 else
6148   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6149 echo "$as_me: creating cache $cache_file" >&6;}
6150   >$cache_file
6151 fi
6152
6153
6154 # This can be used to rebuild libtool when needed
6155 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6156
6157 # Always use our own libtool.
6158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6159
6160 # Redirect the config.log output again, so that the ltconfig log is not
6161 # clobbered by the next message.
6162 exec 5>>./config.log
6163
6164 ac_ext=cc
6165 ac_cpp='$CXXCPP $CPPFLAGS'
6166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6171 if test -z "$CXXCPP"; then
6172   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175       # Double quotes because CXXCPP needs to be expanded
6176     for CXXCPP in "$CXX -E" "/lib/cpp"
6177     do
6178       ac_preproc_ok=false
6179 for ac_cxx_preproc_warn_flag in '' yes
6180 do
6181   # Use a header file that comes with gcc, so configuring glibc
6182   # with a fresh cross-compiler works.
6183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184   # <limits.h> exists even on freestanding compilers.
6185   # On the NeXT, cc -E runs the code through the compiler's parser,
6186   # not just through cpp. "Syntax error" is here to catch this case.
6187   cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198                      Syntax error
6199 _ACEOF
6200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202   ac_status=$?
6203   grep -v '^ *+' conftest.er1 >conftest.err
6204   rm -f conftest.er1
6205   cat conftest.err >&5
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); } >/dev/null; then
6208   if test -s conftest.err; then
6209     ac_cpp_err=$ac_cxx_preproc_warn_flag
6210     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6211   else
6212     ac_cpp_err=
6213   fi
6214 else
6215   ac_cpp_err=yes
6216 fi
6217 if test -z "$ac_cpp_err"; then
6218   :
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223   # Broken: fails on valid input.
6224 continue
6225 fi
6226 rm -f conftest.err conftest.$ac_ext
6227
6228   # OK, works on sane cases.  Now check whether non-existent headers
6229   # can be detected and how.
6230   cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h.  */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h.  */
6236 #include <ac_nonexistent.h>
6237 _ACEOF
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240   ac_status=$?
6241   grep -v '^ *+' conftest.er1 >conftest.err
6242   rm -f conftest.er1
6243   cat conftest.err >&5
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } >/dev/null; then
6246   if test -s conftest.err; then
6247     ac_cpp_err=$ac_cxx_preproc_warn_flag
6248     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6249   else
6250     ac_cpp_err=
6251   fi
6252 else
6253   ac_cpp_err=yes
6254 fi
6255 if test -z "$ac_cpp_err"; then
6256   # Broken: success on invalid input.
6257 continue
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262   # Passes both tests.
6263 ac_preproc_ok=:
6264 break
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267
6268 done
6269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270 rm -f conftest.err conftest.$ac_ext
6271 if $ac_preproc_ok; then
6272   break
6273 fi
6274
6275     done
6276     ac_cv_prog_CXXCPP=$CXXCPP
6277
6278 fi
6279   CXXCPP=$ac_cv_prog_CXXCPP
6280 else
6281   ac_cv_prog_CXXCPP=$CXXCPP
6282 fi
6283 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6284 echo "${ECHO_T}$CXXCPP" >&6
6285 ac_preproc_ok=false
6286 for ac_cxx_preproc_warn_flag in '' yes
6287 do
6288   # Use a header file that comes with gcc, so configuring glibc
6289   # with a fresh cross-compiler works.
6290   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6291   # <limits.h> exists even on freestanding compilers.
6292   # On the NeXT, cc -E runs the code through the compiler's parser,
6293   # not just through cpp. "Syntax error" is here to catch this case.
6294   cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #ifdef __STDC__
6301 # include <limits.h>
6302 #else
6303 # include <assert.h>
6304 #endif
6305                      Syntax error
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } >/dev/null; then
6315   if test -s conftest.err; then
6316     ac_cpp_err=$ac_cxx_preproc_warn_flag
6317     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6318   else
6319     ac_cpp_err=
6320   fi
6321 else
6322   ac_cpp_err=yes
6323 fi
6324 if test -z "$ac_cpp_err"; then
6325   :
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330   # Broken: fails on valid input.
6331 continue
6332 fi
6333 rm -f conftest.err conftest.$ac_ext
6334
6335   # OK, works on sane cases.  Now check whether non-existent headers
6336   # can be detected and how.
6337   cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <ac_nonexistent.h>
6344 _ACEOF
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } >/dev/null; then
6353   if test -s conftest.err; then
6354     ac_cpp_err=$ac_cxx_preproc_warn_flag
6355     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6356   else
6357     ac_cpp_err=
6358   fi
6359 else
6360   ac_cpp_err=yes
6361 fi
6362 if test -z "$ac_cpp_err"; then
6363   # Broken: success on invalid input.
6364 continue
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369   # Passes both tests.
6370 ac_preproc_ok=:
6371 break
6372 fi
6373 rm -f conftest.err conftest.$ac_ext
6374
6375 done
6376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6377 rm -f conftest.err conftest.$ac_ext
6378 if $ac_preproc_ok; then
6379   :
6380 else
6381   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6382 See \`config.log' for more details." >&5
6383 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6384 See \`config.log' for more details." >&2;}
6385    { (exit 1); exit 1; }; }
6386 fi
6387
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394
6395
6396 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6397 lt_save_CC="$CC"
6398 lt_save_CFLAGS="$CFLAGS"
6399 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6400 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6401 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6402 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6403 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6404 deplibs_check_method="$deplibs_check_method" \
6405 file_magic_cmd="$file_magic_cmd" \
6406 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6407 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6408 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6409 echo "$as_me: error: libtool tag configuration failed" >&2;}
6410    { (exit 1); exit 1; }; }
6411 CC="$lt_save_CC"
6412 CFLAGS="$lt_save_CFLAGS"
6413
6414 # Redirect the config.log output again, so that the ltconfig log is not
6415 # clobbered by the next message.
6416 exec 5>>./config.log
6417
6418
6419
6420
6421
6422
6423
6424 for ac_prog in gcj
6425 do
6426   # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6430 if test "${ac_cv_prog_GCJ+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   if test -n "$GCJ"; then
6434   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441   for ac_exec_ext in '' $ac_executable_extensions; do
6442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443     ac_cv_prog_GCJ="$ac_prog"
6444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448 done
6449
6450 fi
6451 fi
6452 GCJ=$ac_cv_prog_GCJ
6453 if test -n "$GCJ"; then
6454   echo "$as_me:$LINENO: result: $GCJ" >&5
6455 echo "${ECHO_T}$GCJ" >&6
6456 else
6457   echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6
6459 fi
6460
6461   test -n "$GCJ" && break
6462 done
6463 test -n "$GCJ" || GCJ="gcj"
6464
6465 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6466 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6467    { (exit 1); exit 1; }; }
6468 if test "x${GCJFLAGS-unset}" = xunset; then
6469    GCJFLAGS="-g -O2"
6470 fi
6471
6472
6473 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6474
6475 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6477 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6481   # We make a subdir and do the tests there.  Otherwise we can end up
6482   # making bogus files that we don't know about and never remove.  For
6483   # instance it was reported that on HP-UX the gcc test will end up
6484   # making a dummy file named `D' -- because `-MD' means `put the output
6485   # in D'.
6486   mkdir conftest.dir
6487   # Copy depcomp to subdir because otherwise we won't find it if we're
6488   # using a relative directory.
6489   cp "$am_depcomp" conftest.dir
6490   cd conftest.dir
6491   # We will build objects and dependencies in a subdirectory because
6492   # it helps to detect inapplicable dependency modes.  For instance
6493   # both Tru64's cc and ICC support -MD to output dependencies as a
6494   # side effect of compilation, but ICC will put the dependencies in
6495   # the current directory while Tru64 will put them in the object
6496   # directory.
6497   mkdir sub
6498
6499   am_cv_GCJ_dependencies_compiler_type=none
6500   if test "$am_compiler_list" = ""; then
6501      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6502   fi
6503   for depmode in $am_compiler_list; do
6504     # Setup a source with many dependencies, because some compilers
6505     # like to wrap large dependency lists on column 80 (with \), and
6506     # we should not choose a depcomp mode which is confused by this.
6507     #
6508     # We need to recreate these files for each test, as the compiler may
6509     # overwrite some of them when testing with obscure command lines.
6510     # This happens at least with the AIX C compiler.
6511     : > sub/conftest.c
6512     for i in 1 2 3 4 5 6; do
6513       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6514       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6515       # Solaris 8's {/usr,}/bin/sh.
6516       touch sub/conftst$i.h
6517     done
6518     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6519
6520     case $depmode in
6521     nosideeffect)
6522       # after this tag, mechanisms are not by side-effect, so they'll
6523       # only be used when explicitly requested
6524       if test "x$enable_dependency_tracking" = xyes; then
6525         continue
6526       else
6527         break
6528       fi
6529       ;;
6530     none) break ;;
6531     esac
6532     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6533     # mode.  It turns out that the SunPro C++ compiler does not properly
6534     # handle `-M -o', and we need to detect this.
6535     if depmode=$depmode \
6536        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6537        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6538        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6539          >/dev/null 2>conftest.err &&
6540        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6541        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6542        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6543       # icc doesn't choke on unknown options, it will just issue warnings
6544       # or remarks (even with -Werror).  So we grep stderr for any message
6545       # that says an option was ignored or not supported.
6546       # When given -MP, icc 7.0 and 7.1 complain thusly:
6547       #   icc: Command line warning: ignoring option '-M'; no argument required
6548       # The diagnosis changed in icc 8.0:
6549       #   icc: Command line remark: option '-MP' not supported
6550       if (grep 'ignoring option' conftest.err ||
6551           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6552         am_cv_GCJ_dependencies_compiler_type=$depmode
6553         break
6554       fi
6555     fi
6556   done
6557
6558   cd ..
6559   rm -rf conftest.dir
6560 else
6561   am_cv_GCJ_dependencies_compiler_type=none
6562 fi
6563
6564 fi
6565 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6566 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6567 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6568
6569
6570
6571 if
6572   test "x$enable_dependency_tracking" != xno \
6573   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6574   am__fastdepGCJ_TRUE=
6575   am__fastdepGCJ_FALSE='#'
6576 else
6577   am__fastdepGCJ_TRUE='#'
6578   am__fastdepGCJ_FALSE=
6579 fi
6580
6581
6582
6583
6584 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6585 lt_save_CC="$CC"
6586 lt_save_CFLAGS="$CFLAGS"
6587 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6588 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6590 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6591 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6592 deplibs_check_method="$deplibs_check_method" \
6593 file_magic_cmd="$file_magic_cmd" \
6594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6595 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6596 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6597 echo "$as_me: error: libtool tag configuration failed" >&2;}
6598    { (exit 1); exit 1; }; }
6599 CC="$lt_save_CC"
6600 CFLAGS="$lt_save_CFLAGS"
6601
6602 # Redirect the config.log output again, so that the ltconfig log is not
6603 # clobbered by the next message.
6604 exec 5>>./config.log
6605
6606
6607
6608 if test "x$CC" != xcc; then
6609   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6610 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6611 else
6612   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6613 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6614 fi
6615 set dummy $CC; ac_cc=`echo $2 |
6616                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6617 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626
6627 int
6628 main ()
6629 {
6630
6631   ;
6632   return 0;
6633 }
6634 _ACEOF
6635 # Make sure it works both with $CC and with simple cc.
6636 # We do the test twice because some compilers refuse to overwrite an
6637 # existing .o file with -o, though they will create one.
6638 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6639 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } &&
6644    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); };
6649 then
6650   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6651   if test "x$CC" != xcc; then
6652     # Test first that cc exists at all.
6653     if { ac_try='cc -c conftest.$ac_ext >&5'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6660       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661   (eval $ac_try) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } &&
6665          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666   (eval $ac_try) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); };
6670       then
6671         # cc works too.
6672         :
6673       else
6674         # cc exists but doesn't like -o.
6675         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6676       fi
6677     fi
6678   fi
6679 else
6680   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6681 fi
6682 rm -f conftest*
6683
6684 fi
6685 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6686   echo "$as_me:$LINENO: result: yes" >&5
6687 echo "${ECHO_T}yes" >&6
6688 else
6689   echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define NO_MINUS_C_MINUS_O 1
6694 _ACEOF
6695
6696 fi
6697
6698 # FIXME: we rely on the cache variable name because
6699 # there is no other way.
6700 set dummy $CC
6701 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6702 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6703    # Losing compiler, so override with the script.
6704    # FIXME: It is wrong to rewrite CC.
6705    # But if we don't then we get into trouble of one sort or another.
6706    # A longer-term fix would be to have automake use am__CC in this case,
6707    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6708    CC="$am_aux_dir/compile $CC"
6709 fi
6710
6711
6712
6713
6714 subdirs="$subdirs classpath libltdl"
6715
6716
6717 # The -no-testsuite modules omit the test subdir.
6718
6719
6720 if test -d $srcdir/testsuite; then
6721   TESTSUBDIR_TRUE=
6722   TESTSUBDIR_FALSE='#'
6723 else
6724   TESTSUBDIR_TRUE='#'
6725   TESTSUBDIR_FALSE=
6726 fi
6727
6728
6729 # Should the runtime set system properties by examining the
6730 # environment variable GCJ_PROPERTIES?
6731 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6732 if test "${enable_getenv_properties+set}" = set; then
6733   enableval="$enable_getenv_properties"
6734
6735 fi;
6736
6737 # Whether GCJ_PROPERTIES is used depends on the target.
6738 if test -z "$enable_getenv_properties"; then
6739    enable_getenv_properties=${enable_getenv_properties_default-yes}
6740 fi
6741 if test "$enable_getenv_properties" = no; then
6742
6743 cat >>confdefs.h <<\_ACEOF
6744 #define DISABLE_GETENV_PROPERTIES 1
6745 _ACEOF
6746
6747 fi
6748
6749 # Whether we should use arguments to main()
6750 if test -z "$enable_main_args"; then
6751    enable_main_args=${enable_main_args_default-yes}
6752 fi
6753 if test "$enable_main_args" = no; then
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define DISABLE_MAIN_ARGS 1
6757 _ACEOF
6758
6759 fi
6760
6761
6762 # Should we use hashtable-based synchronization?
6763 # Currently works only for Linux X86/ia64
6764 # Typically faster and more space-efficient
6765 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6766 if test "${enable_hash_synchronization+set}" = set; then
6767   enableval="$enable_hash_synchronization"
6768
6769 fi;
6770
6771 if test -z "$enable_hash_synchronization"; then
6772    enable_hash_synchronization=$enable_hash_synchronization_default
6773 fi
6774
6775
6776 # Check whether --with-java-home or --without-java-home was given.
6777 if test "${with_java_home+set}" = set; then
6778   withval="$with_java_home"
6779   JAVA_HOME="${withval}"
6780 else
6781   JAVA_HOME=""
6782 fi;
6783
6784
6785 if test ! -z "$JAVA_HOME"; then
6786   JAVA_HOME_SET_TRUE=
6787   JAVA_HOME_SET_FALSE='#'
6788 else
6789   JAVA_HOME_SET_TRUE='#'
6790   JAVA_HOME_SET_FALSE=
6791 fi
6792
6793
6794
6795 # What is the native OS API for MinGW?
6796
6797 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6798 if test "${with_win32_nlsapi+set}" = set; then
6799   withval="$with_win32_nlsapi"
6800   case "${withval}" in
6801   ansi) with_win32_nlsapi=ansi ;;
6802   unicows) with_win32_nlsapi=unicows ;;
6803   unicode) with_win32_nlsapi=unicode ;;
6804   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6805 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6806    { (exit 1); exit 1; }; } ;;
6807 esac
6808 else
6809   with_win32_nlsapi=ansi
6810 fi;
6811
6812 case "${with_win32_nlsapi}" in
6813   unicows | unicode)
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define MINGW_LIBGCJ_UNICODE 1
6817 _ACEOF
6818
6819     ;;
6820 esac
6821
6822 # configure.host sets slow_pthread_self if the synchronization code should
6823 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6824 if test "${slow_pthread_self}" = "yes"; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define SLOW_PTHREAD_SELF 1
6828 _ACEOF
6829
6830 fi
6831
6832 # Check for gc debugging.  This option is handled both here and in the GC.
6833 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6834 if test "${enable_gc_debug+set}" = set; then
6835   enableval="$enable_gc_debug"
6836    if test "$enable_gc_debug" = "yes"; then
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define LIBGCJ_GC_DEBUG 1
6840 _ACEOF
6841
6842   fi
6843 fi;
6844
6845 # See if the user has the interpreter included.
6846 # Check whether --enable-interpreter or --disable-interpreter was given.
6847 if test "${enable_interpreter+set}" = set; then
6848   enableval="$enable_interpreter"
6849   if test "$enable_interpreter" = yes; then
6850     # This can also be set in configure.host.
6851     libgcj_interpreter=yes
6852   elif test "$enable_interpreter" = no; then
6853     libgcj_interpreter=no
6854   fi
6855 fi;
6856
6857 if test "$libgcj_interpreter" = yes; then
6858
6859 cat >>confdefs.h <<\_ACEOF
6860 #define INTERPRETER 1
6861 _ACEOF
6862
6863 fi
6864 INTERPRETER="$libgcj_interpreter"
6865
6866
6867 echo "$as_me:$LINENO: checking for exception model to use" >&5
6868 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6869 ac_ext=cc
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874
6875 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6876 if test "${enable_sjlj_exceptions+set}" = set; then
6877   enableval="$enable_sjlj_exceptions"
6878   :
6879 else
6880   cat > conftest.$ac_ext << EOF
6881 #line 6881 "configure"
6882 struct S { ~S(); };
6883 void bar();
6884 void foo()
6885 {
6886   S s;
6887   bar();
6888 }
6889 EOF
6890 old_CXXFLAGS="$CXXFLAGS"
6891 CXXFLAGS=-S
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893   (eval $ac_compile) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; then
6897   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6898     enable_sjlj_exceptions=yes
6899   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6900     enable_sjlj_exceptions=no
6901   fi
6902 fi
6903 CXXFLAGS="$old_CXXFLAGS"
6904 rm -f conftest*
6905 fi;
6906 if test x$enable_sjlj_exceptions = xyes; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define SJLJ_EXCEPTIONS 1
6910 _ACEOF
6911
6912   ac_exception_model_name=sjlj
6913 elif test x$enable_sjlj_exceptions = xno; then
6914   ac_exception_model_name="call frame"
6915 else
6916   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6917 echo "$as_me: error: unable to detect exception model" >&2;}
6918    { (exit 1); exit 1; }; }
6919 fi
6920 ac_ext=c
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
6926 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6927 echo "${ECHO_T}$ac_exception_model_name" >&6
6928
6929 # If we are non using SJLJ exceptions, and this host does not have support
6930 # for unwinding from a signal handler, enable checked dereferences and divides.
6931 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6932   CHECKREFSPEC=-fcheck-references
6933   DIVIDESPEC=-fuse-divide-subroutine
6934   EXCEPTIONSPEC=
6935 fi
6936
6937 # See if the user wants to disable java.net.  This is the mildly
6938 # ugly way that we admit that target-side configuration sucks.
6939 # Check whether --enable-java-net or --disable-java-net was given.
6940 if test "${enable_java_net+set}" = set; then
6941   enableval="$enable_java_net"
6942
6943 fi;
6944
6945 # Whether java.net is built by default can depend on the target.
6946 if test -z "$enable_java_net"; then
6947    enable_java_net=${enable_java_net_default-yes}
6948 fi
6949 if test "$enable_java_net" = no; then
6950
6951 cat >>confdefs.h <<\_ACEOF
6952 #define DISABLE_JAVA_NET 1
6953 _ACEOF
6954
6955 fi
6956
6957 # See if the user wants to configure without libffi.  Some
6958 # architectures don't support it, and default values are set in
6959 # configure.host.
6960
6961 # Check whether --with-libffi or --without-libffi was given.
6962 if test "${with_libffi+set}" = set; then
6963   withval="$with_libffi"
6964   :
6965 else
6966   with_libffi=${with_libffi_default-yes}
6967 fi;
6968
6969 LIBFFI=
6970 LIBFFIINCS=
6971 if test "$with_libffi" != no; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define USE_LIBFFI 1
6975 _ACEOF
6976
6977    LIBFFI=../libffi/libffi_convenience.la
6978    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6979 fi
6980
6981
6982
6983 # See if the user wants to disable JVMPI support.
6984 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6985 if test "${enable_jvmpi+set}" = set; then
6986   enableval="$enable_jvmpi"
6987
6988 fi;
6989
6990 if test "$enable_jvmpi" != no; then
6991
6992 cat >>confdefs.h <<\_ACEOF
6993 #define ENABLE_JVMPI 1
6994 _ACEOF
6995
6996 fi
6997
6998 # If the target is an eCos system, use the appropriate eCos
6999 # I/O routines.
7000 # FIXME: this should not be a local option but a global target
7001 # system; at present there is no eCos target.
7002 TARGET_ECOS=${PROCESS-"no"}
7003
7004 # Check whether --with-ecos or --without-ecos was given.
7005 if test "${with_ecos+set}" = set; then
7006   withval="$with_ecos"
7007   TARGET_ECOS="$with_ecos"
7008
7009 fi;
7010
7011 PLATFORM_INNER_NAT_HDRS=
7012 case "$TARGET_ECOS" in
7013    no) case "$host" in
7014       *mingw*)
7015             PLATFORM=Win32
7016             PLATFORMNET=Win32
7017             PLATFORMH=win32.h
7018
7019 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7020 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7021 LD_PROG=`$CC --print-prog-name=ld`
7022 LD_VERSION=`$LD_PROG --version`
7023 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7024 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7025 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7026   LD_OK="ok"
7027 else
7028   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7029     LD_OK="ok"
7030   fi
7031 fi
7032 if test "x$LD_OK" != x; then
7033   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7034 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7035 else
7036   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7037 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7038   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7039 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7040
7041 cat >>confdefs.h <<\_ACEOF
7042 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7043 _ACEOF
7044
7045 fi
7046       ;;
7047       *)
7048             PLATFORM=Posix
7049             PLATFORMNET=Posix
7050             PLATFORMH=posix.h
7051             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7052       ;;
7053       esac
7054       ;;
7055    *)
7056       PLATFORM=Ecos
7057       PLATFORMNET=NoNet
7058
7059 cat >>confdefs.h <<\_ACEOF
7060 #define ECOS 1
7061 _ACEOF
7062
7063       PLATFORMH=posix.h
7064       ;;
7065 esac
7066
7067           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7068
7069
7070 ac_ext=c
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7077 # On Suns, sometimes $CPP names a directory.
7078 if test -n "$CPP" && test -d "$CPP"; then
7079   CPP=
7080 fi
7081 if test -z "$CPP"; then
7082   if test "${ac_cv_prog_CPP+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085       # Double quotes because CPP needs to be expanded
7086     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7087     do
7088       ac_preproc_ok=false
7089 for ac_c_preproc_warn_flag in '' yes
7090 do
7091   # Use a header file that comes with gcc, so configuring glibc
7092   # with a fresh cross-compiler works.
7093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094   # <limits.h> exists even on freestanding compilers.
7095   # On the NeXT, cc -E runs the code through the compiler's parser,
7096   # not just through cpp. "Syntax error" is here to catch this case.
7097   cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 #ifdef __STDC__
7104 # include <limits.h>
7105 #else
7106 # include <assert.h>
7107 #endif
7108                      Syntax error
7109 _ACEOF
7110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } >/dev/null; then
7118   if test -s conftest.err; then
7119     ac_cpp_err=$ac_c_preproc_warn_flag
7120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121   else
7122     ac_cpp_err=
7123   fi
7124 else
7125   ac_cpp_err=yes
7126 fi
7127 if test -z "$ac_cpp_err"; then
7128   :
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133   # Broken: fails on valid input.
7134 continue
7135 fi
7136 rm -f conftest.err conftest.$ac_ext
7137
7138   # OK, works on sane cases.  Now check whether non-existent headers
7139   # can be detected and how.
7140   cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 #include <ac_nonexistent.h>
7147 _ACEOF
7148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7150   ac_status=$?
7151   grep -v '^ *+' conftest.er1 >conftest.err
7152   rm -f conftest.er1
7153   cat conftest.err >&5
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); } >/dev/null; then
7156   if test -s conftest.err; then
7157     ac_cpp_err=$ac_c_preproc_warn_flag
7158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7159   else
7160     ac_cpp_err=
7161   fi
7162 else
7163   ac_cpp_err=yes
7164 fi
7165 if test -z "$ac_cpp_err"; then
7166   # Broken: success on invalid input.
7167 continue
7168 else
7169   echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172   # Passes both tests.
7173 ac_preproc_ok=:
7174 break
7175 fi
7176 rm -f conftest.err conftest.$ac_ext
7177
7178 done
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7182   break
7183 fi
7184
7185     done
7186     ac_cv_prog_CPP=$CPP
7187
7188 fi
7189   CPP=$ac_cv_prog_CPP
7190 else
7191   ac_cv_prog_CPP=$CPP
7192 fi
7193 echo "$as_me:$LINENO: result: $CPP" >&5
7194 echo "${ECHO_T}$CPP" >&6
7195 ac_preproc_ok=false
7196 for ac_c_preproc_warn_flag in '' yes
7197 do
7198   # Use a header file that comes with gcc, so configuring glibc
7199   # with a fresh cross-compiler works.
7200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7201   # <limits.h> exists even on freestanding compilers.
7202   # On the NeXT, cc -E runs the code through the compiler's parser,
7203   # not just through cpp. "Syntax error" is here to catch this case.
7204   cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h.  */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h.  */
7210 #ifdef __STDC__
7211 # include <limits.h>
7212 #else
7213 # include <assert.h>
7214 #endif
7215                      Syntax error
7216 _ACEOF
7217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219   ac_status=$?
7220   grep -v '^ *+' conftest.er1 >conftest.err
7221   rm -f conftest.er1
7222   cat conftest.err >&5
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); } >/dev/null; then
7225   if test -s conftest.err; then
7226     ac_cpp_err=$ac_c_preproc_warn_flag
7227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7228   else
7229     ac_cpp_err=
7230   fi
7231 else
7232   ac_cpp_err=yes
7233 fi
7234 if test -z "$ac_cpp_err"; then
7235   :
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240   # Broken: fails on valid input.
7241 continue
7242 fi
7243 rm -f conftest.err conftest.$ac_ext
7244
7245   # OK, works on sane cases.  Now check whether non-existent headers
7246   # can be detected and how.
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 #include <ac_nonexistent.h>
7254 _ACEOF
7255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7257   ac_status=$?
7258   grep -v '^ *+' conftest.er1 >conftest.err
7259   rm -f conftest.er1
7260   cat conftest.err >&5
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } >/dev/null; then
7263   if test -s conftest.err; then
7264     ac_cpp_err=$ac_c_preproc_warn_flag
7265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7266   else
7267     ac_cpp_err=
7268   fi
7269 else
7270   ac_cpp_err=yes
7271 fi
7272 if test -z "$ac_cpp_err"; then
7273   # Broken: success on invalid input.
7274 continue
7275 else
7276   echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279   # Passes both tests.
7280 ac_preproc_ok=:
7281 break
7282 fi
7283 rm -f conftest.err conftest.$ac_ext
7284
7285 done
7286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287 rm -f conftest.err conftest.$ac_ext
7288 if $ac_preproc_ok; then
7289   :
7290 else
7291   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7292 See \`config.log' for more details." >&5
7293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7294 See \`config.log' for more details." >&2;}
7295    { (exit 1); exit 1; }; }
7296 fi
7297
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303
7304
7305 echo "$as_me:$LINENO: checking for egrep" >&5
7306 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7307 if test "${ac_cv_prog_egrep+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7311     then ac_cv_prog_egrep='grep -E'
7312     else ac_cv_prog_egrep='egrep'
7313     fi
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7316 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7317  EGREP=$ac_cv_prog_egrep
7318
7319
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326 #include <stdint.h>
7327
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330   $EGREP "uint32_t" >/dev/null 2>&1; then
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_INT32_DEFINED 1
7334 _ACEOF
7335
7336 fi
7337 rm -f conftest*
7338
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 #include <inttypes.h>
7346
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349   $EGREP "uint32_t" >/dev/null 2>&1; then
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_INT32_DEFINED 1
7353 _ACEOF
7354
7355 fi
7356 rm -f conftest*
7357
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 #include <sys/types.h>
7365
7366 _ACEOF
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368   $EGREP "u_int32_t" >/dev/null 2>&1; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_BSD_INT32_DEFINED 1
7372 _ACEOF
7373
7374 fi
7375 rm -f conftest*
7376
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383 #include <sys/config.h>
7384
7385 _ACEOF
7386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387   $EGREP "u_int32_t" >/dev/null 2>&1; then
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_BSD_INT32_DEFINED 1
7391 _ACEOF
7392
7393 fi
7394 rm -f conftest*
7395
7396
7397
7398
7399 if test "$PLATFORM" = Win32; then
7400   USING_WIN32_PLATFORM_TRUE=
7401   USING_WIN32_PLATFORM_FALSE='#'
7402 else
7403   USING_WIN32_PLATFORM_TRUE='#'
7404   USING_WIN32_PLATFORM_FALSE=
7405 fi
7406
7407
7408
7409 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7410   USING_POSIX_PLATFORM_TRUE=
7411   USING_POSIX_PLATFORM_FALSE='#'
7412 else
7413   USING_POSIX_PLATFORM_TRUE='#'
7414   USING_POSIX_PLATFORM_FALSE=
7415 fi
7416
7417
7418 case "$host" in
7419   *-darwin*) DARWIN_CRT=true ;;
7420   *) DARWIN_CRT=false ;;
7421 esac
7422
7423
7424 if $DARWIN_CRT; then
7425   USING_DARWIN_CRT_TRUE=
7426   USING_DARWIN_CRT_FALSE='#'
7427 else
7428   USING_DARWIN_CRT_TRUE='#'
7429   USING_DARWIN_CRT_FALSE=
7430 fi
7431
7432
7433 # These may not be defined in a non-ANS conformant embedded system.
7434 # FIXME: Should these case a runtime exception in that case?
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #include <time.h>
7442
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445   $EGREP "mktime" >/dev/null 2>&1; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_MKTIME 1
7449 _ACEOF
7450
7451 fi
7452 rm -f conftest*
7453
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460 #include <time.h>
7461
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464   $EGREP "localtime" >/dev/null 2>&1; then
7465
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_LOCALTIME 1
7468 _ACEOF
7469
7470 fi
7471 rm -f conftest*
7472
7473
7474 # Create the subdirectory for natFile.cc, or the attempt
7475 # to create the link will fail.
7476 test -d java || mkdir java
7477 test -d java/io || mkdir java/io
7478 test -d gnu || mkdir gnu
7479           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7480
7481
7482 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7483 test -d java/lang || mkdir java/lang
7484           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7485
7486           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7487
7488
7489 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7490 test -d java/net || mkdir java/net
7491           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7492
7493           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7494
7495
7496 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7497 test -d gnu/java || mkdir gnu/java
7498 test -d gnu/java/net || mkdir gnu/java/net
7499           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7500
7501           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7502
7503
7504 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7505 test -d gnu/java/nio || mkdir gnu/java/nio
7506           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7507
7508           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7509
7510 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7511           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7512
7513
7514 case "${host}" in
7515     *mingw*)
7516       SYSTEMSPEC="-lgdi32 -lws2_32"
7517       if test "${with_win32_nlsapi}" = "unicows"; then
7518         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7519       fi
7520     ;;
7521     *)
7522       SYSTEMSPEC=
7523     ;;
7524 esac
7525
7526
7527 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7528
7529
7530
7531 # Check whether --with-system-zlib or --without-system-zlib was given.
7532 if test "${with_system_zlib+set}" = set; then
7533   withval="$with_system_zlib"
7534
7535 fi;
7536 ZLIBSPEC=
7537
7538 ZLIBTESTSPEC=
7539
7540
7541 echo "$as_me:$LINENO: checking for X" >&5
7542 echo $ECHO_N "checking for X... $ECHO_C" >&6
7543
7544
7545 # Check whether --with-x or --without-x was given.
7546 if test "${with_x+set}" = set; then
7547   withval="$with_x"
7548
7549 fi;
7550 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7551 if test "x$with_x" = xno; then
7552   # The user explicitly disabled X.
7553   have_x=disabled
7554 else
7555   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7556     # Both variables are already set.
7557     have_x=yes
7558   else
7559     if test "${ac_cv_have_x+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   # One or both of the vars are not set, and there is no cached value.
7563 ac_x_includes=no ac_x_libraries=no
7564 rm -fr conftest.dir
7565 if mkdir conftest.dir; then
7566   cd conftest.dir
7567   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7568   cat >Imakefile <<'_ACEOF'
7569 acfindx:
7570         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7571 _ACEOF
7572   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7573     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7574     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7575     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7576     for ac_extension in a so sl; do
7577       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7578          test -f $ac_im_libdir/libX11.$ac_extension; then
7579         ac_im_usrlibdir=$ac_im_libdir; break
7580       fi
7581     done
7582     # Screen out bogus values from the imake configuration.  They are
7583     # bogus both because they are the default anyway, and because
7584     # using them would break gcc on systems where it needs fixed includes.
7585     case $ac_im_incroot in
7586         /usr/include) ;;
7587         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7588     esac
7589     case $ac_im_usrlibdir in
7590         /usr/lib | /lib) ;;
7591         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7592     esac
7593   fi
7594   cd ..
7595   rm -fr conftest.dir
7596 fi
7597
7598 # Standard set of common directories for X headers.
7599 # Check X11 before X11Rn because it is often a symlink to the current release.
7600 ac_x_header_dirs='
7601 /usr/X11/include
7602 /usr/X11R6/include
7603 /usr/X11R5/include
7604 /usr/X11R4/include
7605
7606 /usr/include/X11
7607 /usr/include/X11R6
7608 /usr/include/X11R5
7609 /usr/include/X11R4
7610
7611 /usr/local/X11/include
7612 /usr/local/X11R6/include
7613 /usr/local/X11R5/include
7614 /usr/local/X11R4/include
7615
7616 /usr/local/include/X11
7617 /usr/local/include/X11R6
7618 /usr/local/include/X11R5
7619 /usr/local/include/X11R4
7620
7621 /usr/X386/include
7622 /usr/x386/include
7623 /usr/XFree86/include/X11
7624
7625 /usr/include
7626 /usr/local/include
7627 /usr/unsupported/include
7628 /usr/athena/include
7629 /usr/local/x11r5/include
7630 /usr/lpp/Xamples/include
7631
7632 /usr/openwin/include
7633 /usr/openwin/share/include'
7634
7635 if test "$ac_x_includes" = no; then
7636   # Guess where to find include files, by looking for Xlib.h.
7637   # First, try using that file with no special directory specified.
7638   cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 #include <X11/Xlib.h>
7645 _ACEOF
7646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7648   ac_status=$?
7649   grep -v '^ *+' conftest.er1 >conftest.err
7650   rm -f conftest.er1
7651   cat conftest.err >&5
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); } >/dev/null; then
7654   if test -s conftest.err; then
7655     ac_cpp_err=$ac_c_preproc_warn_flag
7656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7657   else
7658     ac_cpp_err=
7659   fi
7660 else
7661   ac_cpp_err=yes
7662 fi
7663 if test -z "$ac_cpp_err"; then
7664   # We can compile using X headers with no special include directory.
7665 ac_x_includes=
7666 else
7667   echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670   for ac_dir in $ac_x_header_dirs; do
7671   if test -r "$ac_dir/X11/Xlib.h"; then
7672     ac_x_includes=$ac_dir
7673     break
7674   fi
7675 done
7676 fi
7677 rm -f conftest.err conftest.$ac_ext
7678 fi # $ac_x_includes = no
7679
7680 if test "$ac_x_libraries" = no; then
7681   # Check for the libraries.
7682   # See if we find them without any special options.
7683   # Don't add to $LIBS permanently.
7684   ac_save_LIBS=$LIBS
7685   LIBS="-lXt $LIBS"
7686   if test x$gcc_no_link = xyes; then
7687   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7689    { (exit 1); exit 1; }; }
7690 fi
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <X11/Xlib.h>
7698 int
7699 main ()
7700 {
7701 XrmInitialize ()
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708   (eval $ac_link) 2>conftest.er1
7709   ac_status=$?
7710   grep -v '^ *+' conftest.er1 >conftest.err
7711   rm -f conftest.er1
7712   cat conftest.err >&5
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } &&
7715          { ac_try='test -z "$ac_c_werror_flag"
7716                          || test ! -s conftest.err'
7717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718   (eval $ac_try) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; } &&
7722          { ac_try='test -s conftest$ac_exeext'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; }; then
7728   LIBS=$ac_save_LIBS
7729 # We can link X programs with no special library path.
7730 ac_x_libraries=
7731 else
7732   echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735 LIBS=$ac_save_LIBS
7736 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7737 do
7738   # Don't even attempt the hair of trying to link an X program!
7739   for ac_extension in a so sl; do
7740     if test -r $ac_dir/libXt.$ac_extension; then
7741       ac_x_libraries=$ac_dir
7742       break 2
7743     fi
7744   done
7745 done
7746 fi
7747 rm -f conftest.err conftest.$ac_objext \
7748       conftest$ac_exeext conftest.$ac_ext
7749 fi # $ac_x_libraries = no
7750
7751 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7752   # Didn't find X anywhere.  Cache the known absence of X.
7753   ac_cv_have_x="have_x=no"
7754 else
7755   # Record where we found X for the cache.
7756   ac_cv_have_x="have_x=yes \
7757                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7758 fi
7759 fi
7760
7761   fi
7762   eval "$ac_cv_have_x"
7763 fi # $with_x != no
7764
7765 if test "$have_x" != yes; then
7766   echo "$as_me:$LINENO: result: $have_x" >&5
7767 echo "${ECHO_T}$have_x" >&6
7768   no_x=yes
7769 else
7770   # If each of the values was on the command line, it overrides each guess.
7771   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7772   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7773   # Update the cache value to reflect the command line values.
7774   ac_cv_have_x="have_x=yes \
7775                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7776   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7777 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7778 fi
7779
7780 if test "$no_x" = yes; then
7781   # Not all programs may use this symbol, but it does not hurt to define it.
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define X_DISPLAY_MISSING 1
7785 _ACEOF
7786
7787   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7788 else
7789   if test -n "$x_includes"; then
7790     X_CFLAGS="$X_CFLAGS -I$x_includes"
7791   fi
7792
7793   # It would also be nice to do this for all -L options, not just this one.
7794   if test -n "$x_libraries"; then
7795     X_LIBS="$X_LIBS -L$x_libraries"
7796     # For Solaris; some versions of Sun CC require a space after -R and
7797     # others require no space.  Words are not sufficient . . . .
7798     case `(uname -sr) 2>/dev/null` in
7799     "SunOS 5"*)
7800       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7801 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7802       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7803       if test x$gcc_no_link = xyes; then
7804   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7806    { (exit 1); exit 1; }; }
7807 fi
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h.  */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h.  */
7814
7815 int
7816 main ()
7817 {
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825   (eval $ac_link) 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -z "$ac_c_werror_flag"
7833                          || test ! -s conftest.err'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; } &&
7839          { ac_try='test -s conftest$ac_exeext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   ac_R_nospace=yes
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_R_nospace=no
7851 fi
7852 rm -f conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854       if test $ac_R_nospace = yes; then
7855         echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7857         X_LIBS="$X_LIBS -R$x_libraries"
7858       else
7859         LIBS="$ac_xsave_LIBS -R $x_libraries"
7860         if test x$gcc_no_link = xyes; then
7861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7863    { (exit 1); exit 1; }; }
7864 fi
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871
7872 int
7873 main ()
7874 {
7875
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_R_space=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_R_space=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911         if test $ac_R_space = yes; then
7912           echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6
7914           X_LIBS="$X_LIBS -R $x_libraries"
7915         else
7916           echo "$as_me:$LINENO: result: neither works" >&5
7917 echo "${ECHO_T}neither works" >&6
7918         fi
7919       fi
7920       LIBS=$ac_xsave_LIBS
7921     esac
7922   fi
7923
7924   # Check for system-dependent libraries X programs must link with.
7925   # Do this before checking for the system-independent R6 libraries
7926   # (-lICE), since we may need -lsocket or whatever for X linking.
7927
7928   if test "$ISC" = yes; then
7929     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7930   else
7931     # Martyn Johnson says this is needed for Ultrix, if the X
7932     # libraries were built with DECnet support.  And Karl Berry says
7933     # the Alpha needs dnet_stub (dnet does not exist).
7934     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7935     if test x$gcc_no_link = xyes; then
7936   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7938    { (exit 1); exit 1; }; }
7939 fi
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946
7947 /* Override any gcc2 internal prototype to avoid an error.  */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 /* We use char because int might match the return type of a gcc2
7952    builtin and then its argument prototype would still apply.  */
7953 char XOpenDisplay ();
7954 int
7955 main ()
7956 {
7957 XOpenDisplay ();
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964   (eval $ac_link) 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag"
7972                          || test ! -s conftest.err'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   :
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7990 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   ac_check_lib_save_LIBS=$LIBS
7995 LIBS="-ldnet  $LIBS"
7996 if test x$gcc_no_link = xyes; then
7997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7999    { (exit 1); exit 1; }; }
8000 fi
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8007
8008 /* Override any gcc2 internal prototype to avoid an error.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 /* We use char because int might match the return type of a gcc2
8013    builtin and then its argument prototype would still apply.  */
8014 char dnet_ntoa ();
8015 int
8016 main ()
8017 {
8018 dnet_ntoa ();
8019   ;
8020   return 0;
8021 }
8022 _ACEOF
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025   (eval $ac_link) 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } &&
8032          { ac_try='test -z "$ac_c_werror_flag"
8033                          || test ! -s conftest.err'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; } &&
8039          { ac_try='test -s conftest$ac_exeext'
8040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041   (eval $ac_try) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; }; then
8045   ac_cv_lib_dnet_dnet_ntoa=yes
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050 ac_cv_lib_dnet_dnet_ntoa=no
8051 fi
8052 rm -f conftest.err conftest.$ac_objext \
8053       conftest$ac_exeext conftest.$ac_ext
8054 LIBS=$ac_check_lib_save_LIBS
8055 fi
8056 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8057 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8058 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8059   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8060 fi
8061
8062     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8063       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8064 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8065 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-ldnet_stub  $LIBS"
8070 if test x$gcc_no_link = xyes; then
8071   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8073    { (exit 1); exit 1; }; }
8074 fi
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081
8082 /* Override any gcc2 internal prototype to avoid an error.  */
8083 #ifdef __cplusplus
8084 extern "C"
8085 #endif
8086 /* We use char because int might match the return type of a gcc2
8087    builtin and then its argument prototype would still apply.  */
8088 char dnet_ntoa ();
8089 int
8090 main ()
8091 {
8092 dnet_ntoa ();
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099   (eval $ac_link) 2>conftest.er1
8100   ac_status=$?
8101   grep -v '^ *+' conftest.er1 >conftest.err
8102   rm -f conftest.er1
8103   cat conftest.err >&5
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } &&
8106          { ac_try='test -z "$ac_c_werror_flag"
8107                          || test ! -s conftest.err'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_lib_dnet_stub_dnet_ntoa=no
8125 fi
8126 rm -f conftest.err conftest.$ac_objext \
8127       conftest$ac_exeext conftest.$ac_ext
8128 LIBS=$ac_check_lib_save_LIBS
8129 fi
8130 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8131 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8132 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8133   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8134 fi
8135
8136     fi
8137 fi
8138 rm -f conftest.err conftest.$ac_objext \
8139       conftest$ac_exeext conftest.$ac_ext
8140     LIBS="$ac_xsave_LIBS"
8141
8142     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8143     # to get the SysV transport functions.
8144     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8145     # needs -lnsl.
8146     # The nsl library prevents programs from opening the X display
8147     # on Irix 5.2, according to T.E. Dickey.
8148     # The functions gethostbyname, getservbyname, and inet_addr are
8149     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8150     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8151 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8152 if test "${ac_cv_func_gethostbyname+set}" = set; then
8153   echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155   if test x$gcc_no_link = xyes; then
8156   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8158    { (exit 1); exit 1; }; }
8159 fi
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8168 #define gethostbyname innocuous_gethostbyname
8169
8170 /* System header to define __stub macros and hopefully few prototypes,
8171     which can conflict with char gethostbyname (); below.
8172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8173     <limits.h> exists even on freestanding compilers.  */
8174
8175 #ifdef __STDC__
8176 # include <limits.h>
8177 #else
8178 # include <assert.h>
8179 #endif
8180
8181 #undef gethostbyname
8182
8183 /* Override any gcc2 internal prototype to avoid an error.  */
8184 #ifdef __cplusplus
8185 extern "C"
8186 {
8187 #endif
8188 /* We use char because int might match the return type of a gcc2
8189    builtin and then its argument prototype would still apply.  */
8190 char gethostbyname ();
8191 /* The GNU C library defines this for functions which it implements
8192     to always fail with ENOSYS.  Some functions are actually named
8193     something starting with __ and the normal name is an alias.  */
8194 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8195 choke me
8196 #else
8197 char (*f) () = gethostbyname;
8198 #endif
8199 #ifdef __cplusplus
8200 }
8201 #endif
8202
8203 int
8204 main ()
8205 {
8206 return f != gethostbyname;
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213   (eval $ac_link) 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -z "$ac_c_werror_flag"
8221                          || test ! -s conftest.err'
8222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223   (eval $ac_try) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; } &&
8227          { ac_try='test -s conftest$ac_exeext'
8228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229   (eval $ac_try) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_func_gethostbyname=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_cv_func_gethostbyname=no
8239 fi
8240 rm -f conftest.err conftest.$ac_objext \
8241       conftest$ac_exeext conftest.$ac_ext
8242 fi
8243 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8244 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8245
8246     if test $ac_cv_func_gethostbyname = no; then
8247       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8248 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8249 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-lnsl  $LIBS"
8254 if test x$gcc_no_link = xyes; then
8255   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8257    { (exit 1); exit 1; }; }
8258 fi
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h.  */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h.  */
8265
8266 /* Override any gcc2 internal prototype to avoid an error.  */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 /* We use char because int might match the return type of a gcc2
8271    builtin and then its argument prototype would still apply.  */
8272 char gethostbyname ();
8273 int
8274 main ()
8275 {
8276 gethostbyname ();
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283   (eval $ac_link) 2>conftest.er1
8284   ac_status=$?
8285   grep -v '^ *+' conftest.er1 >conftest.err
8286   rm -f conftest.er1
8287   cat conftest.err >&5
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } &&
8290          { ac_try='test -z "$ac_c_werror_flag"
8291                          || test ! -s conftest.err'
8292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293   (eval $ac_try) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; } &&
8297          { ac_try='test -s conftest$ac_exeext'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_lib_nsl_gethostbyname=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_cv_lib_nsl_gethostbyname=no
8309 fi
8310 rm -f conftest.err conftest.$ac_objext \
8311       conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8313 fi
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8315 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8316 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8317   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8318 fi
8319
8320       if test $ac_cv_lib_nsl_gethostbyname = no; then
8321         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8322 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8323 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-lbsd  $LIBS"
8328 if test x$gcc_no_link = xyes; then
8329   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8331    { (exit 1); exit 1; }; }
8332 fi
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char gethostbyname ();
8347 int
8348 main ()
8349 {
8350 gethostbyname ();
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag"
8365                          || test ! -s conftest.err'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_bsd_gethostbyname=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_bsd_gethostbyname=no
8383 fi
8384 rm -f conftest.err conftest.$ac_objext \
8385       conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8389 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8390 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8391   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8392 fi
8393
8394       fi
8395     fi
8396
8397     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8398     # socket/setsockopt and other routines are undefined under SCO ODT
8399     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8400     # on later versions), says Simon Leinen: it contains gethostby*
8401     # variants that don't use the name server (or something).  -lsocket
8402     # must be given before -lnsl if both are needed.  We assume that
8403     # if connect needs -lnsl, so does gethostbyname.
8404     echo "$as_me:$LINENO: checking for connect" >&5
8405 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8406 if test "${ac_cv_func_connect+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   if test x$gcc_no_link = xyes; then
8410   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8412    { (exit 1); exit 1; }; }
8413 fi
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8422 #define connect innocuous_connect
8423
8424 /* System header to define __stub macros and hopefully few prototypes,
8425     which can conflict with char connect (); below.
8426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8427     <limits.h> exists even on freestanding compilers.  */
8428
8429 #ifdef __STDC__
8430 # include <limits.h>
8431 #else
8432 # include <assert.h>
8433 #endif
8434
8435 #undef connect
8436
8437 /* Override any gcc2 internal prototype to avoid an error.  */
8438 #ifdef __cplusplus
8439 extern "C"
8440 {
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443    builtin and then its argument prototype would still apply.  */
8444 char connect ();
8445 /* The GNU C library defines this for functions which it implements
8446     to always fail with ENOSYS.  Some functions are actually named
8447     something starting with __ and the normal name is an alias.  */
8448 #if defined (__stub_connect) || defined (__stub___connect)
8449 choke me
8450 #else
8451 char (*f) () = connect;
8452 #endif
8453 #ifdef __cplusplus
8454 }
8455 #endif
8456
8457 int
8458 main ()
8459 {
8460 return f != connect;
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467   (eval $ac_link) 2>conftest.er1
8468   ac_status=$?
8469   grep -v '^ *+' conftest.er1 >conftest.err
8470   rm -f conftest.er1
8471   cat conftest.err >&5
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -z "$ac_c_werror_flag"
8475                          || test ! -s conftest.err'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; } &&
8481          { ac_try='test -s conftest$ac_exeext'
8482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483   (eval $ac_try) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; }; then
8487   ac_cv_func_connect=yes
8488 else
8489   echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 ac_cv_func_connect=no
8493 fi
8494 rm -f conftest.err conftest.$ac_objext \
8495       conftest$ac_exeext conftest.$ac_ext
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8498 echo "${ECHO_T}$ac_cv_func_connect" >&6
8499
8500     if test $ac_cv_func_connect = no; then
8501       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8502 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8503 if test "${ac_cv_lib_socket_connect+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8508 if test x$gcc_no_link = xyes; then
8509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8511    { (exit 1); exit 1; }; }
8512 fi
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519
8520 /* Override any gcc2 internal prototype to avoid an error.  */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525    builtin and then its argument prototype would still apply.  */
8526 char connect ();
8527 int
8528 main ()
8529 {
8530 connect ();
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537   (eval $ac_link) 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag"
8545                          || test ! -s conftest.err'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest$ac_exeext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_lib_socket_connect=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_lib_socket_connect=no
8563 fi
8564 rm -f conftest.err conftest.$ac_objext \
8565       conftest$ac_exeext conftest.$ac_ext
8566 LIBS=$ac_check_lib_save_LIBS
8567 fi
8568 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8569 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8570 if test $ac_cv_lib_socket_connect = yes; then
8571   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8572 fi
8573
8574     fi
8575
8576     # Guillermo Gomez says -lposix is necessary on A/UX.
8577     echo "$as_me:$LINENO: checking for remove" >&5
8578 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8579 if test "${ac_cv_func_remove+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582   if test x$gcc_no_link = xyes; then
8583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8585    { (exit 1); exit 1; }; }
8586 fi
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8595 #define remove innocuous_remove
8596
8597 /* System header to define __stub macros and hopefully few prototypes,
8598     which can conflict with char remove (); below.
8599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600     <limits.h> exists even on freestanding compilers.  */
8601
8602 #ifdef __STDC__
8603 # include <limits.h>
8604 #else
8605 # include <assert.h>
8606 #endif
8607
8608 #undef remove
8609
8610 /* Override any gcc2 internal prototype to avoid an error.  */
8611 #ifdef __cplusplus
8612 extern "C"
8613 {
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616    builtin and then its argument prototype would still apply.  */
8617 char remove ();
8618 /* The GNU C library defines this for functions which it implements
8619     to always fail with ENOSYS.  Some functions are actually named
8620     something starting with __ and the normal name is an alias.  */
8621 #if defined (__stub_remove) || defined (__stub___remove)
8622 choke me
8623 #else
8624 char (*f) () = remove;
8625 #endif
8626 #ifdef __cplusplus
8627 }
8628 #endif
8629
8630 int
8631 main ()
8632 {
8633 return f != remove;
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640   (eval $ac_link) 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -z "$ac_c_werror_flag"
8648                          || test ! -s conftest.err'
8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); }; } &&
8654          { ac_try='test -s conftest$ac_exeext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_func_remove=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_cv_func_remove=no
8666 fi
8667 rm -f conftest.err conftest.$ac_objext \
8668       conftest$ac_exeext conftest.$ac_ext
8669 fi
8670 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8671 echo "${ECHO_T}$ac_cv_func_remove" >&6
8672
8673     if test $ac_cv_func_remove = no; then
8674       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8675 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8676 if test "${ac_cv_lib_posix_remove+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lposix  $LIBS"
8681 if test x$gcc_no_link = xyes; then
8682   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684    { (exit 1); exit 1; }; }
8685 fi
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692
8693 /* Override any gcc2 internal prototype to avoid an error.  */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698    builtin and then its argument prototype would still apply.  */
8699 char remove ();
8700 int
8701 main ()
8702 {
8703 remove ();
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag"
8718                          || test ! -s conftest.err'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; } &&
8724          { ac_try='test -s conftest$ac_exeext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   ac_cv_lib_posix_remove=yes
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 ac_cv_lib_posix_remove=no
8736 fi
8737 rm -f conftest.err conftest.$ac_objext \
8738       conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8740 fi
8741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8742 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8743 if test $ac_cv_lib_posix_remove = yes; then
8744   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8745 fi
8746
8747     fi
8748
8749     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8750     echo "$as_me:$LINENO: checking for shmat" >&5
8751 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8752 if test "${ac_cv_func_shmat+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   if test x$gcc_no_link = xyes; then
8756   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8758    { (exit 1); exit 1; }; }
8759 fi
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8768 #define shmat innocuous_shmat
8769
8770 /* System header to define __stub macros and hopefully few prototypes,
8771     which can conflict with char shmat (); below.
8772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773     <limits.h> exists even on freestanding compilers.  */
8774
8775 #ifdef __STDC__
8776 # include <limits.h>
8777 #else
8778 # include <assert.h>
8779 #endif
8780
8781 #undef shmat
8782
8783 /* Override any gcc2 internal prototype to avoid an error.  */
8784 #ifdef __cplusplus
8785 extern "C"
8786 {
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789    builtin and then its argument prototype would still apply.  */
8790 char shmat ();
8791 /* The GNU C library defines this for functions which it implements
8792     to always fail with ENOSYS.  Some functions are actually named
8793     something starting with __ and the normal name is an alias.  */
8794 #if defined (__stub_shmat) || defined (__stub___shmat)
8795 choke me
8796 #else
8797 char (*f) () = shmat;
8798 #endif
8799 #ifdef __cplusplus
8800 }
8801 #endif
8802
8803 int
8804 main ()
8805 {
8806 return f != shmat;
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813   (eval $ac_link) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag"
8821                          || test ! -s conftest.err'
8822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823   (eval $ac_try) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); }; } &&
8827          { ac_try='test -s conftest$ac_exeext'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; }; then
8833   ac_cv_func_shmat=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838 ac_cv_func_shmat=no
8839 fi
8840 rm -f conftest.err conftest.$ac_objext \
8841       conftest$ac_exeext conftest.$ac_ext
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8844 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8845
8846     if test $ac_cv_func_shmat = no; then
8847       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8848 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8849 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-lipc  $LIBS"
8854 if test x$gcc_no_link = xyes; then
8855   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8857    { (exit 1); exit 1; }; }
8858 fi
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865
8866 /* Override any gcc2 internal prototype to avoid an error.  */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871    builtin and then its argument prototype would still apply.  */
8872 char shmat ();
8873 int
8874 main ()
8875 {
8876 shmat ();
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883   (eval $ac_link) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -z "$ac_c_werror_flag"
8891                          || test ! -s conftest.err'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest$ac_exeext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   ac_cv_lib_ipc_shmat=yes
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ac_cv_lib_ipc_shmat=no
8909 fi
8910 rm -f conftest.err conftest.$ac_objext \
8911       conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8916 if test $ac_cv_lib_ipc_shmat = yes; then
8917   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8918 fi
8919
8920     fi
8921   fi
8922
8923   # Check for libraries that X11R6 Xt/Xaw programs need.
8924   ac_save_LDFLAGS=$LDFLAGS
8925   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8926   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8927   # check for ICE first), but we must link in the order -lSM -lICE or
8928   # we get undefined symbols.  So assume we have SM if we have ICE.
8929   # These have to be linked with before -lX11, unlike the other
8930   # libraries we check for below, so use a different variable.
8931   # John Interrante, Karl Berry
8932   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937   ac_check_lib_save_LIBS=$LIBS
8938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8939 if test x$gcc_no_link = xyes; then
8940   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8942    { (exit 1); exit 1; }; }
8943 fi
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950
8951 /* Override any gcc2 internal prototype to avoid an error.  */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956    builtin and then its argument prototype would still apply.  */
8957 char IceConnectionNumber ();
8958 int
8959 main ()
8960 {
8961 IceConnectionNumber ();
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag"
8976                          || test ! -s conftest.err'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; } &&
8982          { ac_try='test -s conftest$ac_exeext'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; }; then
8988   ac_cv_lib_ICE_IceConnectionNumber=yes
8989 else
8990   echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 ac_cv_lib_ICE_IceConnectionNumber=no
8994 fi
8995 rm -f conftest.err conftest.$ac_objext \
8996       conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9000 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9001 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9002   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9003 fi
9004
9005   LDFLAGS=$ac_save_LDFLAGS
9006
9007 fi
9008
9009
9010 # FIXME: this should be _libs on some hosts.
9011 libsubdir=.libs
9012
9013 # extra LD Flags which are required for targets
9014 case "${host}" in
9015 *-*-darwin[0-7].*)
9016     # For now we have to disable it on darwin[8-9] because it slows down
9017     # the linking phase. A possible bug in ld?
9018     # on Darwin -single_module speeds up loading of the dynamic libraries.
9019     extra_ldflags_libjava=-Wl,-single_module
9020     ;;
9021 esac
9022
9023
9024 # Allow the GC to be disabled.  Can be useful when debugging.
9025 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9026 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9027 # Check whether --enable-java-gc or --disable-java-gc was given.
9028 if test "${enable_java_gc+set}" = set; then
9029   enableval="$enable_java_gc"
9030   GC=$enableval
9031 else
9032   GC=boehm
9033 fi;
9034 GCLIBS=
9035 GCINCS=
9036 GCDEPS=
9037 GCSPEC=
9038 JC1GCSPEC=
9039 GCTESTSPEC=
9040 case "$GC" in
9041  boehm)
9042     echo "$as_me:$LINENO: result: boehm" >&5
9043 echo "${ECHO_T}boehm" >&6
9044     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9045     JC1GCSPEC='-fuse-boehm-gc'
9046     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9047     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9048     GCOBJS=boehm.lo
9049     GCHDR=boehm-gc.h
9050     # The POSIX thread support needs to know this.
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_BOEHM_GC 1
9054 _ACEOF
9055
9056     ;;
9057  no)
9058     echo "$as_me:$LINENO: result: none" >&5
9059 echo "${ECHO_T}none" >&6
9060     GCHDR=no-gc.h
9061     ;;
9062  *)
9063     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9064 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9065    { (exit 1); exit 1; }; }
9066     ;;
9067 esac
9068
9069
9070
9071
9072
9073
9074           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9075
9076
9077
9078 if test "$GC" = boehm; then
9079   USING_BOEHMGC_TRUE=
9080   USING_BOEHMGC_FALSE='#'
9081 else
9082   USING_BOEHMGC_TRUE='#'
9083   USING_BOEHMGC_FALSE=
9084 fi
9085
9086
9087
9088 if test "$GC" = no; then
9089   USING_NOGC_TRUE=
9090   USING_NOGC_FALSE='#'
9091 else
9092   USING_NOGC_TRUE='#'
9093   USING_NOGC_FALSE=
9094 fi
9095
9096
9097
9098 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9099 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9100 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9101 echo "$as_me:$LINENO: result: $THREADS" >&5
9102 echo "${ECHO_T}$THREADS" >&6
9103
9104 case "$THREADS" in
9105  no | none | single)
9106     THREADS=none
9107     ;;
9108  posix | posix95 | pthreads)
9109     THREADS=posix
9110     case "$host" in
9111      *-*-linux*)
9112
9113 cat >>confdefs.h <<\_ACEOF
9114 #define LINUX_THREADS 1
9115 _ACEOF
9116
9117         ;;
9118     esac
9119     ;;
9120  win32)
9121     ;;
9122  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9123     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9124 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9125    { (exit 1); exit 1; }; }
9126     ;;
9127  *)
9128     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9129 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9130    { (exit 1); exit 1; }; }
9131     ;;
9132 esac
9133
9134 THREADCXXFLAGS=
9135 THREADLDFLAGS=
9136 THREADLIBS=
9137 THREADINCS=
9138 THREADDEPS=
9139 THREADH=
9140 THREADSPEC=
9141 THREADSTARTFILESPEC=
9142 case "$THREADS" in
9143  posix)
9144     case "$host" in
9145      *-*-cygwin*)
9146         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9147         ;;
9148      *-*-freebsd[1234]*)
9149         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9150         # merely adds pthread_* functions) but it does have a -pthread switch
9151         # which is required at link-time to select -lc_r *instead* of -lc.
9152         THREADLDFLAGS=-pthread
9153         # Don't set THREADSPEC here as might be expected since -pthread is
9154         # not processed when found within a spec file, it must come from
9155         # the command line.  For now, the user must provide the -pthread
9156         # switch to link code compiled with gcj.  In future, consider adding
9157         # support for weak references to pthread_* functions ala gthr.h API.
9158         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9159         ;;
9160      *-*-freebsd*)
9161         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9162         # systems which support threads and -lpthread.
9163         THREADLDFLAGS=-pthread
9164         THREADSPEC=-lpthread
9165         ;;
9166      alpha*-dec-osf* | hppa*-hp-hpux*)
9167         THREADCXXFLAGS=-pthread
9168         # boehm-gc needs some functions from librt, so link that too.
9169         THREADLIBS='-lpthread -lrt'
9170         THREADSPEC='-lpthread -lrt'
9171         ;;
9172      *)
9173         THREADLIBS=-lpthread
9174         THREADSPEC=-lpthread
9175         ;;
9176     esac
9177     THREADH=posix-threads.h
9178     # MIT pthreads doesn't seem to have the mutexattr functions.
9179     # But for now we don't check for it.  We just assume you aren't
9180     # using MIT pthreads.
9181
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9184 _ACEOF
9185
9186
9187     # If we're using the Boehm GC, then we happen to know that it
9188     # defines _REENTRANT, so we don't bother.  Eww.
9189     if test "$GC" != boehm; then
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define _REENTRANT 1
9193 _ACEOF
9194
9195     fi
9196
9197 cat >>confdefs.h <<\_ACEOF
9198 #define _POSIX_PTHREAD_SEMANTICS 1
9199 _ACEOF
9200
9201     ;;
9202
9203  win32)
9204     THREADH=win32-threads.h
9205     THREADCXXFLAGS=-mthreads
9206     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9207     # But we do not want the executables created to be dependent on
9208     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9209     # exception handling contexts.  The following kludge achieves this effect
9210     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9211     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9212     # A workaround is to explicitly use -mthreads while linking Java programs.
9213     # See PR libgcj/28263.
9214     #
9215     # FIXME: In Java we are able to detect thread death at the end of
9216     # Thread.run() so we should be able to clean up the exception handling
9217     # contexts ourselves.
9218     THREADSTARTFILESPEC='crtmt%O%s'
9219     ;;
9220
9221  none)
9222     THREADH=no-threads.h
9223     ;;
9224 esac
9225           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 if test "$THREADS" = posix; then
9237   USING_POSIX_THREADS_TRUE=
9238   USING_POSIX_THREADS_FALSE='#'
9239 else
9240   USING_POSIX_THREADS_TRUE='#'
9241   USING_POSIX_THREADS_FALSE=
9242 fi
9243
9244
9245
9246 if test "$THREADS" = win32; then
9247   USING_WIN32_THREADS_TRUE=
9248   USING_WIN32_THREADS_FALSE='#'
9249 else
9250   USING_WIN32_THREADS_TRUE='#'
9251   USING_WIN32_THREADS_FALSE=
9252 fi
9253
9254
9255
9256 if test "$THREADS" = none; then
9257   USING_NO_THREADS_TRUE=
9258   USING_NO_THREADS_FALSE='#'
9259 else
9260   USING_NO_THREADS_TRUE='#'
9261   USING_NO_THREADS_FALSE=
9262 fi
9263
9264
9265
9266 if test "$use_libgcj_bc" = yes; then
9267   USE_LIBGCJ_BC_TRUE=
9268   USE_LIBGCJ_BC_FALSE='#'
9269 else
9270   USE_LIBGCJ_BC_TRUE='#'
9271   USE_LIBGCJ_BC_FALSE=
9272 fi
9273
9274
9275 if test -d sysdep; then true; else mkdir sysdep; fi
9276           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9277
9278           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9279
9280           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9281
9282
9283 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9284 if test "$use_libgcj_bc" = yes; then
9285   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9286 fi
9287
9288
9289 HASH_SYNC_SPEC=
9290 # Hash synchronization is only useful with posix threads right now.
9291 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9292    HASH_SYNC_SPEC=-fhash-synchronization
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define JV_HASH_SYNCHRONIZATION 1
9296 _ACEOF
9297
9298 fi
9299
9300
9301
9302
9303 if test "$GCC" = yes; then
9304   USING_GCC_TRUE=
9305   USING_GCC_FALSE='#'
9306 else
9307   USING_GCC_TRUE='#'
9308   USING_GCC_FALSE=
9309 fi
9310
9311
9312 # We're in the tree with gcc, and need to include some of its headers.
9313 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9314
9315 if test "x${with_newlib}" = "xyes"; then
9316    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9317    # may not work correctly, because the compiler may not be able to
9318    # link executables.
9319
9320    # We assume newlib.  This lets us hard-code the functions we know
9321    # we'll have.
9322
9323 cat >>confdefs.h <<\_ACEOF
9324 #define HAVE_MEMMOVE 1
9325 _ACEOF
9326
9327
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_MEMCPY 1
9330 _ACEOF
9331
9332
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_STRERROR 1
9335 _ACEOF
9336
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_TIME 1
9340 _ACEOF
9341
9342
9343 cat >>confdefs.h <<\_ACEOF
9344 #define HAVE_GMTIME_R 1
9345 _ACEOF
9346
9347
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_LOCALTIME_R 1
9350 _ACEOF
9351
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_USLEEP_DECL 1
9355 _ACEOF
9356
9357    # This is only for POSIX threads.
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9361 _ACEOF
9362
9363    # We also assume we are using gcc, which provides alloca.
9364    cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_ALLOCA 1
9366 _ACEOF
9367
9368
9369    # Assume we do not have getuid and friends.
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define NO_GETUID 1
9373 _ACEOF
9374
9375    PLATFORMNET=NoNet
9376 else
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9413                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9414                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9415                    nl_langinfo setlocale \
9416                    inet_pton uname inet_ntoa \
9417                    fork execvp pipe sigaction ftruncate mmap \
9418                    getifaddrs
9419 do
9420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9421 echo "$as_me:$LINENO: checking for $ac_func" >&5
9422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_var+set}\" = set"; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   if test x$gcc_no_link = xyes; then
9427   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9429    { (exit 1); exit 1; }; }
9430 fi
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9439 #define $ac_func innocuous_$ac_func
9440
9441 /* System header to define __stub macros and hopefully few prototypes,
9442     which can conflict with char $ac_func (); below.
9443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9444     <limits.h> exists even on freestanding compilers.  */
9445
9446 #ifdef __STDC__
9447 # include <limits.h>
9448 #else
9449 # include <assert.h>
9450 #endif
9451
9452 #undef $ac_func
9453
9454 /* Override any gcc2 internal prototype to avoid an error.  */
9455 #ifdef __cplusplus
9456 extern "C"
9457 {
9458 #endif
9459 /* We use char because int might match the return type of a gcc2
9460    builtin and then its argument prototype would still apply.  */
9461 char $ac_func ();
9462 /* The GNU C library defines this for functions which it implements
9463     to always fail with ENOSYS.  Some functions are actually named
9464     something starting with __ and the normal name is an alias.  */
9465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9466 choke me
9467 #else
9468 char (*f) () = $ac_func;
9469 #endif
9470 #ifdef __cplusplus
9471 }
9472 #endif
9473
9474 int
9475 main ()
9476 {
9477 return f != $ac_func;
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484   (eval $ac_link) 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } &&
9491          { ac_try='test -z "$ac_c_werror_flag"
9492                          || test ! -s conftest.err'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; } &&
9498          { ac_try='test -s conftest$ac_exeext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   eval "$as_ac_var=yes"
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 eval "$as_ac_var=no"
9510 fi
9511 rm -f conftest.err conftest.$ac_objext \
9512       conftest$ac_exeext conftest.$ac_ext
9513 fi
9514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9516 if test `eval echo '${'$as_ac_var'}'` = yes; then
9517   cat >>confdefs.h <<_ACEOF
9518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9519 _ACEOF
9520
9521 fi
9522 done
9523
9524
9525
9526 for ac_func in inet_aton inet_addr
9527 do
9528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9529 echo "$as_me:$LINENO: checking for $ac_func" >&5
9530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9531 if eval "test \"\${$as_ac_var+set}\" = set"; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   if test x$gcc_no_link = xyes; then
9535   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9537    { (exit 1); exit 1; }; }
9538 fi
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9547 #define $ac_func innocuous_$ac_func
9548
9549 /* System header to define __stub macros and hopefully few prototypes,
9550     which can conflict with char $ac_func (); below.
9551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552     <limits.h> exists even on freestanding compilers.  */
9553
9554 #ifdef __STDC__
9555 # include <limits.h>
9556 #else
9557 # include <assert.h>
9558 #endif
9559
9560 #undef $ac_func
9561
9562 /* Override any gcc2 internal prototype to avoid an error.  */
9563 #ifdef __cplusplus
9564 extern "C"
9565 {
9566 #endif
9567 /* We use char because int might match the return type of a gcc2
9568    builtin and then its argument prototype would still apply.  */
9569 char $ac_func ();
9570 /* The GNU C library defines this for functions which it implements
9571     to always fail with ENOSYS.  Some functions are actually named
9572     something starting with __ and the normal name is an alias.  */
9573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9574 choke me
9575 #else
9576 char (*f) () = $ac_func;
9577 #endif
9578 #ifdef __cplusplus
9579 }
9580 #endif
9581
9582 int
9583 main ()
9584 {
9585 return f != $ac_func;
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592   (eval $ac_link) 2>conftest.er1
9593   ac_status=$?
9594   grep -v '^ *+' conftest.er1 >conftest.err
9595   rm -f conftest.er1
9596   cat conftest.err >&5
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -z "$ac_c_werror_flag"
9600                          || test ! -s conftest.err'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; } &&
9606          { ac_try='test -s conftest$ac_exeext'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   eval "$as_ac_var=yes"
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 eval "$as_ac_var=no"
9618 fi
9619 rm -f conftest.err conftest.$ac_objext \
9620       conftest$ac_exeext conftest.$ac_ext
9621 fi
9622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9624 if test `eval echo '${'$as_ac_var'}'` = yes; then
9625   cat >>confdefs.h <<_ACEOF
9626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9627 _ACEOF
9628  break
9629 fi
9630 done
9631
9632    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9634 if test "${ac_cv_header_stdc+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643 #include <stdlib.h>
9644 #include <stdarg.h>
9645 #include <string.h>
9646 #include <float.h>
9647
9648 int
9649 main ()
9650 {
9651
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658   (eval $ac_compile) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -z "$ac_c_werror_flag"
9666                          || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest.$ac_objext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_header_stdc=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_header_stdc=no
9684 fi
9685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9686
9687 if test $ac_cv_header_stdc = yes; then
9688   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9689   cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695 #include <string.h>
9696
9697 _ACEOF
9698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9699   $EGREP "memchr" >/dev/null 2>&1; then
9700   :
9701 else
9702   ac_cv_header_stdc=no
9703 fi
9704 rm -f conftest*
9705
9706 fi
9707
9708 if test $ac_cv_header_stdc = yes; then
9709   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9710   cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716 #include <stdlib.h>
9717
9718 _ACEOF
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720   $EGREP "free" >/dev/null 2>&1; then
9721   :
9722 else
9723   ac_cv_header_stdc=no
9724 fi
9725 rm -f conftest*
9726
9727 fi
9728
9729 if test $ac_cv_header_stdc = yes; then
9730   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9731   if test "$cross_compiling" = yes; then
9732   :
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740 #include <ctype.h>
9741 #if ((' ' & 0x0FF) == 0x020)
9742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9744 #else
9745 # define ISLOWER(c) \
9746                    (('a' <= (c) && (c) <= 'i') \
9747                      || ('j' <= (c) && (c) <= 'r') \
9748                      || ('s' <= (c) && (c) <= 'z'))
9749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9750 #endif
9751
9752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9753 int
9754 main ()
9755 {
9756   int i;
9757   for (i = 0; i < 256; i++)
9758     if (XOR (islower (i), ISLOWER (i))
9759         || toupper (i) != TOUPPER (i))
9760       exit(2);
9761   exit (0);
9762 }
9763 _ACEOF
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; }; then
9775   :
9776 else
9777   echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ( exit $ac_status )
9782 ac_cv_header_stdc=no
9783 fi
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 fi
9787 fi
9788 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9789 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9790 if test $ac_cv_header_stdc = yes; then
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define STDC_HEADERS 1
9794 _ACEOF
9795
9796 fi
9797
9798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9809                   inttypes.h stdint.h unistd.h
9810 do
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823 $ac_includes_default
9824
9825 #include <$ac_header>
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829   (eval $ac_compile) 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -z "$ac_c_werror_flag"
9837                          || test ! -s conftest.err'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; } &&
9843          { ac_try='test -s conftest.$ac_objext'
9844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845   (eval $ac_try) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   eval "$as_ac_Header=yes"
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 eval "$as_ac_Header=no"
9855 fi
9856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9857 fi
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9861   cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9863 _ACEOF
9864
9865 fi
9866
9867 done
9868
9869
9870
9871
9872
9873 for ac_header in execinfo.h unistd.h dlfcn.h
9874 do
9875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9877   echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 fi
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884 else
9885   # Is the header compilable?
9886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 $ac_includes_default
9895 #include <$ac_header>
9896 _ACEOF
9897 rm -f conftest.$ac_objext
9898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9899   (eval $ac_compile) 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag"
9907                          || test ! -s conftest.err'
9908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909   (eval $ac_try) 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); }; } &&
9913          { ac_try='test -s conftest.$ac_objext'
9914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915   (eval $ac_try) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; }; then
9919   ac_header_compiler=yes
9920 else
9921   echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_header_compiler=no
9925 fi
9926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928 echo "${ECHO_T}$ac_header_compiler" >&6
9929
9930 # Is the header present?
9931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
9940 _ACEOF
9941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } >/dev/null; then
9949   if test -s conftest.err; then
9950     ac_cpp_err=$ac_c_preproc_warn_flag
9951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9952   else
9953     ac_cpp_err=
9954   fi
9955 else
9956   ac_cpp_err=yes
9957 fi
9958 if test -z "$ac_cpp_err"; then
9959   ac_header_preproc=yes
9960 else
9961   echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964   ac_header_preproc=no
9965 fi
9966 rm -f conftest.err conftest.$ac_ext
9967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9968 echo "${ECHO_T}$ac_header_preproc" >&6
9969
9970 # So?  What about this header?
9971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972   yes:no: )
9973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9977     ac_header_preproc=yes
9978     ;;
9979   no:yes:* )
9980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9992     (
9993       cat <<\_ASBOX
9994 ## ---------------------------------- ##
9995 ## Report this to the libjava lists.  ##
9996 ## ---------------------------------- ##
9997 _ASBOX
9998     ) |
9999       sed "s/^/$as_me: WARNING:     /" >&2
10000     ;;
10001 esac
10002 echo "$as_me:$LINENO: checking for $ac_header" >&5
10003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   eval "$as_ac_Header=\$ac_header_preproc"
10008 fi
10009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10011
10012 fi
10013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10014   cat >>confdefs.h <<_ACEOF
10015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016 _ACEOF
10017
10018 fi
10019
10020 done
10021
10022    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10023    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10024 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10025 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-ldl  $LIBS"
10030 if test x$gcc_no_link = xyes; then
10031   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10033    { (exit 1); exit 1; }; }
10034 fi
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 /* Override any gcc2 internal prototype to avoid an error.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047    builtin and then its argument prototype would still apply.  */
10048 char dladdr ();
10049 int
10050 main ()
10051 {
10052 dladdr ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059   (eval $ac_link) 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -z "$ac_c_werror_flag"
10067                          || test ! -s conftest.err'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest$ac_exeext'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079   ac_cv_lib_dl_dladdr=yes
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 ac_cv_lib_dl_dladdr=no
10085 fi
10086 rm -f conftest.err conftest.$ac_objext \
10087       conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10092 if test $ac_cv_lib_dl_dladdr = yes; then
10093
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define HAVE_DLADDR 1
10097 _ACEOF
10098
10099 else
10100
10101        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10102 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10103 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-ldld  $LIBS"
10108 if test x$gcc_no_link = xyes; then
10109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10111    { (exit 1); exit 1; }; }
10112 fi
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119
10120 /* Override any gcc2 internal prototype to avoid an error.  */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125    builtin and then its argument prototype would still apply.  */
10126 char dladdr ();
10127 int
10128 main ()
10129 {
10130 dladdr ();
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137   (eval $ac_link) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest$ac_exeext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_lib_dld_dladdr=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_cv_lib_dld_dladdr=no
10163 fi
10164 rm -f conftest.err conftest.$ac_objext \
10165       conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10169 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10170 if test $ac_cv_lib_dld_dladdr = yes; then
10171
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_DLADDR 1
10175 _ACEOF
10176
10177 fi
10178
10179 fi
10180
10181
10182    if test x"$build" = x"$host"; then
10183      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10184 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10185 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   test "$cross_compiling" = yes &&
10189   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10190 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10191    { (exit 1); exit 1; }; }
10192 if test -r "/proc/self/exe"; then
10193   ac_cv_file__proc_self_exe=yes
10194 else
10195   ac_cv_file__proc_self_exe=no
10196 fi
10197 fi
10198 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10199 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10200 if test $ac_cv_file__proc_self_exe = yes; then
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE__PROC_SELF_EXE 1
10204 _ACEOF
10205
10206
10207
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_PROC_SELF_EXE 1
10210 _ACEOF
10211
10212 fi
10213
10214    else
10215      case $host in
10216      *-linux*)
10217
10218 cat >>confdefs.h <<\_ACEOF
10219 #define HAVE_PROC_SELF_EXE 1
10220 _ACEOF
10221
10222        ;;
10223      esac
10224    fi
10225
10226
10227       if test "X$prefix" = "XNONE"; then
10228     acl_final_prefix="$ac_default_prefix"
10229   else
10230     acl_final_prefix="$prefix"
10231   fi
10232   if test "X$exec_prefix" = "XNONE"; then
10233     acl_final_exec_prefix='${prefix}'
10234   else
10235     acl_final_exec_prefix="$exec_prefix"
10236   fi
10237   acl_save_prefix="$prefix"
10238   prefix="$acl_final_prefix"
10239   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10240   prefix="$acl_save_prefix"
10241
10242
10243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10244 if test "${with_gnu_ld+set}" = set; then
10245   withval="$with_gnu_ld"
10246   test "$withval" = no || with_gnu_ld=yes
10247 else
10248   with_gnu_ld=no
10249 fi;
10250 # Prepare PATH_SEPARATOR.
10251 # The user is always right.
10252 if test "${PATH_SEPARATOR+set}" != set; then
10253   echo "#! /bin/sh" >conf$$.sh
10254   echo  "exit 0"   >>conf$$.sh
10255   chmod +x conf$$.sh
10256   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10257     PATH_SEPARATOR=';'
10258   else
10259     PATH_SEPARATOR=:
10260   fi
10261   rm -f conf$$.sh
10262 fi
10263 ac_prog=ld
10264 if test "$GCC" = yes; then
10265   # Check if gcc -print-prog-name=ld gives a path.
10266   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10267 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10268   case $host in
10269   *-*-mingw*)
10270     # gcc leaves a trailing carriage return which upsets mingw
10271     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10272   *)
10273     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10274   esac
10275   case $ac_prog in
10276     # Accept absolute paths.
10277     [\\/]* | [A-Za-z]:[\\/]*)
10278       re_direlt='/[^/][^/]*/\.\./'
10279       # Canonicalize the path of ld
10280       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10281       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10282         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10283       done
10284       test -z "$LD" && LD="$ac_prog"
10285       ;;
10286   "")
10287     # If it fails, then pretend we aren't using GCC.
10288     ac_prog=ld
10289     ;;
10290   *)
10291     # If it is relative, then search for the first ld in PATH.
10292     with_gnu_ld=unknown
10293     ;;
10294   esac
10295 elif test "$with_gnu_ld" = yes; then
10296   echo "$as_me:$LINENO: checking for GNU ld" >&5
10297 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10298 else
10299   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10300 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10301 fi
10302 if test "${acl_cv_path_LD+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   if test -z "$LD"; then
10306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10307   for ac_dir in $PATH; do
10308     test -z "$ac_dir" && ac_dir=.
10309     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10310       acl_cv_path_LD="$ac_dir/$ac_prog"
10311       # Check to see if the program is GNU ld.  I'd rather use --version,
10312       # but apparently some GNU ld's only accept -v.
10313       # Break only if it was the GNU/non-GNU ld that we prefer.
10314       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10315         test "$with_gnu_ld" != no && break
10316       else
10317         test "$with_gnu_ld" != yes && break
10318       fi
10319     fi
10320   done
10321   IFS="$ac_save_ifs"
10322 else
10323   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10324 fi
10325 fi
10326
10327 LD="$acl_cv_path_LD"
10328 if test -n "$LD"; then
10329   echo "$as_me:$LINENO: result: $LD" >&5
10330 echo "${ECHO_T}$LD" >&6
10331 else
10332   echo "$as_me:$LINENO: result: no" >&5
10333 echo "${ECHO_T}no" >&6
10334 fi
10335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10337    { (exit 1); exit 1; }; }
10338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10340 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10344 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10345   acl_cv_prog_gnu_ld=yes
10346 else
10347   acl_cv_prog_gnu_ld=no
10348 fi
10349 fi
10350 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10351 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10352 with_gnu_ld=$acl_cv_prog_gnu_ld
10353
10354
10355
10356                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10357 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10358 if test "${acl_cv_rpath+set}" = set; then
10359   echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361
10362     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10363     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10364     . ./conftest.sh
10365     rm -f ./conftest.sh
10366     acl_cv_rpath=done
10367
10368 fi
10369 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10370 echo "${ECHO_T}$acl_cv_rpath" >&6
10371   wl="$acl_cv_wl"
10372   libext="$acl_cv_libext"
10373   shlibext="$acl_cv_shlibext"
10374   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10375   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10376   hardcode_direct="$acl_cv_hardcode_direct"
10377   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10378     # Check whether --enable-rpath or --disable-rpath was given.
10379 if test "${enable_rpath+set}" = set; then
10380   enableval="$enable_rpath"
10381   :
10382 else
10383   enable_rpath=yes
10384 fi;
10385
10386
10387
10388
10389
10390
10391
10392     use_additional=yes
10393
10394   acl_save_prefix="$prefix"
10395   prefix="$acl_final_prefix"
10396   acl_save_exec_prefix="$exec_prefix"
10397   exec_prefix="$acl_final_exec_prefix"
10398
10399     eval additional_includedir=\"$includedir\"
10400     eval additional_libdir=\"$libdir\"
10401
10402   exec_prefix="$acl_save_exec_prefix"
10403   prefix="$acl_save_prefix"
10404
10405
10406 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10407 if test "${with_libiconv_prefix+set}" = set; then
10408   withval="$with_libiconv_prefix"
10409
10410     if test "X$withval" = "Xno"; then
10411       use_additional=no
10412     else
10413       if test "X$withval" = "X"; then
10414
10415   acl_save_prefix="$prefix"
10416   prefix="$acl_final_prefix"
10417   acl_save_exec_prefix="$exec_prefix"
10418   exec_prefix="$acl_final_exec_prefix"
10419
10420           eval additional_includedir=\"$includedir\"
10421           eval additional_libdir=\"$libdir\"
10422
10423   exec_prefix="$acl_save_exec_prefix"
10424   prefix="$acl_save_prefix"
10425
10426       else
10427         additional_includedir="$withval/include"
10428         additional_libdir="$withval/lib"
10429       fi
10430     fi
10431
10432 fi;
10433       LIBICONV=
10434   LTLIBICONV=
10435   INCICONV=
10436   rpathdirs=
10437   ltrpathdirs=
10438   names_already_handled=
10439   names_next_round='iconv '
10440   while test -n "$names_next_round"; do
10441     names_this_round="$names_next_round"
10442     names_next_round=
10443     for name in $names_this_round; do
10444       already_handled=
10445       for n in $names_already_handled; do
10446         if test "$n" = "$name"; then
10447           already_handled=yes
10448           break
10449         fi
10450       done
10451       if test -z "$already_handled"; then
10452         names_already_handled="$names_already_handled $name"
10453                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10454         eval value=\"\$HAVE_LIB$uppername\"
10455         if test -n "$value"; then
10456           if test "$value" = yes; then
10457             eval value=\"\$LIB$uppername\"
10458             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10459             eval value=\"\$LTLIB$uppername\"
10460             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10461           else
10462                                     :
10463           fi
10464         else
10465                               found_dir=
10466           found_la=
10467           found_so=
10468           found_a=
10469           if test $use_additional = yes; then
10470             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10471               found_dir="$additional_libdir"
10472               found_so="$additional_libdir/lib$name.$shlibext"
10473               if test -f "$additional_libdir/lib$name.la"; then
10474                 found_la="$additional_libdir/lib$name.la"
10475               fi
10476             else
10477               if test -f "$additional_libdir/lib$name.$libext"; then
10478                 found_dir="$additional_libdir"
10479                 found_a="$additional_libdir/lib$name.$libext"
10480                 if test -f "$additional_libdir/lib$name.la"; then
10481                   found_la="$additional_libdir/lib$name.la"
10482                 fi
10483               fi
10484             fi
10485           fi
10486           if test "X$found_dir" = "X"; then
10487             for x in $LDFLAGS $LTLIBICONV; do
10488
10489   acl_save_prefix="$prefix"
10490   prefix="$acl_final_prefix"
10491   acl_save_exec_prefix="$exec_prefix"
10492   exec_prefix="$acl_final_exec_prefix"
10493   eval x=\"$x\"
10494   exec_prefix="$acl_save_exec_prefix"
10495   prefix="$acl_save_prefix"
10496
10497               case "$x" in
10498                 -L*)
10499                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10500                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10501                     found_dir="$dir"
10502                     found_so="$dir/lib$name.$shlibext"
10503                     if test -f "$dir/lib$name.la"; then
10504                       found_la="$dir/lib$name.la"
10505                     fi
10506                   else
10507                     if test -f "$dir/lib$name.$libext"; then
10508                       found_dir="$dir"
10509                       found_a="$dir/lib$name.$libext"
10510                       if test -f "$dir/lib$name.la"; then
10511                         found_la="$dir/lib$name.la"
10512                       fi
10513                     fi
10514                   fi
10515                   ;;
10516               esac
10517               if test "X$found_dir" != "X"; then
10518                 break
10519               fi
10520             done
10521           fi
10522           if test "X$found_dir" != "X"; then
10523                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10524             if test "X$found_so" != "X"; then
10525                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10526                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10527               else
10528                                                                                 haveit=
10529                 for x in $ltrpathdirs; do
10530                   if test "X$x" = "X$found_dir"; then
10531                     haveit=yes
10532                     break
10533                   fi
10534                 done
10535                 if test -z "$haveit"; then
10536                   ltrpathdirs="$ltrpathdirs $found_dir"
10537                 fi
10538                                 if test "$hardcode_direct" = yes; then
10539                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10540                 else
10541                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10542                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10543                                                             haveit=
10544                     for x in $rpathdirs; do
10545                       if test "X$x" = "X$found_dir"; then
10546                         haveit=yes
10547                         break
10548                       fi
10549                     done
10550                     if test -z "$haveit"; then
10551                       rpathdirs="$rpathdirs $found_dir"
10552                     fi
10553                   else
10554                                                                                 haveit=
10555                     for x in $LDFLAGS $LIBICONV; do
10556
10557   acl_save_prefix="$prefix"
10558   prefix="$acl_final_prefix"
10559   acl_save_exec_prefix="$exec_prefix"
10560   exec_prefix="$acl_final_exec_prefix"
10561   eval x=\"$x\"
10562   exec_prefix="$acl_save_exec_prefix"
10563   prefix="$acl_save_prefix"
10564
10565                       if test "X$x" = "X-L$found_dir"; then
10566                         haveit=yes
10567                         break
10568                       fi
10569                     done
10570                     if test -z "$haveit"; then
10571                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10572                     fi
10573                     if test "$hardcode_minus_L" != no; then
10574                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10575                     else
10576                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10577                     fi
10578                   fi
10579                 fi
10580               fi
10581             else
10582               if test "X$found_a" != "X"; then
10583                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10584               else
10585                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10586               fi
10587             fi
10588                         additional_includedir=
10589             case "$found_dir" in
10590               */lib | */lib/)
10591                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10592                 additional_includedir="$basedir/include"
10593                 ;;
10594             esac
10595             if test "X$additional_includedir" != "X"; then
10596                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10597                 haveit=
10598                 if test "X$additional_includedir" = "X/usr/local/include"; then
10599                   if test -n "$GCC"; then
10600                     case $host_os in
10601                       linux*) haveit=yes;;
10602                     esac
10603                   fi
10604                 fi
10605                 if test -z "$haveit"; then
10606                   for x in $CPPFLAGS $INCICONV; do
10607
10608   acl_save_prefix="$prefix"
10609   prefix="$acl_final_prefix"
10610   acl_save_exec_prefix="$exec_prefix"
10611   exec_prefix="$acl_final_exec_prefix"
10612   eval x=\"$x\"
10613   exec_prefix="$acl_save_exec_prefix"
10614   prefix="$acl_save_prefix"
10615
10616                     if test "X$x" = "X-I$additional_includedir"; then
10617                       haveit=yes
10618                       break
10619                     fi
10620                   done
10621                   if test -z "$haveit"; then
10622                     if test -d "$additional_includedir"; then
10623                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10624                     fi
10625                   fi
10626                 fi
10627               fi
10628             fi
10629                         if test -n "$found_la"; then
10630                                                         save_libdir="$libdir"
10631               case "$found_la" in
10632                 */* | *\\*) . "$found_la" ;;
10633                 *) . "./$found_la" ;;
10634               esac
10635               libdir="$save_libdir"
10636                             for dep in $dependency_libs; do
10637                 case "$dep" in
10638                   -L*)
10639                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10640                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10641                       haveit=
10642                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10643                         if test -n "$GCC"; then
10644                           case $host_os in
10645                             linux*) haveit=yes;;
10646                           esac
10647                         fi
10648                       fi
10649                       if test -z "$haveit"; then
10650                         haveit=
10651                         for x in $LDFLAGS $LIBICONV; do
10652
10653   acl_save_prefix="$prefix"
10654   prefix="$acl_final_prefix"
10655   acl_save_exec_prefix="$exec_prefix"
10656   exec_prefix="$acl_final_exec_prefix"
10657   eval x=\"$x\"
10658   exec_prefix="$acl_save_exec_prefix"
10659   prefix="$acl_save_prefix"
10660
10661                           if test "X$x" = "X-L$additional_libdir"; then
10662                             haveit=yes
10663                             break
10664                           fi
10665                         done
10666                         if test -z "$haveit"; then
10667                           if test -d "$additional_libdir"; then
10668                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10669                           fi
10670                         fi
10671                         haveit=
10672                         for x in $LDFLAGS $LTLIBICONV; do
10673
10674   acl_save_prefix="$prefix"
10675   prefix="$acl_final_prefix"
10676   acl_save_exec_prefix="$exec_prefix"
10677   exec_prefix="$acl_final_exec_prefix"
10678   eval x=\"$x\"
10679   exec_prefix="$acl_save_exec_prefix"
10680   prefix="$acl_save_prefix"
10681
10682                           if test "X$x" = "X-L$additional_libdir"; then
10683                             haveit=yes
10684                             break
10685                           fi
10686                         done
10687                         if test -z "$haveit"; then
10688                           if test -d "$additional_libdir"; then
10689                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10690                           fi
10691                         fi
10692                       fi
10693                     fi
10694                     ;;
10695                   -R*)
10696                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10697                     if test "$enable_rpath" != no; then
10698                                                                   haveit=
10699                       for x in $rpathdirs; do
10700                         if test "X$x" = "X$dir"; then
10701                           haveit=yes
10702                           break
10703                         fi
10704                       done
10705                       if test -z "$haveit"; then
10706                         rpathdirs="$rpathdirs $dir"
10707                       fi
10708                                                                   haveit=
10709                       for x in $ltrpathdirs; do
10710                         if test "X$x" = "X$dir"; then
10711                           haveit=yes
10712                           break
10713                         fi
10714                       done
10715                       if test -z "$haveit"; then
10716                         ltrpathdirs="$ltrpathdirs $dir"
10717                       fi
10718                     fi
10719                     ;;
10720                   -l*)
10721                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10722                     ;;
10723                   *.la)
10724                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10725                     ;;
10726                   *)
10727                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10728                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10729                     ;;
10730                 esac
10731               done
10732             fi
10733           else
10734                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10735             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10736           fi
10737         fi
10738       fi
10739     done
10740   done
10741   if test "X$rpathdirs" != "X"; then
10742     if test -n "$hardcode_libdir_separator"; then
10743                         alldirs=
10744       for found_dir in $rpathdirs; do
10745         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10746       done
10747             acl_save_libdir="$libdir"
10748       libdir="$alldirs"
10749       eval flag=\"$hardcode_libdir_flag_spec\"
10750       libdir="$acl_save_libdir"
10751       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10752     else
10753             for found_dir in $rpathdirs; do
10754         acl_save_libdir="$libdir"
10755         libdir="$found_dir"
10756         eval flag=\"$hardcode_libdir_flag_spec\"
10757         libdir="$acl_save_libdir"
10758         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10759       done
10760     fi
10761   fi
10762   if test "X$ltrpathdirs" != "X"; then
10763             for found_dir in $ltrpathdirs; do
10764       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10765     done
10766   fi
10767
10768
10769
10770
10771
10772
10773
10774           am_save_CPPFLAGS="$CPPFLAGS"
10775
10776   for element in $INCICONV; do
10777     haveit=
10778     for x in $CPPFLAGS; do
10779
10780   acl_save_prefix="$prefix"
10781   prefix="$acl_final_prefix"
10782   acl_save_exec_prefix="$exec_prefix"
10783   exec_prefix="$acl_final_exec_prefix"
10784   eval x=\"$x\"
10785   exec_prefix="$acl_save_exec_prefix"
10786   prefix="$acl_save_prefix"
10787
10788       if test "X$x" = "X$element"; then
10789         haveit=yes
10790         break
10791       fi
10792     done
10793     if test -z "$haveit"; then
10794       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10795     fi
10796   done
10797
10798
10799   echo "$as_me:$LINENO: checking for iconv" >&5
10800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10801 if test "${am_cv_func_iconv+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804
10805     am_cv_func_iconv="no, consider installing GNU libiconv"
10806     am_cv_lib_iconv=no
10807     if test x$gcc_no_link = xyes; then
10808   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10810    { (exit 1); exit 1; }; }
10811 fi
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818 #include <stdlib.h>
10819 #include <iconv.h>
10820 int
10821 main ()
10822 {
10823 iconv_t cd = iconv_open("","");
10824        iconv(cd,NULL,NULL,NULL,NULL);
10825        iconv_close(cd);
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832   (eval $ac_link) 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag"
10840                          || test ! -s conftest.err'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest$ac_exeext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   am_cv_func_iconv=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 fi
10858 rm -f conftest.err conftest.$ac_objext \
10859       conftest$ac_exeext conftest.$ac_ext
10860     if test "$am_cv_func_iconv" != yes; then
10861       am_save_LIBS="$LIBS"
10862       LIBS="$LIBS $LIBICONV"
10863       if test x$gcc_no_link = xyes; then
10864   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10866    { (exit 1); exit 1; }; }
10867 fi
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #include <stdlib.h>
10875 #include <iconv.h>
10876 int
10877 main ()
10878 {
10879 iconv_t cd = iconv_open("","");
10880          iconv(cd,NULL,NULL,NULL,NULL);
10881          iconv_close(cd);
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888   (eval $ac_link) 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag"
10896                          || test ! -s conftest.err'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   am_cv_lib_iconv=yes
10909         am_cv_func_iconv=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 fi
10915 rm -f conftest.err conftest.$ac_objext \
10916       conftest$ac_exeext conftest.$ac_ext
10917       LIBS="$am_save_LIBS"
10918     fi
10919
10920 fi
10921 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10922 echo "${ECHO_T}$am_cv_func_iconv" >&6
10923   if test "$am_cv_func_iconv" = yes; then
10924
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_ICONV 1
10927 _ACEOF
10928
10929   fi
10930   if test "$am_cv_lib_iconv" = yes; then
10931     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10932 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10933     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10934 echo "${ECHO_T}$LIBICONV" >&6
10935   else
10936             CPPFLAGS="$am_save_CPPFLAGS"
10937     LIBICONV=
10938     LTLIBICONV=
10939   fi
10940
10941
10942
10943   if test "$am_cv_func_iconv" = yes; then
10944     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10945 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10946     if test "${am_cv_proto_iconv+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949
10950       cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956
10957 #include <stdlib.h>
10958 #include <iconv.h>
10959 extern
10960 #ifdef __cplusplus
10961 "C"
10962 #endif
10963 #if defined(__STDC__) || defined(__cplusplus)
10964 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10965 #else
10966 size_t iconv();
10967 #endif
10968
10969 int
10970 main ()
10971 {
10972
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979   (eval $ac_compile) 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } &&
10986          { ac_try='test -z "$ac_c_werror_flag"
10987                          || test ! -s conftest.err'
10988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989   (eval $ac_try) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); }; } &&
10993          { ac_try='test -s conftest.$ac_objext'
10994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995   (eval $ac_try) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   am_cv_proto_iconv_arg1=""
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004 am_cv_proto_iconv_arg1="const"
11005 fi
11006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11007       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);"
11008 fi
11009
11010     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11011     echo "$as_me:$LINENO: result: ${ac_t:-
11012          }$am_cv_proto_iconv" >&5
11013 echo "${ECHO_T}${ac_t:-
11014          }$am_cv_proto_iconv" >&6
11015
11016 cat >>confdefs.h <<_ACEOF
11017 #define ICONV_CONST $am_cv_proto_iconv_arg1
11018 _ACEOF
11019
11020   fi
11021
11022
11023   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11024 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11025 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   if test x$gcc_no_link = xyes; then
11029   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11031    { (exit 1); exit 1; }; }
11032 fi
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <locale.h>
11040 int
11041 main ()
11042 {
11043 return LC_MESSAGES
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050   (eval $ac_link) 2>conftest.er1
11051   ac_status=$?
11052   grep -v '^ *+' conftest.er1 >conftest.err
11053   rm -f conftest.er1
11054   cat conftest.err >&5
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } &&
11057          { ac_try='test -z "$ac_c_werror_flag"
11058                          || test ! -s conftest.err'
11059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060   (eval $ac_try) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; } &&
11064          { ac_try='test -s conftest$ac_exeext'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   am_cv_val_LC_MESSAGES=yes
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 am_cv_val_LC_MESSAGES=no
11076 fi
11077 rm -f conftest.err conftest.$ac_objext \
11078       conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11081 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11082   if test $am_cv_val_LC_MESSAGES = yes; then
11083
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_LC_MESSAGES 1
11086 _ACEOF
11087
11088   fi
11089
11090    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11092 if test "${ac_cv_struct_tm+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 #include <sys/types.h>
11102 #include <time.h>
11103
11104 int
11105 main ()
11106 {
11107 struct tm *tp; tp->tm_sec;
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114   (eval $ac_compile) 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } &&
11121          { ac_try='test -z "$ac_c_werror_flag"
11122                          || test ! -s conftest.err'
11123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124   (eval $ac_try) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   ac_cv_struct_tm=time.h
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_struct_tm=sys/time.h
11140 fi
11141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11142 fi
11143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11145 if test $ac_cv_struct_tm = sys/time.h; then
11146
11147 cat >>confdefs.h <<\_ACEOF
11148 #define TM_IN_SYS_TIME 1
11149 _ACEOF
11150
11151 fi
11152
11153 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11154 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11155 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164 #include <sys/types.h>
11165 #include <$ac_cv_struct_tm>
11166
11167
11168 int
11169 main ()
11170 {
11171 static struct tm ac_aggr;
11172 if (ac_aggr.tm_zone)
11173 return 0;
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180   (eval $ac_compile) 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag"
11188                          || test ! -s conftest.err'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; } &&
11194          { ac_try='test -s conftest.$ac_objext'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   ac_cv_member_struct_tm_tm_zone=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h.  */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h.  */
11211 #include <sys/types.h>
11212 #include <$ac_cv_struct_tm>
11213
11214
11215 int
11216 main ()
11217 {
11218 static struct tm ac_aggr;
11219 if (sizeof ac_aggr.tm_zone)
11220 return 0;
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227   (eval $ac_compile) 2>conftest.er1
11228   ac_status=$?
11229   grep -v '^ *+' conftest.er1 >conftest.err
11230   rm -f conftest.er1
11231   cat conftest.err >&5
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -z "$ac_c_werror_flag"
11235                          || test ! -s conftest.err'
11236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237   (eval $ac_try) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; } &&
11241          { ac_try='test -s conftest.$ac_objext'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; }; then
11247   ac_cv_member_struct_tm_tm_zone=yes
11248 else
11249   echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252 ac_cv_member_struct_tm_tm_zone=no
11253 fi
11254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11259 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11260 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_STRUCT_TM_TM_ZONE 1
11264 _ACEOF
11265
11266
11267 fi
11268
11269 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11270
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_TM_ZONE 1
11273 _ACEOF
11274
11275 else
11276   echo "$as_me:$LINENO: checking for tzname" >&5
11277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11278 if test "${ac_cv_var_tzname+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   if test x$gcc_no_link = xyes; then
11282   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11284    { (exit 1); exit 1; }; }
11285 fi
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292 #include <time.h>
11293 #ifndef tzname /* For SGI.  */
11294 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11295 #endif
11296
11297 int
11298 main ()
11299 {
11300 atoi(*tzname);
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307   (eval $ac_link) 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -z "$ac_c_werror_flag"
11315                          || test ! -s conftest.err'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   ac_cv_var_tzname=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_cv_var_tzname=no
11333 fi
11334 rm -f conftest.err conftest.$ac_objext \
11335       conftest$ac_exeext conftest.$ac_ext
11336 fi
11337 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11338 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11339   if test $ac_cv_var_tzname = yes; then
11340
11341 cat >>confdefs.h <<\_ACEOF
11342 #define HAVE_TZNAME 1
11343 _ACEOF
11344
11345   fi
11346 fi
11347
11348
11349
11350
11351 for ac_func in gethostbyname_r
11352 do
11353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 echo "$as_me:$LINENO: checking for $ac_func" >&5
11355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11356 if eval "test \"\${$as_ac_var+set}\" = set"; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   if test x$gcc_no_link = xyes; then
11360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11362    { (exit 1); exit 1; }; }
11363 fi
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11372 #define $ac_func innocuous_$ac_func
11373
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func (); below.
11376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377     <limits.h> exists even on freestanding compilers.  */
11378
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11384
11385 #undef $ac_func
11386
11387 /* Override any gcc2 internal prototype to avoid an error.  */
11388 #ifdef __cplusplus
11389 extern "C"
11390 {
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393    builtin and then its argument prototype would still apply.  */
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396     to always fail with ENOSYS.  Some functions are actually named
11397     something starting with __ and the normal name is an alias.  */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 choke me
11400 #else
11401 char (*f) () = $ac_func;
11402 #endif
11403 #ifdef __cplusplus
11404 }
11405 #endif
11406
11407 int
11408 main ()
11409 {
11410 return f != $ac_func;
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417   (eval $ac_link) 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } &&
11424          { ac_try='test -z "$ac_c_werror_flag"
11425                          || test ! -s conftest.err'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; } &&
11431          { ac_try='test -s conftest$ac_exeext'
11432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433   (eval $ac_try) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; }; then
11437   eval "$as_ac_var=yes"
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 eval "$as_ac_var=no"
11443 fi
11444 rm -f conftest.err conftest.$ac_objext \
11445       conftest$ac_exeext conftest.$ac_ext
11446 fi
11447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11453
11454
11455 cat >>confdefs.h <<\_ACEOF
11456 #define HAVE_GETHOSTBYNAME_R 1
11457 _ACEOF
11458
11459      # There are two different kinds of gethostbyname_r.
11460      # We look for the one that returns `int'.
11461      # Hopefully this check is robust enough.
11462      cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 #include <netdb.h>
11469
11470 _ACEOF
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11473
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define GETHOSTBYNAME_R_RETURNS_INT 1
11477 _ACEOF
11478
11479 fi
11480 rm -f conftest*
11481
11482
11483      case " $GCINCS " in
11484      *" -D_REENTRANT "*) ;;
11485      *)
11486                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11487 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11488 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491    ac_ext=cc
11492 ac_cpp='$CXXCPP $CPPFLAGS'
11493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11496
11497           cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 #include <netdb.h>
11504 int
11505 main ()
11506 {
11507 gethostbyname_r("", 0, 0);
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514   (eval $ac_compile) 2>conftest.er1
11515   ac_status=$?
11516   grep -v '^ *+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } &&
11521          { ac_try='test -z "$ac_cxx_werror_flag"
11522                          || test ! -s conftest.err'
11523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524   (eval $ac_try) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; } &&
11528          { ac_try='test -s conftest.$ac_objext'
11529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530   (eval $ac_try) 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); }; }; then
11534   libjava_cv_gethostbyname_r_needs_reentrant=no
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539                 CPPFLAGS_SAVE="$CPPFLAGS"
11540                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11541                 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 #include <netdb.h>
11548 int
11549 main ()
11550 {
11551 gethostbyname_r("", 0, 0);
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558   (eval $ac_compile) 2>conftest.er1
11559   ac_status=$?
11560   grep -v '^ *+' conftest.er1 >conftest.err
11561   rm -f conftest.er1
11562   cat conftest.err >&5
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); } &&
11565          { ac_try='test -z "$ac_cxx_werror_flag"
11566                          || test ! -s conftest.err'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574   (eval $ac_try) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   libjava_cv_gethostbyname_r_needs_reentrant=yes
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 libjava_cv_gethostbyname_r_needs_reentrant=fail
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586                 CPPFLAGS="$CPPFLAGS_SAVE"
11587
11588 fi
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590           ac_ext=c
11591 ac_cpp='$CPP $CPPFLAGS'
11592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11595
11596
11597 fi
11598 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11599 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11600         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11601
11602 cat >>confdefs.h <<\_ACEOF
11603 #define _REENTRANT 1
11604 _ACEOF
11605
11606         fi
11607      ;;
11608      esac
11609
11610      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11611 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11612 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615         cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621
11622 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11623 # define _REENTRANT 1
11624 #endif
11625 #include <netdb.h>
11626 int
11627 main ()
11628 {
11629 struct hostent_data data;
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636   (eval $ac_compile) 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -z "$ac_c_werror_flag"
11644                          || test ! -s conftest.err'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; } &&
11650          { ac_try='test -s conftest.$ac_objext'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; }; then
11656   libjava_cv_struct_hostent_data=yes
11657 else
11658   echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 libjava_cv_struct_hostent_data=no
11662 fi
11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 fi
11665 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11666 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11667      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11668
11669 cat >>confdefs.h <<\_ACEOF
11670 #define HAVE_STRUCT_HOSTENT_DATA 1
11671 _ACEOF
11672
11673      fi
11674
11675 fi
11676 done
11677
11678
11679    # FIXME: libjava source code expects to find a prototype for
11680    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11681    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11682    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11683    # linkage check is enough, yet C++ code requires proper prototypes.)
11684    cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 #include <netdb.h>
11691
11692 _ACEOF
11693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11695
11696
11697 for ac_func in gethostbyaddr_r
11698 do
11699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11700 echo "$as_me:$LINENO: checking for $ac_func" >&5
11701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11702 if eval "test \"\${$as_ac_var+set}\" = set"; then
11703   echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705   if test x$gcc_no_link = xyes; then
11706   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11708    { (exit 1); exit 1; }; }
11709 fi
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11718 #define $ac_func innocuous_$ac_func
11719
11720 /* System header to define __stub macros and hopefully few prototypes,
11721     which can conflict with char $ac_func (); below.
11722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723     <limits.h> exists even on freestanding compilers.  */
11724
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11730
11731 #undef $ac_func
11732
11733 /* Override any gcc2 internal prototype to avoid an error.  */
11734 #ifdef __cplusplus
11735 extern "C"
11736 {
11737 #endif
11738 /* We use char because int might match the return type of a gcc2
11739    builtin and then its argument prototype would still apply.  */
11740 char $ac_func ();
11741 /* The GNU C library defines this for functions which it implements
11742     to always fail with ENOSYS.  Some functions are actually named
11743     something starting with __ and the normal name is an alias.  */
11744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11745 choke me
11746 #else
11747 char (*f) () = $ac_func;
11748 #endif
11749 #ifdef __cplusplus
11750 }
11751 #endif
11752
11753 int
11754 main ()
11755 {
11756 return f != $ac_func;
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763   (eval $ac_link) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag"
11771                          || test ! -s conftest.err'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; } &&
11777          { ac_try='test -s conftest$ac_exeext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   eval "$as_ac_var=yes"
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 eval "$as_ac_var=no"
11789 fi
11790 rm -f conftest.err conftest.$ac_objext \
11791       conftest$ac_exeext conftest.$ac_ext
11792 fi
11793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796   cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 _ACEOF
11799
11800
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_GETHOSTBYADDR_R 1
11803 _ACEOF
11804
11805      # There are two different kinds of gethostbyaddr_r.
11806      # We look for the one that returns `int'.
11807      # Hopefully this check is robust enough.
11808      cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 #include <netdb.h>
11815
11816 _ACEOF
11817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11818   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11819
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define GETHOSTBYADDR_R_RETURNS_INT 1
11823 _ACEOF
11824
11825 fi
11826 rm -f conftest*
11827
11828 fi
11829 done
11830
11831 fi
11832 rm -f conftest*
11833
11834
11835
11836 for ac_func in gethostname
11837 do
11838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11839 echo "$as_me:$LINENO: checking for $ac_func" >&5
11840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11841 if eval "test \"\${$as_ac_var+set}\" = set"; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   if test x$gcc_no_link = xyes; then
11845   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11847    { (exit 1); exit 1; }; }
11848 fi
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11857 #define $ac_func innocuous_$ac_func
11858
11859 /* System header to define __stub macros and hopefully few prototypes,
11860     which can conflict with char $ac_func (); below.
11861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862     <limits.h> exists even on freestanding compilers.  */
11863
11864 #ifdef __STDC__
11865 # include <limits.h>
11866 #else
11867 # include <assert.h>
11868 #endif
11869
11870 #undef $ac_func
11871
11872 /* Override any gcc2 internal prototype to avoid an error.  */
11873 #ifdef __cplusplus
11874 extern "C"
11875 {
11876 #endif
11877 /* We use char because int might match the return type of a gcc2
11878    builtin and then its argument prototype would still apply.  */
11879 char $ac_func ();
11880 /* The GNU C library defines this for functions which it implements
11881     to always fail with ENOSYS.  Some functions are actually named
11882     something starting with __ and the normal name is an alias.  */
11883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 choke me
11885 #else
11886 char (*f) () = $ac_func;
11887 #endif
11888 #ifdef __cplusplus
11889 }
11890 #endif
11891
11892 int
11893 main ()
11894 {
11895 return f != $ac_func;
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest$ac_exeext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   eval "$as_ac_var=yes"
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 eval "$as_ac_var=no"
11928 fi
11929 rm -f conftest.err conftest.$ac_objext \
11930       conftest$ac_exeext conftest.$ac_ext
11931 fi
11932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11934 if test `eval echo '${'$as_ac_var'}'` = yes; then
11935   cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 _ACEOF
11938
11939
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_GETHOSTNAME 1
11942 _ACEOF
11943
11944      cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950 #include <unistd.h>
11951
11952 _ACEOF
11953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11954   $EGREP "gethostname" >/dev/null 2>&1; then
11955
11956
11957 cat >>confdefs.h <<\_ACEOF
11958 #define HAVE_GETHOSTNAME_DECL 1
11959 _ACEOF
11960
11961 fi
11962 rm -f conftest*
11963
11964 fi
11965 done
11966
11967
11968
11969 for ac_func in usleep
11970 do
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11974 if eval "test \"\${$as_ac_var+set}\" = set"; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977   if test x$gcc_no_link = xyes; then
11978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11980    { (exit 1); exit 1; }; }
11981 fi
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11990 #define $ac_func innocuous_$ac_func
11991
11992 /* System header to define __stub macros and hopefully few prototypes,
11993     which can conflict with char $ac_func (); below.
11994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995     <limits.h> exists even on freestanding compilers.  */
11996
11997 #ifdef __STDC__
11998 # include <limits.h>
11999 #else
12000 # include <assert.h>
12001 #endif
12002
12003 #undef $ac_func
12004
12005 /* Override any gcc2 internal prototype to avoid an error.  */
12006 #ifdef __cplusplus
12007 extern "C"
12008 {
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011    builtin and then its argument prototype would still apply.  */
12012 char $ac_func ();
12013 /* The GNU C library defines this for functions which it implements
12014     to always fail with ENOSYS.  Some functions are actually named
12015     something starting with __ and the normal name is an alias.  */
12016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 choke me
12018 #else
12019 char (*f) () = $ac_func;
12020 #endif
12021 #ifdef __cplusplus
12022 }
12023 #endif
12024
12025 int
12026 main ()
12027 {
12028 return f != $ac_func;
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035   (eval $ac_link) 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -z "$ac_c_werror_flag"
12043                          || test ! -s conftest.err'
12044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045   (eval $ac_try) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; } &&
12049          { ac_try='test -s conftest$ac_exeext'
12050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051   (eval $ac_try) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; }; then
12055   eval "$as_ac_var=yes"
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 eval "$as_ac_var=no"
12061 fi
12062 rm -f conftest.err conftest.$ac_objext \
12063       conftest$ac_exeext conftest.$ac_ext
12064 fi
12065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072      cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078 #include <unistd.h>
12079
12080 _ACEOF
12081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082   $EGREP "usleep" >/dev/null 2>&1; then
12083
12084
12085 cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_USLEEP_DECL 1
12087 _ACEOF
12088
12089 fi
12090 rm -f conftest*
12091
12092 fi
12093 done
12094
12095
12096    # Look for these functions in the thread library, but only bother
12097    # if using POSIX threads.
12098    if test "$THREADS" = posix; then
12099       save_LIBS="$LIBS"
12100       LIBS="$LIBS $THREADLIBS"
12101       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12102       # E.g., Solaris.
12103
12104
12105 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12106 do
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_var+set}\" = set"; then
12111   echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113   if test x$gcc_no_link = xyes; then
12114   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12116    { (exit 1); exit 1; }; }
12117 fi
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12126 #define $ac_func innocuous_$ac_func
12127
12128 /* System header to define __stub macros and hopefully few prototypes,
12129     which can conflict with char $ac_func (); below.
12130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131     <limits.h> exists even on freestanding compilers.  */
12132
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138
12139 #undef $ac_func
12140
12141 /* Override any gcc2 internal prototype to avoid an error.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 {
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150     to always fail with ENOSYS.  Some functions are actually named
12151     something starting with __ and the normal name is an alias.  */
12152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12153 choke me
12154 #else
12155 char (*f) () = $ac_func;
12156 #endif
12157 #ifdef __cplusplus
12158 }
12159 #endif
12160
12161 int
12162 main ()
12163 {
12164 return f != $ac_func;
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171   (eval $ac_link) 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -z "$ac_c_werror_flag"
12179                          || test ! -s conftest.err'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; } &&
12185          { ac_try='test -s conftest$ac_exeext'
12186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187   (eval $ac_try) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); }; }; then
12191   eval "$as_ac_var=yes"
12192 else
12193   echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 eval "$as_ac_var=no"
12197 fi
12198 rm -f conftest.err conftest.$ac_objext \
12199       conftest$ac_exeext conftest.$ac_ext
12200 fi
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204   cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 _ACEOF
12207
12208 fi
12209 done
12210
12211
12212       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12213       # Solaris 7 the name librt is preferred.
12214
12215 for ac_func in sched_yield
12216 do
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_var+set}\" = set"; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   if test x$gcc_no_link = xyes; then
12224   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12226    { (exit 1); exit 1; }; }
12227 fi
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12236 #define $ac_func innocuous_$ac_func
12237
12238 /* System header to define __stub macros and hopefully few prototypes,
12239     which can conflict with char $ac_func (); below.
12240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241     <limits.h> exists even on freestanding compilers.  */
12242
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12248
12249 #undef $ac_func
12250
12251 /* Override any gcc2 internal prototype to avoid an error.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 {
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257    builtin and then its argument prototype would still apply.  */
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260     to always fail with ENOSYS.  Some functions are actually named
12261     something starting with __ and the normal name is an alias.  */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 char (*f) () = $ac_func;
12266 #endif
12267 #ifdef __cplusplus
12268 }
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274 return f != $ac_func;
12275   ;
12276   return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281   (eval $ac_link) 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag"
12289                          || test ! -s conftest.err'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   eval "$as_ac_var=yes"
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 eval "$as_ac_var=no"
12307 fi
12308 rm -f conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314   cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12317
12318 else
12319
12320         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12321 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12322 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lrt  $LIBS"
12327 if test x$gcc_no_link = xyes; then
12328   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12330    { (exit 1); exit 1; }; }
12331 fi
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338
12339 /* Override any gcc2 internal prototype to avoid an error.  */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 /* We use char because int might match the return type of a gcc2
12344    builtin and then its argument prototype would still apply.  */
12345 char sched_yield ();
12346 int
12347 main ()
12348 {
12349 sched_yield ();
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356   (eval $ac_link) 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -z "$ac_c_werror_flag"
12364                          || test ! -s conftest.err'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; } &&
12370          { ac_try='test -s conftest$ac_exeext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_lib_rt_sched_yield=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_cv_lib_rt_sched_yield=no
12382 fi
12383 rm -f conftest.err conftest.$ac_objext \
12384       conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12388 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12389 if test $ac_cv_lib_rt_sched_yield = yes; then
12390
12391           cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_SCHED_YIELD 1
12393 _ACEOF
12394
12395           THREADLIBS="$THREADLIBS -lrt"
12396           THREADSPEC="$THREADSPEC -lrt"
12397 else
12398
12399           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12400 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12401 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lposix4  $LIBS"
12406 if test x$gcc_no_link = xyes; then
12407   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409    { (exit 1); exit 1; }; }
12410 fi
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417
12418 /* Override any gcc2 internal prototype to avoid an error.  */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423    builtin and then its argument prototype would still apply.  */
12424 char sched_yield ();
12425 int
12426 main ()
12427 {
12428 sched_yield ();
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435   (eval $ac_link) 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -z "$ac_c_werror_flag"
12443                          || test ! -s conftest.err'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; } &&
12449          { ac_try='test -s conftest$ac_exeext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_lib_posix4_sched_yield=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_cv_lib_posix4_sched_yield=no
12461 fi
12462 rm -f conftest.err conftest.$ac_objext \
12463       conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12467 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12468 if test $ac_cv_lib_posix4_sched_yield = yes; then
12469
12470             cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_SCHED_YIELD 1
12472 _ACEOF
12473
12474             THREADLIBS="$THREADLIBS -lposix4"
12475             THREADSPEC="$THREADSPEC -lposix4"
12476 fi
12477
12478 fi
12479
12480 fi
12481 done
12482
12483
12484       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12485 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12486 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   ac_check_lib_save_LIBS=$LIBS
12490 LIBS="-lrt  $LIBS"
12491 if test x$gcc_no_link = xyes; then
12492   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12494    { (exit 1); exit 1; }; }
12495 fi
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503 /* Override any gcc2 internal prototype to avoid an error.  */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 /* We use char because int might match the return type of a gcc2
12508    builtin and then its argument prototype would still apply.  */
12509 char clock_gettime ();
12510 int
12511 main ()
12512 {
12513 clock_gettime ();
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520   (eval $ac_link) 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } &&
12527          { ac_try='test -z "$ac_c_werror_flag"
12528                          || test ! -s conftest.err'
12529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530   (eval $ac_try) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; } &&
12534          { ac_try='test -s conftest$ac_exeext'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_cv_lib_rt_clock_gettime=yes
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ac_cv_lib_rt_clock_gettime=no
12546 fi
12547 rm -f conftest.err conftest.$ac_objext \
12548       conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12550 fi
12551 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12552 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12553 if test $ac_cv_lib_rt_clock_gettime = yes; then
12554
12555
12556 cat >>confdefs.h <<\_ACEOF
12557 #define HAVE_CLOCK_GETTIME 1
12558 _ACEOF
12559
12560          case "$THREADSPEC" in
12561            *-lrt*) ;;
12562            *)
12563              THREADSPEC="$THREADSPEC -lrt"
12564              THREADLIBS="$THREADLIBS -lrt"
12565              ;;
12566          esac
12567 fi
12568
12569
12570       LIBS="$save_LIBS"
12571
12572       # We can save a little space at runtime if the mutex has m_count
12573       # or __m_count.  This is a nice hack for Linux.
12574       cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580 #include <pthread.h>
12581 int
12582 main ()
12583 {
12584
12585           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12586
12587   ;
12588   return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593   (eval $ac_compile) 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } &&
12600          { ac_try='test -z "$ac_c_werror_flag"
12601                          || test ! -s conftest.err'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; } &&
12607          { ac_try='test -s conftest.$ac_objext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12616 _ACEOF
12617
12618 else
12619   echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622
12623         cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629 #include <pthread.h>
12630 int
12631 main ()
12632 {
12633
12634             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12635
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642   (eval $ac_compile) 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } &&
12649          { ac_try='test -z "$ac_c_werror_flag"
12650                          || test ! -s conftest.err'
12651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652   (eval $ac_try) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); }; } &&
12656          { ac_try='test -s conftest.$ac_objext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662
12663 cat >>confdefs.h <<\_ACEOF
12664 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12665 _ACEOF
12666
12667 else
12668   echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12670
12671 fi
12672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673 fi
12674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12675    fi
12676
12677    # We require a way to get the time.
12678    time_found=no
12679
12680
12681
12682 for ac_func in gettimeofday time ftime
12683 do
12684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12685 echo "$as_me:$LINENO: checking for $ac_func" >&5
12686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12687 if eval "test \"\${$as_ac_var+set}\" = set"; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   if test x$gcc_no_link = xyes; then
12691   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12693    { (exit 1); exit 1; }; }
12694 fi
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12703 #define $ac_func innocuous_$ac_func
12704
12705 /* System header to define __stub macros and hopefully few prototypes,
12706     which can conflict with char $ac_func (); below.
12707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12708     <limits.h> exists even on freestanding compilers.  */
12709
12710 #ifdef __STDC__
12711 # include <limits.h>
12712 #else
12713 # include <assert.h>
12714 #endif
12715
12716 #undef $ac_func
12717
12718 /* Override any gcc2 internal prototype to avoid an error.  */
12719 #ifdef __cplusplus
12720 extern "C"
12721 {
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724    builtin and then its argument prototype would still apply.  */
12725 char $ac_func ();
12726 /* The GNU C library defines this for functions which it implements
12727     to always fail with ENOSYS.  Some functions are actually named
12728     something starting with __ and the normal name is an alias.  */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 char (*f) () = $ac_func;
12733 #endif
12734 #ifdef __cplusplus
12735 }
12736 #endif
12737
12738 int
12739 main ()
12740 {
12741 return f != $ac_func;
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -z "$ac_c_werror_flag"
12756                          || test ! -s conftest.err'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; } &&
12762          { ac_try='test -s conftest$ac_exeext'
12763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764   (eval $ac_try) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); }; }; then
12768   eval "$as_ac_var=yes"
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 eval "$as_ac_var=no"
12774 fi
12775 rm -f conftest.err conftest.$ac_objext \
12776       conftest$ac_exeext conftest.$ac_ext
12777 fi
12778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781   cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 _ACEOF
12784  time_found=yes
12785 fi
12786 done
12787
12788    if test "$time_found" = no; then
12789       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12790 echo "$as_me: error: no function found to get the time" >&2;}
12791    { (exit 1); exit 1; }; }
12792    fi
12793
12794
12795 for ac_func in memmove
12796 do
12797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12798 echo "$as_me:$LINENO: checking for $ac_func" >&5
12799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_var+set}\" = set"; then
12801   echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803   if test x$gcc_no_link = xyes; then
12804   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12806    { (exit 1); exit 1; }; }
12807 fi
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12816 #define $ac_func innocuous_$ac_func
12817
12818 /* System header to define __stub macros and hopefully few prototypes,
12819     which can conflict with char $ac_func (); below.
12820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12821     <limits.h> exists even on freestanding compilers.  */
12822
12823 #ifdef __STDC__
12824 # include <limits.h>
12825 #else
12826 # include <assert.h>
12827 #endif
12828
12829 #undef $ac_func
12830
12831 /* Override any gcc2 internal prototype to avoid an error.  */
12832 #ifdef __cplusplus
12833 extern "C"
12834 {
12835 #endif
12836 /* We use char because int might match the return type of a gcc2
12837    builtin and then its argument prototype would still apply.  */
12838 char $ac_func ();
12839 /* The GNU C library defines this for functions which it implements
12840     to always fail with ENOSYS.  Some functions are actually named
12841     something starting with __ and the normal name is an alias.  */
12842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12843 choke me
12844 #else
12845 char (*f) () = $ac_func;
12846 #endif
12847 #ifdef __cplusplus
12848 }
12849 #endif
12850
12851 int
12852 main ()
12853 {
12854 return f != $ac_func;
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861   (eval $ac_link) 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -z "$ac_c_werror_flag"
12869                          || test ! -s conftest.err'
12870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871   (eval $ac_try) 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; } &&
12875          { ac_try='test -s conftest$ac_exeext'
12876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877   (eval $ac_try) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); }; }; then
12881   eval "$as_ac_var=yes"
12882 else
12883   echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12885
12886 eval "$as_ac_var=no"
12887 fi
12888 rm -f conftest.err conftest.$ac_objext \
12889       conftest$ac_exeext conftest.$ac_ext
12890 fi
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12893 if test `eval echo '${'$as_ac_var'}'` = yes; then
12894   cat >>confdefs.h <<_ACEOF
12895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12896 _ACEOF
12897
12898 fi
12899 done
12900
12901
12902    # We require memcpy.
12903    memcpy_found=no
12904
12905 for ac_func in memcpy
12906 do
12907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12908 echo "$as_me:$LINENO: checking for $ac_func" >&5
12909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12910 if eval "test \"\${$as_ac_var+set}\" = set"; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   if test x$gcc_no_link = xyes; then
12914   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12916    { (exit 1); exit 1; }; }
12917 fi
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h.  */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h.  */
12924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12926 #define $ac_func innocuous_$ac_func
12927
12928 /* System header to define __stub macros and hopefully few prototypes,
12929     which can conflict with char $ac_func (); below.
12930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12931     <limits.h> exists even on freestanding compilers.  */
12932
12933 #ifdef __STDC__
12934 # include <limits.h>
12935 #else
12936 # include <assert.h>
12937 #endif
12938
12939 #undef $ac_func
12940
12941 /* Override any gcc2 internal prototype to avoid an error.  */
12942 #ifdef __cplusplus
12943 extern "C"
12944 {
12945 #endif
12946 /* We use char because int might match the return type of a gcc2
12947    builtin and then its argument prototype would still apply.  */
12948 char $ac_func ();
12949 /* The GNU C library defines this for functions which it implements
12950     to always fail with ENOSYS.  Some functions are actually named
12951     something starting with __ and the normal name is an alias.  */
12952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12953 choke me
12954 #else
12955 char (*f) () = $ac_func;
12956 #endif
12957 #ifdef __cplusplus
12958 }
12959 #endif
12960
12961 int
12962 main ()
12963 {
12964 return f != $ac_func;
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971   (eval $ac_link) 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -z "$ac_c_werror_flag"
12979                          || test ! -s conftest.err'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; } &&
12985          { ac_try='test -s conftest$ac_exeext'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   eval "$as_ac_var=yes"
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 eval "$as_ac_var=no"
12997 fi
12998 rm -f conftest.err conftest.$ac_objext \
12999       conftest$ac_exeext conftest.$ac_ext
13000 fi
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13003 if test `eval echo '${'$as_ac_var'}'` = yes; then
13004   cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13006 _ACEOF
13007  memcpy_found=yes
13008 fi
13009 done
13010
13011    if test "$memcpy_found" = no; then
13012       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13013 echo "$as_me: error: memcpy is required" >&2;}
13014    { (exit 1); exit 1; }; }
13015    fi
13016    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13017    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-ldl  $LIBS"
13024 if test x$gcc_no_link = xyes; then
13025   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13027    { (exit 1); exit 1; }; }
13028 fi
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035
13036 /* Override any gcc2 internal prototype to avoid an error.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 /* We use char because int might match the return type of a gcc2
13041    builtin and then its argument prototype would still apply.  */
13042 char dlopen ();
13043 int
13044 main ()
13045 {
13046 dlopen ();
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053   (eval $ac_link) 2>conftest.er1
13054   ac_status=$?
13055   grep -v '^ *+' conftest.er1 >conftest.err
13056   rm -f conftest.er1
13057   cat conftest.err >&5
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -z "$ac_c_werror_flag"
13061                          || test ! -s conftest.err'
13062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063   (eval $ac_try) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; } &&
13067          { ac_try='test -s conftest$ac_exeext'
13068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069   (eval $ac_try) 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   ac_cv_lib_dl_dlopen=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078 ac_cv_lib_dl_dlopen=no
13079 fi
13080 rm -f conftest.err conftest.$ac_objext \
13081       conftest$ac_exeext conftest.$ac_ext
13082 LIBS=$ac_check_lib_save_LIBS
13083 fi
13084 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13085 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13086 if test $ac_cv_lib_dl_dlopen = yes; then
13087
13088
13089 cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_DLOPEN 1
13091 _ACEOF
13092
13093 else
13094
13095        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13096 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13097 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-ldld  $LIBS"
13102 if test x$gcc_no_link = xyes; then
13103   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13105    { (exit 1); exit 1; }; }
13106 fi
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113
13114 /* Override any gcc2 internal prototype to avoid an error.  */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 /* We use char because int might match the return type of a gcc2
13119    builtin and then its argument prototype would still apply.  */
13120 char dlopen ();
13121 int
13122 main ()
13123 {
13124 dlopen ();
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131   (eval $ac_link) 2>conftest.er1
13132   ac_status=$?
13133   grep -v '^ *+' conftest.er1 >conftest.err
13134   rm -f conftest.er1
13135   cat conftest.err >&5
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -z "$ac_c_werror_flag"
13139                          || test ! -s conftest.err'
13140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141   (eval $ac_try) 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }; } &&
13145          { ac_try='test -s conftest$ac_exeext'
13146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147   (eval $ac_try) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; }; then
13151   ac_cv_lib_dld_dlopen=yes
13152 else
13153   echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13155
13156 ac_cv_lib_dld_dlopen=no
13157 fi
13158 rm -f conftest.err conftest.$ac_objext \
13159       conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13161 fi
13162 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13163 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13164 if test $ac_cv_lib_dld_dlopen = yes; then
13165
13166
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_DLOPEN 1
13169 _ACEOF
13170
13171 fi
13172
13173 fi
13174
13175
13176    # Some library-finding code we stole from Tcl.
13177    #--------------------------------------------------------------------
13178    #    Check for the existence of the -lsocket and -lnsl libraries.
13179    #    The order here is important, so that they end up in the right
13180    #    order in the command line generated by make.  Here are some
13181    #    special considerations:
13182    #    1. Use "connect" and "accept" to check for -lsocket, and
13183    #       "gethostbyname" to check for -lnsl.
13184    #    2. Use each function name only once:  can't redo a check because
13185    #       autoconf caches the results of the last check and won't redo it.
13186    #    3. Use -lnsl and -lsocket only if they supply procedures that
13187    #       aren't already present in the normal libraries.  This is because
13188    #       IRIX 5.2 has libraries, but they aren't needed and they're
13189    #       bogus:  they goof up name resolution if used.
13190    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13191    #       To get around this problem, check for both libraries together
13192    #       if -lsocket doesn't work by itself.
13193    #--------------------------------------------------------------------
13194
13195    echo "$as_me:$LINENO: checking for socket libraries" >&5
13196 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13197 if test "${gcj_cv_lib_sockets+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   gcj_cv_lib_sockets=
13201      gcj_checkBoth=0
13202      unset ac_cv_func_connect
13203      echo "$as_me:$LINENO: checking for connect" >&5
13204 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13205 if test "${ac_cv_func_connect+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   if test x$gcc_no_link = xyes; then
13209   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13211    { (exit 1); exit 1; }; }
13212 fi
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13221 #define connect innocuous_connect
13222
13223 /* System header to define __stub macros and hopefully few prototypes,
13224     which can conflict with char connect (); below.
13225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13226     <limits.h> exists even on freestanding compilers.  */
13227
13228 #ifdef __STDC__
13229 # include <limits.h>
13230 #else
13231 # include <assert.h>
13232 #endif
13233
13234 #undef connect
13235
13236 /* Override any gcc2 internal prototype to avoid an error.  */
13237 #ifdef __cplusplus
13238 extern "C"
13239 {
13240 #endif
13241 /* We use char because int might match the return type of a gcc2
13242    builtin and then its argument prototype would still apply.  */
13243 char connect ();
13244 /* The GNU C library defines this for functions which it implements
13245     to always fail with ENOSYS.  Some functions are actually named
13246     something starting with __ and the normal name is an alias.  */
13247 #if defined (__stub_connect) || defined (__stub___connect)
13248 choke me
13249 #else
13250 char (*f) () = connect;
13251 #endif
13252 #ifdef __cplusplus
13253 }
13254 #endif
13255
13256 int
13257 main ()
13258 {
13259 return f != connect;
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266   (eval $ac_link) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -z "$ac_c_werror_flag"
13274                          || test ! -s conftest.err'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; } &&
13280          { ac_try='test -s conftest$ac_exeext'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   ac_cv_func_connect=yes
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_cv_func_connect=no
13292 fi
13293 rm -f conftest.err conftest.$ac_objext \
13294       conftest$ac_exeext conftest.$ac_ext
13295 fi
13296 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13297 echo "${ECHO_T}$ac_cv_func_connect" >&6
13298 if test $ac_cv_func_connect = yes; then
13299   gcj_checkSocket=0
13300 else
13301   gcj_checkSocket=1
13302 fi
13303
13304      if test "$gcj_checkSocket" = 1; then
13305          unset ac_cv_func_connect
13306          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13307 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13308 if test "${ac_cv_lib_socket_main+set}" = set; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lsocket  $LIBS"
13313 if test x$gcc_no_link = xyes; then
13314   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13316    { (exit 1); exit 1; }; }
13317 fi
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325
13326 int
13327 main ()
13328 {
13329 main ();
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336   (eval $ac_link) 2>conftest.er1
13337   ac_status=$?
13338   grep -v '^ *+' conftest.er1 >conftest.err
13339   rm -f conftest.er1
13340   cat conftest.err >&5
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } &&
13343          { ac_try='test -z "$ac_c_werror_flag"
13344                          || test ! -s conftest.err'
13345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346   (eval $ac_try) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; } &&
13350          { ac_try='test -s conftest$ac_exeext'
13351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352   (eval $ac_try) 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; }; then
13356   ac_cv_lib_socket_main=yes
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 ac_cv_lib_socket_main=no
13362 fi
13363 rm -f conftest.err conftest.$ac_objext \
13364       conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13366 fi
13367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13369 if test $ac_cv_lib_socket_main = yes; then
13370   gcj_cv_lib_sockets="-lsocket"
13371 else
13372   gcj_checkBoth=1
13373 fi
13374
13375      fi
13376      if test "$gcj_checkBoth" = 1; then
13377          gcj_oldLibs=$LIBS
13378          LIBS="$LIBS -lsocket -lnsl"
13379          unset ac_cv_func_accept
13380          echo "$as_me:$LINENO: checking for accept" >&5
13381 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13382 if test "${ac_cv_func_accept+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
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 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13398 #define accept innocuous_accept
13399
13400 /* System header to define __stub macros and hopefully few prototypes,
13401     which can conflict with char accept (); below.
13402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403     <limits.h> exists even on freestanding compilers.  */
13404
13405 #ifdef __STDC__
13406 # include <limits.h>
13407 #else
13408 # include <assert.h>
13409 #endif
13410
13411 #undef accept
13412
13413 /* Override any gcc2 internal prototype to avoid an error.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 {
13417 #endif
13418 /* We use char because int might match the return type of a gcc2
13419    builtin and then its argument prototype would still apply.  */
13420 char accept ();
13421 /* The GNU C library defines this for functions which it implements
13422     to always fail with ENOSYS.  Some functions are actually named
13423     something starting with __ and the normal name is an alias.  */
13424 #if defined (__stub_accept) || defined (__stub___accept)
13425 choke me
13426 #else
13427 char (*f) () = accept;
13428 #endif
13429 #ifdef __cplusplus
13430 }
13431 #endif
13432
13433 int
13434 main ()
13435 {
13436 return f != accept;
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -z "$ac_c_werror_flag"
13451                          || test ! -s conftest.err'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest$ac_exeext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_cv_func_accept=yes
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468 ac_cv_func_accept=no
13469 fi
13470 rm -f conftest.err conftest.$ac_objext \
13471       conftest$ac_exeext conftest.$ac_ext
13472 fi
13473 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13474 echo "${ECHO_T}$ac_cv_func_accept" >&6
13475 if test $ac_cv_func_accept = yes; then
13476   gcj_checkNsl=0
13477                         gcj_cv_lib_sockets="-lsocket -lnsl"
13478 fi
13479
13480          unset ac_cv_func_accept
13481          LIBS=$gcj_oldLibs
13482      fi
13483      unset ac_cv_func_gethostbyname
13484      gcj_oldLibs=$LIBS
13485      LIBS="$LIBS $gcj_cv_lib_sockets"
13486      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13487 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13488 if test "${ac_cv_func_gethostbyname+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   if test x$gcc_no_link = xyes; then
13492   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13494    { (exit 1); exit 1; }; }
13495 fi
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13504 #define gethostbyname innocuous_gethostbyname
13505
13506 /* System header to define __stub macros and hopefully few prototypes,
13507     which can conflict with char gethostbyname (); below.
13508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13509     <limits.h> exists even on freestanding compilers.  */
13510
13511 #ifdef __STDC__
13512 # include <limits.h>
13513 #else
13514 # include <assert.h>
13515 #endif
13516
13517 #undef gethostbyname
13518
13519 /* Override any gcc2 internal prototype to avoid an error.  */
13520 #ifdef __cplusplus
13521 extern "C"
13522 {
13523 #endif
13524 /* We use char because int might match the return type of a gcc2
13525    builtin and then its argument prototype would still apply.  */
13526 char gethostbyname ();
13527 /* The GNU C library defines this for functions which it implements
13528     to always fail with ENOSYS.  Some functions are actually named
13529     something starting with __ and the normal name is an alias.  */
13530 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13531 choke me
13532 #else
13533 char (*f) () = gethostbyname;
13534 #endif
13535 #ifdef __cplusplus
13536 }
13537 #endif
13538
13539 int
13540 main ()
13541 {
13542 return f != gethostbyname;
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549   (eval $ac_link) 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag"
13557                          || test ! -s conftest.err'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest$ac_exeext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_cv_func_gethostbyname=yes
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 ac_cv_func_gethostbyname=no
13575 fi
13576 rm -f conftest.err conftest.$ac_objext \
13577       conftest$ac_exeext conftest.$ac_ext
13578 fi
13579 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13580 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13581 if test $ac_cv_func_gethostbyname = yes; then
13582   :
13583 else
13584   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13585 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13586 if test "${ac_cv_lib_nsl_main+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lnsl  $LIBS"
13591 if test x$gcc_no_link = xyes; then
13592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13594    { (exit 1); exit 1; }; }
13595 fi
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602
13603
13604 int
13605 main ()
13606 {
13607 main ();
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614   (eval $ac_link) 2>conftest.er1
13615   ac_status=$?
13616   grep -v '^ *+' conftest.er1 >conftest.err
13617   rm -f conftest.er1
13618   cat conftest.err >&5
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); } &&
13621          { ac_try='test -z "$ac_c_werror_flag"
13622                          || test ! -s conftest.err'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; } &&
13628          { ac_try='test -s conftest$ac_exeext'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_cv_lib_nsl_main=yes
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639 ac_cv_lib_nsl_main=no
13640 fi
13641 rm -f conftest.err conftest.$ac_objext \
13642       conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13644 fi
13645 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13646 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13647 if test $ac_cv_lib_nsl_main = yes; then
13648   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13649 fi
13650
13651 fi
13652
13653      unset ac_cv_func_gethostbyname
13654      LIBS=$gcj_oldLIBS
13655
13656 fi
13657 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13658 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13659    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13660
13661    if test "$with_system_zlib" = yes; then
13662       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13663 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13664 if test "${ac_cv_lib_z_deflate+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-lz  $LIBS"
13669 if test x$gcc_no_link = xyes; then
13670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13672    { (exit 1); exit 1; }; }
13673 fi
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680
13681 /* Override any gcc2 internal prototype to avoid an error.  */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 /* We use char because int might match the return type of a gcc2
13686    builtin and then its argument prototype would still apply.  */
13687 char deflate ();
13688 int
13689 main ()
13690 {
13691 deflate ();
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698   (eval $ac_link) 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -z "$ac_c_werror_flag"
13706                          || test ! -s conftest.err'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; } &&
13712          { ac_try='test -s conftest$ac_exeext'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718   ac_cv_lib_z_deflate=yes
13719 else
13720   echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723 ac_cv_lib_z_deflate=no
13724 fi
13725 rm -f conftest.err conftest.$ac_objext \
13726       conftest$ac_exeext conftest.$ac_ext
13727 LIBS=$ac_check_lib_save_LIBS
13728 fi
13729 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13730 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13731 if test $ac_cv_lib_z_deflate = yes; then
13732   ZLIBSPEC=-lz
13733 else
13734   ZLIBSPEC=
13735 fi
13736
13737    fi
13738
13739    # Test for Gtk stuff, if asked for.
13740    if test "$use_gtk_awt" = yes; then
13741
13742   succeeded=no
13743
13744   if test -z "$PKG_CONFIG"; then
13745     # Extract the first word of "pkg-config", so it can be a program name with args.
13746 set dummy pkg-config; ac_word=$2
13747 echo "$as_me:$LINENO: checking for $ac_word" >&5
13748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13750   echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752   case $PKG_CONFIG in
13753   [\\/]* | ?:[\\/]*)
13754   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13755   ;;
13756   *)
13757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758 for as_dir in $PATH
13759 do
13760   IFS=$as_save_IFS
13761   test -z "$as_dir" && as_dir=.
13762   for ac_exec_ext in '' $ac_executable_extensions; do
13763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13766     break 2
13767   fi
13768 done
13769 done
13770
13771   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13772   ;;
13773 esac
13774 fi
13775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13776
13777 if test -n "$PKG_CONFIG"; then
13778   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13779 echo "${ECHO_T}$PKG_CONFIG" >&6
13780 else
13781   echo "$as_me:$LINENO: result: no" >&5
13782 echo "${ECHO_T}no" >&6
13783 fi
13784
13785   fi
13786
13787   if test "$PKG_CONFIG" = "no" ; then
13788      echo "*** The pkg-config script could not be found. Make sure it is"
13789      echo "*** in your path, or set the PKG_CONFIG environment variable"
13790      echo "*** to the full path to pkg-config."
13791      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13792   else
13793      PKG_CONFIG_MIN_VERSION=0.9.0
13794      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13795         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13796 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13797
13798         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13799             echo "$as_me:$LINENO: result: yes" >&5
13800 echo "${ECHO_T}yes" >&6
13801             succeeded=yes
13802
13803             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13804 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13805             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13806             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13807 echo "${ECHO_T}$GTK_CFLAGS" >&6
13808
13809             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13810 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13811             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13812             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13813 echo "${ECHO_T}$GTK_LIBS" >&6
13814         else
13815             GTK_CFLAGS=""
13816             GTK_LIBS=""
13817             ## If we have a custom action on failure, don't print errors, but
13818             ## do set a variable so people can do so.
13819             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13820             echo $GTK_PKG_ERRORS
13821         fi
13822
13823
13824
13825      else
13826         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13827         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13828      fi
13829   fi
13830
13831   if test $succeeded = yes; then
13832      :
13833   else
13834      { { 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
13835 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;}
13836    { (exit 1); exit 1; }; }
13837   fi
13838
13839
13840
13841
13842
13843   succeeded=no
13844
13845   if test -z "$PKG_CONFIG"; then
13846     # Extract the first word of "pkg-config", so it can be a program name with args.
13847 set dummy pkg-config; ac_word=$2
13848 echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   case $PKG_CONFIG in
13854   [\\/]* | ?:[\\/]*)
13855   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13856   ;;
13857   *)
13858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13860 do
13861   IFS=$as_save_IFS
13862   test -z "$as_dir" && as_dir=.
13863   for ac_exec_ext in '' $ac_executable_extensions; do
13864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867     break 2
13868   fi
13869 done
13870 done
13871
13872   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13873   ;;
13874 esac
13875 fi
13876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13877
13878 if test -n "$PKG_CONFIG"; then
13879   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13880 echo "${ECHO_T}$PKG_CONFIG" >&6
13881 else
13882   echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13884 fi
13885
13886   fi
13887
13888   if test "$PKG_CONFIG" = "no" ; then
13889      echo "*** The pkg-config script could not be found. Make sure it is"
13890      echo "*** in your path, or set the PKG_CONFIG environment variable"
13891      echo "*** to the full path to pkg-config."
13892      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13893   else
13894      PKG_CONFIG_MIN_VERSION=0.9.0
13895      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13896         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13897 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13898
13899         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13900             echo "$as_me:$LINENO: result: yes" >&5
13901 echo "${ECHO_T}yes" >&6
13902             succeeded=yes
13903
13904             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13905 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13906             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13907             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13908 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13909
13910             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13911 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13912             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13913             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13914 echo "${ECHO_T}$GLIB_LIBS" >&6
13915         else
13916             GLIB_CFLAGS=""
13917             GLIB_LIBS=""
13918             ## If we have a custom action on failure, don't print errors, but
13919             ## do set a variable so people can do so.
13920             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13921             echo $GLIB_PKG_ERRORS
13922         fi
13923
13924
13925
13926      else
13927         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13928         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13929      fi
13930   fi
13931
13932   if test $succeeded = yes; then
13933      :
13934   else
13935      { { 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
13936 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;}
13937    { (exit 1); exit 1; }; }
13938   fi
13939
13940
13941
13942
13943
13944   succeeded=no
13945
13946   if test -z "$PKG_CONFIG"; then
13947     # Extract the first word of "pkg-config", so it can be a program name with args.
13948 set dummy pkg-config; ac_word=$2
13949 echo "$as_me:$LINENO: checking for $ac_word" >&5
13950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13951 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   case $PKG_CONFIG in
13955   [\\/]* | ?:[\\/]*)
13956   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13957   ;;
13958   *)
13959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962   IFS=$as_save_IFS
13963   test -z "$as_dir" && as_dir=.
13964   for ac_exec_ext in '' $ac_executable_extensions; do
13965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13966     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13968     break 2
13969   fi
13970 done
13971 done
13972
13973   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13974   ;;
13975 esac
13976 fi
13977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13978
13979 if test -n "$PKG_CONFIG"; then
13980   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13981 echo "${ECHO_T}$PKG_CONFIG" >&6
13982 else
13983   echo "$as_me:$LINENO: result: no" >&5
13984 echo "${ECHO_T}no" >&6
13985 fi
13986
13987   fi
13988
13989   if test "$PKG_CONFIG" = "no" ; then
13990      echo "*** The pkg-config script could not be found. Make sure it is"
13991      echo "*** in your path, or set the PKG_CONFIG environment variable"
13992      echo "*** to the full path to pkg-config."
13993      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13994   else
13995      PKG_CONFIG_MIN_VERSION=0.9.0
13996      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13997         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13998 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13999
14000         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14001             echo "$as_me:$LINENO: result: yes" >&5
14002 echo "${ECHO_T}yes" >&6
14003             succeeded=yes
14004
14005             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14006 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14007             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14008             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14009 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14010
14011             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14012 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14013             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14014             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14015 echo "${ECHO_T}$LIBART_LIBS" >&6
14016         else
14017             LIBART_CFLAGS=""
14018             LIBART_LIBS=""
14019             ## If we have a custom action on failure, don't print errors, but
14020             ## do set a variable so people can do so.
14021             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14022             echo $LIBART_PKG_ERRORS
14023         fi
14024
14025
14026
14027      else
14028         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14029         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14030      fi
14031   fi
14032
14033   if test $succeeded = yes; then
14034      :
14035   else
14036      { { 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
14037 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;}
14038    { (exit 1); exit 1; }; }
14039   fi
14040
14041
14042
14043
14044       # We require the XTest Extension to support java.awt.Robot.
14045       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14046 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14047 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lXtst ${X_LIBS} $LIBS"
14052 if test x$gcc_no_link = xyes; then
14053   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14055    { (exit 1); exit 1; }; }
14056 fi
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063
14064 /* Override any gcc2 internal prototype to avoid an error.  */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 /* We use char because int might match the return type of a gcc2
14069    builtin and then its argument prototype would still apply.  */
14070 char XTestQueryExtension ();
14071 int
14072 main ()
14073 {
14074 XTestQueryExtension ();
14075   ;
14076   return 0;
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14081   (eval $ac_link) 2>conftest.er1
14082   ac_status=$?
14083   grep -v '^ *+' conftest.er1 >conftest.err
14084   rm -f conftest.er1
14085   cat conftest.err >&5
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } &&
14088          { ac_try='test -z "$ac_c_werror_flag"
14089                          || test ! -s conftest.err'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; } &&
14095          { ac_try='test -s conftest$ac_exeext'
14096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097   (eval $ac_try) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; }; then
14101   ac_cv_lib_Xtst_XTestQueryExtension=yes
14102 else
14103   echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_cv_lib_Xtst_XTestQueryExtension=no
14107 fi
14108 rm -f conftest.err conftest.$ac_objext \
14109       conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14111 fi
14112 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14113 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14114 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14115   true
14116 else
14117   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14118 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14119    { (exit 1); exit 1; }; }
14120 fi
14121
14122    fi
14123
14124    # On Solaris, and maybe other architectures, the Boehm collector
14125    # requires -ldl.
14126    if test "$GC" = boehm; then
14127       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14128 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14129 if test "${ac_cv_lib_dl_main+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   ac_check_lib_save_LIBS=$LIBS
14133 LIBS="-ldl  $LIBS"
14134 if test x$gcc_no_link = xyes; then
14135   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14137    { (exit 1); exit 1; }; }
14138 fi
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h.  */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h.  */
14145
14146
14147 int
14148 main ()
14149 {
14150 main ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157   (eval $ac_link) 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -z "$ac_c_werror_flag"
14165                          || test ! -s conftest.err'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; } &&
14171          { ac_try='test -s conftest$ac_exeext'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; }; then
14177   ac_cv_lib_dl_main=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_cv_lib_dl_main=no
14183 fi
14184 rm -f conftest.err conftest.$ac_objext \
14185       conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14189 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14190 if test $ac_cv_lib_dl_main = yes; then
14191   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14192 fi
14193
14194    fi
14195 fi
14196
14197 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14198 case $build in
14199     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14200     *)         CLASSPATH_SEPARATOR=':' ;;
14201 esac
14202
14203
14204 # We must search the source tree for java.lang, since we still don't
14205 # have libgcj.jar nor java/lang/*.class
14206 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14207 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14208
14209 # Since some classes depend on this one, we need its source available
14210 # before we can do any GCJ compilation test :-(
14211 if test ! -f gnu/classpath/Configuration.java; then
14212   test -d gnu || mkdir gnu
14213   test -d gnu/classpath || mkdir gnu/classpath
14214   # Note that it is not crucial that all the values here be correct.
14215   sed -e "s,@prefix@,$prefix," \
14216       -e "s,@VERSION@,$VERSION," \
14217       -e "s,@LIBDEBUG@,false," \
14218       -e "s,@INIT_LOAD_LIBRARY@,false," \
14219       -e "s,@@,$LIBGCJDEBUG," \
14220       -e "s,@default_toolkit@,$TOOLKIT," \
14221       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14222       -e "s,@GTK_CAIRO_ENABLED@,false," \
14223         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14224         > gnu/classpath/Configuration.java
14225   # We do not want to redirect the output of the grep below to /dev/null,
14226   # but we add /dev/null to the input list so that grep will print the
14227   # filename of Configuration.java in case it finds any matches.
14228   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14229     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14230 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14231    { (exit 1); exit 1; }; }
14232   fi
14233 fi
14234
14235 if test -n "$ac_tool_prefix"; then
14236   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14237 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14238 echo "$as_me:$LINENO: checking for $ac_word" >&5
14239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14240 if test "${ac_cv_prog_GCJ+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   if test -n "$GCJ"; then
14244   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14245 else
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14248 do
14249   IFS=$as_save_IFS
14250   test -z "$as_dir" && as_dir=.
14251   for ac_exec_ext in '' $ac_executable_extensions; do
14252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14253     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14255     break 2
14256   fi
14257 done
14258 done
14259
14260 fi
14261 fi
14262 GCJ=$ac_cv_prog_GCJ
14263 if test -n "$GCJ"; then
14264   echo "$as_me:$LINENO: result: $GCJ" >&5
14265 echo "${ECHO_T}$GCJ" >&6
14266 else
14267   echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6
14269 fi
14270
14271 fi
14272 if test -z "$ac_cv_prog_GCJ"; then
14273   ac_ct_GCJ=$GCJ
14274   # Extract the first word of "gcj", so it can be a program name with args.
14275 set dummy gcj; ac_word=$2
14276 echo "$as_me:$LINENO: checking for $ac_word" >&5
14277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14278 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   if test -n "$ac_ct_GCJ"; then
14282   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14283 else
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14286 do
14287   IFS=$as_save_IFS
14288   test -z "$as_dir" && as_dir=.
14289   for ac_exec_ext in '' $ac_executable_extensions; do
14290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14291     ac_cv_prog_ac_ct_GCJ="gcj"
14292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14293     break 2
14294   fi
14295 done
14296 done
14297
14298   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14299 fi
14300 fi
14301 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14302 if test -n "$ac_ct_GCJ"; then
14303   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14304 echo "${ECHO_T}$ac_ct_GCJ" >&6
14305 else
14306   echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6
14308 fi
14309
14310   GCJ=$ac_ct_GCJ
14311 else
14312   GCJ="$ac_cv_prog_GCJ"
14313 fi
14314
14315   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14316
14317
14318
14319
14320 # Now remove it.
14321 rm -f gnu/classpath/Configuration.java
14322
14323 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14324
14325 echo "$as_me:$LINENO: checking for void *" >&5
14326 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14327 if test "${ac_cv_type_void_p+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 $ac_includes_default
14337 int
14338 main ()
14339 {
14340 if ((void * *) 0)
14341   return 0;
14342 if (sizeof (void *))
14343   return 0;
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350   (eval $ac_compile) 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag"
14358                          || test ! -s conftest.err'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; } &&
14364          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14370   ac_cv_type_void_p=yes
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 ac_cv_type_void_p=no
14376 fi
14377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14380 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14381
14382 echo "$as_me:$LINENO: checking size of void *" >&5
14383 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14384 if test "${ac_cv_sizeof_void_p+set}" = set; then
14385   echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387   if test "$ac_cv_type_void_p" = yes; then
14388   # The cast to unsigned long works around a bug in the HP C Compiler
14389   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14390   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14391   # This bug is HP SR number 8606223364.
14392   if test "$cross_compiling" = yes; then
14393   # Depending upon the size, compute the lo and hi bounds.
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 $ac_includes_default
14401 int
14402 main ()
14403 {
14404 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14405 test_array [0] = 0
14406
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413   (eval $ac_compile) 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag"
14421                          || test ! -s conftest.err'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; } &&
14427          { ac_try='test -s conftest.$ac_objext'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; }; then
14433   ac_lo=0 ac_mid=0
14434   while :; do
14435     cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 $ac_includes_default
14442 int
14443 main ()
14444 {
14445 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14446 test_array [0] = 0
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454   (eval $ac_compile) 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -z "$ac_c_werror_flag"
14462                          || test ! -s conftest.err'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; } &&
14468          { ac_try='test -s conftest.$ac_objext'
14469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470   (eval $ac_try) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   ac_hi=$ac_mid; break
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_lo=`expr $ac_mid + 1`
14480                     if test $ac_lo -le $ac_mid; then
14481                       ac_lo= ac_hi=
14482                       break
14483                     fi
14484                     ac_mid=`expr 2 '*' $ac_mid + 1`
14485 fi
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487   done
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498 $ac_includes_default
14499 int
14500 main ()
14501 {
14502 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14503 test_array [0] = 0
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511   (eval $ac_compile) 2>conftest.er1
14512   ac_status=$?
14513   grep -v '^ *+' conftest.er1 >conftest.err
14514   rm -f conftest.er1
14515   cat conftest.err >&5
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); } &&
14518          { ac_try='test -z "$ac_c_werror_flag"
14519                          || test ! -s conftest.err'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; } &&
14525          { ac_try='test -s conftest.$ac_objext'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; }; then
14531   ac_hi=-1 ac_mid=-1
14532   while :; do
14533     cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539 $ac_includes_default
14540 int
14541 main ()
14542 {
14543 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14544 test_array [0] = 0
14545
14546   ;
14547   return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552   (eval $ac_compile) 2>conftest.er1
14553   ac_status=$?
14554   grep -v '^ *+' conftest.er1 >conftest.err
14555   rm -f conftest.er1
14556   cat conftest.err >&5
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); } &&
14559          { ac_try='test -z "$ac_c_werror_flag"
14560                          || test ! -s conftest.err'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; } &&
14566          { ac_try='test -s conftest.$ac_objext'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; }; then
14572   ac_lo=$ac_mid; break
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_hi=`expr '(' $ac_mid ')' - 1`
14578                        if test $ac_mid -le $ac_hi; then
14579                          ac_lo= ac_hi=
14580                          break
14581                        fi
14582                        ac_mid=`expr 2 '*' $ac_mid`
14583 fi
14584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585   done
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 ac_lo= ac_hi=
14591 fi
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595 # Binary search between lo and hi bounds.
14596 while test "x$ac_lo" != "x$ac_hi"; do
14597   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14598   cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 $ac_includes_default
14605 int
14606 main ()
14607 {
14608 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14609 test_array [0] = 0
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617   (eval $ac_compile) 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -z "$ac_c_werror_flag"
14625                          || test ! -s conftest.err'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; } &&
14631          { ac_try='test -s conftest.$ac_objext'
14632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633   (eval $ac_try) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; }; then
14637   ac_hi=$ac_mid
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642 ac_lo=`expr '(' $ac_mid ')' + 1`
14643 fi
14644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645 done
14646 case $ac_lo in
14647 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14649 See \`config.log' for more details." >&5
14650 echo "$as_me: error: cannot compute sizeof (void *), 77
14651 See \`config.log' for more details." >&2;}
14652    { (exit 1); exit 1; }; } ;;
14653 esac
14654 else
14655   if test "$cross_compiling" = yes; then
14656   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14657 See \`config.log' for more details." >&5
14658 echo "$as_me: error: cannot run test program while cross compiling
14659 See \`config.log' for more details." >&2;}
14660    { (exit 1); exit 1; }; }
14661 else
14662   cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h.  */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h.  */
14668 $ac_includes_default
14669 long longval () { return (long) (sizeof (void *)); }
14670 unsigned long ulongval () { return (long) (sizeof (void *)); }
14671 #include <stdio.h>
14672 #include <stdlib.h>
14673 int
14674 main ()
14675 {
14676
14677   FILE *f = fopen ("conftest.val", "w");
14678   if (! f)
14679     exit (1);
14680   if (((long) (sizeof (void *))) < 0)
14681     {
14682       long i = longval ();
14683       if (i != ((long) (sizeof (void *))))
14684         exit (1);
14685       fprintf (f, "%ld\n", i);
14686     }
14687   else
14688     {
14689       unsigned long i = ulongval ();
14690       if (i != ((long) (sizeof (void *))))
14691         exit (1);
14692       fprintf (f, "%lu\n", i);
14693     }
14694   exit (ferror (f) || fclose (f) != 0);
14695
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702   (eval $ac_link) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_cv_sizeof_void_p=`cat conftest.val`
14712 else
14713   echo "$as_me: program exited with status $ac_status" >&5
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ( exit $ac_status )
14718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14719 See \`config.log' for more details." >&5
14720 echo "$as_me: error: cannot compute sizeof (void *), 77
14721 See \`config.log' for more details." >&2;}
14722    { (exit 1); exit 1; }; }
14723 fi
14724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14725 fi
14726 fi
14727 rm -f conftest.val
14728 else
14729   ac_cv_sizeof_void_p=0
14730 fi
14731 fi
14732 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14733 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14734 cat >>confdefs.h <<_ACEOF
14735 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14736 _ACEOF
14737
14738
14739
14740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14742 if test "${ac_cv_c_bigendian+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   # See if sys/param.h defines the BYTE_ORDER macro.
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 #include <sys/types.h>
14753 #include <sys/param.h>
14754
14755 int
14756 main ()
14757 {
14758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14759  bogus endian macros
14760 #endif
14761
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768   (eval $ac_compile) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest.$ac_objext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   # It does; now see whether it defined to BIG_ENDIAN or not.
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 #include <sys/types.h>
14796 #include <sys/param.h>
14797
14798 int
14799 main ()
14800 {
14801 #if BYTE_ORDER != BIG_ENDIAN
14802  not big endian
14803 #endif
14804
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811   (eval $ac_compile) 2>conftest.er1
14812   ac_status=$?
14813   grep -v '^ *+' conftest.er1 >conftest.err
14814   rm -f conftest.er1
14815   cat conftest.err >&5
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -z "$ac_c_werror_flag"
14819                          || test ! -s conftest.err'
14820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821   (eval $ac_try) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); }; } &&
14825          { ac_try='test -s conftest.$ac_objext'
14826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   ac_cv_c_bigendian=yes
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_cv_c_bigendian=no
14837 fi
14838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14839 else
14840   echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 # It does not; compile a test program.
14844 if test "$cross_compiling" = yes; then
14845   # try to guess the endianness by grepping values into an object file
14846   ac_cv_c_bigendian=unknown
14847   cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14859 int
14860 main ()
14861 {
14862  _ascii (); _ebcdic ();
14863   ;
14864   return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869   (eval $ac_compile) 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -z "$ac_c_werror_flag"
14877                          || test ! -s conftest.err'
14878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879   (eval $ac_try) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; } &&
14883          { ac_try='test -s conftest.$ac_objext'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14890   ac_cv_c_bigendian=yes
14891 fi
14892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14893   if test "$ac_cv_c_bigendian" = unknown; then
14894     ac_cv_c_bigendian=no
14895   else
14896     # finding both strings is unlikely to happen, but who knows?
14897     ac_cv_c_bigendian=unknown
14898   fi
14899 fi
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 fi
14905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906 else
14907   cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 int
14914 main ()
14915 {
14916   /* Are we little or big endian?  From Harbison&Steele.  */
14917   union
14918   {
14919     long l;
14920     char c[sizeof (long)];
14921   } u;
14922   u.l = 1;
14923   exit (u.c[sizeof (long) - 1] == 1);
14924 }
14925 _ACEOF
14926 rm -f conftest$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928   (eval $ac_link) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937   ac_cv_c_bigendian=no
14938 else
14939   echo "$as_me: program exited with status $ac_status" >&5
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943 ( exit $ac_status )
14944 ac_cv_c_bigendian=yes
14945 fi
14946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14947 fi
14948 fi
14949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14950 fi
14951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14953 case $ac_cv_c_bigendian in
14954   yes)
14955
14956 cat >>confdefs.h <<\_ACEOF
14957 #define WORDS_BIGENDIAN 1
14958 _ACEOF
14959  ;;
14960   no)
14961      ;;
14962   *)
14963     { { echo "$as_me:$LINENO: error: unknown endianness
14964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14965 echo "$as_me: error: unknown endianness
14966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14967    { (exit 1); exit 1; }; } ;;
14968 esac
14969
14970
14971 ZLIBS=
14972 SYS_ZLIBS=
14973 ZINCS=
14974
14975 if test -z "$ZLIBSPEC"; then
14976    # Use zlib from the GCC tree.
14977    ZINCS='-I$(top_srcdir)/../zlib'
14978    ZLIBS=../zlib/libzgcj_convenience.la
14979 else
14980    # System's zlib.
14981    SYS_ZLIBS="$ZLIBSPEC"
14982 fi
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994 if test "$NATIVE" = yes; then
14995   NATIVE_TRUE=
14996   NATIVE_FALSE='#'
14997 else
14998   NATIVE_TRUE='#'
14999   NATIVE_FALSE=
15000 fi
15001
15002
15003
15004 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15005   NEEDS_DATA_START_TRUE=
15006   NEEDS_DATA_START_FALSE='#'
15007 else
15008   NEEDS_DATA_START_TRUE='#'
15009   NEEDS_DATA_START_FALSE=
15010 fi
15011
15012
15013
15014 # Process the option "--enable-version-specific-runtime-libs"
15015 # Calculate toolexeclibdir
15016 case ${version_specific_libs} in
15017   yes)
15018     # Need the gcc compiler version to know where to install libraries
15019     # and header files if --enable-version-specific-runtime-libs option
15020     # is selected.
15021     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15022     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15023     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15024     toolexeclibdir=$toolexecmainlibdir
15025     ;;
15026   no)
15027     if test -n "$with_cross_host" &&
15028        test x"$with_cross_host" != x"no"; then
15029       # Install a library built with a cross compiler in tooldir, not libdir.
15030       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15031       toolexecmainlibdir='$(toolexecdir)/lib'
15032     else
15033       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15034       toolexecmainlibdir='$(libdir)'
15035     fi
15036     multi_os_directory=`$CC -print-multi-os-directory`
15037     case $multi_os_directory in
15038       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15039       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15040     esac
15041     ;;
15042 esac
15043
15044
15045
15046
15047 # Determine where the standard .db file and GNU Classpath JNI
15048 # libraries are found.
15049 multi_os_directory=`$CC -print-multi-os-directory`
15050 case $multi_os_directory in
15051   .)
15052    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15053    ;;
15054   *)
15055    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15056    ;;
15057 esac
15058
15059
15060 # Determine gcj version number.
15061 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15062 GCJVERSION=$gcjversion
15063
15064
15065 cat >>confdefs.h <<_ACEOF
15066 #define GCJVERSION "$GCJVERSION"
15067 _ACEOF
15068
15069
15070
15071 cat >>confdefs.h <<\_ACEOF
15072 #define JV_VERSION "1.4.2"
15073 _ACEOF
15074
15075
15076 cat >>confdefs.h <<\_ACEOF
15077 #define JV_API_VERSION "1.4"
15078 _ACEOF
15079
15080
15081
15082 case "${with_gxx_include_dir}" in
15083   yes)
15084     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15085 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15086    { (exit 1); exit 1; }; }
15087     ;;
15088   no | "")
15089     case "${enable_version_specific_runtime_libs}" in
15090       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15091       *)
15092         libstdcxx_incdir='c++/$(gcc_version)'
15093         gxx_include_dir='include/$(libstdcxx_incdir)'
15094         if test -n "$with_cross_host" &&
15095            test x"$with_cross_host" != x"no"; then
15096           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15097         else
15098           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15099         fi;;
15100     esac ;;
15101   *) gxx_include_dir=${with_gxx_include_dir} ;;
15102 esac
15103
15104
15105
15106
15107 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15108 # On that system, sys/ioctl.h will not include sys/filio.h unless
15109 # BSD_COMP is defined; just including sys/filio.h is simpler.
15110 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15111 # for now.  If you change this, you also must update natFile.cc.
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15135                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15136                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15137                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15138                   dirent.h sys/rw_lock.h ifaddrs.h
15139 do
15140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15142   echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 fi
15147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15149 else
15150   # Is the header compilable?
15151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 $ac_includes_default
15160 #include <$ac_header>
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164   (eval $ac_compile) 2>conftest.er1
15165   ac_status=$?
15166   grep -v '^ *+' conftest.er1 >conftest.err
15167   rm -f conftest.er1
15168   cat conftest.err >&5
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } &&
15171          { ac_try='test -z "$ac_c_werror_flag"
15172                          || test ! -s conftest.err'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest.$ac_objext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_header_compiler=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 ac_header_compiler=no
15190 fi
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15193 echo "${ECHO_T}$ac_header_compiler" >&6
15194
15195 # Is the header present?
15196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 #include <$ac_header>
15205 _ACEOF
15206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15208   ac_status=$?
15209   grep -v '^ *+' conftest.er1 >conftest.err
15210   rm -f conftest.er1
15211   cat conftest.err >&5
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } >/dev/null; then
15214   if test -s conftest.err; then
15215     ac_cpp_err=$ac_c_preproc_warn_flag
15216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15217   else
15218     ac_cpp_err=
15219   fi
15220 else
15221   ac_cpp_err=yes
15222 fi
15223 if test -z "$ac_cpp_err"; then
15224   ac_header_preproc=yes
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229   ac_header_preproc=no
15230 fi
15231 rm -f conftest.err conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15233 echo "${ECHO_T}$ac_header_preproc" >&6
15234
15235 # So?  What about this header?
15236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15237   yes:no: )
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15242     ac_header_preproc=yes
15243     ;;
15244   no:yes:* )
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15257     (
15258       cat <<\_ASBOX
15259 ## ---------------------------------- ##
15260 ## Report this to the libjava lists.  ##
15261 ## ---------------------------------- ##
15262 _ASBOX
15263     ) |
15264       sed "s/^/$as_me: WARNING:     /" >&2
15265     ;;
15266 esac
15267 echo "$as_me:$LINENO: checking for $ac_header" >&5
15268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   eval "$as_ac_Header=\$ac_header_preproc"
15273 fi
15274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15276
15277 fi
15278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15279   cat >>confdefs.h <<_ACEOF
15280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15281 _ACEOF
15282
15283 fi
15284
15285 done
15286
15287
15288 for ac_header in inttypes.h
15289 do
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15292   echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 fi
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299 else
15300   # Is the header compilable?
15301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 $ac_includes_default
15310 #include <$ac_header>
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314   (eval $ac_compile) 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_c_werror_flag"
15322                          || test ! -s conftest.err'
15323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324   (eval $ac_try) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest.$ac_objext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_header_compiler=yes
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ac_header_compiler=no
15340 fi
15341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343 echo "${ECHO_T}$ac_header_compiler" >&6
15344
15345 # Is the header present?
15346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 #include <$ac_header>
15355 _ACEOF
15356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } >/dev/null; then
15364   if test -s conftest.err; then
15365     ac_cpp_err=$ac_c_preproc_warn_flag
15366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15367   else
15368     ac_cpp_err=
15369   fi
15370 else
15371   ac_cpp_err=yes
15372 fi
15373 if test -z "$ac_cpp_err"; then
15374   ac_header_preproc=yes
15375 else
15376   echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379   ac_header_preproc=no
15380 fi
15381 rm -f conftest.err conftest.$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15383 echo "${ECHO_T}$ac_header_preproc" >&6
15384
15385 # So?  What about this header?
15386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15387   yes:no: )
15388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15392     ac_header_preproc=yes
15393     ;;
15394   no:yes:* )
15395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15407     (
15408       cat <<\_ASBOX
15409 ## ---------------------------------- ##
15410 ## Report this to the libjava lists.  ##
15411 ## ---------------------------------- ##
15412 _ASBOX
15413     ) |
15414       sed "s/^/$as_me: WARNING:     /" >&2
15415     ;;
15416 esac
15417 echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   eval "$as_ac_Header=\$ac_header_preproc"
15423 fi
15424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15426
15427 fi
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429   cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 _ACEOF
15432
15433
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_INTTYPES_H 1
15436 _ACEOF
15437
15438
15439 cat >>confdefs.h <<\_ACEOF
15440 #define JV_HAVE_INTTYPES_H 1
15441 _ACEOF
15442
15443
15444 fi
15445
15446 done
15447
15448 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15449 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15450 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459 #include <sys/types.h>
15460 #include <sys/wait.h>
15461 #ifndef WEXITSTATUS
15462 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15463 #endif
15464 #ifndef WIFEXITED
15465 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15466 #endif
15467
15468 int
15469 main ()
15470 {
15471   int s;
15472   wait (&s);
15473   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480   (eval $ac_compile) 2>conftest.er1
15481   ac_status=$?
15482   grep -v '^ *+' conftest.er1 >conftest.err
15483   rm -f conftest.er1
15484   cat conftest.err >&5
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); } &&
15487          { ac_try='test -z "$ac_c_werror_flag"
15488                          || test ! -s conftest.err'
15489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490   (eval $ac_try) 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); }; } &&
15494          { ac_try='test -s conftest.$ac_objext'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; }; then
15500   ac_cv_header_sys_wait_h=yes
15501 else
15502   echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_cv_header_sys_wait_h=no
15506 fi
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508 fi
15509 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15510 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15511 if test $ac_cv_header_sys_wait_h = yes; then
15512
15513 cat >>confdefs.h <<\_ACEOF
15514 #define HAVE_SYS_WAIT_H 1
15515 _ACEOF
15516
15517 fi
15518
15519
15520 echo "$as_me:$LINENO: checking for ssize_t" >&5
15521 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15522 if test "${ac_cv_type_ssize_t+set}" = set; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 int
15533 main ()
15534 {
15535 if ((ssize_t *) 0)
15536   return 0;
15537 if (sizeof (ssize_t))
15538   return 0;
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545   (eval $ac_compile) 2>conftest.er1
15546   ac_status=$?
15547   grep -v '^ *+' conftest.er1 >conftest.err
15548   rm -f conftest.er1
15549   cat conftest.err >&5
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } &&
15552          { ac_try='test -z "$ac_c_werror_flag"
15553                          || test ! -s conftest.err'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; } &&
15559          { ac_try='test -s conftest.$ac_objext'
15560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561   (eval $ac_try) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); }; }; then
15565   ac_cv_type_ssize_t=yes
15566 else
15567   echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 ac_cv_type_ssize_t=no
15571 fi
15572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15573 fi
15574 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15575 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15576 if test $ac_cv_type_ssize_t = yes; then
15577   :
15578 else
15579
15580 cat >>confdefs.h <<_ACEOF
15581 #define ssize_t int
15582 _ACEOF
15583
15584 fi
15585
15586
15587 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15588 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 #include <sys/types.h>
15596 #if STDC_HEADERS
15597 #include <stdlib.h>
15598 #include <stddef.h>
15599 #endif
15600 #if HAVE_NETINET_IN_H
15601 #include <netinet/in.h>
15602 #endif
15603 int
15604 main ()
15605 {
15606 in_addr_t foo;
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613   (eval $ac_compile) 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag"
15621                          || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest.$ac_objext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_IN_ADDR_T 1
15636 _ACEOF
15637
15638    echo "$as_me:$LINENO: result: yes" >&5
15639 echo "${ECHO_T}yes" >&6
15640 else
15641   echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 echo "$as_me:$LINENO: result: no" >&5
15645 echo "${ECHO_T}no" >&6
15646 fi
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648
15649 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15650 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657 #include <netinet/in.h>
15658 int
15659 main ()
15660 {
15661 struct ip_mreq mreq;
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668   (eval $ac_compile) 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } &&
15675          { ac_try='test -z "$ac_c_werror_flag"
15676                          || test ! -s conftest.err'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_STRUCT_IP_MREQ 1
15691 _ACEOF
15692
15693    echo "$as_me:$LINENO: result: yes" >&5
15694 echo "${ECHO_T}yes" >&6
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 echo "$as_me:$LINENO: result: no" >&5
15700 echo "${ECHO_T}no" >&6
15701 fi
15702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15703
15704 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15705 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712 #include <netinet/in.h>
15713 int
15714 main ()
15715 {
15716 struct ipv6_mreq mreq6;
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15723   (eval $ac_compile) 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -z "$ac_c_werror_flag"
15731                          || test ! -s conftest.err'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; } &&
15737          { ac_try='test -s conftest.$ac_objext'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743
15744 cat >>confdefs.h <<\_ACEOF
15745 #define HAVE_STRUCT_IPV6_MREQ 1
15746 _ACEOF
15747
15748    echo "$as_me:$LINENO: result: yes" >&5
15749 echo "${ECHO_T}yes" >&6
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15756 fi
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758
15759 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15760 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 #include <netinet/in.h>
15768 int
15769 main ()
15770 {
15771 struct sockaddr_in6 addr6;
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778   (eval $ac_compile) 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -z "$ac_c_werror_flag"
15786                          || test ! -s conftest.err'
15787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788   (eval $ac_try) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; } &&
15792          { ac_try='test -s conftest.$ac_objext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_INET6 1
15801 _ACEOF
15802
15803    echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6
15811 fi
15812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15813
15814 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15815 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822 #define _POSIX_PII_SOCKET
15823 #include <sys/types.h>
15824 #include <sys/socket.h>
15825 int
15826 main ()
15827 {
15828 socklen_t x = 5;
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835   (eval $ac_compile) 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } &&
15842          { ac_try='test -z "$ac_c_werror_flag"
15843                          || test ! -s conftest.err'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; } &&
15849          { ac_try='test -s conftest.$ac_objext'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE_SOCKLEN_T 1
15858 _ACEOF
15859
15860    echo "$as_me:$LINENO: result: yes" >&5
15861 echo "${ECHO_T}yes" >&6
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 echo "$as_me:$LINENO: result: no" >&5
15867 echo "${ECHO_T}no" >&6
15868 fi
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15870
15871 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15872 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h.  */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h.  */
15879 #include <time.h>
15880 int
15881 main ()
15882 {
15883 struct tm tim; tim.tm_gmtoff = 0;
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890   (eval $ac_compile) 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -z "$ac_c_werror_flag"
15898                          || test ! -s conftest.err'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910
15911 cat >>confdefs.h <<\_ACEOF
15912 #define STRUCT_TM_HAS_GMTOFF 1
15913 _ACEOF
15914
15915    echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 echo "$as_me:$LINENO: result: no" >&5
15922 echo "${ECHO_T}no" >&6
15923    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15924 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15925                cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931 #include <time.h>
15932 int
15933 main ()
15934 {
15935 void i(){long z2 = 2*timezone;}
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942   (eval $ac_compile) 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag"
15950                          || test ! -s conftest.err'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; } &&
15956          { ac_try='test -s conftest.$ac_objext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_TIMEZONE 1
15965 _ACEOF
15966
15967       echo "$as_me:$LINENO: result: yes" >&5
15968 echo "${ECHO_T}yes" >&6
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6
15975        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15976 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15977               cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983 #include <time.h>
15984 int
15985 main ()
15986 {
15987 long z2 = _timezone;
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15994   (eval $ac_compile) 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -z "$ac_c_werror_flag"
16002                          || test ! -s conftest.err'
16003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004   (eval $ac_try) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest.$ac_objext'
16009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010   (eval $ac_try) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; }; then
16014
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_UNDERSCORE_TIMEZONE 1
16017 _ACEOF
16018
16019           echo "$as_me:$LINENO: result: yes" >&5
16020 echo "${ECHO_T}yes" >&6
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 echo "$as_me:$LINENO: result: no" >&5
16026 echo "${ECHO_T}no" >&6
16027 fi
16028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16029 fi
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031 fi
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033
16034 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16035 # for constant arguments.  Useless!
16036 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16037 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16038 if test "${ac_cv_working_alloca_h+set}" = set; then
16039   echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041   if test x$gcc_no_link = xyes; then
16042   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16044    { (exit 1); exit 1; }; }
16045 fi
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 #include <alloca.h>
16053 int
16054 main ()
16055 {
16056 char *p = (char *) alloca (2 * sizeof (int));
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063   (eval $ac_link) 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } &&
16070          { ac_try='test -z "$ac_c_werror_flag"
16071                          || test ! -s conftest.err'
16072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073   (eval $ac_try) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; } &&
16077          { ac_try='test -s conftest$ac_exeext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_working_alloca_h=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_cv_working_alloca_h=no
16089 fi
16090 rm -f conftest.err conftest.$ac_objext \
16091       conftest$ac_exeext conftest.$ac_ext
16092 fi
16093 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16094 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16095 if test $ac_cv_working_alloca_h = yes; then
16096
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_ALLOCA_H 1
16099 _ACEOF
16100
16101 fi
16102
16103 echo "$as_me:$LINENO: checking for alloca" >&5
16104 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16105 if test "${ac_cv_func_alloca_works+set}" = set; then
16106   echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108   if test x$gcc_no_link = xyes; then
16109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16111    { (exit 1); exit 1; }; }
16112 fi
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119 #ifdef __GNUC__
16120 # define alloca __builtin_alloca
16121 #else
16122 # ifdef _MSC_VER
16123 #  include <malloc.h>
16124 #  define alloca _alloca
16125 # else
16126 #  if HAVE_ALLOCA_H
16127 #   include <alloca.h>
16128 #  else
16129 #   ifdef _AIX
16130  #pragma alloca
16131 #   else
16132 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16133 char *alloca ();
16134 #    endif
16135 #   endif
16136 #  endif
16137 # endif
16138 #endif
16139
16140 int
16141 main ()
16142 {
16143 char *p = (char *) alloca (1);
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150   (eval $ac_link) 2>conftest.er1
16151   ac_status=$?
16152   grep -v '^ *+' conftest.er1 >conftest.err
16153   rm -f conftest.er1
16154   cat conftest.err >&5
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); } &&
16157          { ac_try='test -z "$ac_c_werror_flag"
16158                          || test ! -s conftest.err'
16159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160   (eval $ac_try) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; } &&
16164          { ac_try='test -s conftest$ac_exeext'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; }; then
16170   ac_cv_func_alloca_works=yes
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175 ac_cv_func_alloca_works=no
16176 fi
16177 rm -f conftest.err conftest.$ac_objext \
16178       conftest$ac_exeext conftest.$ac_ext
16179 fi
16180 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16181 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16182
16183 if test $ac_cv_func_alloca_works = yes; then
16184
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_ALLOCA 1
16187 _ACEOF
16188
16189 else
16190   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16191 # that cause trouble.  Some versions do not even contain alloca or
16192 # contain a buggy version.  If you still want to use their alloca,
16193 # use ar to extract alloca.o from them instead of compiling alloca.c.
16194
16195 ALLOCA=alloca.$ac_objext
16196
16197 cat >>confdefs.h <<\_ACEOF
16198 #define C_ALLOCA 1
16199 _ACEOF
16200
16201
16202 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16203 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16204 if test "${ac_cv_os_cray+set}" = set; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207   cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 #if defined(CRAY) && ! defined(CRAY2)
16214 webecray
16215 #else
16216 wenotbecray
16217 #endif
16218
16219 _ACEOF
16220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16221   $EGREP "webecray" >/dev/null 2>&1; then
16222   ac_cv_os_cray=yes
16223 else
16224   ac_cv_os_cray=no
16225 fi
16226 rm -f conftest*
16227
16228 fi
16229 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16230 echo "${ECHO_T}$ac_cv_os_cray" >&6
16231 if test $ac_cv_os_cray = yes; then
16232   for ac_func in _getb67 GETB67 getb67; do
16233     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16234 echo "$as_me:$LINENO: checking for $ac_func" >&5
16235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16236 if eval "test \"\${$as_ac_var+set}\" = set"; then
16237   echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239   if test x$gcc_no_link = xyes; then
16240   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16242    { (exit 1); exit 1; }; }
16243 fi
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h.  */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h.  */
16250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16252 #define $ac_func innocuous_$ac_func
16253
16254 /* System header to define __stub macros and hopefully few prototypes,
16255     which can conflict with char $ac_func (); below.
16256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16257     <limits.h> exists even on freestanding compilers.  */
16258
16259 #ifdef __STDC__
16260 # include <limits.h>
16261 #else
16262 # include <assert.h>
16263 #endif
16264
16265 #undef $ac_func
16266
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 #ifdef __cplusplus
16269 extern "C"
16270 {
16271 #endif
16272 /* We use char because int might match the return type of a gcc2
16273    builtin and then its argument prototype would still apply.  */
16274 char $ac_func ();
16275 /* The GNU C library defines this for functions which it implements
16276     to always fail with ENOSYS.  Some functions are actually named
16277     something starting with __ and the normal name is an alias.  */
16278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279 choke me
16280 #else
16281 char (*f) () = $ac_func;
16282 #endif
16283 #ifdef __cplusplus
16284 }
16285 #endif
16286
16287 int
16288 main ()
16289 {
16290 return f != $ac_func;
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16297   (eval $ac_link) 2>conftest.er1
16298   ac_status=$?
16299   grep -v '^ *+' conftest.er1 >conftest.err
16300   rm -f conftest.er1
16301   cat conftest.err >&5
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); } &&
16304          { ac_try='test -z "$ac_c_werror_flag"
16305                          || test ! -s conftest.err'
16306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307   (eval $ac_try) 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }; } &&
16311          { ac_try='test -s conftest$ac_exeext'
16312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313   (eval $ac_try) 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; }; then
16317   eval "$as_ac_var=yes"
16318 else
16319   echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 eval "$as_ac_var=no"
16323 fi
16324 rm -f conftest.err conftest.$ac_objext \
16325       conftest$ac_exeext conftest.$ac_ext
16326 fi
16327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16329 if test `eval echo '${'$as_ac_var'}'` = yes; then
16330
16331 cat >>confdefs.h <<_ACEOF
16332 #define CRAY_STACKSEG_END $ac_func
16333 _ACEOF
16334
16335     break
16336 fi
16337
16338   done
16339 fi
16340
16341 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16342 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16343 if test "${ac_cv_c_stack_direction+set}" = set; then
16344   echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346   if test "$cross_compiling" = yes; then
16347   ac_cv_c_stack_direction=0
16348 else
16349   cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 int
16356 find_stack_direction ()
16357 {
16358   static char *addr = 0;
16359   auto char dummy;
16360   if (addr == 0)
16361     {
16362       addr = &dummy;
16363       return find_stack_direction ();
16364     }
16365   else
16366     return (&dummy > addr) ? 1 : -1;
16367 }
16368
16369 int
16370 main ()
16371 {
16372   exit (find_stack_direction () < 0);
16373 }
16374 _ACEOF
16375 rm -f conftest$ac_exeext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377   (eval $ac_link) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382   (eval $ac_try) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; }; then
16386   ac_cv_c_stack_direction=1
16387 else
16388   echo "$as_me: program exited with status $ac_status" >&5
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 ( exit $ac_status )
16393 ac_cv_c_stack_direction=-1
16394 fi
16395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16396 fi
16397 fi
16398 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16399 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16400
16401 cat >>confdefs.h <<_ACEOF
16402 #define STACK_DIRECTION $ac_cv_c_stack_direction
16403 _ACEOF
16404
16405
16406 fi
16407
16408
16409 for ac_prog in perl
16410 do
16411   # Extract the first word of "$ac_prog", so it can be a program name with args.
16412 set dummy $ac_prog; ac_word=$2
16413 echo "$as_me:$LINENO: checking for $ac_word" >&5
16414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16415 if test "${ac_cv_prog_PERL+set}" = set; then
16416   echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418   if test -n "$PERL"; then
16419   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16420 else
16421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422 for as_dir in $PATH
16423 do
16424   IFS=$as_save_IFS
16425   test -z "$as_dir" && as_dir=.
16426   for ac_exec_ext in '' $ac_executable_extensions; do
16427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16428     ac_cv_prog_PERL="$ac_prog"
16429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16430     break 2
16431   fi
16432 done
16433 done
16434
16435 fi
16436 fi
16437 PERL=$ac_cv_prog_PERL
16438 if test -n "$PERL"; then
16439   echo "$as_me:$LINENO: result: $PERL" >&5
16440 echo "${ECHO_T}$PERL" >&6
16441 else
16442   echo "$as_me:$LINENO: result: no" >&5
16443 echo "${ECHO_T}no" >&6
16444 fi
16445
16446   test -n "$PERL" && break
16447 done
16448 test -n "$PERL" || PERL="false"
16449
16450
16451 SYSDEP_SOURCES=
16452 SIGNAL_HANDLER_AUX=
16453
16454 case "${host}" in
16455  i?86-*-linux*)
16456     SIGNAL_HANDLER=include/i386-signal.h
16457     ;;
16458  sparc*-sun-solaris*)
16459     SIGNAL_HANDLER=include/sparc-signal.h
16460     ;;
16461 # ia64-*)
16462 #    SYSDEP_SOURCES=sysdep/ia64.c
16463 #    test -d sysdep || mkdir sysdep
16464 #    ;;
16465  hppa*-*-linux*)
16466     SIGNAL_HANDLER=include/pa-signal.h
16467     ;;
16468  hppa*-hp-hpux*)
16469     SIGNAL_HANDLER=include/hppa-signal.h
16470     ;;
16471  ia64-*-linux*)
16472     SIGNAL_HANDLER=include/dwarf2-signal.h
16473     ;;
16474  powerpc*-*-linux*)
16475     SIGNAL_HANDLER=include/powerpc-signal.h
16476     ;;
16477  alpha*-*-linux*)
16478     SIGNAL_HANDLER=include/dwarf2-signal.h
16479     ;;
16480  s390*-*-linux*)
16481     SIGNAL_HANDLER=include/s390-signal.h
16482     ;;
16483  x86_64*-*-linux*)
16484     SIGNAL_HANDLER=include/x86_64-signal.h
16485     SIGNAL_HANDLER_AUX=include/i386-signal.h
16486     ;;
16487  sparc*-*-linux*)
16488     SIGNAL_HANDLER=include/dwarf2-signal.h
16489     ;;
16490  sh*-*-linux*)
16491     SIGNAL_HANDLER=include/sh-signal.h
16492     ;;
16493  *mingw*)
16494     SIGNAL_HANDLER=include/win32-signal.h
16495     ;;
16496  mips*-*-linux*)
16497     SIGNAL_HANDLER=include/mips-signal.h
16498     ;;
16499  *-*-darwin*)
16500     SIGNAL_HANDLER=include/darwin-signal.h
16501     ;;
16502  *)
16503     SIGNAL_HANDLER=include/default-signal.h
16504     ;;
16505 esac
16506
16507 # If we're using sjlj exceptions, forget what we just learned.
16508 if test "$enable_sjlj_exceptions" = yes; then
16509    SIGNAL_HANDLER=include/default-signal.h
16510    SIGNAL_HANDLER_AUX=
16511 fi
16512
16513
16514
16515 if test -z "$SIGNAL_HANDLER_AUX"; then
16516   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16517 fi
16518
16519                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16520
16521
16522 if test "${multilib}" = "yes"; then
16523   multilib_arg="--enable-multilib"
16524 else
16525   multilib_arg=
16526 fi
16527
16528 # See if we support thread-local storage.
16529
16530    # Check whether --enable-tls or --disable-tls was given.
16531 if test "${enable_tls+set}" = set; then
16532   enableval="$enable_tls"
16533
16534       case "$enableval" in
16535        yes|no) ;;
16536        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16537 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16538    { (exit 1); exit 1; }; } ;;
16539       esac
16540
16541 else
16542   enable_tls=yes
16543 fi;
16544
16545   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16546 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16547 if test "${have_tls+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550
16551     if test "$cross_compiling" = yes; then
16552   cat >conftest.$ac_ext <<_ACEOF
16553 __thread int foo;
16554 _ACEOF
16555 rm -f conftest.$ac_objext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16557   (eval $ac_compile) 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -z "$ac_c_werror_flag"
16565                          || test ! -s conftest.err'
16566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567   (eval $ac_try) 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; } &&
16571          { ac_try='test -s conftest.$ac_objext'
16572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573   (eval $ac_try) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); }; }; then
16577   have_tls=yes
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 have_tls=no
16583 fi
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16585
16586 else
16587   cat >conftest.$ac_ext <<_ACEOF
16588 __thread int a; int b; int main() { return a = b; }
16589 _ACEOF
16590 rm -f conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592   (eval $ac_link) 2>&5
16593   ac_status=$?
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; }; then
16601                     save_LDFLAGS="$LDFLAGS"
16602       LDFLAGS="-static $LDFLAGS"
16603       if test "$cross_compiling" = yes; then
16604   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16605 See \`config.log' for more details." >&5
16606 echo "$as_me: error: cannot run test program while cross compiling
16607 See \`config.log' for more details." >&2;}
16608    { (exit 1); exit 1; }; }
16609 else
16610   cat >conftest.$ac_ext <<_ACEOF
16611 __thread int a; int b; int main() { return a = b; }
16612 _ACEOF
16613 rm -f conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615   (eval $ac_link) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620   (eval $ac_try) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; }; then
16624   have_tls=yes
16625 else
16626   echo "$as_me: program exited with status $ac_status" >&5
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ( exit $ac_status )
16631 have_tls=no
16632 fi
16633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16634 fi
16635       LDFLAGS="$save_LDFLAGS"
16636 else
16637   echo "$as_me: program exited with status $ac_status" >&5
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 ( exit $ac_status )
16642 have_tls=no
16643 fi
16644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16645 fi
16646 fi
16647 echo "$as_me:$LINENO: result: $have_tls" >&5
16648 echo "${ECHO_T}$have_tls" >&6
16649   if test "$enable_tls $have_tls" = "yes yes"; then
16650
16651 cat >>confdefs.h <<\_ACEOF
16652 #define HAVE_TLS 1
16653 _ACEOF
16654
16655   fi
16656
16657 # Check if linker supports static linking on a per library basis
16658 LD_START_STATIC_SPEC=
16659 LD_FINISH_STATIC_SPEC=
16660 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16661   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16662     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16663     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16664   fi
16665 fi
16666
16667
16668
16669 here=`${PWDCMD-pwd}`
16670
16671
16672 # We get this from the environment.
16673
16674
16675                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16676
16677
16678           ac_config_files="$ac_config_files scripts/jar"
16679
16680
16681           ac_config_commands="$ac_config_commands default"
16682
16683
16684 cat >confcache <<\_ACEOF
16685 # This file is a shell script that caches the results of configure
16686 # tests run on this system so they can be shared between configure
16687 # scripts and configure runs, see configure's option --config-cache.
16688 # It is not useful on other systems.  If it contains results you don't
16689 # want to keep, you may remove or edit it.
16690 #
16691 # config.status only pays attention to the cache file if you give it
16692 # the --recheck option to rerun configure.
16693 #
16694 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16696 # following values.
16697
16698 _ACEOF
16699
16700 # The following way of writing the cache mishandles newlines in values,
16701 # but we know of no workaround that is simple, portable, and efficient.
16702 # So, don't put newlines in cache variables' values.
16703 # Ultrix sh set writes to stderr and can't be redirected directly,
16704 # and sets the high bit in the cache file unless we assign to the vars.
16705 {
16706   (set) 2>&1 |
16707     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16708     *ac_space=\ *)
16709       # `set' does not quote correctly, so add quotes (double-quote
16710       # substitution turns \\\\ into \\, and sed turns \\ into \).
16711       sed -n \
16712         "s/'/'\\\\''/g;
16713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16714       ;;
16715     *)
16716       # `set' quotes correctly as required by POSIX, so do not add quotes.
16717       sed -n \
16718         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16719       ;;
16720     esac;
16721 } |
16722   sed '
16723      t clear
16724      : clear
16725      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16726      t end
16727      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16728      : end' >>confcache
16729 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16730   if test -w $cache_file; then
16731     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16732     cat confcache >$cache_file
16733   else
16734     echo "not updating unwritable cache $cache_file"
16735   fi
16736 fi
16737 rm -f confcache
16738
16739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16740 # Let make expand exec_prefix.
16741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16742
16743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16745 # trailing colons and then remove the whole line if VPATH becomes empty
16746 # (actually we leave an empty line to preserve line numbers).
16747 if test "x$srcdir" = x.; then
16748   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16749 s/:*\$(srcdir):*/:/;
16750 s/:*\${srcdir}:*/:/;
16751 s/:*@srcdir@:*/:/;
16752 s/^\([^=]*=[     ]*\):*/\1/;
16753 s/:*$//;
16754 s/^[^=]*=[       ]*$//;
16755 }'
16756 fi
16757
16758 DEFS=-DHAVE_CONFIG_H
16759
16760 ac_libobjs=
16761 ac_ltlibobjs=
16762 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16763   # 1. Remove the extension, and $U if already installed.
16764   ac_i=`echo "$ac_i" |
16765          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16766   # 2. Add them.
16767   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16768   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16769 done
16770 LIBOBJS=$ac_libobjs
16771
16772 LTLIBOBJS=$ac_ltlibobjs
16773
16774
16775 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16776   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16777 Usually this means the macro was only invoked conditionally." >&5
16778 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&2;}
16780    { (exit 1); exit 1; }; }
16781 fi
16782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16783   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16784 Usually this means the macro was only invoked conditionally." >&5
16785 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&2;}
16787    { (exit 1); exit 1; }; }
16788 fi
16789 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16790   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16791 Usually this means the macro was only invoked conditionally." >&5
16792 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&2;}
16794    { (exit 1); exit 1; }; }
16795 fi
16796 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16797   { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16798 Usually this means the macro was only invoked conditionally." >&5
16799 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&2;}
16801    { (exit 1); exit 1; }; }
16802 fi
16803 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16804   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16805 Usually this means the macro was only invoked conditionally." >&5
16806 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&2;}
16808    { (exit 1); exit 1; }; }
16809 fi
16810 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16811   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16812 Usually this means the macro was only invoked conditionally." >&5
16813 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&2;}
16815    { (exit 1); exit 1; }; }
16816 fi
16817 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16818   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16819 Usually this means the macro was only invoked conditionally." >&5
16820 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&2;}
16822    { (exit 1); exit 1; }; }
16823 fi
16824 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16825   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16826 Usually this means the macro was only invoked conditionally." >&5
16827 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&2;}
16829    { (exit 1); exit 1; }; }
16830 fi
16831 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16832   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16833 Usually this means the macro was only invoked conditionally." >&5
16834 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&2;}
16836    { (exit 1); exit 1; }; }
16837 fi
16838 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16839   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16840 Usually this means the macro was only invoked conditionally." >&5
16841 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&2;}
16843    { (exit 1); exit 1; }; }
16844 fi
16845 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16846   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16847 Usually this means the macro was only invoked conditionally." >&5
16848 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16849 Usually this means the macro was only invoked conditionally." >&2;}
16850    { (exit 1); exit 1; }; }
16851 fi
16852 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16853   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16854 Usually this means the macro was only invoked conditionally." >&5
16855 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16856 Usually this means the macro was only invoked conditionally." >&2;}
16857    { (exit 1); exit 1; }; }
16858 fi
16859 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16860   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16861 Usually this means the macro was only invoked conditionally." >&5
16862 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16863 Usually this means the macro was only invoked conditionally." >&2;}
16864    { (exit 1); exit 1; }; }
16865 fi
16866 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16867   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16868 Usually this means the macro was only invoked conditionally." >&5
16869 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16870 Usually this means the macro was only invoked conditionally." >&2;}
16871    { (exit 1); exit 1; }; }
16872 fi
16873 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16874   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16875 Usually this means the macro was only invoked conditionally." >&5
16876 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16877 Usually this means the macro was only invoked conditionally." >&2;}
16878    { (exit 1); exit 1; }; }
16879 fi
16880 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16881   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16882 Usually this means the macro was only invoked conditionally." >&5
16883 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16884 Usually this means the macro was only invoked conditionally." >&2;}
16885    { (exit 1); exit 1; }; }
16886 fi
16887 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16888   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16889 Usually this means the macro was only invoked conditionally." >&5
16890 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16891 Usually this means the macro was only invoked conditionally." >&2;}
16892    { (exit 1); exit 1; }; }
16893 fi
16894 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
16895   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16896 Usually this means the macro was only invoked conditionally." >&5
16897 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16898 Usually this means the macro was only invoked conditionally." >&2;}
16899    { (exit 1); exit 1; }; }
16900 fi
16901 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16902   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16903 Usually this means the macro was only invoked conditionally." >&5
16904 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16905 Usually this means the macro was only invoked conditionally." >&2;}
16906    { (exit 1); exit 1; }; }
16907 fi
16908 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16909   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16910 Usually this means the macro was only invoked conditionally." >&5
16911 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16912 Usually this means the macro was only invoked conditionally." >&2;}
16913    { (exit 1); exit 1; }; }
16914 fi
16915 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16916   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16917 Usually this means the macro was only invoked conditionally." >&5
16918 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16919 Usually this means the macro was only invoked conditionally." >&2;}
16920    { (exit 1); exit 1; }; }
16921 fi
16922
16923 : ${CONFIG_STATUS=./config.status}
16924 ac_clean_files_save=$ac_clean_files
16925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16928 cat >$CONFIG_STATUS <<_ACEOF
16929 #! $SHELL
16930 # Generated by $as_me.
16931 # Run this file to recreate the current configuration.
16932 # Compiler output produced by configure, useful for debugging
16933 # configure, is in config.log if it exists.
16934
16935 debug=false
16936 ac_cs_recheck=false
16937 ac_cs_silent=false
16938 SHELL=\${CONFIG_SHELL-$SHELL}
16939 _ACEOF
16940
16941 cat >>$CONFIG_STATUS <<\_ACEOF
16942 ## --------------------- ##
16943 ## M4sh Initialization.  ##
16944 ## --------------------- ##
16945
16946 # Be Bourne compatible
16947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16948   emulate sh
16949   NULLCMD=:
16950   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16951   # is contrary to our usage.  Disable this feature.
16952   alias -g '${1+"$@"}'='"$@"'
16953 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16954   set -o posix
16955 fi
16956 DUALCASE=1; export DUALCASE # for MKS sh
16957
16958 # Support unset when possible.
16959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16960   as_unset=unset
16961 else
16962   as_unset=false
16963 fi
16964
16965
16966 # Work around bugs in pre-3.0 UWIN ksh.
16967 $as_unset ENV MAIL MAILPATH
16968 PS1='$ '
16969 PS2='> '
16970 PS4='+ '
16971
16972 # NLS nuisances.
16973 for as_var in \
16974   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16975   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16976   LC_TELEPHONE LC_TIME
16977 do
16978   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16979     eval $as_var=C; export $as_var
16980   else
16981     $as_unset $as_var
16982   fi
16983 done
16984
16985 # Required to use basename.
16986 if expr a : '\(a\)' >/dev/null 2>&1; then
16987   as_expr=expr
16988 else
16989   as_expr=false
16990 fi
16991
16992 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16993   as_basename=basename
16994 else
16995   as_basename=false
16996 fi
16997
16998
16999 # Name of the executable.
17000 as_me=`$as_basename "$0" ||
17001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17002          X"$0" : 'X\(//\)$' \| \
17003          X"$0" : 'X\(/\)$' \| \
17004          .     : '\(.\)' 2>/dev/null ||
17005 echo X/"$0" |
17006     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17007           /^X\/\(\/\/\)$/{ s//\1/; q; }
17008           /^X\/\(\/\).*/{ s//\1/; q; }
17009           s/.*/./; q'`
17010
17011
17012 # PATH needs CR, and LINENO needs CR and PATH.
17013 # Avoid depending upon Character Ranges.
17014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17017 as_cr_digits='0123456789'
17018 as_cr_alnum=$as_cr_Letters$as_cr_digits
17019
17020 # The user is always right.
17021 if test "${PATH_SEPARATOR+set}" != set; then
17022   echo "#! /bin/sh" >conf$$.sh
17023   echo  "exit 0"   >>conf$$.sh
17024   chmod +x conf$$.sh
17025   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17026     PATH_SEPARATOR=';'
17027   else
17028     PATH_SEPARATOR=:
17029   fi
17030   rm -f conf$$.sh
17031 fi
17032
17033
17034   as_lineno_1=$LINENO
17035   as_lineno_2=$LINENO
17036   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17037   test "x$as_lineno_1" != "x$as_lineno_2" &&
17038   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17039   # Find who we are.  Look in the path if we contain no path at all
17040   # relative or not.
17041   case $0 in
17042     *[\\/]* ) as_myself=$0 ;;
17043     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17044 for as_dir in $PATH
17045 do
17046   IFS=$as_save_IFS
17047   test -z "$as_dir" && as_dir=.
17048   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17049 done
17050
17051        ;;
17052   esac
17053   # We did not find ourselves, most probably we were run as `sh COMMAND'
17054   # in which case we are not to be found in the path.
17055   if test "x$as_myself" = x; then
17056     as_myself=$0
17057   fi
17058   if test ! -f "$as_myself"; then
17059     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17060 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17061    { (exit 1); exit 1; }; }
17062   fi
17063   case $CONFIG_SHELL in
17064   '')
17065     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17066 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17067 do
17068   IFS=$as_save_IFS
17069   test -z "$as_dir" && as_dir=.
17070   for as_base in sh bash ksh sh5; do
17071          case $as_dir in
17072          /*)
17073            if ("$as_dir/$as_base" -c '
17074   as_lineno_1=$LINENO
17075   as_lineno_2=$LINENO
17076   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17077   test "x$as_lineno_1" != "x$as_lineno_2" &&
17078   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17079              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17080              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17081              CONFIG_SHELL=$as_dir/$as_base
17082              export CONFIG_SHELL
17083              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17084            fi;;
17085          esac
17086        done
17087 done
17088 ;;
17089   esac
17090
17091   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17092   # uniformly replaced by the line number.  The first 'sed' inserts a
17093   # line-number line before each line; the second 'sed' does the real
17094   # work.  The second script uses 'N' to pair each line-number line
17095   # with the numbered line, and appends trailing '-' during
17096   # substitution so that $LINENO is not a special case at line end.
17097   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17098   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17099   sed '=' <$as_myself |
17100     sed '
17101       N
17102       s,$,-,
17103       : loop
17104       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17105       t loop
17106       s,-$,,
17107       s,^['$as_cr_digits']*\n,,
17108     ' >$as_me.lineno &&
17109   chmod +x $as_me.lineno ||
17110     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17111 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17112    { (exit 1); exit 1; }; }
17113
17114   # Don't try to exec as it changes $[0], causing all sort of problems
17115   # (the dirname of $[0] is not the place where we might find the
17116   # original and so on.  Autoconf is especially sensible to this).
17117   . ./$as_me.lineno
17118   # Exit status is that of the last command.
17119   exit
17120 }
17121
17122
17123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17124   *c*,-n*) ECHO_N= ECHO_C='
17125 ' ECHO_T='      ' ;;
17126   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17127   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17128 esac
17129
17130 if expr a : '\(a\)' >/dev/null 2>&1; then
17131   as_expr=expr
17132 else
17133   as_expr=false
17134 fi
17135
17136 rm -f conf$$ conf$$.exe conf$$.file
17137 echo >conf$$.file
17138 if ln -s conf$$.file conf$$ 2>/dev/null; then
17139   # We could just check for DJGPP; but this test a) works b) is more generic
17140   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17141   if test -f conf$$.exe; then
17142     # Don't use ln at all; we don't have any links
17143     as_ln_s='cp -p'
17144   else
17145     as_ln_s='ln -s'
17146   fi
17147 elif ln conf$$.file conf$$ 2>/dev/null; then
17148   as_ln_s=ln
17149 else
17150   as_ln_s='cp -p'
17151 fi
17152 rm -f conf$$ conf$$.exe conf$$.file
17153
17154 if mkdir -p . 2>/dev/null; then
17155   as_mkdir_p=:
17156 else
17157   test -d ./-p && rmdir ./-p
17158   as_mkdir_p=false
17159 fi
17160
17161 as_executable_p="test -f"
17162
17163 # Sed expression to map a string onto a valid CPP name.
17164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17165
17166 # Sed expression to map a string onto a valid variable name.
17167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17168
17169
17170 # IFS
17171 # We need space, tab and new line, in precisely that order.
17172 as_nl='
17173 '
17174 IFS="   $as_nl"
17175
17176 # CDPATH.
17177 $as_unset CDPATH
17178
17179 exec 6>&1
17180
17181 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17182 # report actual input values of CONFIG_FILES etc. instead of their
17183 # values after options handling.  Logging --version etc. is OK.
17184 exec 5>>config.log
17185 {
17186   echo
17187   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17188 ## Running $as_me. ##
17189 _ASBOX
17190 } >&5
17191 cat >&5 <<_CSEOF
17192
17193 This file was extended by libjava $as_me version-unused, which was
17194 generated by GNU Autoconf 2.59.  Invocation command line was
17195
17196   CONFIG_FILES    = $CONFIG_FILES
17197   CONFIG_HEADERS  = $CONFIG_HEADERS
17198   CONFIG_LINKS    = $CONFIG_LINKS
17199   CONFIG_COMMANDS = $CONFIG_COMMANDS
17200   $ $0 $@
17201
17202 _CSEOF
17203 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17204 echo >&5
17205 _ACEOF
17206
17207 # Files that config.status was made for.
17208 if test -n "$ac_config_files"; then
17209   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17210 fi
17211
17212 if test -n "$ac_config_headers"; then
17213   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17214 fi
17215
17216 if test -n "$ac_config_links"; then
17217   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17218 fi
17219
17220 if test -n "$ac_config_commands"; then
17221   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17222 fi
17223
17224 cat >>$CONFIG_STATUS <<\_ACEOF
17225
17226 ac_cs_usage="\
17227 \`$as_me' instantiates files from templates according to the
17228 current configuration.
17229
17230 Usage: $0 [OPTIONS] [FILE]...
17231
17232   -h, --help       print this help, then exit
17233   -V, --version    print version number, then exit
17234   -q, --quiet      do not print progress messages
17235   -d, --debug      don't remove temporary files
17236       --recheck    update $as_me by reconfiguring in the same conditions
17237   --file=FILE[:TEMPLATE]
17238                    instantiate the configuration file FILE
17239   --header=FILE[:TEMPLATE]
17240                    instantiate the configuration header FILE
17241
17242 Configuration files:
17243 $config_files
17244
17245 Configuration headers:
17246 $config_headers
17247
17248 Configuration links:
17249 $config_links
17250
17251 Configuration commands:
17252 $config_commands
17253
17254 Report bugs to <bug-autoconf@gnu.org>."
17255 _ACEOF
17256
17257 cat >>$CONFIG_STATUS <<_ACEOF
17258 ac_cs_version="\\
17259 libjava config.status version-unused
17260 configured by $0, generated by GNU Autoconf 2.59,
17261   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17262
17263 Copyright (C) 2003 Free Software Foundation, Inc.
17264 This config.status script is free software; the Free Software Foundation
17265 gives unlimited permission to copy, distribute and modify it."
17266 srcdir=$srcdir
17267 INSTALL="$INSTALL"
17268 _ACEOF
17269
17270 cat >>$CONFIG_STATUS <<\_ACEOF
17271 # If no file are specified by the user, then we need to provide default
17272 # value.  By we need to know if files were specified by the user.
17273 ac_need_defaults=:
17274 while test $# != 0
17275 do
17276   case $1 in
17277   --*=*)
17278     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17279     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17280     ac_shift=:
17281     ;;
17282   -*)
17283     ac_option=$1
17284     ac_optarg=$2
17285     ac_shift=shift
17286     ;;
17287   *) # This is not an option, so the user has probably given explicit
17288      # arguments.
17289      ac_option=$1
17290      ac_need_defaults=false;;
17291   esac
17292
17293   case $ac_option in
17294   # Handling of the options.
17295 _ACEOF
17296 cat >>$CONFIG_STATUS <<\_ACEOF
17297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17298     ac_cs_recheck=: ;;
17299   --version | --vers* | -V )
17300     echo "$ac_cs_version"; exit 0 ;;
17301   --he | --h)
17302     # Conflict between --help and --header
17303     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17304 Try \`$0 --help' for more information." >&5
17305 echo "$as_me: error: ambiguous option: $1
17306 Try \`$0 --help' for more information." >&2;}
17307    { (exit 1); exit 1; }; };;
17308   --help | --hel | -h )
17309     echo "$ac_cs_usage"; exit 0 ;;
17310   --debug | --d* | -d )
17311     debug=: ;;
17312   --file | --fil | --fi | --f )
17313     $ac_shift
17314     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17315     ac_need_defaults=false;;
17316   --header | --heade | --head | --hea )
17317     $ac_shift
17318     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17319     ac_need_defaults=false;;
17320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17321   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17322     ac_cs_silent=: ;;
17323
17324   # This is an error.
17325   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17326 Try \`$0 --help' for more information." >&5
17327 echo "$as_me: error: unrecognized option: $1
17328 Try \`$0 --help' for more information." >&2;}
17329    { (exit 1); exit 1; }; } ;;
17330
17331   *) ac_config_targets="$ac_config_targets $1" ;;
17332
17333   esac
17334   shift
17335 done
17336
17337 ac_configure_extra_args=
17338
17339 if $ac_cs_silent; then
17340   exec 6>/dev/null
17341   ac_configure_extra_args="$ac_configure_extra_args --silent"
17342 fi
17343
17344 _ACEOF
17345 cat >>$CONFIG_STATUS <<_ACEOF
17346 if \$ac_cs_recheck; then
17347   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17348   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17349 fi
17350
17351 _ACEOF
17352
17353 cat >>$CONFIG_STATUS <<_ACEOF
17354 #
17355 # INIT-COMMANDS section.
17356 #
17357
17358 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17359 srcdir=${srcdir}
17360 host=${host}
17361 target=${target}
17362 with_multisubdir=${with_multisubdir}
17363 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17364 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17365 libgcj_basedir=${libgcj_basedir}
17366 CC="${CC}"
17367 CXX="${CXX}"
17368 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17369
17370
17371 _ACEOF
17372
17373
17374
17375 cat >>$CONFIG_STATUS <<\_ACEOF
17376 for ac_config_target in $ac_config_targets
17377 do
17378   case "$ac_config_target" in
17379   # Handling of arguments.
17380   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17381   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17382   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17383   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17384   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17385   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17386   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17387   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17388   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17389   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17390   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17391   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17392   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17393   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17394   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17395   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17396   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17397   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17398   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17399   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17400   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17401   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17402   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17403   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17404   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17405   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17406   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17407   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17408   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17409   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17410   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17411 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17412    { (exit 1); exit 1; }; };;
17413   esac
17414 done
17415
17416 # If the user did not use the arguments to specify the items to instantiate,
17417 # then the envvar interface is used.  Set only those that are not.
17418 # We use the long form for the default assignment because of an extremely
17419 # bizarre bug on SunOS 4.1.3.
17420 if $ac_need_defaults; then
17421   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17422   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17423   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17424   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17425 fi
17426
17427 # Have a temporary directory for convenience.  Make it in the build tree
17428 # simply because there is no reason to put it here, and in addition,
17429 # creating and moving files from /tmp can sometimes cause problems.
17430 # Create a temporary directory, and hook for its removal unless debugging.
17431 $debug ||
17432 {
17433   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17434   trap '{ (exit 1); exit 1; }' 1 2 13 15
17435 }
17436
17437 # Create a (secure) tmp directory for tmp files.
17438
17439 {
17440   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17441   test -n "$tmp" && test -d "$tmp"
17442 }  ||
17443 {
17444   tmp=./confstat$$-$RANDOM
17445   (umask 077 && mkdir $tmp)
17446 } ||
17447 {
17448    echo "$me: cannot create a temporary directory in ." >&2
17449    { (exit 1); exit 1; }
17450 }
17451
17452 _ACEOF
17453
17454 cat >>$CONFIG_STATUS <<_ACEOF
17455
17456 #
17457 # CONFIG_FILES section.
17458 #
17459
17460 # No need to generate the scripts if there are no CONFIG_FILES.
17461 # This happens for instance when ./config.status config.h
17462 if test -n "\$CONFIG_FILES"; then
17463   # Protect against being on the right side of a sed subst in config.status.
17464   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17465    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17466 s,@SHELL@,$SHELL,;t t
17467 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17468 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17469 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17470 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17471 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17472 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17473 s,@exec_prefix@,$exec_prefix,;t t
17474 s,@prefix@,$prefix,;t t
17475 s,@program_transform_name@,$program_transform_name,;t t
17476 s,@bindir@,$bindir,;t t
17477 s,@sbindir@,$sbindir,;t t
17478 s,@libexecdir@,$libexecdir,;t t
17479 s,@datadir@,$datadir,;t t
17480 s,@sysconfdir@,$sysconfdir,;t t
17481 s,@sharedstatedir@,$sharedstatedir,;t t
17482 s,@localstatedir@,$localstatedir,;t t
17483 s,@libdir@,$libdir,;t t
17484 s,@includedir@,$includedir,;t t
17485 s,@oldincludedir@,$oldincludedir,;t t
17486 s,@infodir@,$infodir,;t t
17487 s,@mandir@,$mandir,;t t
17488 s,@build_alias@,$build_alias,;t t
17489 s,@host_alias@,$host_alias,;t t
17490 s,@target_alias@,$target_alias,;t t
17491 s,@DEFS@,$DEFS,;t t
17492 s,@ECHO_C@,$ECHO_C,;t t
17493 s,@ECHO_N@,$ECHO_N,;t t
17494 s,@ECHO_T@,$ECHO_T,;t t
17495 s,@LIBS@,$LIBS,;t t
17496 s,@build@,$build,;t t
17497 s,@build_cpu@,$build_cpu,;t t
17498 s,@build_vendor@,$build_vendor,;t t
17499 s,@build_os@,$build_os,;t t
17500 s,@build_libsubdir@,$build_libsubdir,;t t
17501 s,@build_subdir@,$build_subdir,;t t
17502 s,@host_subdir@,$host_subdir,;t t
17503 s,@target_subdir@,$target_subdir,;t t
17504 s,@libgcj_basedir@,$libgcj_basedir,;t t
17505 s,@host@,$host,;t t
17506 s,@host_cpu@,$host_cpu,;t t
17507 s,@host_vendor@,$host_vendor,;t t
17508 s,@host_os@,$host_os,;t t
17509 s,@target@,$target,;t t
17510 s,@target_cpu@,$target_cpu,;t t
17511 s,@target_vendor@,$target_vendor,;t t
17512 s,@target_os@,$target_os,;t t
17513 s,@target_noncanonical@,$target_noncanonical,;t t
17514 s,@LN_S@,$LN_S,;t t
17515 s,@mkinstalldirs@,$mkinstalldirs,;t t
17516 s,@CC@,$CC,;t t
17517 s,@ac_ct_CC@,$ac_ct_CC,;t t
17518 s,@EXEEXT@,$EXEEXT,;t t
17519 s,@OBJEXT@,$OBJEXT,;t t
17520 s,@CXX@,$CXX,;t t
17521 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17522 s,@CFLAGS@,$CFLAGS,;t t
17523 s,@CXXFLAGS@,$CXXFLAGS,;t t
17524 s,@LDFLAGS@,$LDFLAGS,;t t
17525 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17526 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17527 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17528 s,@CYGPATH_W@,$CYGPATH_W,;t t
17529 s,@PACKAGE@,$PACKAGE,;t t
17530 s,@VERSION@,$VERSION,;t t
17531 s,@ACLOCAL@,$ACLOCAL,;t t
17532 s,@AUTOCONF@,$AUTOCONF,;t t
17533 s,@AUTOMAKE@,$AUTOMAKE,;t t
17534 s,@AUTOHEADER@,$AUTOHEADER,;t t
17535 s,@MAKEINFO@,$MAKEINFO,;t t
17536 s,@install_sh@,$install_sh,;t t
17537 s,@STRIP@,$STRIP,;t t
17538 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17539 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17540 s,@mkdir_p@,$mkdir_p,;t t
17541 s,@AWK@,$AWK,;t t
17542 s,@SET_MAKE@,$SET_MAKE,;t t
17543 s,@am__leading_dot@,$am__leading_dot,;t t
17544 s,@AMTAR@,$AMTAR,;t t
17545 s,@am__tar@,$am__tar,;t t
17546 s,@am__untar@,$am__untar,;t t
17547 s,@DEPDIR@,$DEPDIR,;t t
17548 s,@am__include@,$am__include,;t t
17549 s,@am__quote@,$am__quote,;t t
17550 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17551 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17552 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17553 s,@CCDEPMODE@,$CCDEPMODE,;t t
17554 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17555 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17556 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17557 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17558 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17559 s,@AS@,$AS,;t t
17560 s,@ac_ct_AS@,$ac_ct_AS,;t t
17561 s,@LD@,$LD,;t t
17562 s,@ac_ct_LD@,$ac_ct_LD,;t t
17563 s,@AR@,$AR,;t t
17564 s,@ac_ct_AR@,$ac_ct_AR,;t t
17565 s,@RANLIB@,$RANLIB,;t t
17566 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17567 s,@JAR@,$JAR,;t t
17568 s,@ZIP@,$ZIP,;t t
17569 s,@UNZIP@,$UNZIP,;t t
17570 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17571 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17572 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17573 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17574 s,@MAINT@,$MAINT,;t t
17575 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17576 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17577 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17578 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17579 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17580 s,@TOOLKIT@,$TOOLKIT,;t t
17581 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17582 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17583 s,@GCJH@,$GCJH,;t t
17584 s,@INCLTDL@,$INCLTDL,;t t
17585 s,@LIBLTDL@,$LIBLTDL,;t t
17586 s,@DIRLTDL@,$DIRLTDL,;t t
17587 s,@LIBTOOL@,$LIBTOOL,;t t
17588 s,@CXXCPP@,$CXXCPP,;t t
17589 s,@CPPFLAGS@,$CPPFLAGS,;t t
17590 s,@GCJ@,$GCJ,;t t
17591 s,@GCJFLAGS@,$GCJFLAGS,;t t
17592 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17593 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17594 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17595 s,@subdirs@,$subdirs,;t t
17596 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17597 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17598 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17599 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17600 s,@JAVA_HOME@,$JAVA_HOME,;t t
17601 s,@INTERPRETER@,$INTERPRETER,;t t
17602 s,@LIBFFI@,$LIBFFI,;t t
17603 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17604 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17605 s,@CPP@,$CPP,;t t
17606 s,@EGREP@,$EGREP,;t t
17607 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17608 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17609 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17610 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17611 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17612 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17613 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17614 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17615 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17616 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17617 s,@X_CFLAGS@,$X_CFLAGS,;t t
17618 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17619 s,@X_LIBS@,$X_LIBS,;t t
17620 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17621 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17622 s,@GCLIBS@,$GCLIBS,;t t
17623 s,@GCINCS@,$GCINCS,;t t
17624 s,@GCDEPS@,$GCDEPS,;t t
17625 s,@GCSPEC@,$GCSPEC,;t t
17626 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17627 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17628 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17629 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17630 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17631 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17632 s,@THREADLIBS@,$THREADLIBS,;t t
17633 s,@THREADINCS@,$THREADINCS,;t t
17634 s,@THREADDEPS@,$THREADDEPS,;t t
17635 s,@THREADSPEC@,$THREADSPEC,;t t
17636 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17637 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17638 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17639 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17640 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17641 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17642 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17643 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17644 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17645 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17646 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17647 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17648 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17649 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17650 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17651 s,@LIBICONV@,$LIBICONV,;t t
17652 s,@LTLIBICONV@,$LTLIBICONV,;t t
17653 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17654 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17655 s,@GTK_LIBS@,$GTK_LIBS,;t t
17656 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17657 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17658 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17659 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17660 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17661 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17662 s,@ZLIBS@,$ZLIBS,;t t
17663 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17664 s,@ZINCS@,$ZINCS,;t t
17665 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17666 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17667 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17668 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17669 s,@IEEESPEC@,$IEEESPEC,;t t
17670 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17671 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17672 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17673 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17674 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17675 s,@toolexecdir@,$toolexecdir,;t t
17676 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17677 s,@toolexeclibdir@,$toolexeclibdir,;t t
17678 s,@dbexecdir@,$dbexecdir,;t t
17679 s,@GCJVERSION@,$GCJVERSION,;t t
17680 s,@gxx_include_dir@,$gxx_include_dir,;t t
17681 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17682 s,@ALLOCA@,$ALLOCA,;t t
17683 s,@PERL@,$PERL,;t t
17684 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17685 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17686 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17687 s,@here@,$here,;t t
17688 s,@LIBOBJS@,$LIBOBJS,;t t
17689 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17690 CEOF
17691
17692 _ACEOF
17693
17694   cat >>$CONFIG_STATUS <<\_ACEOF
17695   # Split the substitutions into bite-sized pieces for seds with
17696   # small command number limits, like on Digital OSF/1 and HP-UX.
17697   ac_max_sed_lines=48
17698   ac_sed_frag=1 # Number of current file.
17699   ac_beg=1 # First line for current file.
17700   ac_end=$ac_max_sed_lines # Line after last line for current file.
17701   ac_more_lines=:
17702   ac_sed_cmds=
17703   while $ac_more_lines; do
17704     if test $ac_beg -gt 1; then
17705       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17706     else
17707       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17708     fi
17709     if test ! -s $tmp/subs.frag; then
17710       ac_more_lines=false
17711     else
17712       # The purpose of the label and of the branching condition is to
17713       # speed up the sed processing (if there are no `@' at all, there
17714       # is no need to browse any of the substitutions).
17715       # These are the two extra sed commands mentioned above.
17716       (echo ':t
17717   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17718       if test -z "$ac_sed_cmds"; then
17719         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17720       else
17721         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17722       fi
17723       ac_sed_frag=`expr $ac_sed_frag + 1`
17724       ac_beg=$ac_end
17725       ac_end=`expr $ac_end + $ac_max_sed_lines`
17726     fi
17727   done
17728   if test -z "$ac_sed_cmds"; then
17729     ac_sed_cmds=cat
17730   fi
17731 fi # test -n "$CONFIG_FILES"
17732
17733 _ACEOF
17734 cat >>$CONFIG_STATUS <<\_ACEOF
17735 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17736   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17737   case $ac_file in
17738   - | *:- | *:-:* ) # input from stdin
17739         cat >$tmp/stdin
17740         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17741         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17742   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17743         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17744   * )   ac_file_in=$ac_file.in ;;
17745   esac
17746
17747   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17748   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17750          X"$ac_file" : 'X\(//\)[^/]' \| \
17751          X"$ac_file" : 'X\(//\)$' \| \
17752          X"$ac_file" : 'X\(/\)' \| \
17753          .     : '\(.\)' 2>/dev/null ||
17754 echo X"$ac_file" |
17755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17757           /^X\(\/\/\)$/{ s//\1/; q; }
17758           /^X\(\/\).*/{ s//\1/; q; }
17759           s/.*/./; q'`
17760   { if $as_mkdir_p; then
17761     mkdir -p "$ac_dir"
17762   else
17763     as_dir="$ac_dir"
17764     as_dirs=
17765     while test ! -d "$as_dir"; do
17766       as_dirs="$as_dir $as_dirs"
17767       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17769          X"$as_dir" : 'X\(//\)[^/]' \| \
17770          X"$as_dir" : 'X\(//\)$' \| \
17771          X"$as_dir" : 'X\(/\)' \| \
17772          .     : '\(.\)' 2>/dev/null ||
17773 echo X"$as_dir" |
17774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17776           /^X\(\/\/\)$/{ s//\1/; q; }
17777           /^X\(\/\).*/{ s//\1/; q; }
17778           s/.*/./; q'`
17779     done
17780     test ! -n "$as_dirs" || mkdir $as_dirs
17781   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17783    { (exit 1); exit 1; }; }; }
17784
17785   ac_builddir=.
17786
17787 if test "$ac_dir" != .; then
17788   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17789   # A "../" for each directory in $ac_dir_suffix.
17790   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17791 else
17792   ac_dir_suffix= ac_top_builddir=
17793 fi
17794
17795 case $srcdir in
17796   .)  # No --srcdir option.  We are building in place.
17797     ac_srcdir=.
17798     if test -z "$ac_top_builddir"; then
17799        ac_top_srcdir=.
17800     else
17801        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17802     fi ;;
17803   [\\/]* | ?:[\\/]* )  # Absolute path.
17804     ac_srcdir=$srcdir$ac_dir_suffix;
17805     ac_top_srcdir=$srcdir ;;
17806   *) # Relative path.
17807     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17808     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17809 esac
17810
17811 # Do not use `cd foo && pwd` to compute absolute paths, because
17812 # the directories may not exist.
17813 case `pwd` in
17814 .) ac_abs_builddir="$ac_dir";;
17815 *)
17816   case "$ac_dir" in
17817   .) ac_abs_builddir=`pwd`;;
17818   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17819   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17820   esac;;
17821 esac
17822 case $ac_abs_builddir in
17823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17824 *)
17825   case ${ac_top_builddir}. in
17826   .) ac_abs_top_builddir=$ac_abs_builddir;;
17827   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17828   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17829   esac;;
17830 esac
17831 case $ac_abs_builddir in
17832 .) ac_abs_srcdir=$ac_srcdir;;
17833 *)
17834   case $ac_srcdir in
17835   .) ac_abs_srcdir=$ac_abs_builddir;;
17836   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17837   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17838   esac;;
17839 esac
17840 case $ac_abs_builddir in
17841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17842 *)
17843   case $ac_top_srcdir in
17844   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17845   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17846   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17847   esac;;
17848 esac
17849
17850
17851   case $INSTALL in
17852   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17853   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17854   esac
17855
17856   if test x"$ac_file" != x-; then
17857     { echo "$as_me:$LINENO: creating $ac_file" >&5
17858 echo "$as_me: creating $ac_file" >&6;}
17859     rm -f "$ac_file"
17860   fi
17861   # Let's still pretend it is `configure' which instantiates (i.e., don't
17862   # use $as_me), people would be surprised to read:
17863   #    /* config.h.  Generated by config.status.  */
17864   if test x"$ac_file" = x-; then
17865     configure_input=
17866   else
17867     configure_input="$ac_file.  "
17868   fi
17869   configure_input=$configure_input"Generated from `echo $ac_file_in |
17870                                      sed 's,.*/,,'` by configure."
17871
17872   # First look for the input files in the build tree, otherwise in the
17873   # src tree.
17874   ac_file_inputs=`IFS=:
17875     for f in $ac_file_in; do
17876       case $f in
17877       -) echo $tmp/stdin ;;
17878       [\\/$]*)
17879          # Absolute (can't be DOS-style, as IFS=:)
17880          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17881 echo "$as_me: error: cannot find input file: $f" >&2;}
17882    { (exit 1); exit 1; }; }
17883          echo "$f";;
17884       *) # Relative
17885          if test -f "$f"; then
17886            # Build tree
17887            echo "$f"
17888          elif test -f "$srcdir/$f"; then
17889            # Source tree
17890            echo "$srcdir/$f"
17891          else
17892            # /dev/null tree
17893            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17894 echo "$as_me: error: cannot find input file: $f" >&2;}
17895    { (exit 1); exit 1; }; }
17896          fi;;
17897       esac
17898     done` || { (exit 1); exit 1; }
17899 _ACEOF
17900 cat >>$CONFIG_STATUS <<_ACEOF
17901   sed "$ac_vpsub
17902 $extrasub
17903 _ACEOF
17904 cat >>$CONFIG_STATUS <<\_ACEOF
17905 :t
17906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17907 s,@configure_input@,$configure_input,;t t
17908 s,@srcdir@,$ac_srcdir,;t t
17909 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17910 s,@top_srcdir@,$ac_top_srcdir,;t t
17911 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17912 s,@builddir@,$ac_builddir,;t t
17913 s,@abs_builddir@,$ac_abs_builddir,;t t
17914 s,@top_builddir@,$ac_top_builddir,;t t
17915 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17916 s,@INSTALL@,$ac_INSTALL,;t t
17917 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17918   rm -f $tmp/stdin
17919   if test x"$ac_file" != x-; then
17920     mv $tmp/out $ac_file
17921   else
17922     cat $tmp/out
17923     rm -f $tmp/out
17924   fi
17925
17926   # Run the commands associated with the file.
17927   case $ac_file in
17928     scripts/jar ) chmod +x scripts/jar ;;
17929   esac
17930 done
17931 _ACEOF
17932 cat >>$CONFIG_STATUS <<\_ACEOF
17933
17934 #
17935 # CONFIG_HEADER section.
17936 #
17937
17938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17940 #
17941 # ac_d sets the value in "#define NAME VALUE" lines.
17942 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17943 ac_dB='[         ].*$,\1#\2'
17944 ac_dC=' '
17945 ac_dD=',;t'
17946 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17947 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17948 ac_uB='$,\1#\2define\3'
17949 ac_uC=' '
17950 ac_uD=',;t'
17951
17952 for ac_file in : $CONFIG_HEADERS; 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   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17965 echo "$as_me: creating $ac_file" >&6;}
17966
17967   # First look for the input files in the build tree, otherwise in the
17968   # src tree.
17969   ac_file_inputs=`IFS=:
17970     for f in $ac_file_in; do
17971       case $f in
17972       -) echo $tmp/stdin ;;
17973       [\\/$]*)
17974          # Absolute (can't be DOS-style, as IFS=:)
17975          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17976 echo "$as_me: error: cannot find input file: $f" >&2;}
17977    { (exit 1); exit 1; }; }
17978          # Do quote $f, to prevent DOS paths from being IFS'd.
17979          echo "$f";;
17980       *) # Relative
17981          if test -f "$f"; then
17982            # Build tree
17983            echo "$f"
17984          elif test -f "$srcdir/$f"; then
17985            # Source tree
17986            echo "$srcdir/$f"
17987          else
17988            # /dev/null tree
17989            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17990 echo "$as_me: error: cannot find input file: $f" >&2;}
17991    { (exit 1); exit 1; }; }
17992          fi;;
17993       esac
17994     done` || { (exit 1); exit 1; }
17995   # Remove the trailing spaces.
17996   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17997
17998 _ACEOF
17999
18000 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18001 # `conftest.undefs', that substitutes the proper values into
18002 # config.h.in to produce config.h.  The first handles `#define'
18003 # templates, and the second `#undef' templates.
18004 # And first: Protect against being on the right side of a sed subst in
18005 # config.status.  Protect against being in an unquoted here document
18006 # in config.status.
18007 rm -f conftest.defines conftest.undefs
18008 # Using a here document instead of a string reduces the quoting nightmare.
18009 # Putting comments in sed scripts is not portable.
18010 #
18011 # `end' is used to avoid that the second main sed command (meant for
18012 # 0-ary CPP macros) applies to n-ary macro definitions.
18013 # See the Autoconf documentation for `clear'.
18014 cat >confdef2sed.sed <<\_ACEOF
18015 s/[\\&,]/\\&/g
18016 s,[\\$`],\\&,g
18017 t clear
18018 : clear
18019 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18020 t end
18021 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18022 : end
18023 _ACEOF
18024 # If some macros were called several times there might be several times
18025 # the same #defines, which is useless.  Nevertheless, we may not want to
18026 # sort them, since we want the *last* AC-DEFINE to be honored.
18027 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18028 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18029 rm -f confdef2sed.sed
18030
18031 # This sed command replaces #undef with comments.  This is necessary, for
18032 # example, in the case of _POSIX_SOURCE, which is predefined and required
18033 # on some systems where configure will not decide to define it.
18034 cat >>conftest.undefs <<\_ACEOF
18035 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18036 _ACEOF
18037
18038 # Break up conftest.defines because some shells have a limit on the size
18039 # of here documents, and old seds have small limits too (100 cmds).
18040 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18041 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18042 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18043 echo '  :' >>$CONFIG_STATUS
18044 rm -f conftest.tail
18045 while grep . conftest.defines >/dev/null
18046 do
18047   # Write a limited-size here document to $tmp/defines.sed.
18048   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18049   # Speed up: don't consider the non `#define' lines.
18050   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18051   # Work around the forget-to-reset-the-flag bug.
18052   echo 't clr' >>$CONFIG_STATUS
18053   echo ': clr' >>$CONFIG_STATUS
18054   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18055   echo 'CEOF
18056   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18057   rm -f $tmp/in
18058   mv $tmp/out $tmp/in
18059 ' >>$CONFIG_STATUS
18060   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18061   rm -f conftest.defines
18062   mv conftest.tail conftest.defines
18063 done
18064 rm -f conftest.defines
18065 echo '  fi # grep' >>$CONFIG_STATUS
18066 echo >>$CONFIG_STATUS
18067
18068 # Break up conftest.undefs because some shells have a limit on the size
18069 # of here documents, and old seds have small limits too (100 cmds).
18070 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18071 rm -f conftest.tail
18072 while grep . conftest.undefs >/dev/null
18073 do
18074   # Write a limited-size here document to $tmp/undefs.sed.
18075   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18076   # Speed up: don't consider the non `#undef'
18077   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18078   # Work around the forget-to-reset-the-flag bug.
18079   echo 't clr' >>$CONFIG_STATUS
18080   echo ': clr' >>$CONFIG_STATUS
18081   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18082   echo 'CEOF
18083   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18084   rm -f $tmp/in
18085   mv $tmp/out $tmp/in
18086 ' >>$CONFIG_STATUS
18087   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18088   rm -f conftest.undefs
18089   mv conftest.tail conftest.undefs
18090 done
18091 rm -f conftest.undefs
18092
18093 cat >>$CONFIG_STATUS <<\_ACEOF
18094   # Let's still pretend it is `configure' which instantiates (i.e., don't
18095   # use $as_me), people would be surprised to read:
18096   #    /* config.h.  Generated by config.status.  */
18097   if test x"$ac_file" = x-; then
18098     echo "/* Generated by configure.  */" >$tmp/config.h
18099   else
18100     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18101   fi
18102   cat $tmp/in >>$tmp/config.h
18103   rm -f $tmp/in
18104   if test x"$ac_file" != x-; then
18105     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18106       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18107 echo "$as_me: $ac_file is unchanged" >&6;}
18108     else
18109       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18111          X"$ac_file" : 'X\(//\)[^/]' \| \
18112          X"$ac_file" : 'X\(//\)$' \| \
18113          X"$ac_file" : 'X\(/\)' \| \
18114          .     : '\(.\)' 2>/dev/null ||
18115 echo X"$ac_file" |
18116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18118           /^X\(\/\/\)$/{ s//\1/; q; }
18119           /^X\(\/\).*/{ s//\1/; q; }
18120           s/.*/./; q'`
18121       { if $as_mkdir_p; then
18122     mkdir -p "$ac_dir"
18123   else
18124     as_dir="$ac_dir"
18125     as_dirs=
18126     while test ! -d "$as_dir"; do
18127       as_dirs="$as_dir $as_dirs"
18128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18130          X"$as_dir" : 'X\(//\)[^/]' \| \
18131          X"$as_dir" : 'X\(//\)$' \| \
18132          X"$as_dir" : 'X\(/\)' \| \
18133          .     : '\(.\)' 2>/dev/null ||
18134 echo X"$as_dir" |
18135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18137           /^X\(\/\/\)$/{ s//\1/; q; }
18138           /^X\(\/\).*/{ s//\1/; q; }
18139           s/.*/./; q'`
18140     done
18141     test ! -n "$as_dirs" || mkdir $as_dirs
18142   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18144    { (exit 1); exit 1; }; }; }
18145
18146       rm -f $ac_file
18147       mv $tmp/config.h $ac_file
18148     fi
18149   else
18150     cat $tmp/config.h
18151     rm -f $tmp/config.h
18152   fi
18153 # Compute $ac_file's index in $config_headers.
18154 _am_stamp_count=1
18155 for _am_header in $config_headers :; do
18156   case $_am_header in
18157     $ac_file | $ac_file:* )
18158       break ;;
18159     * )
18160       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18161   esac
18162 done
18163 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18164 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18165          X$ac_file : 'X\(//\)[^/]' \| \
18166          X$ac_file : 'X\(//\)$' \| \
18167          X$ac_file : 'X\(/\)' \| \
18168          .     : '\(.\)' 2>/dev/null ||
18169 echo X$ac_file |
18170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18171           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18172           /^X\(\/\/\)$/{ s//\1/; q; }
18173           /^X\(\/\).*/{ s//\1/; q; }
18174           s/.*/./; q'`/stamp-h$_am_stamp_count
18175 done
18176 _ACEOF
18177 cat >>$CONFIG_STATUS <<\_ACEOF
18178
18179 #
18180 # CONFIG_LINKS section.
18181 #
18182
18183 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18184   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18185   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18186
18187   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18188 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18189
18190   if test ! -r $srcdir/$ac_source; then
18191     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18192 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18193    { (exit 1); exit 1; }; }
18194   fi
18195   rm -f $ac_dest
18196
18197   # Make relative symlinks.
18198   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18199 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18200          X"$ac_dest" : 'X\(//\)[^/]' \| \
18201          X"$ac_dest" : 'X\(//\)$' \| \
18202          X"$ac_dest" : 'X\(/\)' \| \
18203          .     : '\(.\)' 2>/dev/null ||
18204 echo X"$ac_dest" |
18205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18207           /^X\(\/\/\)$/{ s//\1/; q; }
18208           /^X\(\/\).*/{ s//\1/; q; }
18209           s/.*/./; q'`
18210   { if $as_mkdir_p; then
18211     mkdir -p "$ac_dest_dir"
18212   else
18213     as_dir="$ac_dest_dir"
18214     as_dirs=
18215     while test ! -d "$as_dir"; do
18216       as_dirs="$as_dir $as_dirs"
18217       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18219          X"$as_dir" : 'X\(//\)[^/]' \| \
18220          X"$as_dir" : 'X\(//\)$' \| \
18221          X"$as_dir" : 'X\(/\)' \| \
18222          .     : '\(.\)' 2>/dev/null ||
18223 echo X"$as_dir" |
18224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18225           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18226           /^X\(\/\/\)$/{ s//\1/; q; }
18227           /^X\(\/\).*/{ s//\1/; q; }
18228           s/.*/./; q'`
18229     done
18230     test ! -n "$as_dirs" || mkdir $as_dirs
18231   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18232 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18233    { (exit 1); exit 1; }; }; }
18234
18235   ac_builddir=.
18236
18237 if test "$ac_dest_dir" != .; then
18238   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18239   # A "../" for each directory in $ac_dir_suffix.
18240   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18241 else
18242   ac_dir_suffix= ac_top_builddir=
18243 fi
18244
18245 case $srcdir in
18246   .)  # No --srcdir option.  We are building in place.
18247     ac_srcdir=.
18248     if test -z "$ac_top_builddir"; then
18249        ac_top_srcdir=.
18250     else
18251        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18252     fi ;;
18253   [\\/]* | ?:[\\/]* )  # Absolute path.
18254     ac_srcdir=$srcdir$ac_dir_suffix;
18255     ac_top_srcdir=$srcdir ;;
18256   *) # Relative path.
18257     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18258     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18259 esac
18260
18261 # Do not use `cd foo && pwd` to compute absolute paths, because
18262 # the directories may not exist.
18263 case `pwd` in
18264 .) ac_abs_builddir="$ac_dest_dir";;
18265 *)
18266   case "$ac_dest_dir" in
18267   .) ac_abs_builddir=`pwd`;;
18268   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18269   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18270   esac;;
18271 esac
18272 case $ac_abs_builddir in
18273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18274 *)
18275   case ${ac_top_builddir}. in
18276   .) ac_abs_top_builddir=$ac_abs_builddir;;
18277   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18278   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18279   esac;;
18280 esac
18281 case $ac_abs_builddir in
18282 .) ac_abs_srcdir=$ac_srcdir;;
18283 *)
18284   case $ac_srcdir in
18285   .) ac_abs_srcdir=$ac_abs_builddir;;
18286   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18287   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18288   esac;;
18289 esac
18290 case $ac_abs_builddir in
18291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18292 *)
18293   case $ac_top_srcdir in
18294   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18295   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18296   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18297   esac;;
18298 esac
18299
18300
18301   case $srcdir in
18302   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18303       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18304   esac
18305
18306   # Try a symlink, then a hard link, then a copy.
18307   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18308     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18309     cp -p $srcdir/$ac_source $ac_dest ||
18310     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18311 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18312    { (exit 1); exit 1; }; }
18313 done
18314 _ACEOF
18315 cat >>$CONFIG_STATUS <<\_ACEOF
18316
18317 #
18318 # CONFIG_COMMANDS section.
18319 #
18320 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18321   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18322   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18323   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18324 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18325          X"$ac_dest" : 'X\(//\)[^/]' \| \
18326          X"$ac_dest" : 'X\(//\)$' \| \
18327          X"$ac_dest" : 'X\(/\)' \| \
18328          .     : '\(.\)' 2>/dev/null ||
18329 echo X"$ac_dest" |
18330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18331           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18332           /^X\(\/\/\)$/{ s//\1/; q; }
18333           /^X\(\/\).*/{ s//\1/; q; }
18334           s/.*/./; q'`
18335   { if $as_mkdir_p; then
18336     mkdir -p "$ac_dir"
18337   else
18338     as_dir="$ac_dir"
18339     as_dirs=
18340     while test ! -d "$as_dir"; do
18341       as_dirs="$as_dir $as_dirs"
18342       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18344          X"$as_dir" : 'X\(//\)[^/]' \| \
18345          X"$as_dir" : 'X\(//\)$' \| \
18346          X"$as_dir" : 'X\(/\)' \| \
18347          .     : '\(.\)' 2>/dev/null ||
18348 echo X"$as_dir" |
18349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18351           /^X\(\/\/\)$/{ s//\1/; q; }
18352           /^X\(\/\).*/{ s//\1/; q; }
18353           s/.*/./; q'`
18354     done
18355     test ! -n "$as_dirs" || mkdir $as_dirs
18356   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18358    { (exit 1); exit 1; }; }; }
18359
18360   ac_builddir=.
18361
18362 if test "$ac_dir" != .; then
18363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18364   # A "../" for each directory in $ac_dir_suffix.
18365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18366 else
18367   ac_dir_suffix= ac_top_builddir=
18368 fi
18369
18370 case $srcdir in
18371   .)  # No --srcdir option.  We are building in place.
18372     ac_srcdir=.
18373     if test -z "$ac_top_builddir"; then
18374        ac_top_srcdir=.
18375     else
18376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18377     fi ;;
18378   [\\/]* | ?:[\\/]* )  # Absolute path.
18379     ac_srcdir=$srcdir$ac_dir_suffix;
18380     ac_top_srcdir=$srcdir ;;
18381   *) # Relative path.
18382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18384 esac
18385
18386 # Do not use `cd foo && pwd` to compute absolute paths, because
18387 # the directories may not exist.
18388 case `pwd` in
18389 .) ac_abs_builddir="$ac_dir";;
18390 *)
18391   case "$ac_dir" in
18392   .) ac_abs_builddir=`pwd`;;
18393   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18394   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18395   esac;;
18396 esac
18397 case $ac_abs_builddir in
18398 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18399 *)
18400   case ${ac_top_builddir}. in
18401   .) ac_abs_top_builddir=$ac_abs_builddir;;
18402   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18403   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18404   esac;;
18405 esac
18406 case $ac_abs_builddir in
18407 .) ac_abs_srcdir=$ac_srcdir;;
18408 *)
18409   case $ac_srcdir in
18410   .) ac_abs_srcdir=$ac_abs_builddir;;
18411   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18412   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18413   esac;;
18414 esac
18415 case $ac_abs_builddir in
18416 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18417 *)
18418   case $ac_top_srcdir in
18419   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18420   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18421   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18422   esac;;
18423 esac
18424
18425
18426   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18427 echo "$as_me: executing $ac_dest commands" >&6;}
18428   case $ac_dest in
18429     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18430   # Strip MF so we end up with the name of the file.
18431   mf=`echo "$mf" | sed -e 's/:.*$//'`
18432   # Check whether this is an Automake generated Makefile or not.
18433   # We used to match only the files named `Makefile.in', but
18434   # some people rename them; so instead we look at the file content.
18435   # Grep'ing the first line is not enough: some people post-process
18436   # each Makefile.in and add a new line on top of each file to say so.
18437   # So let's grep whole file.
18438   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18439     dirpart=`(dirname "$mf") 2>/dev/null ||
18440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18441          X"$mf" : 'X\(//\)[^/]' \| \
18442          X"$mf" : 'X\(//\)$' \| \
18443          X"$mf" : 'X\(/\)' \| \
18444          .     : '\(.\)' 2>/dev/null ||
18445 echo X"$mf" |
18446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18447           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18448           /^X\(\/\/\)$/{ s//\1/; q; }
18449           /^X\(\/\).*/{ s//\1/; q; }
18450           s/.*/./; q'`
18451   else
18452     continue
18453   fi
18454   # Extract the definition of DEPDIR, am__include, and am__quote
18455   # from the Makefile without running `make'.
18456   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18457   test -z "$DEPDIR" && continue
18458   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18459   test -z "am__include" && continue
18460   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18461   # When using ansi2knr, U may be empty or an underscore; expand it
18462   U=`sed -n 's/^U = //p' < "$mf"`
18463   # Find all dependency output files, they are included files with
18464   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18465   # simplest approach to changing $(DEPDIR) to its actual value in the
18466   # expansion.
18467   for file in `sed -n "
18468     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18469        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18470     # Make sure the directory exists.
18471     test -f "$dirpart/$file" && continue
18472     fdir=`(dirname "$file") 2>/dev/null ||
18473 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18474          X"$file" : 'X\(//\)[^/]' \| \
18475          X"$file" : 'X\(//\)$' \| \
18476          X"$file" : 'X\(/\)' \| \
18477          .     : '\(.\)' 2>/dev/null ||
18478 echo X"$file" |
18479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18480           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18481           /^X\(\/\/\)$/{ s//\1/; q; }
18482           /^X\(\/\).*/{ s//\1/; q; }
18483           s/.*/./; q'`
18484     { if $as_mkdir_p; then
18485     mkdir -p $dirpart/$fdir
18486   else
18487     as_dir=$dirpart/$fdir
18488     as_dirs=
18489     while test ! -d "$as_dir"; do
18490       as_dirs="$as_dir $as_dirs"
18491       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18493          X"$as_dir" : 'X\(//\)[^/]' \| \
18494          X"$as_dir" : 'X\(//\)$' \| \
18495          X"$as_dir" : 'X\(/\)' \| \
18496          .     : '\(.\)' 2>/dev/null ||
18497 echo X"$as_dir" |
18498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18500           /^X\(\/\/\)$/{ s//\1/; q; }
18501           /^X\(\/\).*/{ s//\1/; q; }
18502           s/.*/./; q'`
18503     done
18504     test ! -n "$as_dirs" || mkdir $as_dirs
18505   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18506 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18507    { (exit 1); exit 1; }; }; }
18508
18509     # echo "creating $dirpart/$file"
18510     echo '# dummy' > "$dirpart/$file"
18511   done
18512 done
18513  ;;
18514     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18515 case " $CONFIG_FILES " in
18516  *" Makefile "*)
18517    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18518    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18519    ;;
18520 esac
18521 for ac_multi_file in $CONFIG_FILES; do
18522   case $ac_multi_file in
18523   */Makefile)
18524     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18525   esac
18526 done
18527  ;;
18528   esac
18529 done
18530 _ACEOF
18531
18532 cat >>$CONFIG_STATUS <<\_ACEOF
18533
18534 { (exit 0); exit 0; }
18535 _ACEOF
18536 chmod +x $CONFIG_STATUS
18537 ac_clean_files=$ac_clean_files_save
18538
18539
18540 # configure is writing to config.log, and then calls config.status.
18541 # config.status does its own redirection, appending to config.log.
18542 # Unfortunately, on DOS this fails, as config.log is still kept open
18543 # by configure, so config.status won't be able to write to it; its
18544 # output is simply discarded.  So we exec the FD to /dev/null,
18545 # effectively closing config.log, so it can be properly (re)opened and
18546 # appended to by config.status.  When coming back to configure, we
18547 # need to make the FD available again.
18548 if test "$no_create" != yes; then
18549   ac_cs_success=:
18550   ac_config_status_args=
18551   test "$silent" = yes &&
18552     ac_config_status_args="$ac_config_status_args --quiet"
18553   exec 5>/dev/null
18554   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18555   exec 5>>config.log
18556   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18557   # would make configure fail if this is the last instruction.
18558   $ac_cs_success || { (exit 1); exit 1; }
18559 fi
18560
18561 #
18562 # CONFIG_SUBDIRS section.
18563 #
18564 if test "$no_recursion" != yes; then
18565
18566   # Remove --cache-file and --srcdir arguments so they do not pile up.
18567   ac_sub_configure_args=
18568   ac_prev=
18569   for ac_arg in $ac_configure_args; do
18570     if test -n "$ac_prev"; then
18571       ac_prev=
18572       continue
18573     fi
18574     case $ac_arg in
18575     -cache-file | --cache-file | --cache-fil | --cache-fi \
18576     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18577       ac_prev=cache_file ;;
18578     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18579     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18580     | --c=*)
18581       ;;
18582     --config-cache | -C)
18583       ;;
18584     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18585       ac_prev=srcdir ;;
18586     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18587       ;;
18588     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18589       ac_prev=prefix ;;
18590     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18591       ;;
18592     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18593     esac
18594   done
18595
18596   # Always prepend --prefix to ensure using the same prefix
18597   # in subdir configurations.
18598   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18599
18600   ac_popdir=`pwd`
18601   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18602
18603     # Do not complain, so a configure script can configure whichever
18604     # parts of a large source tree are present.
18605     test -d $srcdir/$ac_dir || continue
18606
18607     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18608 echo "$as_me: configuring in $ac_dir" >&6;}
18609     { if $as_mkdir_p; then
18610     mkdir -p "$ac_dir"
18611   else
18612     as_dir="$ac_dir"
18613     as_dirs=
18614     while test ! -d "$as_dir"; do
18615       as_dirs="$as_dir $as_dirs"
18616       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18618          X"$as_dir" : 'X\(//\)[^/]' \| \
18619          X"$as_dir" : 'X\(//\)$' \| \
18620          X"$as_dir" : 'X\(/\)' \| \
18621          .     : '\(.\)' 2>/dev/null ||
18622 echo X"$as_dir" |
18623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18624           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18625           /^X\(\/\/\)$/{ s//\1/; q; }
18626           /^X\(\/\).*/{ s//\1/; q; }
18627           s/.*/./; q'`
18628     done
18629     test ! -n "$as_dirs" || mkdir $as_dirs
18630   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18632    { (exit 1); exit 1; }; }; }
18633
18634     ac_builddir=.
18635
18636 if test "$ac_dir" != .; then
18637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18638   # A "../" for each directory in $ac_dir_suffix.
18639   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18640 else
18641   ac_dir_suffix= ac_top_builddir=
18642 fi
18643
18644 case $srcdir in
18645   .)  # No --srcdir option.  We are building in place.
18646     ac_srcdir=.
18647     if test -z "$ac_top_builddir"; then
18648        ac_top_srcdir=.
18649     else
18650        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18651     fi ;;
18652   [\\/]* | ?:[\\/]* )  # Absolute path.
18653     ac_srcdir=$srcdir$ac_dir_suffix;
18654     ac_top_srcdir=$srcdir ;;
18655   *) # Relative path.
18656     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18657     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18658 esac
18659
18660 # Do not use `cd foo && pwd` to compute absolute paths, because
18661 # the directories may not exist.
18662 case `pwd` in
18663 .) ac_abs_builddir="$ac_dir";;
18664 *)
18665   case "$ac_dir" in
18666   .) ac_abs_builddir=`pwd`;;
18667   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18668   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18669   esac;;
18670 esac
18671 case $ac_abs_builddir in
18672 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18673 *)
18674   case ${ac_top_builddir}. in
18675   .) ac_abs_top_builddir=$ac_abs_builddir;;
18676   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18677   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18678   esac;;
18679 esac
18680 case $ac_abs_builddir in
18681 .) ac_abs_srcdir=$ac_srcdir;;
18682 *)
18683   case $ac_srcdir in
18684   .) ac_abs_srcdir=$ac_abs_builddir;;
18685   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18686   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18687   esac;;
18688 esac
18689 case $ac_abs_builddir in
18690 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18691 *)
18692   case $ac_top_srcdir in
18693   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18694   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18695   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18696   esac;;
18697 esac
18698
18699
18700     cd $ac_dir
18701
18702     # Check for guested configure; otherwise get Cygnus style configure.
18703     if test -f $ac_srcdir/configure.gnu; then
18704       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18705     elif test -f $ac_srcdir/configure; then
18706       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18707     elif test -f $ac_srcdir/configure.in; then
18708       ac_sub_configure=$ac_configure
18709     else
18710       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18711 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18712       ac_sub_configure=
18713     fi
18714
18715     # The recursion is here.
18716     if test -n "$ac_sub_configure"; then
18717       # Make the cache file name correct relative to the subdirectory.
18718       case $cache_file in
18719       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18720       *) # Relative path.
18721         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18722       esac
18723
18724       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18725 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18726       # The eval makes quoting arguments work.
18727       eval $ac_sub_configure $ac_sub_configure_args \
18728            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18729         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18730 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18731    { (exit 1); exit 1; }; }
18732     fi
18733
18734     cd $ac_popdir
18735   done
18736 fi
18737