OSDN Git Service

* configure: Regenerate.
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking  speeds up one-time build
857   --enable-dependency-tracking   do not reject slow dependency extractors
858   --enable-maintainer-mode  enable make rules and dependencies not useful
859                           (and sometimes confusing) to the casual installer
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864   --disable-getenv-properties
865                           don't set system properties from GCJ_PROPERTIES
866   --enable-hash-synchronization
867                           use global hash table for monitor locks
868   --enable-libgcj-multifile
869                  allow compilation of several files at once
870
871   --enable-libgcj-debug   enable runtime debugging code
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-awt       list of AWT peer implementations to be built
879   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438   # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442    || test -d $srcdir/../host-${host_noncanonical}; then
1443   host_subdir="host-${host_noncanonical}"
1444 else
1445   host_subdir=.
1446 fi
1447 # No prefix.
1448 target_subdir=${target_noncanonical}
1449
1450
1451 # We use these options to decide which functions to include.
1452
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455   withval="$with_target_subdir"
1456
1457 fi;
1458
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir.  We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1466 # source directory.
1467 if test "${srcdir}" = "."; then
1468   if test -z "${with_target_subdir}"; then
1469     toprel=".."
1470   else
1471     if test "${with_target_subdir}" != "."; then
1472       toprel="${with_multisrctop}../.."
1473     else
1474       toprel="${with_multisrctop}.."
1475     fi
1476   fi
1477 else
1478   toprel=".."
1479 fi
1480
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1482
1483
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491   ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1500 host=$ac_cv_host
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513   ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531   test "$program_prefix$program_suffix$program_transform_name" = \
1532     NONENONEs,x,x, &&
1533   program_prefix=${target_alias}-
1534  case ${build_alias} in
1535   "") build_noncanonical=${build} ;;
1536   *) build_noncanonical=${build_alias} ;;
1537 esac
1538
1539  case ${target_alias} in
1540   "") target_noncanonical=${host_noncanonical} ;;
1541   *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545
1546
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1550 # exported.
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 LN_S=$as_ln_s
1556 if test "$LN_S" = "ln -s"; then
1557   echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1562 fi
1563
1564
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567
1568
1569
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572   withval="$with_cross_host"
1573
1574 fi;
1575
1576
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579   withval="$with_newlib"
1580
1581 fi;
1582
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585   enableval="$enable_version_specific_runtime_libs"
1586   case "$enableval" in
1587       yes) version_specific_libs=yes ;;
1588       no)  version_specific_libs=no ;;
1589       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591    { (exit 1); exit 1; }; };;
1592      esac
1593 else
1594   version_specific_libs=no
1595
1596 fi;
1597
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601   enableval="$enable_multilib"
1602   case "${enableval}" in
1603   yes) multilib=yes ;;
1604   no)  multilib=no ;;
1605   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607    { (exit 1); exit 1; }; } ;;
1608  esac
1609 else
1610   multilib=yes
1611 fi;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613
1614
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1621 # in Makefile.in.
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests.  This may not be necessary in libjava; I don't know.
1625
1626
1627
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1630 ac_ext=c
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="gcc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 if test -z "$CC"; then
1715   if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733     ac_cv_prog_CC="${ac_tool_prefix}cc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$ac_cv_prog_CC"; then
1753   ac_ct_CC=$CC
1754   # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$ac_ct_CC"; then
1762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_ac_ct_CC="cc"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789   CC=$ac_ct_CC
1790 else
1791   CC="$ac_cv_prog_CC"
1792 fi
1793
1794 fi
1795 if test -z "$CC"; then
1796   # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806   ac_prog_rejected=no
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815        ac_prog_rejected=yes
1816        continue
1817      fi
1818     ac_cv_prog_CC="cc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 if test $ac_prog_rejected = yes; then
1826   # We found a bogon in the path, so make sure we never use it.
1827   set dummy $ac_cv_prog_CC
1828   shift
1829   if test $# != 0; then
1830     # We chose a different compiler from the bogus one.
1831     # However, it has the same basename, so the bogon will be chosen
1832     # first if we set CC to just the basename; use the full file name.
1833     shift
1834     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1835   fi
1836 fi
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841   echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 fi
1849 if test -z "$CC"; then
1850   if test -n "$ac_tool_prefix"; then
1851   for ac_prog in cl
1852   do
1853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888     test -n "$CC" && break
1889   done
1890 fi
1891 if test -z "$CC"; then
1892   ac_ct_CC=$CC
1893   for ac_prog in cl
1894 do
1895   # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="$ac_prog"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   test -n "$ac_ct_CC" && break
1931 done
1932
1933   CC=$ac_ct_CC
1934 fi
1935
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947      "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950   (eval $ac_compiler --version </dev/null >&5) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955   (eval $ac_compiler -v </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960   (eval $ac_compiler -V </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 # FIXME: Cleanup?
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982   (eval $ac_link) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   gcc_no_link=no
1987 else
1988   gcc_no_link=yes
1989 fi
1990
1991 if test x$gcc_no_link = xyes; then
1992   # Setting cross_compile will disable run tests; it will
1993   # also disable AC_CHECK_FILE but that's generally
1994   # correct if we can't link.
1995   cross_compiling=yes
1996   EXEEXT=
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2017 # of exeext.
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022   (eval $ac_link_default) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   # Find the output, starting from the most likely.  This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028 # resort.
2029
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 ac_cv_exeext=
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 do
2036   test -f "$ac_file" || continue
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039         ;;
2040     conftest.$ac_ext )
2041         # This is the source file.
2042         ;;
2043     [ab].out )
2044         # We found the default executable, but exeext='' is most
2045         # certainly right.
2046         break;;
2047     *.* )
2048         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049         # FIXME: I believe we export ac_cv_exeext for Libtool,
2050         # but it would be cool to find out if it's true.  Does anybody
2051         # maintain Libtool? --akim.
2052         export ac_cv_exeext
2053         break;;
2054     * )
2055         break;;
2056   esac
2057 done
2058 else
2059   echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066    { (exit 77); exit 77; }; }
2067 fi
2068
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2072
2073 # Check the compiler produces executables we can run.  If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080   if { ac_try='./$ac_file'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086     cross_compiling=no
2087   else
2088     if test "$cross_compiling" = maybe; then
2089         cross_compiling=yes
2090     else
2091         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098     fi
2099   fi
2100 fi
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2103
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2112
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116   (eval $ac_link) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; then
2120   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 # `rm'.
2124 for ac_file in conftest.exe conftest conftest.*; do
2125   test -f "$ac_file" || continue
2126   case $ac_file in
2127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2145
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2148 ac_exeext=$EXEEXT
2149 fi
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191    { (exit 1); exit 1; }; }
2192 fi
2193
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 fi
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2199 ac_objext=$OBJEXT
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>conftest.er1
2226   ac_status=$?
2227   grep -v '^ *+' conftest.er1 >conftest.err
2228   rm -f conftest.er1
2229   cat conftest.err >&5
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -z "$ac_c_werror_flag"
2233                          || test ! -s conftest.err'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   ac_compiler_gnu=yes
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_compiler_gnu=no
2251 fi
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2261 CFLAGS="-g"
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h.  */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h.  */
2273
2274 int
2275 main ()
2276 {
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284   (eval $ac_compile) 2>conftest.er1
2285   ac_status=$?
2286   grep -v '^ *+' conftest.er1 >conftest.err
2287   rm -f conftest.er1
2288   cat conftest.err >&5
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -z "$ac_c_werror_flag"
2292                          || test ! -s conftest.err'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   ac_cv_prog_cc_g=yes
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_cv_prog_cc_g=no
2310 fi
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316   CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318   if test "$GCC" = yes; then
2319     CFLAGS="-g -O2"
2320   else
2321     CFLAGS="-g"
2322   fi
2323 else
2324   if test "$GCC" = yes; then
2325     CFLAGS="-O2"
2326   else
2327     CFLAGS=
2328   fi
2329 fi
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   ac_cv_prog_cc_stdc=no
2336 ac_save_CC=$CC
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 #include <stdarg.h>
2344 #include <stdio.h>
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2351      char **p;
2352      int i;
2353 {
2354   return p[i];
2355 }
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2357 {
2358   char *s;
2359   va_list v;
2360   va_start (v,p);
2361   s = g (p, va_arg (v,int));
2362   va_end (v);
2363   return s;
2364 }
2365
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2367    function prototypes and stuff, but not '\xHH' hex character constants.
2368    These don't provoke an error unfortunately, instead are silently treated
2369    as 'x'.  The following induces an error, until -std1 is added to get
2370    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2371    array size at least.  It's necessary to write '\x00'==0 to get something
2372    that's true only with -std1.  */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379 int argc;
2380 char **argv;
2381 int
2382 main ()
2383 {
2384 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX                   -qlanglvl=ansi
2392 # Ultrix and OSF/1      -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2395 # SVR4                  -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 do
2398   CC="$ac_save_CC $ac_arg"
2399   rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_stdc=$ac_arg
2422 break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext
2429 done
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2431 CC=$ac_save_CC
2432
2433 fi
2434
2435 case "x$ac_cv_prog_cc_stdc" in
2436   x|xno)
2437     echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2439   *)
2440     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442     CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 esac
2444
2445 # Some people use a C++ compiler to compile C.  Since we use `exit',
2446 # in C++ we need to declare it.  In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #ifndef __cplusplus
2451   choke me
2452 #endif
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456   (eval $ac_compile) 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag"
2464                          || test ! -s conftest.err'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   for ac_declaration in \
2477    '' \
2478    'extern "C" void std::exit (int) throw (); using std::exit;' \
2479    'extern "C" void std::exit (int); using std::exit;' \
2480    'extern "C" void exit (int) throw ();' \
2481    'extern "C" void exit (int);' \
2482    'void exit (int);'
2483 do
2484   cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 $ac_declaration
2491 #include <stdlib.h>
2492 int
2493 main ()
2494 {
2495 exit (42);
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"
2510                          || test ! -s conftest.err'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; }; then
2522   :
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 continue
2528 fi
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536 $ac_declaration
2537 int
2538 main ()
2539 {
2540 exit (42);
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   break
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577   echo '#ifdef __cplusplus' >>confdefs.h
2578   echo $ac_declaration      >>confdefs.h
2579   echo '#endif'             >>confdefs.h
2580 fi
2581
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 fi
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594 ac_ext=cc
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601   do
2602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$CXX"; then
2610   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625
2626 fi
2627 fi
2628 CXX=$glibcxx_cv_prog_CXX
2629 if test -n "$CXX"; then
2630   echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2632 else
2633   echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2635 fi
2636
2637     test -n "$CXX" && break
2638   done
2639 fi
2640 if test -z "$CXX"; then
2641   ac_ct_CXX=$CXX
2642   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 do
2644   # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CXX"; then
2652   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_ac_ct_CXX="$ac_prog"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667
2668 fi
2669 fi
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2674 else
2675   echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677 fi
2678
2679   test -n "$ac_ct_CXX" && break
2680 done
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682
2683   CXX=$ac_ct_CXX
2684 fi
2685
2686
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689      "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692   (eval $ac_compiler --version </dev/null >&5) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697   (eval $ac_compiler -v </dev/null >&5) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702   (eval $ac_compiler -V </dev/null >&5) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718
2719 int
2720 main ()
2721 {
2722 #ifndef __GNUC__
2723        choke me
2724 #endif
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_cxx_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   ac_compiler_gnu=yes
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_compiler_gnu=no
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2768 CXXFLAGS="-g"
2769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_cxx_werror_flag"
2799                          || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cxx_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ac_cv_prog_cxx_g=no
2817 fi
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2822 if test "$ac_test_CXXFLAGS" = set; then
2823   CXXFLAGS=$ac_save_CXXFLAGS
2824 elif test $ac_cv_prog_cxx_g = yes; then
2825   if test "$GXX" = yes; then
2826     CXXFLAGS="-g -O2"
2827   else
2828     CXXFLAGS="-g"
2829   fi
2830 else
2831   if test "$GXX" = yes; then
2832     CXXFLAGS="-O2"
2833   else
2834     CXXFLAGS=
2835   fi
2836 fi
2837 for ac_declaration in \
2838    '' \
2839    'extern "C" void std::exit (int) throw (); using std::exit;' \
2840    'extern "C" void std::exit (int); using std::exit;' \
2841    'extern "C" void exit (int) throw ();' \
2842    'extern "C" void exit (int);' \
2843    'void exit (int);'
2844 do
2845   cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851 $ac_declaration
2852 #include <stdlib.h>
2853 int
2854 main ()
2855 {
2856 exit (42);
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   :
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 continue
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897 $ac_declaration
2898 int
2899 main ()
2900 {
2901 exit (42);
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_cxx_werror_flag"
2916                          || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   break
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 fi
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936 rm -f conftest*
2937 if test -n "$ac_declaration"; then
2938   echo '#ifdef __cplusplus' >>confdefs.h
2939   echo $ac_declaration      >>confdefs.h
2940   echo '#endif'             >>confdefs.h
2941 fi
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949 CXXFLAGS="$save_CXXFLAGS"
2950
2951
2952
2953
2954
2955 am__api_version="1.9"
2956 # Find a good install program.  We prefer a C program (faster),
2957 # so one script is as good as another.  But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2962 # AIX /bin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   # Account for people who put trailing slashes in PATH elements.
2981 case $as_dir/ in
2982   ./ | .// | /cC/* | \
2983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2985   /usr/ucb/* ) ;;
2986   *)
2987     # OSF1 and SCO ODT 3.0 have their own names for install.
2988     # Don't use installbsd from OSF since it installs stuff as root
2989     # by default.
2990     for ac_prog in ginstall scoinst install; do
2991       for ac_exec_ext in '' $ac_executable_extensions; do
2992         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993           if test $ac_prog = install &&
2994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995             # AIX install.  It has an incompatible calling convention.
2996             :
2997           elif test $ac_prog = install &&
2998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999             # program-specific install script used by HP pwplus--don't use.
3000             :
3001           else
3002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003             break 3
3004           fi
3005         fi
3006       done
3007     done
3008     ;;
3009 esac
3010 done
3011
3012
3013 fi
3014   if test "${ac_cv_path_install+set}" = set; then
3015     INSTALL=$ac_cv_path_install
3016   else
3017     # As a last resort, use the slow shell script.  We don't cache a
3018     # path for INSTALL within a source directory, because that will
3019     # break other packages using the cache if that directory is
3020     # removed, or if the path is relative.
3021     INSTALL=$ac_install_sh
3022   fi
3023 fi
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3026
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
3035 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3036 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Do `set' in a subshell so we don't clobber the current shell's
3041 # arguments.  Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3044 # directory).
3045 if (
3046    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3047    if test "$*" = "X"; then
3048       # -L didn't work.
3049       set X `ls -t $srcdir/configure conftest.file`
3050    fi
3051    rm -f conftest.file
3052    if test "$*" != "X $srcdir/configure conftest.file" \
3053       && test "$*" != "X conftest.file $srcdir/configure"; then
3054
3055       # If neither matched, then we have a broken ls.  This can happen
3056       # if, for instance, CONFIG_SHELL is bash and it inherits a
3057       # broken ls alias from the environment.  This has actually
3058       # happened.  Such a system could not be considered "sane".
3059       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3060 alias in your environment" >&5
3061 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3062 alias in your environment" >&2;}
3063    { (exit 1); exit 1; }; }
3064    fi
3065
3066    test "$2" = conftest.file
3067    )
3068 then
3069    # Ok.
3070    :
3071 else
3072    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3073 Check your system clock" >&5
3074 echo "$as_me: error: newly created file is older than distributed files!
3075 Check your system clock" >&2;}
3076    { (exit 1); exit 1; }; }
3077 fi
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 test "$program_prefix" != NONE &&
3081   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3085 # Double any \ or $.  echo might interpret backslashes.
3086 # By default was `s,x,x', remove it if useless.
3087 cat <<\_ACEOF >conftest.sed
3088 s/[\\$]/&&/g;s/;s,x,x,$//
3089 _ACEOF
3090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3091 rm conftest.sed
3092
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3095
3096 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099   am_missing_run="$MISSING --run "
3100 else
3101   am_missing_run=
3102   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3103 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 fi
3105
3106 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3107   # We used to keeping the `.' as first argument, in order to
3108   # allow $(mkdir_p) to be used without argument.  As in
3109   #   $(mkdir_p) $(somedir)
3110   # where $(somedir) is conditionally defined.  However this is wrong
3111   # for two reasons:
3112   #  1. if the package is installed by a user who cannot write `.'
3113   #     make install will fail,
3114   #  2. the above comment should most certainly read
3115   #     $(mkdir_p) $(DESTDIR)$(somedir)
3116   #     so it does not work when $(somedir) is undefined and
3117   #     $(DESTDIR) is not.
3118   #  To support the latter case, we have to write
3119   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3120   #  so the `.' trick is pointless.
3121   mkdir_p='mkdir -p --'
3122 else
3123   # On NextStep and OpenStep, the `mkdir' command does not
3124   # recognize any option.  It will interpret all options as
3125   # directories to create, and then abort because `.' already
3126   # exists.
3127   for d in ./-p ./--version;
3128   do
3129     test -d $d && rmdir $d
3130   done
3131   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3132   if test -f "$ac_aux_dir/mkinstalldirs"; then
3133     mkdir_p='$(mkinstalldirs)'
3134   else
3135     mkdir_p='$(install_sh) -d'
3136   fi
3137 fi
3138
3139 for ac_prog in gawk mawk nawk awk
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_AWK+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$AWK"; then
3149   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_AWK="$ac_prog"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164
3165 fi
3166 fi
3167 AWK=$ac_cv_prog_AWK
3168 if test -n "$AWK"; then
3169   echo "$as_me:$LINENO: result: $AWK" >&5
3170 echo "${ECHO_T}$AWK" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   test -n "$AWK" && break
3177 done
3178
3179 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 all:
3187         @echo 'ac_maketemp="$(MAKE)"'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3191 if test -n "$ac_maketemp"; then
3192   eval ac_cv_prog_make_${ac_make}_set=yes
3193 else
3194   eval ac_cv_prog_make_${ac_make}_set=no
3195 fi
3196 rm -f conftest.make
3197 fi
3198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3199   echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201   SET_MAKE=
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205   SET_MAKE="MAKE=${MAKE-make}"
3206 fi
3207
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211   am__leading_dot=.
3212 else
3213   am__leading_dot=_
3214 fi
3215 rmdir .tst 2>/dev/null
3216
3217 DEPDIR="${am__leading_dot}deps"
3218
3219           ac_config_commands="$ac_config_commands depfiles"
3220
3221
3222 am_make=${MAKE-make}
3223 cat > confinc << 'END'
3224 am__doit:
3225         @echo done
3226 .PHONY: am__doit
3227 END
3228 # If we don't find an include directive, just comment out the code.
3229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3231 am__include="#"
3232 am__quote=
3233 _am_result=none
3234 # First try GNU make style include.
3235 echo "include confinc" > confmf
3236 # We grep out `Entering directory' and `Leaving directory'
3237 # messages which can occur if `w' ends up in MAKEFLAGS.
3238 # In particular we don't look at `^make:' because GNU make might
3239 # be invoked under some other name (usually "gmake"), in which
3240 # case it prints its new name instead of `make'.
3241 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3242    am__include=include
3243    am__quote=
3244    _am_result=GNU
3245 fi
3246 # Now try BSD make style include.
3247 if test "$am__include" = "#"; then
3248    echo '.include "confinc"' > confmf
3249    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3250       am__include=.include
3251       am__quote="\""
3252       _am_result=BSD
3253    fi
3254 fi
3255
3256
3257 echo "$as_me:$LINENO: result: $_am_result" >&5
3258 echo "${ECHO_T}$_am_result" >&6
3259 rm -f confinc confmf
3260
3261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then
3263   enableval="$enable_dependency_tracking"
3264
3265 fi;
3266 if test "x$enable_dependency_tracking" != xno; then
3267   am_depcomp="$ac_aux_dir/depcomp"
3268   AMDEPBACKSLASH='\'
3269 fi
3270
3271
3272 if test "x$enable_dependency_tracking" != xno; then
3273   AMDEP_TRUE=
3274   AMDEP_FALSE='#'
3275 else
3276   AMDEP_TRUE='#'
3277   AMDEP_FALSE=
3278 fi
3279
3280
3281
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284    test -f $srcdir/config.status; then
3285   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3287    { (exit 1); exit 1; }; }
3288 fi
3289
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292   if (cygpath --version) >/dev/null 2>/dev/null; then
3293     CYGPATH_W='cygpath -w'
3294   else
3295     CYGPATH_W=echo
3296   fi
3297 fi
3298
3299
3300 # Define the identity of the package.
3301  PACKAGE='libjava'
3302  VERSION='version-unused'
3303
3304
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3307 _ACEOF
3308
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3312 _ACEOF
3313
3314 # Some tools Automake needs.
3315
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317
3318
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3320
3321
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323
3324
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3326
3327
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329
3330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331
3332 # Installed binaries are usually stripped using `strip' when the user
3333 # run `make install-strip'.  However `strip' might not be the right
3334 # tool to use in cross-compilation environments, therefore Automake
3335 # will honor the `STRIP' environment variable to overrule this program.
3336 if test "$cross_compiling" != no; then
3337   if test -n "$ac_tool_prefix"; then
3338   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   if test -n "$STRIP"; then
3346   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   for ac_exec_ext in '' $ac_executable_extensions; do
3354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360 done
3361
3362 fi
3363 fi
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366   echo "$as_me:$LINENO: result: $STRIP" >&5
3367 echo "${ECHO_T}$STRIP" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3371 fi
3372
3373 fi
3374 if test -z "$ac_cv_prog_STRIP"; then
3375   ac_ct_STRIP=$STRIP
3376   # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$ac_ct_STRIP"; then
3384   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_STRIP="strip"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3401 fi
3402 fi
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3406 echo "${ECHO_T}$ac_ct_STRIP" >&6
3407 else
3408   echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3410 fi
3411
3412   STRIP=$ac_ct_STRIP
3413 else
3414   STRIP="$ac_cv_prog_STRIP"
3415 fi
3416
3417 fi
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419
3420 # We need awk for the "check" target.  The system "awk" is bad on
3421 # some platforms.
3422 # Always define AMTAR for backward compatibility.
3423
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3427
3428
3429
3430
3431 depcc="$CC"   am_compiler_list=
3432
3433 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3434 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3435 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3439   # We make a subdir and do the tests there.  Otherwise we can end up
3440   # making bogus files that we don't know about and never remove.  For
3441   # instance it was reported that on HP-UX the gcc test will end up
3442   # making a dummy file named `D' -- because `-MD' means `put the output
3443   # in D'.
3444   mkdir conftest.dir
3445   # Copy depcomp to subdir because otherwise we won't find it if we're
3446   # using a relative directory.
3447   cp "$am_depcomp" conftest.dir
3448   cd conftest.dir
3449   # We will build objects and dependencies in a subdirectory because
3450   # it helps to detect inapplicable dependency modes.  For instance
3451   # both Tru64's cc and ICC support -MD to output dependencies as a
3452   # side effect of compilation, but ICC will put the dependencies in
3453   # the current directory while Tru64 will put them in the object
3454   # directory.
3455   mkdir sub
3456
3457   am_cv_CC_dependencies_compiler_type=none
3458   if test "$am_compiler_list" = ""; then
3459      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460   fi
3461   for depmode in $am_compiler_list; do
3462     # Setup a source with many dependencies, because some compilers
3463     # like to wrap large dependency lists on column 80 (with \), and
3464     # we should not choose a depcomp mode which is confused by this.
3465     #
3466     # We need to recreate these files for each test, as the compiler may
3467     # overwrite some of them when testing with obscure command lines.
3468     # This happens at least with the AIX C compiler.
3469     : > sub/conftest.c
3470     for i in 1 2 3 4 5 6; do
3471       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3472       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3473       # Solaris 8's {/usr,}/bin/sh.
3474       touch sub/conftst$i.h
3475     done
3476     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477
3478     case $depmode in
3479     nosideeffect)
3480       # after this tag, mechanisms are not by side-effect, so they'll
3481       # only be used when explicitly requested
3482       if test "x$enable_dependency_tracking" = xyes; then
3483         continue
3484       else
3485         break
3486       fi
3487       ;;
3488     none) break ;;
3489     esac
3490     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491     # mode.  It turns out that the SunPro C++ compiler does not properly
3492     # handle `-M -o', and we need to detect this.
3493     if depmode=$depmode \
3494        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3495        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3496        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3497          >/dev/null 2>conftest.err &&
3498        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3499        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3500        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501       # icc doesn't choke on unknown options, it will just issue warnings
3502       # or remarks (even with -Werror).  So we grep stderr for any message
3503       # that says an option was ignored or not supported.
3504       # When given -MP, icc 7.0 and 7.1 complain thusly:
3505       #   icc: Command line warning: ignoring option '-M'; no argument required
3506       # The diagnosis changed in icc 8.0:
3507       #   icc: Command line remark: option '-MP' not supported
3508       if (grep 'ignoring option' conftest.err ||
3509           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3510         am_cv_CC_dependencies_compiler_type=$depmode
3511         break
3512       fi
3513     fi
3514   done
3515
3516   cd ..
3517   rm -rf conftest.dir
3518 else
3519   am_cv_CC_dependencies_compiler_type=none
3520 fi
3521
3522 fi
3523 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3526
3527
3528
3529 if
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCC_TRUE=
3533   am__fastdepCC_FALSE='#'
3534 else
3535   am__fastdepCC_TRUE='#'
3536   am__fastdepCC_FALSE=
3537 fi
3538
3539
3540 depcc="$CXX"  am_compiler_list=
3541
3542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548   # We make a subdir and do the tests there.  Otherwise we can end up
3549   # making bogus files that we don't know about and never remove.  For
3550   # instance it was reported that on HP-UX the gcc test will end up
3551   # making a dummy file named `D' -- because `-MD' means `put the output
3552   # in D'.
3553   mkdir conftest.dir
3554   # Copy depcomp to subdir because otherwise we won't find it if we're
3555   # using a relative directory.
3556   cp "$am_depcomp" conftest.dir
3557   cd conftest.dir
3558   # We will build objects and dependencies in a subdirectory because
3559   # it helps to detect inapplicable dependency modes.  For instance
3560   # both Tru64's cc and ICC support -MD to output dependencies as a
3561   # side effect of compilation, but ICC will put the dependencies in
3562   # the current directory while Tru64 will put them in the object
3563   # directory.
3564   mkdir sub
3565
3566   am_cv_CXX_dependencies_compiler_type=none
3567   if test "$am_compiler_list" = ""; then
3568      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569   fi
3570   for depmode in $am_compiler_list; do
3571     # Setup a source with many dependencies, because some compilers
3572     # like to wrap large dependency lists on column 80 (with \), and
3573     # we should not choose a depcomp mode which is confused by this.
3574     #
3575     # We need to recreate these files for each test, as the compiler may
3576     # overwrite some of them when testing with obscure command lines.
3577     # This happens at least with the AIX C compiler.
3578     : > sub/conftest.c
3579     for i in 1 2 3 4 5 6; do
3580       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582       # Solaris 8's {/usr,}/bin/sh.
3583       touch sub/conftst$i.h
3584     done
3585     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586
3587     case $depmode in
3588     nosideeffect)
3589       # after this tag, mechanisms are not by side-effect, so they'll
3590       # only be used when explicitly requested
3591       if test "x$enable_dependency_tracking" = xyes; then
3592         continue
3593       else
3594         break
3595       fi
3596       ;;
3597     none) break ;;
3598     esac
3599     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600     # mode.  It turns out that the SunPro C++ compiler does not properly
3601     # handle `-M -o', and we need to detect this.
3602     if depmode=$depmode \
3603        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606          >/dev/null 2>conftest.err &&
3607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610       # icc doesn't choke on unknown options, it will just issue warnings
3611       # or remarks (even with -Werror).  So we grep stderr for any message
3612       # that says an option was ignored or not supported.
3613       # When given -MP, icc 7.0 and 7.1 complain thusly:
3614       #   icc: Command line warning: ignoring option '-M'; no argument required
3615       # The diagnosis changed in icc 8.0:
3616       #   icc: Command line remark: option '-MP' not supported
3617       if (grep 'ignoring option' conftest.err ||
3618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619         am_cv_CXX_dependencies_compiler_type=$depmode
3620         break
3621       fi
3622     fi
3623   done
3624
3625   cd ..
3626   rm -rf conftest.dir
3627 else
3628   am_cv_CXX_dependencies_compiler_type=none
3629 fi
3630
3631 fi
3632 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3635
3636
3637
3638 if
3639   test "x$enable_dependency_tracking" != xno \
3640   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3641   am__fastdepCXX_TRUE=
3642   am__fastdepCXX_FALSE='#'
3643 else
3644   am__fastdepCXX_TRUE='#'
3645   am__fastdepCXX_FALSE=
3646 fi
3647
3648
3649
3650
3651 if test -n "$ac_tool_prefix"; then
3652   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}as; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_AS+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$AS"; then
3660   ac_cv_prog_AS="$AS" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_exec_ext in '' $ac_executable_extensions; do
3668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     ac_cv_prog_AS="${ac_tool_prefix}as"
3670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674 done
3675
3676 fi
3677 fi
3678 AS=$ac_cv_prog_AS
3679 if test -n "$AS"; then
3680   echo "$as_me:$LINENO: result: $AS" >&5
3681 echo "${ECHO_T}$AS" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687 fi
3688 if test -z "$ac_cv_prog_AS"; then
3689   ac_ct_AS=$AS
3690   # Extract the first word of "as", so it can be a program name with args.
3691 set dummy as; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   if test -n "$ac_ct_AS"; then
3698   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_exec_ext in '' $ac_executable_extensions; do
3706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707     ac_cv_prog_ac_ct_AS="as"
3708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712 done
3713
3714 fi
3715 fi
3716 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3717 if test -n "$ac_ct_AS"; then
3718   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3719 echo "${ECHO_T}$ac_ct_AS" >&6
3720 else
3721   echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3723 fi
3724
3725   AS=$ac_ct_AS
3726 else
3727   AS="$ac_cv_prog_AS"
3728 fi
3729
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ar; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_AR+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$AR"; then
3739   ac_cv_prog_AR="$AR" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_AR="${ac_tool_prefix}ar"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755 fi
3756 fi
3757 AR=$ac_cv_prog_AR
3758 if test -n "$AR"; then
3759   echo "$as_me:$LINENO: result: $AR" >&5
3760 echo "${ECHO_T}$AR" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 fi
3767 if test -z "$ac_cv_prog_AR"; then
3768   ac_ct_AR=$AR
3769   # Extract the first word of "ar", so it can be a program name with args.
3770 set dummy ar; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$ac_ct_AR"; then
3777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_ac_ct_AR="ar"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793 fi
3794 fi
3795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3796 if test -n "$ac_ct_AR"; then
3797   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3798 echo "${ECHO_T}$ac_ct_AR" >&6
3799 else
3800   echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3802 fi
3803
3804   AR=$ac_ct_AR
3805 else
3806   AR="$ac_cv_prog_AR"
3807 fi
3808
3809 if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$RANLIB"; then
3818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834 fi
3835 fi
3836 RANLIB=$ac_cv_prog_RANLIB
3837 if test -n "$RANLIB"; then
3838   echo "$as_me:$LINENO: result: $RANLIB" >&5
3839 echo "${ECHO_T}$RANLIB" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845 fi
3846 if test -z "$ac_cv_prog_RANLIB"; then
3847   ac_ct_RANLIB=$RANLIB
3848   # Extract the first word of "ranlib", so it can be a program name with args.
3849 set dummy ranlib; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if test -n "$ac_ct_RANLIB"; then
3856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_exec_ext in '' $ac_executable_extensions; do
3864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865     ac_cv_prog_ac_ct_RANLIB="ranlib"
3866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870 done
3871
3872   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3873 fi
3874 fi
3875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3876 if test -n "$ac_ct_RANLIB"; then
3877   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883
3884   RANLIB=$ac_ct_RANLIB
3885 else
3886   RANLIB="$ac_cv_prog_RANLIB"
3887 fi
3888
3889
3890 # Find a good install program.  We prefer a C program (faster),
3891 # so one script is as good as another.  But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3896 # AIX /bin/install
3897 # AmigaOS /C/install, which installs bootblocks on floppy discs
3898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901 # OS/2's system install, which has a completely different semantic
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3919   /usr/ucb/* ) ;;
3920   *)
3921     # OSF1 and SCO ODT 3.0 have their own names for install.
3922     # Don't use installbsd from OSF since it installs stuff as root
3923     # by default.
3924     for ac_prog in ginstall scoinst install; do
3925       for ac_exec_ext in '' $ac_executable_extensions; do
3926         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927           if test $ac_prog = install &&
3928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # AIX install.  It has an incompatible calling convention.
3930             :
3931           elif test $ac_prog = install &&
3932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933             # program-specific install script used by HP pwplus--don't use.
3934             :
3935           else
3936             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3937             break 3
3938           fi
3939         fi
3940       done
3941     done
3942     ;;
3943 esac
3944 done
3945
3946
3947 fi
3948   if test "${ac_cv_path_install+set}" = set; then
3949     INSTALL=$ac_cv_path_install
3950   else
3951     # As a last resort, use the slow shell script.  We don't cache a
3952     # path for INSTALL within a source directory, because that will
3953     # break other packages using the cache if that directory is
3954     # removed, or if the path is relative.
3955     INSTALL=$ac_install_sh
3956   fi
3957 fi
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969
3970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3972     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3973 if test "${enable_maintainer_mode+set}" = set; then
3974   enableval="$enable_maintainer_mode"
3975   USE_MAINTAINER_MODE=$enableval
3976 else
3977   USE_MAINTAINER_MODE=no
3978 fi;
3979   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3981
3982
3983 if test $USE_MAINTAINER_MODE = yes; then
3984   MAINTAINER_MODE_TRUE=
3985   MAINTAINER_MODE_FALSE='#'
3986 else
3987   MAINTAINER_MODE_TRUE='#'
3988   MAINTAINER_MODE_FALSE=
3989 fi
3990
3991   MAINT=$MAINTAINER_MODE_TRUE
3992
3993
3994
3995
3996
3997 # configure.host sets the following important variables
3998 #       libgcj_cflags    - host specific C compiler flags
3999 #       libgcj_cxxflags  - host specific C++ compiler flags
4000 #       libgcj_javaflags - host specific Java compiler flags
4001
4002 libgcj_cflags=
4003 libgcj_cxxflags=
4004 libgcj_javaflags=
4005
4006 . ${srcdir}/configure.host
4007
4008 LIBGCJ_CFLAGS="${libgcj_cflags}"
4009 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4010 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4011 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4012
4013
4014
4015
4016
4017                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018
4019
4020 # Only use libltdl for non-newlib builds.
4021 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4022      case $enable_ltdl_convenience in
4023   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4024 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4025    { (exit 1); exit 1; }; } ;;
4026   "") enable_ltdl_convenience=yes
4027       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4028   esac
4029   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4030   INCLTDL='-I${top_srcdir}/''libltdl'
4031
4032
4033    DIRLTDL=libltdl
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define USE_LTDL 1
4037 _ACEOF
4038
4039    # Sigh.  Libtool's macro doesn't do the right thing.
4040    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4041    # FIXME: this is a hack.
4042    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4043    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4044 fi
4045
4046
4047
4048 # Check whether --enable-shared or --disable-shared was given.
4049 if test "${enable_shared+set}" = set; then
4050   enableval="$enable_shared"
4051   p=${PACKAGE-default}
4052 case $enableval in
4053 yes) enable_shared=yes ;;
4054 no) enable_shared=no ;;
4055 *)
4056   enable_shared=no
4057   # Look at the argument we got.  We use all the common list separators.
4058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4059   for pkg in $enableval; do
4060     if test "X$pkg" = "X$p"; then
4061       enable_shared=yes
4062     fi
4063   done
4064   IFS="$ac_save_ifs"
4065   ;;
4066 esac
4067 else
4068   enable_shared=yes
4069 fi;
4070 # Check whether --enable-static or --disable-static was given.
4071 if test "${enable_static+set}" = set; then
4072   enableval="$enable_static"
4073   p=${PACKAGE-default}
4074 case $enableval in
4075 yes) enable_static=yes ;;
4076 no) enable_static=no ;;
4077 *)
4078   enable_static=no
4079   # Look at the argument we got.  We use all the common list separators.
4080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4081   for pkg in $enableval; do
4082     if test "X$pkg" = "X$p"; then
4083       enable_static=yes
4084     fi
4085   done
4086   IFS="$ac_save_ifs"
4087   ;;
4088 esac
4089 else
4090   enable_static=yes
4091 fi;
4092 # Check whether --enable-fast-install or --disable-fast-install was given.
4093 if test "${enable_fast_install+set}" = set; then
4094   enableval="$enable_fast_install"
4095   p=${PACKAGE-default}
4096 case $enableval in
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4099 *)
4100   enable_fast_install=no
4101   # Look at the argument we got.  We use all the common list separators.
4102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4103   for pkg in $enableval; do
4104     if test "X$pkg" = "X$p"; then
4105       enable_fast_install=yes
4106     fi
4107   done
4108   IFS="$ac_save_ifs"
4109   ;;
4110 esac
4111 else
4112   enable_fast_install=yes
4113 fi;
4114
4115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4116 if test "${with_gnu_ld+set}" = set; then
4117   withval="$with_gnu_ld"
4118   test "$withval" = no || with_gnu_ld=yes
4119 else
4120   with_gnu_ld=no
4121 fi;
4122 ac_prog=ld
4123 if test "$GCC" = yes; then
4124   # Check if gcc -print-prog-name=ld gives a path.
4125   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4126 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4127   case $host in
4128   *-*-mingw*)
4129     # gcc leaves a trailing carriage return which upsets mingw
4130     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4131   *)
4132     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4133   esac
4134   case $ac_prog in
4135     # Accept absolute paths.
4136     [\\/]* | [A-Za-z]:[\\/]*)
4137       re_direlt='/[^/][^/]*/\.\./'
4138       # Canonicalize the path of ld
4139       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4140       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4141         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4142       done
4143       test -z "$LD" && LD="$ac_prog"
4144       ;;
4145   "")
4146     # If it fails, then pretend we aren't using GCC.
4147     ac_prog=ld
4148     ;;
4149   *)
4150     # If it is relative, then search for the first ld in PATH.
4151     with_gnu_ld=unknown
4152     ;;
4153   esac
4154 elif test "$with_gnu_ld" = yes; then
4155   echo "$as_me:$LINENO: checking for GNU ld" >&5
4156 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4157 else
4158   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4159 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4160 fi
4161 if test "${lt_cv_path_LD+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -z "$LD"; then
4165   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166   for ac_dir in $PATH; do
4167     test -z "$ac_dir" && ac_dir=.
4168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169       lt_cv_path_LD="$ac_dir/$ac_prog"
4170       # Check to see if the program is GNU ld.  I'd rather use --version,
4171       # but apparently some GNU ld's only accept -v.
4172       # Break only if it was the GNU/non-GNU ld that we prefer.
4173       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4174         test "$with_gnu_ld" != no && break
4175       else
4176         test "$with_gnu_ld" != yes && break
4177       fi
4178     fi
4179   done
4180   IFS="$ac_save_ifs"
4181 else
4182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4183 fi
4184 fi
4185
4186 LD="$lt_cv_path_LD"
4187 if test -n "$LD"; then
4188   echo "$as_me:$LINENO: result: $LD" >&5
4189 echo "${ECHO_T}$LD" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4196    { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4204   lt_cv_prog_gnu_ld=yes
4205 else
4206   lt_cv_prog_gnu_ld=no
4207 fi
4208 fi
4209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4212
4213
4214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   lt_cv_ld_reload_flag='-r'
4220 fi
4221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4223 reload_flag=$lt_cv_ld_reload_flag
4224 test -n "$reload_flag" && reload_flag=" $reload_flag"
4225
4226 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4227 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4228 if test "${lt_cv_path_NM+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$NM"; then
4232   # Let the user override the test.
4233   lt_cv_path_NM="$NM"
4234 else
4235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4236   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4237     test -z "$ac_dir" && ac_dir=.
4238     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4239     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4240       # Check to see if the nm accepts a BSD-compat flag.
4241       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242       #   nm: unknown option "B" ignored
4243       # Tru64's nm complains that /dev/null is an invalid object file
4244       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4245         lt_cv_path_NM="$tmp_nm -B"
4246         break
4247       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4248         lt_cv_path_NM="$tmp_nm -p"
4249         break
4250       else
4251         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4252         continue # so that we can try to find one that supports BSD flags
4253       fi
4254     fi
4255   done
4256   IFS="$ac_save_ifs"
4257   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4258 fi
4259 fi
4260
4261 NM="$lt_cv_path_NM"
4262 echo "$as_me:$LINENO: result: $NM" >&5
4263 echo "${ECHO_T}$NM" >&6
4264
4265 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4266 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4267 if test "${lt_cv_deplibs_check_method+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   lt_cv_file_magic_cmd='$MAGIC_CMD'
4271 lt_cv_file_magic_test_file=
4272 lt_cv_deplibs_check_method='unknown'
4273 # Need to set the preceding variable on all platforms that support
4274 # interlibrary dependencies.
4275 # 'none' -- dependencies not supported.
4276 # `unknown' -- same as none, but documents that we really don't know.
4277 # 'pass_all' -- all dependencies passed with no checks.
4278 # 'test_compile' -- check by making test program.
4279 # 'file_magic [regex]' -- check by looking for files in library path
4280 # which responds to the $file_magic_cmd with a given egrep regex.
4281 # If you have `file' or equivalent on your system and you're not sure
4282 # whether `pass_all' will *always* work, you probably want this one.
4283
4284 case $host_os in
4285 aix*)
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4288
4289 beos*)
4290   lt_cv_deplibs_check_method=pass_all
4291   ;;
4292
4293 bsdi4*)
4294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4295   lt_cv_file_magic_cmd='/usr/bin/file -L'
4296   lt_cv_file_magic_test_file=/shlib/libc.so
4297   ;;
4298
4299 cygwin* | mingw* |pw32*)
4300   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301   lt_cv_file_magic_cmd='$OBJDUMP -f'
4302   ;;
4303
4304 darwin* | rhapsody*)
4305   # this will be overwritten by pass_all, but leave it in just in case
4306   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4307   lt_cv_file_magic_cmd='/usr/bin/file -L'
4308   case "$host_os" in
4309   rhapsody* | darwin1.012)
4310     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4311     ;;
4312   *) # Darwin 1.3 on
4313     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4314     ;;
4315   esac
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4318
4319 freebsd* | kfreebsd*-gnu)
4320   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321     case $host_cpu in
4322     i*86 )
4323       # Not sure whether the presence of OpenBSD here was a mistake.
4324       # Let's accept both of them until this is cleared up.
4325       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4326       lt_cv_file_magic_cmd=/usr/bin/file
4327       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328       ;;
4329     esac
4330   else
4331     lt_cv_deplibs_check_method=pass_all
4332   fi
4333   ;;
4334
4335 gnu*)
4336   lt_cv_deplibs_check_method=pass_all
4337   ;;
4338
4339 hpux10.20*|hpux11*)
4340   case $host_cpu in
4341   hppa*)
4342     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343     lt_cv_file_magic_cmd=/usr/bin/file
4344     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345     ;;
4346   ia64*)
4347     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348     lt_cv_file_magic_cmd=/usr/bin/file
4349     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350     ;;
4351   esac
4352   ;;
4353
4354 irix5* | irix6*)
4355   case $host_os in
4356   irix5*)
4357     # this will be overridden with pass_all, but let us keep it just in case
4358     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359     ;;
4360   *)
4361     case $LD in
4362     *-32|*"-32 ") libmagic=32-bit;;
4363     *-n32|*"-n32 ") libmagic=N32;;
4364     *-64|*"-64 ") libmagic=64-bit;;
4365     *) libmagic=never-match;;
4366     esac
4367     # this will be overridden with pass_all, but let us keep it just in case
4368     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4369     ;;
4370   esac
4371   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4372   lt_cv_deplibs_check_method=pass_all
4373   ;;
4374
4375 # This must be Linux ELF.
4376 linux-gnu*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 netbsd* | knetbsd*-gnu)
4381   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4382     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4383   else
4384     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4385   fi
4386   ;;
4387
4388 newsos6)
4389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4390   lt_cv_file_magic_cmd=/usr/bin/file
4391   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4392   ;;
4393
4394 osf3* | osf4* | osf5*)
4395   # this will be overridden with pass_all, but let us keep it just in case
4396   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4397   lt_cv_file_magic_test_file=/shlib/libc.so
4398   lt_cv_deplibs_check_method=pass_all
4399   ;;
4400
4401 sco3.2v5*)
4402   lt_cv_deplibs_check_method=pass_all
4403   ;;
4404
4405 solaris*)
4406   lt_cv_deplibs_check_method=pass_all
4407   lt_cv_file_magic_test_file=/lib/libc.so
4408   ;;
4409
4410 sysv5uw[78]* | sysv4*uw2*)
4411   lt_cv_deplibs_check_method=pass_all
4412   ;;
4413
4414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4415   case $host_vendor in
4416   ncr)
4417     lt_cv_deplibs_check_method=pass_all
4418     ;;
4419   motorola)
4420     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4421     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422     ;;
4423   esac
4424   ;;
4425 esac
4426
4427 fi
4428 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4432
4433
4434
4435
4436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4437
4438 # find the maximum length of command line arguments
4439 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4440 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4441 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444     i=0
4445   teststring="ABCD"
4446
4447   case $build_os in
4448   msdosdjgpp*)
4449     # On DJGPP, this test can blow up pretty badly due to problems in libc
4450     # (any single argument exceeding 2000 bytes causes a buffer overrun
4451     # during glob expansion).  Even if it were fixed, the result of this
4452     # check would be larger than it should be.
4453     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4454     ;;
4455
4456   cygwin* | mingw*)
4457     # On Win9x/ME, this test blows up -- it succeeds, but takes
4458     # about 5 minutes as the teststring grows exponentially.
4459     # Worse, since 9x/ME are not pre-emptively multitasking,
4460     # you end up with a "frozen" computer, even though with patience
4461     # the test eventually succeeds (with a max line length of 256k).
4462     # Instead, let's just punt: use the minimum linelength reported by
4463     # all of the supported platforms: 8192 (on NT/2K/XP).
4464     lt_cv_sys_max_cmd_len=8192;
4465     ;;
4466
4467   amigaos*)
4468     # On AmigaOS with pdksh, this test takes hours, literally.
4469     # So we just punt and use a minimum line length of 8192.
4470     lt_cv_sys_max_cmd_len=8192;
4471     ;;
4472
4473   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4474     # This has been around since 386BSD, at least.  Likely further.
4475     if test -x /sbin/sysctl; then
4476       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4477     elif test -x /usr/sbin/sysctl; then
4478       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4479     else
4480       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4481     fi
4482     # And add a safety zone
4483     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4484     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4485     ;;
4486   esac
4487
4488 fi
4489
4490 if test -n $lt_cv_sys_max_cmd_len ; then
4491   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4492 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4493 else
4494   echo "$as_me:$LINENO: result: none" >&5
4495 echo "${ECHO_T}none" >&6
4496 fi
4497
4498
4499 # Only perform the check for file, if the check method requires it
4500 case $deplibs_check_method in
4501 file_magic*)
4502   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4503     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4504 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   case $MAGIC_CMD in
4509   /*)
4510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4511   ;;
4512   ?:/*)
4513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4514   ;;
4515   *)
4516   ac_save_MAGIC_CMD="$MAGIC_CMD"
4517   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4518   ac_dummy="/usr/bin:$PATH"
4519   for ac_dir in $ac_dummy; do
4520     test -z "$ac_dir" && ac_dir=.
4521     if test -f $ac_dir/${ac_tool_prefix}file; then
4522       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4523       if test -n "$file_magic_test_file"; then
4524         case $deplibs_check_method in
4525         "file_magic "*)
4526           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4527           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4528           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4529             egrep "$file_magic_regex" > /dev/null; then
4530             :
4531           else
4532             cat <<EOF 1>&2
4533
4534 *** Warning: the command libtool uses to detect shared libraries,
4535 *** $file_magic_cmd, produces output that libtool cannot recognize.
4536 *** The result is that libtool may fail to recognize shared libraries
4537 *** as such.  This will affect the creation of libtool libraries that
4538 *** depend on shared libraries, but programs linked with such libtool
4539 *** libraries will work regardless of this problem.  Nevertheless, you
4540 *** may want to report the problem to your system manager and/or to
4541 *** bug-libtool@gnu.org
4542
4543 EOF
4544           fi ;;
4545         esac
4546       fi
4547       break
4548     fi
4549   done
4550   IFS="$ac_save_ifs"
4551   MAGIC_CMD="$ac_save_MAGIC_CMD"
4552   ;;
4553 esac
4554 fi
4555
4556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4557 if test -n "$MAGIC_CMD"; then
4558   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4559 echo "${ECHO_T}$MAGIC_CMD" >&6
4560 else
4561   echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4563 fi
4564
4565 if test -z "$lt_cv_path_MAGIC_CMD"; then
4566   if test -n "$ac_tool_prefix"; then
4567     echo "$as_me:$LINENO: checking for file" >&5
4568 echo $ECHO_N "checking for file... $ECHO_C" >&6
4569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   case $MAGIC_CMD in
4573   /*)
4574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4575   ;;
4576   ?:/*)
4577   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4578   ;;
4579   *)
4580   ac_save_MAGIC_CMD="$MAGIC_CMD"
4581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4582   ac_dummy="/usr/bin:$PATH"
4583   for ac_dir in $ac_dummy; do
4584     test -z "$ac_dir" && ac_dir=.
4585     if test -f $ac_dir/file; then
4586       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4587       if test -n "$file_magic_test_file"; then
4588         case $deplibs_check_method in
4589         "file_magic "*)
4590           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4591           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4592           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4593             egrep "$file_magic_regex" > /dev/null; then
4594             :
4595           else
4596             cat <<EOF 1>&2
4597
4598 *** Warning: the command libtool uses to detect shared libraries,
4599 *** $file_magic_cmd, produces output that libtool cannot recognize.
4600 *** The result is that libtool may fail to recognize shared libraries
4601 *** as such.  This will affect the creation of libtool libraries that
4602 *** depend on shared libraries, but programs linked with such libtool
4603 *** libraries will work regardless of this problem.  Nevertheless, you
4604 *** may want to report the problem to your system manager and/or to
4605 *** bug-libtool@gnu.org
4606
4607 EOF
4608           fi ;;
4609         esac
4610       fi
4611       break
4612     fi
4613   done
4614   IFS="$ac_save_ifs"
4615   MAGIC_CMD="$ac_save_MAGIC_CMD"
4616   ;;
4617 esac
4618 fi
4619
4620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4621 if test -n "$MAGIC_CMD"; then
4622   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4623 echo "${ECHO_T}$MAGIC_CMD" >&6
4624 else
4625   echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629   else
4630     MAGIC_CMD=:
4631   fi
4632 fi
4633
4634   fi
4635   ;;
4636 esac
4637
4638 if test -n "$ac_tool_prefix"; then
4639   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4641 echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643 if test "${ac_cv_prog_RANLIB+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   if test -n "$RANLIB"; then
4647   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662
4663 fi
4664 fi
4665 RANLIB=$ac_cv_prog_RANLIB
4666 if test -n "$RANLIB"; then
4667   echo "$as_me:$LINENO: result: $RANLIB" >&5
4668 echo "${ECHO_T}$RANLIB" >&6
4669 else
4670   echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4672 fi
4673
4674 fi
4675 if test -z "$ac_cv_prog_RANLIB"; then
4676   ac_ct_RANLIB=$RANLIB
4677   # Extract the first word of "ranlib", so it can be a program name with args.
4678 set dummy ranlib; ac_word=$2
4679 echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4681 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   if test -n "$ac_ct_RANLIB"; then
4685   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_prog_ac_ct_RANLIB="ranlib"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700
4701   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4702 fi
4703 fi
4704 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4705 if test -n "$ac_ct_RANLIB"; then
4706   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4707 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4708 else
4709   echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4711 fi
4712
4713   RANLIB=$ac_ct_RANLIB
4714 else
4715   RANLIB="$ac_cv_prog_RANLIB"
4716 fi
4717
4718 if test -n "$ac_tool_prefix"; then
4719   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}strip; ac_word=$2
4721 echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4723 if test "${ac_cv_prog_STRIP+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   if test -n "$STRIP"; then
4727   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734   for ac_exec_ext in '' $ac_executable_extensions; do
4735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741 done
4742
4743 fi
4744 fi
4745 STRIP=$ac_cv_prog_STRIP
4746 if test -n "$STRIP"; then
4747   echo "$as_me:$LINENO: result: $STRIP" >&5
4748 echo "${ECHO_T}$STRIP" >&6
4749 else
4750   echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752 fi
4753
4754 fi
4755 if test -z "$ac_cv_prog_STRIP"; then
4756   ac_ct_STRIP=$STRIP
4757   # Extract the first word of "strip", so it can be a program name with args.
4758 set dummy strip; ac_word=$2
4759 echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   if test -n "$ac_ct_STRIP"; then
4765   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772   for ac_exec_ext in '' $ac_executable_extensions; do
4773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774     ac_cv_prog_ac_ct_STRIP="strip"
4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779 done
4780
4781   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4782 fi
4783 fi
4784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4785 if test -n "$ac_ct_STRIP"; then
4786   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4787 echo "${ECHO_T}$ac_ct_STRIP" >&6
4788 else
4789   echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4791 fi
4792
4793   STRIP=$ac_ct_STRIP
4794 else
4795   STRIP="$ac_cv_prog_STRIP"
4796 fi
4797
4798
4799 # Check for any special flags to pass to ltconfig.
4800 libtool_flags="--cache-file=$cache_file"
4801 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4802 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4803 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4804 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4805 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4806
4807
4808 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4809 if test "${enable_libtool_lock+set}" = set; then
4810   enableval="$enable_libtool_lock"
4811
4812 fi;
4813 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4814 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4815
4816
4817 # Check whether --with-pic or --without-pic was given.
4818 if test "${with_pic+set}" = set; then
4819   withval="$with_pic"
4820   pic_mode="$withval"
4821 else
4822   pic_mode=default
4823 fi;
4824 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4825 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4826
4827 # Some flags need to be propagated to the compiler or linker for good
4828 # libtool support.
4829 case $host in
4830 *-*-irix6*)
4831   # Find out which ABI we are using.
4832   echo '#line 4832 "configure"' > conftest.$ac_ext
4833   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; then
4838    if test "$lt_cv_prog_gnu_ld" = yes; then
4839     case `/usr/bin/file conftest.$ac_objext` in
4840     *32-bit*)
4841       LD="${LD-ld} -melf32bsmip"
4842       ;;
4843     *N32*)
4844       LD="${LD-ld} -melf32bmipn32"
4845       ;;
4846     *64-bit*)
4847       LD="${LD-ld} -melf64bmip"
4848       ;;
4849     esac
4850    else
4851     case `/usr/bin/file conftest.$ac_objext` in
4852     *32-bit*)
4853       LD="${LD-ld} -32"
4854       ;;
4855     *N32*)
4856       LD="${LD-ld} -n32"
4857       ;;
4858     *64-bit*)
4859       LD="${LD-ld} -64"
4860       ;;
4861     esac
4862    fi
4863   fi
4864   rm -rf conftest*
4865   ;;
4866
4867 ia64-*-hpux*)
4868   # Find out which ABI we are using.
4869   echo 'int i;' > conftest.$ac_ext
4870   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; then
4875     case "`/usr/bin/file conftest.o`" in
4876     *ELF-32*)
4877       HPUX_IA64_MODE="32"
4878       ;;
4879     *ELF-64*)
4880       HPUX_IA64_MODE="64"
4881       ;;
4882     esac
4883   fi
4884   rm -rf conftest*
4885   ;;
4886
4887 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4888   # Find out which ABI we are using.
4889   echo 'int i;' > conftest.$ac_ext
4890   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891   (eval $ac_compile) 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; then
4895     case "`/usr/bin/file conftest.o`" in
4896     *32-bit*)
4897       case $host in
4898         x86_64-*linux*)
4899           LD="${LD-ld} -m elf_i386"
4900           ;;
4901         ppc64-*linux*|powerpc64-*linux*)
4902           LD="${LD-ld} -m elf32ppclinux"
4903           ;;
4904         s390x-*linux*)
4905           LD="${LD-ld} -m elf_s390"
4906           ;;
4907         sparc64-*linux*)
4908           LD="${LD-ld} -m elf32_sparc"
4909           ;;
4910       esac
4911       ;;
4912     *64-bit*)
4913       case $host in
4914         x86_64-*linux*)
4915           LD="${LD-ld} -m elf_x86_64"
4916           ;;
4917         ppc*-*linux*|powerpc*-*linux*)
4918           LD="${LD-ld} -m elf64ppc"
4919           ;;
4920         s390*-*linux*)
4921           LD="${LD-ld} -m elf64_s390"
4922           ;;
4923         sparc*-*linux*)
4924           LD="${LD-ld} -m elf64_sparc"
4925           ;;
4926       esac
4927       ;;
4928     esac
4929   fi
4930   rm -rf conftest*
4931   ;;
4932
4933 *-*-sco3.2v5*)
4934   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4935   SAVE_CFLAGS="$CFLAGS"
4936   CFLAGS="$CFLAGS -belf"
4937   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4938 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4939 if test "${lt_cv_cc_needs_belf+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942
4943
4944      ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
4950      if test x$gcc_no_link = xyes; then
4951   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4953    { (exit 1); exit 1; }; }
4954 fi
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961
4962 int
4963 main ()
4964 {
4965
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972   (eval $ac_link) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"
4980                          || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest$ac_exeext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   lt_cv_cc_needs_belf=yes
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 lt_cv_cc_needs_belf=no
4998 fi
4999 rm -f conftest.err conftest.$ac_objext \
5000       conftest$ac_exeext conftest.$ac_ext
5001      ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007 fi
5008 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5009 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5010   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5011     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5012     CFLAGS="$SAVE_CFLAGS"
5013   fi
5014   ;;
5015
5016
5017 esac
5018
5019
5020 # Save cache, so that ltconfig can load it
5021 cat >confcache <<\_ACEOF
5022 # This file is a shell script that caches the results of configure
5023 # tests run on this system so they can be shared between configure
5024 # scripts and configure runs, see configure's option --config-cache.
5025 # It is not useful on other systems.  If it contains results you don't
5026 # want to keep, you may remove or edit it.
5027 #
5028 # config.status only pays attention to the cache file if you give it
5029 # the --recheck option to rerun configure.
5030 #
5031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5033 # following values.
5034
5035 _ACEOF
5036
5037 # The following way of writing the cache mishandles newlines in values,
5038 # but we know of no workaround that is simple, portable, and efficient.
5039 # So, don't put newlines in cache variables' values.
5040 # Ultrix sh set writes to stderr and can't be redirected directly,
5041 # and sets the high bit in the cache file unless we assign to the vars.
5042 {
5043   (set) 2>&1 |
5044     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5045     *ac_space=\ *)
5046       # `set' does not quote correctly, so add quotes (double-quote
5047       # substitution turns \\\\ into \\, and sed turns \\ into \).
5048       sed -n \
5049         "s/'/'\\\\''/g;
5050           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5051       ;;
5052     *)
5053       # `set' quotes correctly as required by POSIX, so do not add quotes.
5054       sed -n \
5055         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5056       ;;
5057     esac;
5058 } |
5059   sed '
5060      t clear
5061      : clear
5062      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5063      t end
5064      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5065      : end' >>confcache
5066 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5067   if test -w $cache_file; then
5068     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5069     cat confcache >$cache_file
5070   else
5071     echo "not updating unwritable cache $cache_file"
5072   fi
5073 fi
5074 rm -f confcache
5075
5076 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5077 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5078 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5079 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5080 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5081 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5082 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5083 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5084 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5085 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5086 echo "$as_me: error: libtool configure failed" >&2;}
5087    { (exit 1); exit 1; }; }
5088
5089 # Reload cache, that may have been modified by ltconfig
5090 if test -r "$cache_file"; then
5091   # Some versions of bash will fail to source /dev/null (special
5092   # files actually), so we avoid doing that.
5093   if test -f "$cache_file"; then
5094     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5095 echo "$as_me: loading cache $cache_file" >&6;}
5096     case $cache_file in
5097       [\\/]* | ?:[\\/]* ) . $cache_file;;
5098       *)                      . ./$cache_file;;
5099     esac
5100   fi
5101 else
5102   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5103 echo "$as_me: creating cache $cache_file" >&6;}
5104   >$cache_file
5105 fi
5106
5107
5108 # This can be used to rebuild libtool when needed
5109 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5110
5111 # Always use our own libtool.
5112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5113
5114 # Redirect the config.log output again, so that the ltconfig log is not
5115 # clobbered by the next message.
5116 exec 5>>./config.log
5117
5118 ac_ext=cc
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5124 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5125 if test -z "$CXXCPP"; then
5126   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129       # Double quotes because CXXCPP needs to be expanded
5130     for CXXCPP in "$CXX -E" "/lib/cpp"
5131     do
5132       ac_preproc_ok=false
5133 for ac_cxx_preproc_warn_flag in '' yes
5134 do
5135   # Use a header file that comes with gcc, so configuring glibc
5136   # with a fresh cross-compiler works.
5137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138   # <limits.h> exists even on freestanding compilers.
5139   # On the NeXT, cc -E runs the code through the compiler's parser,
5140   # not just through cpp. "Syntax error" is here to catch this case.
5141   cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 #ifdef __STDC__
5148 # include <limits.h>
5149 #else
5150 # include <assert.h>
5151 #endif
5152                      Syntax error
5153 _ACEOF
5154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156   ac_status=$?
5157   grep -v '^ *+' conftest.er1 >conftest.err
5158   rm -f conftest.er1
5159   cat conftest.err >&5
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } >/dev/null; then
5162   if test -s conftest.err; then
5163     ac_cpp_err=$ac_cxx_preproc_warn_flag
5164     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5165   else
5166     ac_cpp_err=
5167   fi
5168 else
5169   ac_cpp_err=yes
5170 fi
5171 if test -z "$ac_cpp_err"; then
5172   :
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177   # Broken: fails on valid input.
5178 continue
5179 fi
5180 rm -f conftest.err conftest.$ac_ext
5181
5182   # OK, works on sane cases.  Now check whether non-existent headers
5183   # can be detected and how.
5184   cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h.  */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h.  */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } >/dev/null; then
5200   if test -s conftest.err; then
5201     ac_cpp_err=$ac_cxx_preproc_warn_flag
5202     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5203   else
5204     ac_cpp_err=
5205   fi
5206 else
5207   ac_cpp_err=yes
5208 fi
5209 if test -z "$ac_cpp_err"; then
5210   # Broken: success on invalid input.
5211 continue
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216   # Passes both tests.
5217 ac_preproc_ok=:
5218 break
5219 fi
5220 rm -f conftest.err conftest.$ac_ext
5221
5222 done
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.err conftest.$ac_ext
5225 if $ac_preproc_ok; then
5226   break
5227 fi
5228
5229     done
5230     ac_cv_prog_CXXCPP=$CXXCPP
5231
5232 fi
5233   CXXCPP=$ac_cv_prog_CXXCPP
5234 else
5235   ac_cv_prog_CXXCPP=$CXXCPP
5236 fi
5237 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5238 echo "${ECHO_T}$CXXCPP" >&6
5239 ac_preproc_ok=false
5240 for ac_cxx_preproc_warn_flag in '' yes
5241 do
5242   # Use a header file that comes with gcc, so configuring glibc
5243   # with a fresh cross-compiler works.
5244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5245   # <limits.h> exists even on freestanding compilers.
5246   # On the NeXT, cc -E runs the code through the compiler's parser,
5247   # not just through cpp. "Syntax error" is here to catch this case.
5248   cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254 #ifdef __STDC__
5255 # include <limits.h>
5256 #else
5257 # include <assert.h>
5258 #endif
5259                      Syntax error
5260 _ACEOF
5261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } >/dev/null; then
5269   if test -s conftest.err; then
5270     ac_cpp_err=$ac_cxx_preproc_warn_flag
5271     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5272   else
5273     ac_cpp_err=
5274   fi
5275 else
5276   ac_cpp_err=yes
5277 fi
5278 if test -z "$ac_cpp_err"; then
5279   :
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284   # Broken: fails on valid input.
5285 continue
5286 fi
5287 rm -f conftest.err conftest.$ac_ext
5288
5289   # OK, works on sane cases.  Now check whether non-existent headers
5290   # can be detected and how.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #include <ac_nonexistent.h>
5298 _ACEOF
5299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } >/dev/null; then
5307   if test -s conftest.err; then
5308     ac_cpp_err=$ac_cxx_preproc_warn_flag
5309     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5310   else
5311     ac_cpp_err=
5312   fi
5313 else
5314   ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317   # Broken: success on invalid input.
5318 continue
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323   # Passes both tests.
5324 ac_preproc_ok=:
5325 break
5326 fi
5327 rm -f conftest.err conftest.$ac_ext
5328
5329 done
5330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331 rm -f conftest.err conftest.$ac_ext
5332 if $ac_preproc_ok; then
5333   :
5334 else
5335   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5336 See \`config.log' for more details." >&5
5337 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5338 See \`config.log' for more details." >&2;}
5339    { (exit 1); exit 1; }; }
5340 fi
5341
5342 ac_ext=c
5343 ac_cpp='$CPP $CPPFLAGS'
5344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347
5348
5349
5350 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5351 lt_save_CC="$CC"
5352 lt_save_CFLAGS="$CFLAGS"
5353 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5354 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5355 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5356 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5357 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5358 deplibs_check_method="$deplibs_check_method" \
5359 file_magic_cmd="$file_magic_cmd" \
5360 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5361 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5362 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5363 echo "$as_me: error: libtool tag configuration failed" >&2;}
5364    { (exit 1); exit 1; }; }
5365 CC="$lt_save_CC"
5366 CFLAGS="$lt_save_CFLAGS"
5367
5368 # Redirect the config.log output again, so that the ltconfig log is not
5369 # clobbered by the next message.
5370 exec 5>>./config.log
5371
5372
5373
5374
5375
5376
5377
5378 for ac_prog in gcj
5379 do
5380   # Extract the first word of "$ac_prog", so it can be a program name with args.
5381 set dummy $ac_prog; ac_word=$2
5382 echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 if test "${ac_cv_prog_GCJ+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   if test -n "$GCJ"; then
5388   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_prog_GCJ="$ac_prog"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404 fi
5405 fi
5406 GCJ=$ac_cv_prog_GCJ
5407 if test -n "$GCJ"; then
5408   echo "$as_me:$LINENO: result: $GCJ" >&5
5409 echo "${ECHO_T}$GCJ" >&6
5410 else
5411   echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413 fi
5414
5415   test -n "$GCJ" && break
5416 done
5417 test -n "$GCJ" || GCJ="gcj"
5418
5419 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5420 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5421    { (exit 1); exit 1; }; }
5422 if test "x${GCJFLAGS-unset}" = xunset; then
5423    GCJFLAGS="-g -O2"
5424 fi
5425
5426
5427 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5428
5429 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5430 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5431 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5435   # We make a subdir and do the tests there.  Otherwise we can end up
5436   # making bogus files that we don't know about and never remove.  For
5437   # instance it was reported that on HP-UX the gcc test will end up
5438   # making a dummy file named `D' -- because `-MD' means `put the output
5439   # in D'.
5440   mkdir conftest.dir
5441   # Copy depcomp to subdir because otherwise we won't find it if we're
5442   # using a relative directory.
5443   cp "$am_depcomp" conftest.dir
5444   cd conftest.dir
5445   # We will build objects and dependencies in a subdirectory because
5446   # it helps to detect inapplicable dependency modes.  For instance
5447   # both Tru64's cc and ICC support -MD to output dependencies as a
5448   # side effect of compilation, but ICC will put the dependencies in
5449   # the current directory while Tru64 will put them in the object
5450   # directory.
5451   mkdir sub
5452
5453   am_cv_GCJ_dependencies_compiler_type=none
5454   if test "$am_compiler_list" = ""; then
5455      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5456   fi
5457   for depmode in $am_compiler_list; do
5458     # Setup a source with many dependencies, because some compilers
5459     # like to wrap large dependency lists on column 80 (with \), and
5460     # we should not choose a depcomp mode which is confused by this.
5461     #
5462     # We need to recreate these files for each test, as the compiler may
5463     # overwrite some of them when testing with obscure command lines.
5464     # This happens at least with the AIX C compiler.
5465     : > sub/conftest.c
5466     for i in 1 2 3 4 5 6; do
5467       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5468       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5469       # Solaris 8's {/usr,}/bin/sh.
5470       touch sub/conftst$i.h
5471     done
5472     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5473
5474     case $depmode in
5475     nosideeffect)
5476       # after this tag, mechanisms are not by side-effect, so they'll
5477       # only be used when explicitly requested
5478       if test "x$enable_dependency_tracking" = xyes; then
5479         continue
5480       else
5481         break
5482       fi
5483       ;;
5484     none) break ;;
5485     esac
5486     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5487     # mode.  It turns out that the SunPro C++ compiler does not properly
5488     # handle `-M -o', and we need to detect this.
5489     if depmode=$depmode \
5490        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5491        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5492        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5493          >/dev/null 2>conftest.err &&
5494        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5495        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5496        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5497       # icc doesn't choke on unknown options, it will just issue warnings
5498       # or remarks (even with -Werror).  So we grep stderr for any message
5499       # that says an option was ignored or not supported.
5500       # When given -MP, icc 7.0 and 7.1 complain thusly:
5501       #   icc: Command line warning: ignoring option '-M'; no argument required
5502       # The diagnosis changed in icc 8.0:
5503       #   icc: Command line remark: option '-MP' not supported
5504       if (grep 'ignoring option' conftest.err ||
5505           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5506         am_cv_GCJ_dependencies_compiler_type=$depmode
5507         break
5508       fi
5509     fi
5510   done
5511
5512   cd ..
5513   rm -rf conftest.dir
5514 else
5515   am_cv_GCJ_dependencies_compiler_type=none
5516 fi
5517
5518 fi
5519 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5520 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5521 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5522
5523
5524
5525 if
5526   test "x$enable_dependency_tracking" != xno \
5527   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5528   am__fastdepGCJ_TRUE=
5529   am__fastdepGCJ_FALSE='#'
5530 else
5531   am__fastdepGCJ_TRUE='#'
5532   am__fastdepGCJ_FALSE=
5533 fi
5534
5535
5536
5537
5538 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5539 lt_save_CC="$CC"
5540 lt_save_CFLAGS="$CFLAGS"
5541 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5542 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5543 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5544 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5545 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5546 deplibs_check_method="$deplibs_check_method" \
5547 file_magic_cmd="$file_magic_cmd" \
5548 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5549 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5550 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5551 echo "$as_me: error: libtool tag configuration failed" >&2;}
5552    { (exit 1); exit 1; }; }
5553 CC="$lt_save_CC"
5554 CFLAGS="$lt_save_CFLAGS"
5555
5556 # Redirect the config.log output again, so that the ltconfig log is not
5557 # clobbered by the next message.
5558 exec 5>>./config.log
5559
5560
5561
5562 if test "x$CC" != xcc; then
5563   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5564 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5565 else
5566   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5567 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5568 fi
5569 set dummy $CC; ac_cc=`echo $2 |
5570                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5571 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580
5581 int
5582 main ()
5583 {
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 # Make sure it works both with $CC and with simple cc.
5590 # We do the test twice because some compilers refuse to overwrite an
5591 # existing .o file with -o, though they will create one.
5592 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5593 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } &&
5598    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); };
5603 then
5604   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5605   if test "x$CC" != xcc; then
5606     # Test first that cc exists at all.
5607     if { ac_try='cc -c conftest.$ac_ext >&5'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; }; then
5613       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5614       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); } &&
5619          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); };
5624       then
5625         # cc works too.
5626         :
5627       else
5628         # cc exists but doesn't like -o.
5629         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5630       fi
5631     fi
5632   fi
5633 else
5634   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5635 fi
5636 rm -f conftest*
5637
5638 fi
5639 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5640   echo "$as_me:$LINENO: result: yes" >&5
5641 echo "${ECHO_T}yes" >&6
5642 else
5643   echo "$as_me:$LINENO: result: no" >&5
5644 echo "${ECHO_T}no" >&6
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define NO_MINUS_C_MINUS_O 1
5648 _ACEOF
5649
5650 fi
5651
5652 # FIXME: we rely on the cache variable name because
5653 # there is no other way.
5654 set dummy $CC
5655 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5656 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5657    # Losing compiler, so override with the script.
5658    # FIXME: It is wrong to rewrite CC.
5659    # But if we don't then we get into trouble of one sort or another.
5660    # A longer-term fix would be to have automake use am__CC in this case,
5661    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5662    CC="$am_aux_dir/compile $CC"
5663 fi
5664
5665
5666
5667 subdirs="$subdirs libltdl"
5668
5669
5670 # The -no-testsuite modules omit the test subdir.
5671
5672
5673 if test -d $srcdir/testsuite; then
5674   TESTSUBDIR_TRUE=
5675   TESTSUBDIR_FALSE='#'
5676 else
5677   TESTSUBDIR_TRUE='#'
5678   TESTSUBDIR_FALSE=
5679 fi
5680
5681
5682 # Should the runtime set system properties by examining the
5683 # environment variable GCJ_PROPERTIES?
5684 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5685 if test "${enable_getenv_properties+set}" = set; then
5686   enableval="$enable_getenv_properties"
5687
5688 fi;
5689
5690 # Whether GCJ_PROPERTIES is used depends on the target.
5691 if test -z "$enable_getenv_properties"; then
5692    enable_getenv_properties=${enable_getenv_properties_default-yes}
5693 fi
5694 if test "$enable_getenv_properties" = no; then
5695
5696 cat >>confdefs.h <<\_ACEOF
5697 #define DISABLE_GETENV_PROPERTIES 1
5698 _ACEOF
5699
5700 fi
5701
5702 # Whether we should use arguments to main()
5703 if test -z "$enable_main_args"; then
5704    enable_main_args=${enable_main_args_default-yes}
5705 fi
5706 if test "$enable_main_args" = no; then
5707
5708 cat >>confdefs.h <<\_ACEOF
5709 #define DISABLE_MAIN_ARGS 1
5710 _ACEOF
5711
5712 fi
5713
5714
5715 # Should we use hashtable-based synchronization?
5716 # Currently works only for Linux X86/ia64
5717 # Typically faster and more space-efficient
5718 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5719 if test "${enable_hash_synchronization+set}" = set; then
5720   enableval="$enable_hash_synchronization"
5721
5722 fi;
5723
5724 if test -z "$enable_hash_synchronization"; then
5725    enable_hash_synchronization=$enable_hash_synchronization_default
5726 fi
5727
5728 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5729 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5730 if test "${enable_libgcj_multifile+set}" = set; then
5731   enableval="$enable_libgcj_multifile"
5732   case "${enableval}" in
5733   yes) enable_libgcj_multifile=yes ;;
5734   no)  enable_libgcj_multifile=no ;;
5735   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5736 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5737    { (exit 1); exit 1; }; } ;;
5738 esac
5739 else
5740   enable_libgcj_multifile=no
5741 fi;
5742
5743
5744 if test "$enable_libgcj_multifile" = yes; then
5745   ONESTEP_TRUE=
5746   ONESTEP_FALSE='#'
5747 else
5748   ONESTEP_TRUE='#'
5749   ONESTEP_FALSE=
5750 fi
5751
5752
5753
5754 # Check whether --with-java-home or --without-java-home was given.
5755 if test "${with_java_home+set}" = set; then
5756   withval="$with_java_home"
5757   JAVA_HOME="${withval}"
5758 else
5759   JAVA_HOME=""
5760 fi;
5761
5762
5763 if test ! -z "$JAVA_HOME"; then
5764   JAVA_HOME_SET_TRUE=
5765   JAVA_HOME_SET_FALSE='#'
5766 else
5767   JAVA_HOME_SET_TRUE='#'
5768   JAVA_HOME_SET_FALSE=
5769 fi
5770
5771
5772
5773 # What is the native OS API for MinGW?
5774
5775 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5776 if test "${with_win32_nlsapi+set}" = set; then
5777   withval="$with_win32_nlsapi"
5778   case "${withval}" in
5779   ansi) with_win32_nlsapi=ansi ;;
5780   unicows) with_win32_nlsapi=unicows ;;
5781   unicode) with_win32_nlsapi=unicode ;;
5782   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5783 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5784    { (exit 1); exit 1; }; } ;;
5785 esac
5786 else
5787   with_win32_nlsapi=ansi
5788 fi;
5789
5790 case "${with_win32_nlsapi}" in
5791   unicows | unicode)
5792
5793 cat >>confdefs.h <<\_ACEOF
5794 #define MINGW_LIBGCJ_UNICODE 1
5795 _ACEOF
5796
5797     ;;
5798 esac
5799
5800 # configure.host sets slow_pthread_self if the synchronization code should
5801 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5802 if test "${slow_pthread_self}" = "yes"; then
5803
5804 cat >>confdefs.h <<\_ACEOF
5805 #define SLOW_PTHREAD_SELF 1
5806 _ACEOF
5807
5808 fi
5809
5810
5811 # See if the user has requested runtime debugging.
5812 LIBGCJDEBUG="false"
5813
5814 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5815 if test "${enable_libgcj_debug+set}" = set; then
5816   enableval="$enable_libgcj_debug"
5817   if test "$enable_libgcj_debug" = yes; then
5818
5819 cat >>confdefs.h <<\_ACEOF
5820 #define DEBUG 1
5821 _ACEOF
5822
5823     LIBGCJDEBUG="true"
5824   fi
5825 fi;
5826
5827 # Check for gc debugging.  This option is handled both here and in the GC.
5828 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5829 if test "${enable_gc_debug+set}" = set; then
5830   enableval="$enable_gc_debug"
5831    if test "$enable_gc_debug" = "yes"; then
5832
5833 cat >>confdefs.h <<\_ACEOF
5834 #define LIBGCJ_GC_DEBUG 1
5835 _ACEOF
5836
5837   fi
5838 fi;
5839
5840 # See if the user has the interpreter included.
5841 # Check whether --enable-interpreter or --disable-interpreter was given.
5842 if test "${enable_interpreter+set}" = set; then
5843   enableval="$enable_interpreter"
5844   if test "$enable_interpreter" = yes; then
5845     # This can also be set in configure.host.
5846     libgcj_interpreter=yes
5847   elif test "$enable_interpreter" = no; then
5848     libgcj_interpreter=no
5849   fi
5850 fi;
5851
5852 if test "$libgcj_interpreter" = yes; then
5853
5854 cat >>confdefs.h <<\_ACEOF
5855 #define INTERPRETER 1
5856 _ACEOF
5857
5858 fi
5859 INTERPRETER="$libgcj_interpreter"
5860
5861
5862 echo "$as_me:$LINENO: checking for exception model to use" >&5
5863 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5864 ac_ext=cc
5865 ac_cpp='$CXXCPP $CPPFLAGS'
5866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5869
5870 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5871 if test "${enable_sjlj_exceptions+set}" = set; then
5872   enableval="$enable_sjlj_exceptions"
5873   :
5874 else
5875   cat > conftest.$ac_ext << EOF
5876 #line 5876 "configure"
5877 struct S { ~S(); };
5878 void bar();
5879 void foo()
5880 {
5881   S s;
5882   bar();
5883 }
5884 EOF
5885 old_CXXFLAGS="$CXXFLAGS"
5886 CXXFLAGS=-S
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888   (eval $ac_compile) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; then
5892   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5893     enable_sjlj_exceptions=yes
5894   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5895     enable_sjlj_exceptions=no
5896   fi
5897 fi
5898 CXXFLAGS="$old_CXXFLAGS"
5899 rm -f conftest*
5900 fi;
5901 if test x$enable_sjlj_exceptions = xyes; then
5902
5903 cat >>confdefs.h <<\_ACEOF
5904 #define SJLJ_EXCEPTIONS 1
5905 _ACEOF
5906
5907   ac_exception_model_name=sjlj
5908 elif test x$enable_sjlj_exceptions = xno; then
5909   ac_exception_model_name="call frame"
5910 else
5911   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5912 echo "$as_me: error: unable to detect exception model" >&2;}
5913    { (exit 1); exit 1; }; }
5914 fi
5915 ac_ext=c
5916 ac_cpp='$CPP $CPPFLAGS'
5917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5920
5921 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5922 echo "${ECHO_T}$ac_exception_model_name" >&6
5923
5924 # If we are non using SJLJ exceptions, and this host does not have support
5925 # for unwinding from a signal handler, enable checked dereferences and divides.
5926 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5927   CHECKREFSPEC=-fcheck-references
5928   DIVIDESPEC=-fuse-divide-subroutine
5929   EXCEPTIONSPEC=
5930 fi
5931
5932 # See if the user wants to disable java.net.  This is the mildly
5933 # ugly way that we admit that target-side configuration sucks.
5934 # Check whether --enable-java-net or --disable-java-net was given.
5935 if test "${enable_java_net+set}" = set; then
5936   enableval="$enable_java_net"
5937
5938 fi;
5939
5940 # Whether java.net is built by default can depend on the target.
5941 if test -z "$enable_java_net"; then
5942    enable_java_net=${enable_java_net_default-yes}
5943 fi
5944 if test "$enable_java_net" = no; then
5945
5946 cat >>confdefs.h <<\_ACEOF
5947 #define DISABLE_JAVA_NET 1
5948 _ACEOF
5949
5950 fi
5951
5952 # See if the user wants to configure without libffi.  Some
5953 # architectures don't support it, and default values are set in
5954 # configure.host.
5955
5956 # Check whether --with-libffi or --without-libffi was given.
5957 if test "${with_libffi+set}" = set; then
5958   withval="$with_libffi"
5959   :
5960 else
5961   with_libffi=${with_libffi_default-yes}
5962 fi;
5963
5964 LIBFFI=
5965 LIBFFIINCS=
5966 if test "$with_libffi" != no; then
5967
5968 cat >>confdefs.h <<\_ACEOF
5969 #define USE_LIBFFI 1
5970 _ACEOF
5971
5972    LIBFFI=../libffi/libffi_convenience.la
5973    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5974 fi
5975
5976
5977
5978 # See if the user wants to disable JVMPI support.
5979 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5980 if test "${enable_jvmpi+set}" = set; then
5981   enableval="$enable_jvmpi"
5982
5983 fi;
5984
5985 if test "$enable_jvmpi" != no; then
5986
5987 cat >>confdefs.h <<\_ACEOF
5988 #define ENABLE_JVMPI 1
5989 _ACEOF
5990
5991 fi
5992
5993 # If the target is an eCos system, use the appropriate eCos
5994 # I/O routines.
5995 # FIXME: this should not be a local option but a global target
5996 # system; at present there is no eCos target.
5997 TARGET_ECOS=${PROCESS-"no"}
5998
5999 # Check whether --with-ecos or --without-ecos was given.
6000 if test "${with_ecos+set}" = set; then
6001   withval="$with_ecos"
6002   TARGET_ECOS="$with_ecos"
6003
6004 fi;
6005
6006 supply_backtrace=no
6007
6008 PLATFORM_INNER_NAT_HDRS=
6009 case "$TARGET_ECOS" in
6010    no) case "$host" in
6011       *mingw*)
6012             PLATFORM=Win32
6013             PLATFORMNET=Win32
6014             PLATFORMH=win32.h
6015
6016 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6017 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6018 LD_PROG=`$CC --print-prog-name=ld`
6019 LD_VERSION=`$LD_PROG --version`
6020 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6021 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6022 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6023   LD_OK="ok"
6024 else
6025   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6026     LD_OK="ok"
6027   fi
6028 fi
6029 if test "x$LD_OK" != x; then
6030   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6031 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6032 else
6033   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6034 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6035   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6036 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6037
6038 cat >>confdefs.h <<\_ACEOF
6039 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6040 _ACEOF
6041
6042 fi
6043       ;;
6044       *)
6045             PLATFORM=Posix
6046             PLATFORMNET=Posix
6047             PLATFORMH=posix.h
6048             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6049       ;;
6050       esac
6051       ;;
6052    *)
6053       PLATFORM=Ecos
6054       PLATFORMNET=NoNet
6055
6056 cat >>confdefs.h <<\_ACEOF
6057 #define ECOS 1
6058 _ACEOF
6059
6060       PLATFORMH=posix.h
6061       ;;
6062 esac
6063
6064           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6065
6066
6067 ac_ext=c
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6074 # On Suns, sometimes $CPP names a directory.
6075 if test -n "$CPP" && test -d "$CPP"; then
6076   CPP=
6077 fi
6078 if test -z "$CPP"; then
6079   if test "${ac_cv_prog_CPP+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082       # Double quotes because CPP needs to be expanded
6083     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6084     do
6085       ac_preproc_ok=false
6086 for ac_c_preproc_warn_flag in '' yes
6087 do
6088   # Use a header file that comes with gcc, so configuring glibc
6089   # with a fresh cross-compiler works.
6090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091   # <limits.h> exists even on freestanding compilers.
6092   # On the NeXT, cc -E runs the code through the compiler's parser,
6093   # not just through cpp. "Syntax error" is here to catch this case.
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #ifdef __STDC__
6101 # include <limits.h>
6102 #else
6103 # include <assert.h>
6104 #endif
6105                      Syntax error
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_c_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   :
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   # Broken: fails on valid input.
6131 continue
6132 fi
6133 rm -f conftest.err conftest.$ac_ext
6134
6135   # OK, works on sane cases.  Now check whether non-existent headers
6136   # can be detected and how.
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6147   ac_status=$?
6148   grep -v '^ *+' conftest.er1 >conftest.err
6149   rm -f conftest.er1
6150   cat conftest.err >&5
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } >/dev/null; then
6153   if test -s conftest.err; then
6154     ac_cpp_err=$ac_c_preproc_warn_flag
6155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156   else
6157     ac_cpp_err=
6158   fi
6159 else
6160   ac_cpp_err=yes
6161 fi
6162 if test -z "$ac_cpp_err"; then
6163   # Broken: success on invalid input.
6164 continue
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Passes both tests.
6170 ac_preproc_ok=:
6171 break
6172 fi
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6179   break
6180 fi
6181
6182     done
6183     ac_cv_prog_CPP=$CPP
6184
6185 fi
6186   CPP=$ac_cv_prog_CPP
6187 else
6188   ac_cv_prog_CPP=$CPP
6189 fi
6190 echo "$as_me:$LINENO: result: $CPP" >&5
6191 echo "${ECHO_T}$CPP" >&6
6192 ac_preproc_ok=false
6193 for ac_c_preproc_warn_flag in '' yes
6194 do
6195   # Use a header file that comes with gcc, so configuring glibc
6196   # with a fresh cross-compiler works.
6197   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6198   # <limits.h> exists even on freestanding compilers.
6199   # On the NeXT, cc -E runs the code through the compiler's parser,
6200   # not just through cpp. "Syntax error" is here to catch this case.
6201   cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 #ifdef __STDC__
6208 # include <limits.h>
6209 #else
6210 # include <assert.h>
6211 #endif
6212                      Syntax error
6213 _ACEOF
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } >/dev/null; then
6222   if test -s conftest.err; then
6223     ac_cpp_err=$ac_c_preproc_warn_flag
6224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6225   else
6226     ac_cpp_err=
6227   fi
6228 else
6229   ac_cpp_err=yes
6230 fi
6231 if test -z "$ac_cpp_err"; then
6232   :
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237   # Broken: fails on valid input.
6238 continue
6239 fi
6240 rm -f conftest.err conftest.$ac_ext
6241
6242   # OK, works on sane cases.  Now check whether non-existent headers
6243   # can be detected and how.
6244   cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h.  */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h.  */
6250 #include <ac_nonexistent.h>
6251 _ACEOF
6252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6254   ac_status=$?
6255   grep -v '^ *+' conftest.er1 >conftest.err
6256   rm -f conftest.er1
6257   cat conftest.err >&5
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); } >/dev/null; then
6260   if test -s conftest.err; then
6261     ac_cpp_err=$ac_c_preproc_warn_flag
6262     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6263   else
6264     ac_cpp_err=
6265   fi
6266 else
6267   ac_cpp_err=yes
6268 fi
6269 if test -z "$ac_cpp_err"; then
6270   # Broken: success on invalid input.
6271 continue
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276   # Passes both tests.
6277 ac_preproc_ok=:
6278 break
6279 fi
6280 rm -f conftest.err conftest.$ac_ext
6281
6282 done
6283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6284 rm -f conftest.err conftest.$ac_ext
6285 if $ac_preproc_ok; then
6286   :
6287 else
6288   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6289 See \`config.log' for more details." >&5
6290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6291 See \`config.log' for more details." >&2;}
6292    { (exit 1); exit 1; }; }
6293 fi
6294
6295 ac_ext=c
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301
6302 echo "$as_me:$LINENO: checking for egrep" >&5
6303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6304 if test "${ac_cv_prog_egrep+set}" = set; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6308     then ac_cv_prog_egrep='grep -E'
6309     else ac_cv_prog_egrep='egrep'
6310     fi
6311 fi
6312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6314  EGREP=$ac_cv_prog_egrep
6315
6316
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h.  */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h.  */
6323 #include <stdint.h>
6324
6325 _ACEOF
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327   $EGREP "uint32_t" >/dev/null 2>&1; then
6328
6329 cat >>confdefs.h <<\_ACEOF
6330 #define HAVE_INT32_DEFINED 1
6331 _ACEOF
6332
6333 fi
6334 rm -f conftest*
6335
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h.  */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h.  */
6342 #include <inttypes.h>
6343
6344 _ACEOF
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346   $EGREP "uint32_t" >/dev/null 2>&1; then
6347
6348 cat >>confdefs.h <<\_ACEOF
6349 #define HAVE_INT32_DEFINED 1
6350 _ACEOF
6351
6352 fi
6353 rm -f conftest*
6354
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361 #include <sys/types.h>
6362
6363 _ACEOF
6364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6365   $EGREP "u_int32_t" >/dev/null 2>&1; then
6366
6367 cat >>confdefs.h <<\_ACEOF
6368 #define HAVE_BSD_INT32_DEFINED 1
6369 _ACEOF
6370
6371 fi
6372 rm -f conftest*
6373
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 #include <sys/config.h>
6381
6382 _ACEOF
6383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6384   $EGREP "u_int32_t" >/dev/null 2>&1; then
6385
6386 cat >>confdefs.h <<\_ACEOF
6387 #define HAVE_BSD_INT32_DEFINED 1
6388 _ACEOF
6389
6390 fi
6391 rm -f conftest*
6392
6393
6394
6395
6396 if test "$PLATFORM" = Win32; then
6397   USING_WIN32_PLATFORM_TRUE=
6398   USING_WIN32_PLATFORM_FALSE='#'
6399 else
6400   USING_WIN32_PLATFORM_TRUE='#'
6401   USING_WIN32_PLATFORM_FALSE=
6402 fi
6403
6404
6405
6406 if test "$PLATFORM" = Posix; then
6407   USING_POSIX_PLATFORM_TRUE=
6408   USING_POSIX_PLATFORM_FALSE='#'
6409 else
6410   USING_POSIX_PLATFORM_TRUE='#'
6411   USING_POSIX_PLATFORM_FALSE=
6412 fi
6413
6414
6415
6416 if test "$PLATFORM" = Ecos; then
6417   USING_ECOS_PLATFORM_TRUE=
6418   USING_ECOS_PLATFORM_FALSE='#'
6419 else
6420   USING_ECOS_PLATFORM_TRUE='#'
6421   USING_ECOS_PLATFORM_FALSE=
6422 fi
6423
6424
6425 case "$host" in
6426   *-darwin*) DARWIN_CRT=true ;;
6427   *) DARWIN_CRT=false ;;
6428 esac
6429
6430
6431 if $DARWIN_CRT; then
6432   USING_DARWIN_CRT_TRUE=
6433   USING_DARWIN_CRT_FALSE='#'
6434 else
6435   USING_DARWIN_CRT_TRUE='#'
6436   USING_DARWIN_CRT_FALSE=
6437 fi
6438
6439
6440 # These may not be defined in a non-ANS conformant embedded system.
6441 # FIXME: Should these case a runtime exception in that case?
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448 #include <time.h>
6449
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452   $EGREP "mktime" >/dev/null 2>&1; then
6453
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_MKTIME 1
6456 _ACEOF
6457
6458 fi
6459 rm -f conftest*
6460
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <time.h>
6468
6469 _ACEOF
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471   $EGREP "localtime" >/dev/null 2>&1; then
6472
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_LOCALTIME 1
6475 _ACEOF
6476
6477 fi
6478 rm -f conftest*
6479
6480
6481 # Create the subdirectory for natFile.cc, or the attempt
6482 # to create the link will fail.
6483 test -d java || mkdir java
6484 test -d java/io || mkdir java/io
6485 test -d gnu || mkdir gnu
6486           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6487
6488
6489 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6490 test -d java/lang || mkdir java/lang
6491           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6492
6493           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6494
6495
6496 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6497 test -d java/net || mkdir java/net
6498           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6499
6500           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6501
6502
6503 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6504 test -d gnu/java || mkdir gnu/java
6505 test -d gnu/java/net || mkdir gnu/java/net
6506           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6507
6508           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6509
6510
6511 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6512 test -d gnu/java/nio || mkdir gnu/java/nio
6513           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6514
6515           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6516
6517 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6518           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6519
6520
6521 case "${host}" in
6522     *mingw*)
6523       SYSTEMSPEC="-lgdi32 -lws2_32"
6524       if test "${with_win32_nlsapi}" = "unicows"; then
6525         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6526       fi
6527     ;;
6528     *)
6529       SYSTEMSPEC=
6530     ;;
6531 esac
6532
6533
6534 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6535
6536
6537
6538 # Check whether --with-system-zlib or --without-system-zlib was given.
6539 if test "${with_system_zlib+set}" = set; then
6540   withval="$with_system_zlib"
6541
6542 fi;
6543 ZLIBSPEC=
6544
6545 ZLIBTESTSPEC=
6546
6547
6548 echo "$as_me:$LINENO: checking for X" >&5
6549 echo $ECHO_N "checking for X... $ECHO_C" >&6
6550
6551
6552 # Check whether --with-x or --without-x was given.
6553 if test "${with_x+set}" = set; then
6554   withval="$with_x"
6555
6556 fi;
6557 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6558 if test "x$with_x" = xno; then
6559   # The user explicitly disabled X.
6560   have_x=disabled
6561 else
6562   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6563     # Both variables are already set.
6564     have_x=yes
6565   else
6566     if test "${ac_cv_have_x+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   # One or both of the vars are not set, and there is no cached value.
6570 ac_x_includes=no ac_x_libraries=no
6571 rm -fr conftest.dir
6572 if mkdir conftest.dir; then
6573   cd conftest.dir
6574   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6575   cat >Imakefile <<'_ACEOF'
6576 acfindx:
6577         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6578 _ACEOF
6579   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6580     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6581     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6582     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6583     for ac_extension in a so sl; do
6584       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6585          test -f $ac_im_libdir/libX11.$ac_extension; then
6586         ac_im_usrlibdir=$ac_im_libdir; break
6587       fi
6588     done
6589     # Screen out bogus values from the imake configuration.  They are
6590     # bogus both because they are the default anyway, and because
6591     # using them would break gcc on systems where it needs fixed includes.
6592     case $ac_im_incroot in
6593         /usr/include) ;;
6594         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6595     esac
6596     case $ac_im_usrlibdir in
6597         /usr/lib | /lib) ;;
6598         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6599     esac
6600   fi
6601   cd ..
6602   rm -fr conftest.dir
6603 fi
6604
6605 # Standard set of common directories for X headers.
6606 # Check X11 before X11Rn because it is often a symlink to the current release.
6607 ac_x_header_dirs='
6608 /usr/X11/include
6609 /usr/X11R6/include
6610 /usr/X11R5/include
6611 /usr/X11R4/include
6612
6613 /usr/include/X11
6614 /usr/include/X11R6
6615 /usr/include/X11R5
6616 /usr/include/X11R4
6617
6618 /usr/local/X11/include
6619 /usr/local/X11R6/include
6620 /usr/local/X11R5/include
6621 /usr/local/X11R4/include
6622
6623 /usr/local/include/X11
6624 /usr/local/include/X11R6
6625 /usr/local/include/X11R5
6626 /usr/local/include/X11R4
6627
6628 /usr/X386/include
6629 /usr/x386/include
6630 /usr/XFree86/include/X11
6631
6632 /usr/include
6633 /usr/local/include
6634 /usr/unsupported/include
6635 /usr/athena/include
6636 /usr/local/x11r5/include
6637 /usr/lpp/Xamples/include
6638
6639 /usr/openwin/include
6640 /usr/openwin/share/include'
6641
6642 if test "$ac_x_includes" = no; then
6643   # Guess where to find include files, by looking for Intrinsic.h.
6644   # First, try using that file with no special directory specified.
6645   cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651 #include <X11/Intrinsic.h>
6652 _ACEOF
6653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } >/dev/null; then
6661   if test -s conftest.err; then
6662     ac_cpp_err=$ac_c_preproc_warn_flag
6663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6664   else
6665     ac_cpp_err=
6666   fi
6667 else
6668   ac_cpp_err=yes
6669 fi
6670 if test -z "$ac_cpp_err"; then
6671   # We can compile using X headers with no special include directory.
6672 ac_x_includes=
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677   for ac_dir in $ac_x_header_dirs; do
6678   if test -r "$ac_dir/X11/Intrinsic.h"; then
6679     ac_x_includes=$ac_dir
6680     break
6681   fi
6682 done
6683 fi
6684 rm -f conftest.err conftest.$ac_ext
6685 fi # $ac_x_includes = no
6686
6687 if test "$ac_x_libraries" = no; then
6688   # Check for the libraries.
6689   # See if we find them without any special options.
6690   # Don't add to $LIBS permanently.
6691   ac_save_LIBS=$LIBS
6692   LIBS="-lXt $LIBS"
6693   if test x$gcc_no_link = xyes; then
6694   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6696    { (exit 1); exit 1; }; }
6697 fi
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704 #include <X11/Intrinsic.h>
6705 int
6706 main ()
6707 {
6708 XtMalloc (0)
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715   (eval $ac_link) 2>conftest.er1
6716   ac_status=$?
6717   grep -v '^ *+' conftest.er1 >conftest.err
6718   rm -f conftest.er1
6719   cat conftest.err >&5
6720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721   (exit $ac_status); } &&
6722          { ac_try='test -z "$ac_c_werror_flag"
6723                          || test ! -s conftest.err'
6724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725   (eval $ac_try) 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; } &&
6729          { ac_try='test -s conftest$ac_exeext'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; }; then
6735   LIBS=$ac_save_LIBS
6736 # We can link X programs with no special library path.
6737 ac_x_libraries=
6738 else
6739   echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742 LIBS=$ac_save_LIBS
6743 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6744 do
6745   # Don't even attempt the hair of trying to link an X program!
6746   for ac_extension in a so sl; do
6747     if test -r $ac_dir/libXt.$ac_extension; then
6748       ac_x_libraries=$ac_dir
6749       break 2
6750     fi
6751   done
6752 done
6753 fi
6754 rm -f conftest.err conftest.$ac_objext \
6755       conftest$ac_exeext conftest.$ac_ext
6756 fi # $ac_x_libraries = no
6757
6758 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6759   # Didn't find X anywhere.  Cache the known absence of X.
6760   ac_cv_have_x="have_x=no"
6761 else
6762   # Record where we found X for the cache.
6763   ac_cv_have_x="have_x=yes \
6764                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6765 fi
6766 fi
6767
6768   fi
6769   eval "$ac_cv_have_x"
6770 fi # $with_x != no
6771
6772 if test "$have_x" != yes; then
6773   echo "$as_me:$LINENO: result: $have_x" >&5
6774 echo "${ECHO_T}$have_x" >&6
6775   no_x=yes
6776 else
6777   # If each of the values was on the command line, it overrides each guess.
6778   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6779   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6780   # Update the cache value to reflect the command line values.
6781   ac_cv_have_x="have_x=yes \
6782                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6783   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6784 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6785 fi
6786
6787 if test "$no_x" = yes; then
6788   # Not all programs may use this symbol, but it does not hurt to define it.
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define X_DISPLAY_MISSING 1
6792 _ACEOF
6793
6794   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6795 else
6796   if test -n "$x_includes"; then
6797     X_CFLAGS="$X_CFLAGS -I$x_includes"
6798   fi
6799
6800   # It would also be nice to do this for all -L options, not just this one.
6801   if test -n "$x_libraries"; then
6802     X_LIBS="$X_LIBS -L$x_libraries"
6803     # For Solaris; some versions of Sun CC require a space after -R and
6804     # others require no space.  Words are not sufficient . . . .
6805     case `(uname -sr) 2>/dev/null` in
6806     "SunOS 5"*)
6807       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6808 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6809       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6810       if test x$gcc_no_link = xyes; then
6811   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6813    { (exit 1); exit 1; }; }
6814 fi
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h.  */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h.  */
6821
6822 int
6823 main ()
6824 {
6825
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832   (eval $ac_link) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } &&
6839          { ac_try='test -z "$ac_c_werror_flag"
6840                          || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest$ac_exeext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_R_nospace=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_R_nospace=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext \
6860       conftest$ac_exeext conftest.$ac_ext
6861       if test $ac_R_nospace = yes; then
6862         echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6
6864         X_LIBS="$X_LIBS -R$x_libraries"
6865       else
6866         LIBS="$ac_xsave_LIBS -R $x_libraries"
6867         if test x$gcc_no_link = xyes; then
6868   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6870    { (exit 1); exit 1; }; }
6871 fi
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878
6879 int
6880 main ()
6881 {
6882
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889   (eval $ac_link) 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } &&
6896          { ac_try='test -z "$ac_c_werror_flag"
6897                          || test ! -s conftest.err'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; } &&
6903          { ac_try='test -s conftest$ac_exeext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909   ac_R_space=yes
6910 else
6911   echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914 ac_R_space=no
6915 fi
6916 rm -f conftest.err conftest.$ac_objext \
6917       conftest$ac_exeext conftest.$ac_ext
6918         if test $ac_R_space = yes; then
6919           echo "$as_me:$LINENO: result: yes" >&5
6920 echo "${ECHO_T}yes" >&6
6921           X_LIBS="$X_LIBS -R $x_libraries"
6922         else
6923           echo "$as_me:$LINENO: result: neither works" >&5
6924 echo "${ECHO_T}neither works" >&6
6925         fi
6926       fi
6927       LIBS=$ac_xsave_LIBS
6928     esac
6929   fi
6930
6931   # Check for system-dependent libraries X programs must link with.
6932   # Do this before checking for the system-independent R6 libraries
6933   # (-lICE), since we may need -lsocket or whatever for X linking.
6934
6935   if test "$ISC" = yes; then
6936     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6937   else
6938     # Martyn Johnson says this is needed for Ultrix, if the X
6939     # libraries were built with DECnet support.  And Karl Berry says
6940     # the Alpha needs dnet_stub (dnet does not exist).
6941     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6942     if test x$gcc_no_link = xyes; then
6943   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6945    { (exit 1); exit 1; }; }
6946 fi
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953
6954 /* Override any gcc2 internal prototype to avoid an error.  */
6955 #ifdef __cplusplus
6956 extern "C"
6957 #endif
6958 /* We use char because int might match the return type of a gcc2
6959    builtin and then its argument prototype would still apply.  */
6960 char XOpenDisplay ();
6961 int
6962 main ()
6963 {
6964 XOpenDisplay ();
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971   (eval $ac_link) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_c_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest$ac_exeext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   :
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6997 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6998 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   ac_check_lib_save_LIBS=$LIBS
7002 LIBS="-ldnet  $LIBS"
7003 if test x$gcc_no_link = xyes; then
7004   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7006    { (exit 1); exit 1; }; }
7007 fi
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h.  */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h.  */
7014
7015 /* Override any gcc2 internal prototype to avoid an error.  */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 /* We use char because int might match the return type of a gcc2
7020    builtin and then its argument prototype would still apply.  */
7021 char dnet_ntoa ();
7022 int
7023 main ()
7024 {
7025 dnet_ntoa ();
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032   (eval $ac_link) 2>conftest.er1
7033   ac_status=$?
7034   grep -v '^ *+' conftest.er1 >conftest.err
7035   rm -f conftest.er1
7036   cat conftest.err >&5
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } &&
7039          { ac_try='test -z "$ac_c_werror_flag"
7040                          || test ! -s conftest.err'
7041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042   (eval $ac_try) 2>&5
7043   ac_status=$?
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); }; } &&
7046          { ac_try='test -s conftest$ac_exeext'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; }; then
7052   ac_cv_lib_dnet_dnet_ntoa=yes
7053 else
7054   echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 ac_cv_lib_dnet_dnet_ntoa=no
7058 fi
7059 rm -f conftest.err conftest.$ac_objext \
7060       conftest$ac_exeext conftest.$ac_ext
7061 LIBS=$ac_check_lib_save_LIBS
7062 fi
7063 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7064 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7065 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7066   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7067 fi
7068
7069     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7070       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7071 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7072 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   ac_check_lib_save_LIBS=$LIBS
7076 LIBS="-ldnet_stub  $LIBS"
7077 if test x$gcc_no_link = xyes; then
7078   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7080    { (exit 1); exit 1; }; }
7081 fi
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088
7089 /* Override any gcc2 internal prototype to avoid an error.  */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094    builtin and then its argument prototype would still apply.  */
7095 char dnet_ntoa ();
7096 int
7097 main ()
7098 {
7099 dnet_ntoa ();
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106   (eval $ac_link) 2>conftest.er1
7107   ac_status=$?
7108   grep -v '^ *+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } &&
7113          { ac_try='test -z "$ac_c_werror_flag"
7114                          || test ! -s conftest.err'
7115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116   (eval $ac_try) 2>&5
7117   ac_status=$?
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); }; } &&
7120          { ac_try='test -s conftest$ac_exeext'
7121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122   (eval $ac_try) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); }; }; then
7126   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7127 else
7128   echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 ac_cv_lib_dnet_stub_dnet_ntoa=no
7132 fi
7133 rm -f conftest.err conftest.$ac_objext \
7134       conftest$ac_exeext conftest.$ac_ext
7135 LIBS=$ac_check_lib_save_LIBS
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7138 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7139 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7140   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7141 fi
7142
7143     fi
7144 fi
7145 rm -f conftest.err conftest.$ac_objext \
7146       conftest$ac_exeext conftest.$ac_ext
7147     LIBS="$ac_xsave_LIBS"
7148
7149     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7150     # to get the SysV transport functions.
7151     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7152     # needs -lnsl.
7153     # The nsl library prevents programs from opening the X display
7154     # on Irix 5.2, according to T.E. Dickey.
7155     # The functions gethostbyname, getservbyname, and inet_addr are
7156     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7157     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7158 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7159 if test "${ac_cv_func_gethostbyname+set}" = set; then
7160   echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162   if test x$gcc_no_link = xyes; then
7163   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7165    { (exit 1); exit 1; }; }
7166 fi
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h.  */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h.  */
7173 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7175 #define gethostbyname innocuous_gethostbyname
7176
7177 /* System header to define __stub macros and hopefully few prototypes,
7178     which can conflict with char gethostbyname (); below.
7179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7180     <limits.h> exists even on freestanding compilers.  */
7181
7182 #ifdef __STDC__
7183 # include <limits.h>
7184 #else
7185 # include <assert.h>
7186 #endif
7187
7188 #undef gethostbyname
7189
7190 /* Override any gcc2 internal prototype to avoid an error.  */
7191 #ifdef __cplusplus
7192 extern "C"
7193 {
7194 #endif
7195 /* We use char because int might match the return type of a gcc2
7196    builtin and then its argument prototype would still apply.  */
7197 char gethostbyname ();
7198 /* The GNU C library defines this for functions which it implements
7199     to always fail with ENOSYS.  Some functions are actually named
7200     something starting with __ and the normal name is an alias.  */
7201 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7202 choke me
7203 #else
7204 char (*f) () = gethostbyname;
7205 #endif
7206 #ifdef __cplusplus
7207 }
7208 #endif
7209
7210 int
7211 main ()
7212 {
7213 return f != gethostbyname;
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>conftest.er1
7221   ac_status=$?
7222   grep -v '^ *+' conftest.er1 >conftest.err
7223   rm -f conftest.er1
7224   cat conftest.err >&5
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); } &&
7227          { ac_try='test -z "$ac_c_werror_flag"
7228                          || test ! -s conftest.err'
7229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230   (eval $ac_try) 2>&5
7231   ac_status=$?
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); }; } &&
7234          { ac_try='test -s conftest$ac_exeext'
7235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236   (eval $ac_try) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); }; }; then
7240   ac_cv_func_gethostbyname=yes
7241 else
7242   echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 ac_cv_func_gethostbyname=no
7246 fi
7247 rm -f conftest.err conftest.$ac_objext \
7248       conftest$ac_exeext conftest.$ac_ext
7249 fi
7250 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7251 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7252
7253     if test $ac_cv_func_gethostbyname = no; then
7254       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7255 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7256 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   ac_check_lib_save_LIBS=$LIBS
7260 LIBS="-lnsl  $LIBS"
7261 if test x$gcc_no_link = xyes; then
7262   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7264    { (exit 1); exit 1; }; }
7265 fi
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272
7273 /* Override any gcc2 internal prototype to avoid an error.  */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 /* We use char because int might match the return type of a gcc2
7278    builtin and then its argument prototype would still apply.  */
7279 char gethostbyname ();
7280 int
7281 main ()
7282 {
7283 gethostbyname ();
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290   (eval $ac_link) 2>conftest.er1
7291   ac_status=$?
7292   grep -v '^ *+' conftest.er1 >conftest.err
7293   rm -f conftest.er1
7294   cat conftest.err >&5
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } &&
7297          { ac_try='test -z "$ac_c_werror_flag"
7298                          || test ! -s conftest.err'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; } &&
7304          { ac_try='test -s conftest$ac_exeext'
7305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306   (eval $ac_try) 2>&5
7307   ac_status=$?
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); }; }; then
7310   ac_cv_lib_nsl_gethostbyname=yes
7311 else
7312   echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 ac_cv_lib_nsl_gethostbyname=no
7316 fi
7317 rm -f conftest.err conftest.$ac_objext \
7318       conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7320 fi
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7322 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7323 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7324   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7325 fi
7326
7327       if test $ac_cv_lib_nsl_gethostbyname = no; then
7328         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7329 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7330 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   ac_check_lib_save_LIBS=$LIBS
7334 LIBS="-lbsd  $LIBS"
7335 if test x$gcc_no_link = xyes; then
7336   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7338    { (exit 1); exit 1; }; }
7339 fi
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346
7347 /* Override any gcc2 internal prototype to avoid an error.  */
7348 #ifdef __cplusplus
7349 extern "C"
7350 #endif
7351 /* We use char because int might match the return type of a gcc2
7352    builtin and then its argument prototype would still apply.  */
7353 char gethostbyname ();
7354 int
7355 main ()
7356 {
7357 gethostbyname ();
7358   ;
7359   return 0;
7360 }
7361 _ACEOF
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364   (eval $ac_link) 2>conftest.er1
7365   ac_status=$?
7366   grep -v '^ *+' conftest.er1 >conftest.err
7367   rm -f conftest.er1
7368   cat conftest.err >&5
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } &&
7371          { ac_try='test -z "$ac_c_werror_flag"
7372                          || test ! -s conftest.err'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; } &&
7378          { ac_try='test -s conftest$ac_exeext'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; }; then
7384   ac_cv_lib_bsd_gethostbyname=yes
7385 else
7386   echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 ac_cv_lib_bsd_gethostbyname=no
7390 fi
7391 rm -f conftest.err conftest.$ac_objext \
7392       conftest$ac_exeext conftest.$ac_ext
7393 LIBS=$ac_check_lib_save_LIBS
7394 fi
7395 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7396 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7397 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7398   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7399 fi
7400
7401       fi
7402     fi
7403
7404     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7405     # socket/setsockopt and other routines are undefined under SCO ODT
7406     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7407     # on later versions), says Simon Leinen: it contains gethostby*
7408     # variants that don't use the name server (or something).  -lsocket
7409     # must be given before -lnsl if both are needed.  We assume that
7410     # if connect needs -lnsl, so does gethostbyname.
7411     echo "$as_me:$LINENO: checking for connect" >&5
7412 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7413 if test "${ac_cv_func_connect+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   if test x$gcc_no_link = xyes; then
7417   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7419    { (exit 1); exit 1; }; }
7420 fi
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h.  */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h.  */
7427 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7429 #define connect innocuous_connect
7430
7431 /* System header to define __stub macros and hopefully few prototypes,
7432     which can conflict with char connect (); below.
7433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7434     <limits.h> exists even on freestanding compilers.  */
7435
7436 #ifdef __STDC__
7437 # include <limits.h>
7438 #else
7439 # include <assert.h>
7440 #endif
7441
7442 #undef connect
7443
7444 /* Override any gcc2 internal prototype to avoid an error.  */
7445 #ifdef __cplusplus
7446 extern "C"
7447 {
7448 #endif
7449 /* We use char because int might match the return type of a gcc2
7450    builtin and then its argument prototype would still apply.  */
7451 char connect ();
7452 /* The GNU C library defines this for functions which it implements
7453     to always fail with ENOSYS.  Some functions are actually named
7454     something starting with __ and the normal name is an alias.  */
7455 #if defined (__stub_connect) || defined (__stub___connect)
7456 choke me
7457 #else
7458 char (*f) () = connect;
7459 #endif
7460 #ifdef __cplusplus
7461 }
7462 #endif
7463
7464 int
7465 main ()
7466 {
7467 return f != connect;
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 rm -f conftest.$ac_objext conftest$ac_exeext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7474   (eval $ac_link) 2>conftest.er1
7475   ac_status=$?
7476   grep -v '^ *+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } &&
7481          { ac_try='test -z "$ac_c_werror_flag"
7482                          || test ! -s conftest.err'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; } &&
7488          { ac_try='test -s conftest$ac_exeext'
7489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490   (eval $ac_try) 2>&5
7491   ac_status=$?
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); }; }; then
7494   ac_cv_func_connect=yes
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499 ac_cv_func_connect=no
7500 fi
7501 rm -f conftest.err conftest.$ac_objext \
7502       conftest$ac_exeext conftest.$ac_ext
7503 fi
7504 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7505 echo "${ECHO_T}$ac_cv_func_connect" >&6
7506
7507     if test $ac_cv_func_connect = no; then
7508       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7509 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7510 if test "${ac_cv_lib_socket_connect+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   ac_check_lib_save_LIBS=$LIBS
7514 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7515 if test x$gcc_no_link = xyes; then
7516   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7518    { (exit 1); exit 1; }; }
7519 fi
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h.  */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h.  */
7526
7527 /* Override any gcc2 internal prototype to avoid an error.  */
7528 #ifdef __cplusplus
7529 extern "C"
7530 #endif
7531 /* We use char because int might match the return type of a gcc2
7532    builtin and then its argument prototype would still apply.  */
7533 char connect ();
7534 int
7535 main ()
7536 {
7537 connect ();
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544   (eval $ac_link) 2>conftest.er1
7545   ac_status=$?
7546   grep -v '^ *+' conftest.er1 >conftest.err
7547   rm -f conftest.er1
7548   cat conftest.err >&5
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); } &&
7551          { ac_try='test -z "$ac_c_werror_flag"
7552                          || test ! -s conftest.err'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; } &&
7558          { ac_try='test -s conftest$ac_exeext'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; }; then
7564   ac_cv_lib_socket_connect=yes
7565 else
7566   echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 ac_cv_lib_socket_connect=no
7570 fi
7571 rm -f conftest.err conftest.$ac_objext \
7572       conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7576 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7577 if test $ac_cv_lib_socket_connect = yes; then
7578   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7579 fi
7580
7581     fi
7582
7583     # Guillermo Gomez says -lposix is necessary on A/UX.
7584     echo "$as_me:$LINENO: checking for remove" >&5
7585 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7586 if test "${ac_cv_func_remove+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   if test x$gcc_no_link = xyes; then
7590   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7592    { (exit 1); exit 1; }; }
7593 fi
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7602 #define remove innocuous_remove
7603
7604 /* System header to define __stub macros and hopefully few prototypes,
7605     which can conflict with char remove (); below.
7606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7607     <limits.h> exists even on freestanding compilers.  */
7608
7609 #ifdef __STDC__
7610 # include <limits.h>
7611 #else
7612 # include <assert.h>
7613 #endif
7614
7615 #undef remove
7616
7617 /* Override any gcc2 internal prototype to avoid an error.  */
7618 #ifdef __cplusplus
7619 extern "C"
7620 {
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623    builtin and then its argument prototype would still apply.  */
7624 char remove ();
7625 /* The GNU C library defines this for functions which it implements
7626     to always fail with ENOSYS.  Some functions are actually named
7627     something starting with __ and the normal name is an alias.  */
7628 #if defined (__stub_remove) || defined (__stub___remove)
7629 choke me
7630 #else
7631 char (*f) () = remove;
7632 #endif
7633 #ifdef __cplusplus
7634 }
7635 #endif
7636
7637 int
7638 main ()
7639 {
7640 return f != remove;
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 rm -f conftest.$ac_objext conftest$ac_exeext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7647   (eval $ac_link) 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); } &&
7654          { ac_try='test -z "$ac_c_werror_flag"
7655                          || test ! -s conftest.err'
7656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657   (eval $ac_try) 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); }; } &&
7661          { ac_try='test -s conftest$ac_exeext'
7662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663   (eval $ac_try) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }; }; then
7667   ac_cv_func_remove=yes
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7671
7672 ac_cv_func_remove=no
7673 fi
7674 rm -f conftest.err conftest.$ac_objext \
7675       conftest$ac_exeext conftest.$ac_ext
7676 fi
7677 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7678 echo "${ECHO_T}$ac_cv_func_remove" >&6
7679
7680     if test $ac_cv_func_remove = no; then
7681       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7682 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7683 if test "${ac_cv_lib_posix_remove+set}" = set; then
7684   echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686   ac_check_lib_save_LIBS=$LIBS
7687 LIBS="-lposix  $LIBS"
7688 if test x$gcc_no_link = xyes; then
7689   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7691    { (exit 1); exit 1; }; }
7692 fi
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699
7700 /* Override any gcc2 internal prototype to avoid an error.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 /* We use char because int might match the return type of a gcc2
7705    builtin and then its argument prototype would still apply.  */
7706 char remove ();
7707 int
7708 main ()
7709 {
7710 remove ();
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext conftest$ac_exeext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717   (eval $ac_link) 2>conftest.er1
7718   ac_status=$?
7719   grep -v '^ *+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } &&
7724          { ac_try='test -z "$ac_c_werror_flag"
7725                          || test ! -s conftest.err'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; } &&
7731          { ac_try='test -s conftest$ac_exeext'
7732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   ac_cv_lib_posix_remove=yes
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 ac_cv_lib_posix_remove=no
7743 fi
7744 rm -f conftest.err conftest.$ac_objext \
7745       conftest$ac_exeext conftest.$ac_ext
7746 LIBS=$ac_check_lib_save_LIBS
7747 fi
7748 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7749 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7750 if test $ac_cv_lib_posix_remove = yes; then
7751   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7752 fi
7753
7754     fi
7755
7756     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7757     echo "$as_me:$LINENO: checking for shmat" >&5
7758 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7759 if test "${ac_cv_func_shmat+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   if test x$gcc_no_link = xyes; then
7763   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7765    { (exit 1); exit 1; }; }
7766 fi
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7775 #define shmat innocuous_shmat
7776
7777 /* System header to define __stub macros and hopefully few prototypes,
7778     which can conflict with char shmat (); below.
7779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7780     <limits.h> exists even on freestanding compilers.  */
7781
7782 #ifdef __STDC__
7783 # include <limits.h>
7784 #else
7785 # include <assert.h>
7786 #endif
7787
7788 #undef shmat
7789
7790 /* Override any gcc2 internal prototype to avoid an error.  */
7791 #ifdef __cplusplus
7792 extern "C"
7793 {
7794 #endif
7795 /* We use char because int might match the return type of a gcc2
7796    builtin and then its argument prototype would still apply.  */
7797 char shmat ();
7798 /* The GNU C library defines this for functions which it implements
7799     to always fail with ENOSYS.  Some functions are actually named
7800     something starting with __ and the normal name is an alias.  */
7801 #if defined (__stub_shmat) || defined (__stub___shmat)
7802 choke me
7803 #else
7804 char (*f) () = shmat;
7805 #endif
7806 #ifdef __cplusplus
7807 }
7808 #endif
7809
7810 int
7811 main ()
7812 {
7813 return f != shmat;
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820   (eval $ac_link) 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -z "$ac_c_werror_flag"
7828                          || test ! -s conftest.err'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_cv_func_shmat=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_func_shmat=no
7846 fi
7847 rm -f conftest.err conftest.$ac_objext \
7848       conftest$ac_exeext conftest.$ac_ext
7849 fi
7850 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7851 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7852
7853     if test $ac_cv_func_shmat = no; then
7854       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7855 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7856 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7857   echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859   ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lipc  $LIBS"
7861 if test x$gcc_no_link = xyes; then
7862   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7864    { (exit 1); exit 1; }; }
7865 fi
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 /* Override any gcc2 internal prototype to avoid an error.  */
7874 #ifdef __cplusplus
7875 extern "C"
7876 #endif
7877 /* We use char because int might match the return type of a gcc2
7878    builtin and then its argument prototype would still apply.  */
7879 char shmat ();
7880 int
7881 main ()
7882 {
7883 shmat ();
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890   (eval $ac_link) 2>conftest.er1
7891   ac_status=$?
7892   grep -v '^ *+' conftest.er1 >conftest.err
7893   rm -f conftest.er1
7894   cat conftest.err >&5
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); } &&
7897          { ac_try='test -z "$ac_c_werror_flag"
7898                          || test ! -s conftest.err'
7899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900   (eval $ac_try) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); }; } &&
7904          { ac_try='test -s conftest$ac_exeext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   ac_cv_lib_ipc_shmat=yes
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 ac_cv_lib_ipc_shmat=no
7916 fi
7917 rm -f conftest.err conftest.$ac_objext \
7918       conftest$ac_exeext conftest.$ac_ext
7919 LIBS=$ac_check_lib_save_LIBS
7920 fi
7921 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7922 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7923 if test $ac_cv_lib_ipc_shmat = yes; then
7924   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7925 fi
7926
7927     fi
7928   fi
7929
7930   # Check for libraries that X11R6 Xt/Xaw programs need.
7931   ac_save_LDFLAGS=$LDFLAGS
7932   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7933   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7934   # check for ICE first), but we must link in the order -lSM -lICE or
7935   # we get undefined symbols.  So assume we have SM if we have ICE.
7936   # These have to be linked with before -lX11, unlike the other
7937   # libraries we check for below, so use a different variable.
7938   # John Interrante, Karl Berry
7939   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7940 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7941 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   ac_check_lib_save_LIBS=$LIBS
7945 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7946 if test x$gcc_no_link = xyes; then
7947   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7949    { (exit 1); exit 1; }; }
7950 fi
7951 cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 /* Override any gcc2 internal prototype to avoid an error.  */
7959 #ifdef __cplusplus
7960 extern "C"
7961 #endif
7962 /* We use char because int might match the return type of a gcc2
7963    builtin and then its argument prototype would still apply.  */
7964 char IceConnectionNumber ();
7965 int
7966 main ()
7967 {
7968 IceConnectionNumber ();
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975   (eval $ac_link) 2>conftest.er1
7976   ac_status=$?
7977   grep -v '^ *+' conftest.er1 >conftest.err
7978   rm -f conftest.er1
7979   cat conftest.err >&5
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } &&
7982          { ac_try='test -z "$ac_c_werror_flag"
7983                          || test ! -s conftest.err'
7984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985   (eval $ac_try) 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; } &&
7989          { ac_try='test -s conftest$ac_exeext'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   ac_cv_lib_ICE_IceConnectionNumber=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_cv_lib_ICE_IceConnectionNumber=no
8001 fi
8002 rm -f conftest.err conftest.$ac_objext \
8003       conftest$ac_exeext conftest.$ac_ext
8004 LIBS=$ac_check_lib_save_LIBS
8005 fi
8006 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8007 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8008 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8009   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8010 fi
8011
8012   LDFLAGS=$ac_save_LDFLAGS
8013
8014 fi
8015
8016
8017 # Determine which AWT peer libraries to build
8018 # Check whether --enable-java-awt or --disable-java-awt was given.
8019 if test "${enable_java_awt+set}" = set; then
8020   enableval="$enable_java_awt"
8021
8022 fi;
8023
8024 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
8025 use_xlib_awt=""
8026 use_gtk_awt=""
8027 # The default toolkit to use is the first one specified.
8028 TOOLKIT=
8029
8030
8031 for peer in $peerlibs ; do
8032   case $peer in
8033     xlib)
8034       if test "$no_x" = yes; then
8035         echo "*** xlib peers requested but no X library available" 1>&2
8036         exit 1
8037       else
8038         use_xlib_awt="yes"
8039         if test -z "$TOOLKIT"; then
8040            TOOLKIT=gnu.awt.xlib.XToolkit
8041         fi
8042       fi
8043       ;;
8044     gtk)
8045       if test "$no_x" = yes; then
8046          echo "*** xlib peers requested but no X library available" 1>&2
8047          exit 1
8048       else
8049          use_gtk_awt=yes
8050          if test -z "$TOOLKIT"; then
8051             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8052          fi
8053          test -d jniinclude || mkdir jniinclude
8054       fi
8055       ;;
8056     no)
8057       use_xlib_awt=
8058       use_gtk_awt=
8059       break
8060       ;;
8061     *)
8062       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8063       exit 1
8064   esac
8065 done
8066
8067
8068
8069 if test "$use_xlib_awt" = yes; then
8070   XLIB_AWT_TRUE=
8071   XLIB_AWT_FALSE='#'
8072 else
8073   XLIB_AWT_TRUE='#'
8074   XLIB_AWT_FALSE=
8075 fi
8076
8077
8078
8079 if test "$use_gtk_awt" = yes; then
8080   GTK_AWT_TRUE=
8081   GTK_AWT_FALSE='#'
8082 else
8083   GTK_AWT_TRUE='#'
8084   GTK_AWT_FALSE=
8085 fi
8086
8087
8088 # determine whether to enable the cairo GTK Graphics2D backend
8089 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8090 if test "${enable_gtk_cairo+set}" = set; then
8091   enableval="$enable_gtk_cairo"
8092
8093 fi;
8094
8095
8096 if test "x${enable_gtk_cairo}" = xyes; then
8097   GTK_CAIRO_TRUE=
8098   GTK_CAIRO_FALSE='#'
8099 else
8100   GTK_CAIRO_TRUE='#'
8101   GTK_CAIRO_FALSE=
8102 fi
8103
8104 if test "x${enable_gtk_cairo}" = xyes
8105 then
8106
8107   succeeded=no
8108
8109   if test -z "$PKG_CONFIG"; then
8110     # Extract the first word of "pkg-config", so it can be a program name with args.
8111 set dummy pkg-config; ac_word=$2
8112 echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   case $PKG_CONFIG in
8118   [\\/]* | ?:[\\/]*)
8119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8120   ;;
8121   *)
8122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127   for ac_exec_ext in '' $ac_executable_extensions; do
8128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134 done
8135
8136   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8137   ;;
8138 esac
8139 fi
8140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8141
8142 if test -n "$PKG_CONFIG"; then
8143   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8144 echo "${ECHO_T}$PKG_CONFIG" >&6
8145 else
8146   echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148 fi
8149
8150   fi
8151
8152   if test "$PKG_CONFIG" = "no" ; then
8153      echo "*** The pkg-config script could not be found. Make sure it is"
8154      echo "*** in your path, or set the PKG_CONFIG environment variable"
8155      echo "*** to the full path to pkg-config."
8156      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8157   else
8158      PKG_CONFIG_MIN_VERSION=0.9.0
8159      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8160         echo "$as_me:$LINENO: checking for cairo" >&5
8161 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8162
8163         if $PKG_CONFIG --exists "cairo" ; then
8164             echo "$as_me:$LINENO: result: yes" >&5
8165 echo "${ECHO_T}yes" >&6
8166             succeeded=yes
8167
8168             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8169 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8170             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8171             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8172 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8173
8174             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8175 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8176             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8177             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8178 echo "${ECHO_T}$CAIRO_LIBS" >&6
8179         else
8180             CAIRO_CFLAGS=""
8181             CAIRO_LIBS=""
8182             ## If we have a custom action on failure, don't print errors, but
8183             ## do set a variable so people can do so.
8184             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8185             echo $CAIRO_PKG_ERRORS
8186         fi
8187
8188
8189
8190      else
8191         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8192         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8193      fi
8194   fi
8195
8196   if test $succeeded = yes; then
8197      :
8198   else
8199      { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8200 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8201    { (exit 1); exit 1; }; }
8202   fi
8203
8204
8205   succeeded=no
8206
8207   if test -z "$PKG_CONFIG"; then
8208     # Extract the first word of "pkg-config", so it can be a program name with args.
8209 set dummy pkg-config; ac_word=$2
8210 echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8212 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   case $PKG_CONFIG in
8216   [\\/]* | ?:[\\/]*)
8217   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8218   ;;
8219   *)
8220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223   IFS=$as_save_IFS
8224   test -z "$as_dir" && as_dir=.
8225   for ac_exec_ext in '' $ac_executable_extensions; do
8226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229     break 2
8230   fi
8231 done
8232 done
8233
8234   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8235   ;;
8236 esac
8237 fi
8238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8239
8240 if test -n "$PKG_CONFIG"; then
8241   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8242 echo "${ECHO_T}$PKG_CONFIG" >&6
8243 else
8244   echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8246 fi
8247
8248   fi
8249
8250   if test "$PKG_CONFIG" = "no" ; then
8251      echo "*** The pkg-config script could not be found. Make sure it is"
8252      echo "*** in your path, or set the PKG_CONFIG environment variable"
8253      echo "*** to the full path to pkg-config."
8254      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8255   else
8256      PKG_CONFIG_MIN_VERSION=0.9.0
8257      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8258         echo "$as_me:$LINENO: checking for pangoft2" >&5
8259 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8260
8261         if $PKG_CONFIG --exists "pangoft2" ; then
8262             echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264             succeeded=yes
8265
8266             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8267 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8268             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8269             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8270 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8271
8272             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8273 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8274             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8275             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8276 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8277         else
8278             PANGOFT2_CFLAGS=""
8279             PANGOFT2_LIBS=""
8280             ## If we have a custom action on failure, don't print errors, but
8281             ## do set a variable so people can do so.
8282             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8283             echo $PANGOFT2_PKG_ERRORS
8284         fi
8285
8286
8287
8288      else
8289         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8290         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8291      fi
8292   fi
8293
8294   if test $succeeded = yes; then
8295      :
8296   else
8297      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8298 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8299    { (exit 1); exit 1; }; }
8300   fi
8301
8302 fi
8303
8304
8305
8306
8307
8308 # FIXME: this should be _libs on some hosts.
8309 libsubdir=.libs
8310
8311 # Allow the GC to be disabled.  Can be useful when debugging.
8312 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8313 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8314 # Check whether --enable-java-gc or --disable-java-gc was given.
8315 if test "${enable_java_gc+set}" = set; then
8316   enableval="$enable_java_gc"
8317   GC=$enableval
8318 else
8319   GC=boehm
8320 fi;
8321 GCLIBS=
8322 GCINCS=
8323 GCDEPS=
8324 GCSPEC=
8325 JC1GCSPEC=
8326 GCTESTSPEC=
8327 case "$GC" in
8328  boehm)
8329     echo "$as_me:$LINENO: result: boehm" >&5
8330 echo "${ECHO_T}boehm" >&6
8331     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8332     JC1GCSPEC='-fuse-boehm-gc'
8333     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8334     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8335     GCOBJS=boehm.lo
8336     GCHDR=boehm-gc.h
8337     # The POSIX thread support needs to know this.
8338
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE_BOEHM_GC 1
8341 _ACEOF
8342
8343     ;;
8344  no)
8345     echo "$as_me:$LINENO: result: none" >&5
8346 echo "${ECHO_T}none" >&6
8347     GCHDR=no-gc.h
8348     ;;
8349  *)
8350     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8351 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8352    { (exit 1); exit 1; }; }
8353     ;;
8354 esac
8355
8356
8357
8358
8359
8360
8361           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8362
8363
8364
8365 if test "$GC" = boehm; then
8366   USING_BOEHMGC_TRUE=
8367   USING_BOEHMGC_FALSE='#'
8368 else
8369   USING_BOEHMGC_TRUE='#'
8370   USING_BOEHMGC_FALSE=
8371 fi
8372
8373
8374
8375 if test "$GC" = no; then
8376   USING_NOGC_TRUE=
8377   USING_NOGC_FALSE='#'
8378 else
8379   USING_NOGC_TRUE='#'
8380   USING_NOGC_FALSE=
8381 fi
8382
8383
8384
8385 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8386 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8387 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8388 echo "$as_me:$LINENO: result: $THREADS" >&5
8389 echo "${ECHO_T}$THREADS" >&6
8390
8391 case "$THREADS" in
8392  no | none | single)
8393     THREADS=none
8394     ;;
8395  posix | posix95 | pthreads)
8396     THREADS=posix
8397     case "$host" in
8398      *-*-linux*)
8399
8400 cat >>confdefs.h <<\_ACEOF
8401 #define LINUX_THREADS 1
8402 _ACEOF
8403
8404         ;;
8405     esac
8406     ;;
8407  win32)
8408     ;;
8409  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8410     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8411 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8412    { (exit 1); exit 1; }; }
8413     ;;
8414  *)
8415     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8416 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8417    { (exit 1); exit 1; }; }
8418     ;;
8419 esac
8420
8421 THREADCXXFLAGS=
8422 THREADLDFLAGS=
8423 THREADLIBS=
8424 THREADINCS=
8425 THREADDEPS=
8426 THREADH=
8427 THREADSPEC=
8428 case "$THREADS" in
8429  posix)
8430     case "$host" in
8431      *-*-cygwin*)
8432         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8433         ;;
8434      *-*-freebsd[1234]*)
8435         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8436         # merely adds pthread_* functions) but it does have a -pthread switch
8437         # which is required at link-time to select -lc_r *instead* of -lc.
8438         THREADLDFLAGS=-pthread
8439         # Don't set THREADSPEC here as might be expected since -pthread is
8440         # not processed when found within a spec file, it must come from
8441         # the command line.  For now, the user must provide the -pthread
8442         # switch to link code compiled with gcj.  In future, consider adding
8443         # support for weak references to pthread_* functions ala gthr.h API.
8444         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8445         ;;
8446      *-*-freebsd*)
8447         # FreeBSD 5 implements a model much closer to other modern UNIX
8448         # which support threads.  However, it still does not support
8449         # -lpthread.
8450         THREADLDFLAGS=-pthread
8451         THREADSPEC=-lc_r
8452         ;;
8453      alpha*-dec-osf*)
8454         THREADCXXFLAGS=-pthread
8455         # boehm-gc needs some functions from librt, so link that too.
8456         THREADLIBS='-lpthread -lrt'
8457         THREADSPEC='-lpthread -lrt'
8458         ;;
8459      *)
8460         THREADLIBS=-lpthread
8461         THREADSPEC=-lpthread
8462         ;;
8463     esac
8464     THREADH=posix-threads.h
8465     # MIT pthreads doesn't seem to have the mutexattr functions.
8466     # But for now we don't check for it.  We just assume you aren't
8467     # using MIT pthreads.
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8471 _ACEOF
8472
8473
8474     # If we're using the Boehm GC, then we happen to know that it
8475     # defines _REENTRANT, so we don't bother.  Eww.
8476     if test "$GC" != boehm; then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define _REENTRANT 1
8480 _ACEOF
8481
8482     fi
8483
8484 cat >>confdefs.h <<\_ACEOF
8485 #define _POSIX_PTHREAD_SEMANTICS 1
8486 _ACEOF
8487
8488     ;;
8489
8490  win32)
8491     THREADH=win32-threads.h
8492     ;;
8493
8494  none)
8495     THREADH=no-threads.h
8496     ;;
8497 esac
8498           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 if test "$THREADS" = posix; then
8509   USING_POSIX_THREADS_TRUE=
8510   USING_POSIX_THREADS_FALSE='#'
8511 else
8512   USING_POSIX_THREADS_TRUE='#'
8513   USING_POSIX_THREADS_FALSE=
8514 fi
8515
8516
8517
8518 if test "$THREADS" = win32; then
8519   USING_WIN32_THREADS_TRUE=
8520   USING_WIN32_THREADS_FALSE='#'
8521 else
8522   USING_WIN32_THREADS_TRUE='#'
8523   USING_WIN32_THREADS_FALSE=
8524 fi
8525
8526
8527
8528 if test "$THREADS" = none; then
8529   USING_NO_THREADS_TRUE=
8530   USING_NO_THREADS_FALSE='#'
8531 else
8532   USING_NO_THREADS_TRUE='#'
8533   USING_NO_THREADS_FALSE=
8534 fi
8535
8536
8537 if test -d sysdep; then true; else mkdir sysdep; fi
8538           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8539
8540           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8541
8542
8543 HASH_SYNC_SPEC=
8544 # Hash synchronization is only useful with posix threads right now.
8545 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8546    HASH_SYNC_SPEC=-fhash-synchronization
8547
8548 cat >>confdefs.h <<\_ACEOF
8549 #define JV_HASH_SYNCHRONIZATION 1
8550 _ACEOF
8551
8552 fi
8553
8554
8555
8556
8557 if test "$GCC" = yes; then
8558   USING_GCC_TRUE=
8559   USING_GCC_FALSE='#'
8560 else
8561   USING_GCC_TRUE='#'
8562   USING_GCC_FALSE=
8563 fi
8564
8565
8566 # We're in the tree with gcc, and need to include some of its headers.
8567 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8568
8569 if test "x${with_newlib}" = "xyes"; then
8570    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8571    # may not work correctly, because the compiler may not be able to
8572    # link executables.
8573
8574    # We assume newlib.  This lets us hard-code the functions we know
8575    # we'll have.
8576
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_MEMMOVE 1
8579 _ACEOF
8580
8581
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_MEMCPY 1
8584 _ACEOF
8585
8586
8587 cat >>confdefs.h <<\_ACEOF
8588 #define HAVE_STRERROR 1
8589 _ACEOF
8590
8591
8592 cat >>confdefs.h <<\_ACEOF
8593 #define HAVE_TIME 1
8594 _ACEOF
8595
8596
8597 cat >>confdefs.h <<\_ACEOF
8598 #define HAVE_GMTIME_R 1
8599 _ACEOF
8600
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_LOCALTIME_R 1
8604 _ACEOF
8605
8606
8607 cat >>confdefs.h <<\_ACEOF
8608 #define HAVE_USLEEP_DECL 1
8609 _ACEOF
8610
8611    # This is only for POSIX threads.
8612
8613 cat >>confdefs.h <<\_ACEOF
8614 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8615 _ACEOF
8616
8617    # We also assume we are using gcc, which provides alloca.
8618    cat >>confdefs.h <<\_ACEOF
8619 #define HAVE_ALLOCA 1
8620 _ACEOF
8621
8622
8623    # Assume we do not have getuid and friends.
8624
8625 cat >>confdefs.h <<\_ACEOF
8626 #define NO_GETUID 1
8627 _ACEOF
8628
8629    PLATFORMNET=NoNet
8630 else
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8664                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8665                    access stat mkdir rename rmdir unlink realpath utime chmod \
8666                    nl_langinfo setlocale \
8667                    inet_pton uname inet_ntoa \
8668                    fork execvp pipe sigaction ftruncate
8669 do
8670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8671 echo "$as_me:$LINENO: checking for $ac_func" >&5
8672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8673 if eval "test \"\${$as_ac_var+set}\" = set"; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   if test x$gcc_no_link = xyes; then
8677   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8679    { (exit 1); exit 1; }; }
8680 fi
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8689 #define $ac_func innocuous_$ac_func
8690
8691 /* System header to define __stub macros and hopefully few prototypes,
8692     which can conflict with char $ac_func (); below.
8693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8694     <limits.h> exists even on freestanding compilers.  */
8695
8696 #ifdef __STDC__
8697 # include <limits.h>
8698 #else
8699 # include <assert.h>
8700 #endif
8701
8702 #undef $ac_func
8703
8704 /* Override any gcc2 internal prototype to avoid an error.  */
8705 #ifdef __cplusplus
8706 extern "C"
8707 {
8708 #endif
8709 /* We use char because int might match the return type of a gcc2
8710    builtin and then its argument prototype would still apply.  */
8711 char $ac_func ();
8712 /* The GNU C library defines this for functions which it implements
8713     to always fail with ENOSYS.  Some functions are actually named
8714     something starting with __ and the normal name is an alias.  */
8715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8716 choke me
8717 #else
8718 char (*f) () = $ac_func;
8719 #endif
8720 #ifdef __cplusplus
8721 }
8722 #endif
8723
8724 int
8725 main ()
8726 {
8727 return f != $ac_func;
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8734   (eval $ac_link) 2>conftest.er1
8735   ac_status=$?
8736   grep -v '^ *+' conftest.er1 >conftest.err
8737   rm -f conftest.er1
8738   cat conftest.err >&5
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } &&
8741          { ac_try='test -z "$ac_c_werror_flag"
8742                          || test ! -s conftest.err'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; } &&
8748          { ac_try='test -s conftest$ac_exeext'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; }; then
8754   eval "$as_ac_var=yes"
8755 else
8756   echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 eval "$as_ac_var=no"
8760 fi
8761 rm -f conftest.err conftest.$ac_objext \
8762       conftest$ac_exeext conftest.$ac_ext
8763 fi
8764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8766 if test `eval echo '${'$as_ac_var'}'` = yes; then
8767   cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8769 _ACEOF
8770
8771 fi
8772 done
8773
8774
8775
8776 for ac_func in inet_aton inet_addr
8777 do
8778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8779 echo "$as_me:$LINENO: checking for $ac_func" >&5
8780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8781 if eval "test \"\${$as_ac_var+set}\" = set"; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784   if test x$gcc_no_link = xyes; then
8785   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8787    { (exit 1); exit 1; }; }
8788 fi
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8797 #define $ac_func innocuous_$ac_func
8798
8799 /* System header to define __stub macros and hopefully few prototypes,
8800     which can conflict with char $ac_func (); below.
8801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802     <limits.h> exists even on freestanding compilers.  */
8803
8804 #ifdef __STDC__
8805 # include <limits.h>
8806 #else
8807 # include <assert.h>
8808 #endif
8809
8810 #undef $ac_func
8811
8812 /* Override any gcc2 internal prototype to avoid an error.  */
8813 #ifdef __cplusplus
8814 extern "C"
8815 {
8816 #endif
8817 /* We use char because int might match the return type of a gcc2
8818    builtin and then its argument prototype would still apply.  */
8819 char $ac_func ();
8820 /* The GNU C library defines this for functions which it implements
8821     to always fail with ENOSYS.  Some functions are actually named
8822     something starting with __ and the normal name is an alias.  */
8823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8824 choke me
8825 #else
8826 char (*f) () = $ac_func;
8827 #endif
8828 #ifdef __cplusplus
8829 }
8830 #endif
8831
8832 int
8833 main ()
8834 {
8835 return f != $ac_func;
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>conftest.er1
8843   ac_status=$?
8844   grep -v '^ *+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -z "$ac_c_werror_flag"
8850                          || test ! -s conftest.err'
8851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852   (eval $ac_try) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   eval "$as_ac_var=yes"
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 eval "$as_ac_var=no"
8868 fi
8869 rm -f conftest.err conftest.$ac_objext \
8870       conftest$ac_exeext conftest.$ac_ext
8871 fi
8872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8874 if test `eval echo '${'$as_ac_var'}'` = yes; then
8875   cat >>confdefs.h <<_ACEOF
8876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8877 _ACEOF
8878  break
8879 fi
8880 done
8881
8882    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8883 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8884 if test "${ac_cv_header_stdc+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893 #include <stdlib.h>
8894 #include <stdarg.h>
8895 #include <string.h>
8896 #include <float.h>
8897
8898 int
8899 main ()
8900 {
8901
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908   (eval $ac_compile) 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -z "$ac_c_werror_flag"
8916                          || test ! -s conftest.err'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; } &&
8922          { ac_try='test -s conftest.$ac_objext'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; }; then
8928   ac_cv_header_stdc=yes
8929 else
8930   echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_cv_header_stdc=no
8934 fi
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936
8937 if test $ac_cv_header_stdc = yes; then
8938   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8939   cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 #include <string.h>
8946
8947 _ACEOF
8948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8949   $EGREP "memchr" >/dev/null 2>&1; then
8950   :
8951 else
8952   ac_cv_header_stdc=no
8953 fi
8954 rm -f conftest*
8955
8956 fi
8957
8958 if test $ac_cv_header_stdc = yes; then
8959   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8960   cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h.  */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h.  */
8966 #include <stdlib.h>
8967
8968 _ACEOF
8969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8970   $EGREP "free" >/dev/null 2>&1; then
8971   :
8972 else
8973   ac_cv_header_stdc=no
8974 fi
8975 rm -f conftest*
8976
8977 fi
8978
8979 if test $ac_cv_header_stdc = yes; then
8980   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8981   if test "$cross_compiling" = yes; then
8982   :
8983 else
8984   cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h.  */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h.  */
8990 #include <ctype.h>
8991 #if ((' ' & 0x0FF) == 0x020)
8992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8994 #else
8995 # define ISLOWER(c) \
8996                    (('a' <= (c) && (c) <= 'i') \
8997                      || ('j' <= (c) && (c) <= 'r') \
8998                      || ('s' <= (c) && (c) <= 'z'))
8999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9000 #endif
9001
9002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9003 int
9004 main ()
9005 {
9006   int i;
9007   for (i = 0; i < 256; i++)
9008     if (XOR (islower (i), ISLOWER (i))
9009         || toupper (i) != TOUPPER (i))
9010       exit(2);
9011   exit (0);
9012 }
9013 _ACEOF
9014 rm -f conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016   (eval $ac_link) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   :
9026 else
9027   echo "$as_me: program exited with status $ac_status" >&5
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ( exit $ac_status )
9032 ac_cv_header_stdc=no
9033 fi
9034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9035 fi
9036 fi
9037 fi
9038 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9039 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9040 if test $ac_cv_header_stdc = yes; then
9041
9042 cat >>confdefs.h <<\_ACEOF
9043 #define STDC_HEADERS 1
9044 _ACEOF
9045
9046 fi
9047
9048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9059                   inttypes.h stdint.h unistd.h
9060 do
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073 $ac_includes_default
9074
9075 #include <$ac_header>
9076 _ACEOF
9077 rm -f conftest.$ac_objext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9079   (eval $ac_compile) 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -z "$ac_c_werror_flag"
9087                          || test ! -s conftest.err'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; } &&
9093          { ac_try='test -s conftest.$ac_objext'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   eval "$as_ac_Header=yes"
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 eval "$as_ac_Header=no"
9105 fi
9106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9107 fi
9108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9111   cat >>confdefs.h <<_ACEOF
9112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9113 _ACEOF
9114
9115 fi
9116
9117 done
9118
9119
9120
9121
9122
9123 for ac_header in execinfo.h unistd.h dlfcn.h
9124 do
9125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127   echo "$as_me:$LINENO: checking for $ac_header" >&5
9128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 fi
9132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9134 else
9135   # Is the header compilable?
9136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144 $ac_includes_default
9145 #include <$ac_header>
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149   (eval $ac_compile) 2>conftest.er1
9150   ac_status=$?
9151   grep -v '^ *+' conftest.er1 >conftest.err
9152   rm -f conftest.er1
9153   cat conftest.err >&5
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); } &&
9156          { ac_try='test -z "$ac_c_werror_flag"
9157                          || test ! -s conftest.err'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; } &&
9163          { ac_try='test -s conftest.$ac_objext'
9164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165   (eval $ac_try) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; }; then
9169   ac_header_compiler=yes
9170 else
9171   echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.$ac_ext >&5
9173
9174 ac_header_compiler=no
9175 fi
9176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9178 echo "${ECHO_T}$ac_header_compiler" >&6
9179
9180 # Is the header present?
9181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 #include <$ac_header>
9190 _ACEOF
9191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } >/dev/null; then
9199   if test -s conftest.err; then
9200     ac_cpp_err=$ac_c_preproc_warn_flag
9201     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9202   else
9203     ac_cpp_err=
9204   fi
9205 else
9206   ac_cpp_err=yes
9207 fi
9208 if test -z "$ac_cpp_err"; then
9209   ac_header_preproc=yes
9210 else
9211   echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9213
9214   ac_header_preproc=no
9215 fi
9216 rm -f conftest.err conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9218 echo "${ECHO_T}$ac_header_preproc" >&6
9219
9220 # So?  What about this header?
9221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9222   yes:no: )
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9227     ac_header_preproc=yes
9228     ;;
9229   no:yes:* )
9230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9242     (
9243       cat <<\_ASBOX
9244 ## ---------------------------------- ##
9245 ## Report this to the libjava lists.  ##
9246 ## ---------------------------------- ##
9247 _ASBOX
9248     ) |
9249       sed "s/^/$as_me: WARNING:     /" >&2
9250     ;;
9251 esac
9252 echo "$as_me:$LINENO: checking for $ac_header" >&5
9253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   eval "$as_ac_Header=\$ac_header_preproc"
9258 fi
9259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9261
9262 fi
9263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9264   cat >>confdefs.h <<_ACEOF
9265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9266 _ACEOF
9267
9268 fi
9269
9270 done
9271
9272    echo "$as_me:$LINENO: checking for backtrace" >&5
9273 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9274 if test "${ac_cv_func_backtrace+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   if test x$gcc_no_link = xyes; then
9278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9280    { (exit 1); exit 1; }; }
9281 fi
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9290 #define backtrace innocuous_backtrace
9291
9292 /* System header to define __stub macros and hopefully few prototypes,
9293     which can conflict with char backtrace (); below.
9294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9295     <limits.h> exists even on freestanding compilers.  */
9296
9297 #ifdef __STDC__
9298 # include <limits.h>
9299 #else
9300 # include <assert.h>
9301 #endif
9302
9303 #undef backtrace
9304
9305 /* Override any gcc2 internal prototype to avoid an error.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 {
9309 #endif
9310 /* We use char because int might match the return type of a gcc2
9311    builtin and then its argument prototype would still apply.  */
9312 char backtrace ();
9313 /* The GNU C library defines this for functions which it implements
9314     to always fail with ENOSYS.  Some functions are actually named
9315     something starting with __ and the normal name is an alias.  */
9316 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9317 choke me
9318 #else
9319 char (*f) () = backtrace;
9320 #endif
9321 #ifdef __cplusplus
9322 }
9323 #endif
9324
9325 int
9326 main ()
9327 {
9328 return f != backtrace;
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335   (eval $ac_link) 2>conftest.er1
9336   ac_status=$?
9337   grep -v '^ *+' conftest.er1 >conftest.err
9338   rm -f conftest.er1
9339   cat conftest.err >&5
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -z "$ac_c_werror_flag"
9343                          || test ! -s conftest.err'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; } &&
9349          { ac_try='test -s conftest$ac_exeext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   ac_cv_func_backtrace=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ac_cv_func_backtrace=no
9361 fi
9362 rm -f conftest.err conftest.$ac_objext \
9363       conftest$ac_exeext conftest.$ac_ext
9364 fi
9365 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9366 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9367 if test $ac_cv_func_backtrace = yes; then
9368
9369      case "$host" in
9370        ia64-*-linux*)
9371          # Has broken backtrace()
9372          ;;
9373        mips*-*-linux*)
9374          # Has broken backtrace(), but we supply our own.
9375          if test -d sysdep; then true; else mkdir -p sysdep; fi
9376          supply_backtrace=yes
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_BACKTRACE 1
9380 _ACEOF
9381
9382          ;;
9383        *)
9384
9385 cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_BACKTRACE 1
9387 _ACEOF
9388
9389          ;;
9390      esac
9391
9392 else
9393
9394      case "$host" in
9395        *mingw*)
9396          # Has backtrace() defined in libgcj itself
9397
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_BACKTRACE 1
9400 _ACEOF
9401
9402          ;;
9403      esac
9404
9405 fi
9406
9407
9408    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9409 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9410 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-ldl  $LIBS"
9415 if test x$gcc_no_link = xyes; then
9416   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9418    { (exit 1); exit 1; }; }
9419 fi
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426
9427 /* Override any gcc2 internal prototype to avoid an error.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 /* We use char because int might match the return type of a gcc2
9432    builtin and then its argument prototype would still apply.  */
9433 char dladdr ();
9434 int
9435 main ()
9436 {
9437 dladdr ();
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444   (eval $ac_link) 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } &&
9451          { ac_try='test -z "$ac_c_werror_flag"
9452                          || test ! -s conftest.err'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest$ac_exeext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_lib_dl_dladdr=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 ac_cv_lib_dl_dladdr=no
9470 fi
9471 rm -f conftest.err conftest.$ac_objext \
9472       conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9474 fi
9475 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9476 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9477 if test $ac_cv_lib_dl_dladdr = yes; then
9478
9479      if test "x${disable_dladdr}" = "xyes"; then
9480        #Broken dladdr().
9481        true
9482      else
9483
9484 cat >>confdefs.h <<\_ACEOF
9485 #define HAVE_DLADDR 1
9486 _ACEOF
9487
9488      fi
9489
9490 fi
9491
9492    if test x"$build" = x"$host"; then
9493      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9494 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9495 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   test "$cross_compiling" = yes &&
9499   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9500 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9501    { (exit 1); exit 1; }; }
9502 if test -r "/proc/self/exe"; then
9503   ac_cv_file__proc_self_exe=yes
9504 else
9505   ac_cv_file__proc_self_exe=no
9506 fi
9507 fi
9508 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9509 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9510 if test $ac_cv_file__proc_self_exe = yes; then
9511
9512 cat >>confdefs.h <<_ACEOF
9513 #define HAVE__PROC_SELF_EXE 1
9514 _ACEOF
9515
9516
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_PROC_SELF_EXE 1
9520 _ACEOF
9521
9522 fi
9523
9524    else
9525      case $host in
9526      *-linux*)
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_PROC_SELF_EXE 1
9530 _ACEOF
9531
9532        ;;
9533      esac
9534    fi
9535
9536
9537       if test "X$prefix" = "XNONE"; then
9538     acl_final_prefix="$ac_default_prefix"
9539   else
9540     acl_final_prefix="$prefix"
9541   fi
9542   if test "X$exec_prefix" = "XNONE"; then
9543     acl_final_exec_prefix='${prefix}'
9544   else
9545     acl_final_exec_prefix="$exec_prefix"
9546   fi
9547   acl_save_prefix="$prefix"
9548   prefix="$acl_final_prefix"
9549   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9550   prefix="$acl_save_prefix"
9551
9552
9553 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9554 if test "${with_gnu_ld+set}" = set; then
9555   withval="$with_gnu_ld"
9556   test "$withval" = no || with_gnu_ld=yes
9557 else
9558   with_gnu_ld=no
9559 fi;
9560 # Prepare PATH_SEPARATOR.
9561 # The user is always right.
9562 if test "${PATH_SEPARATOR+set}" != set; then
9563   echo "#! /bin/sh" >conf$$.sh
9564   echo  "exit 0"   >>conf$$.sh
9565   chmod +x conf$$.sh
9566   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9567     PATH_SEPARATOR=';'
9568   else
9569     PATH_SEPARATOR=:
9570   fi
9571   rm -f conf$$.sh
9572 fi
9573 ac_prog=ld
9574 if test "$GCC" = yes; then
9575   # Check if gcc -print-prog-name=ld gives a path.
9576   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9577 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9578   case $host in
9579   *-*-mingw*)
9580     # gcc leaves a trailing carriage return which upsets mingw
9581     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9582   *)
9583     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9584   esac
9585   case $ac_prog in
9586     # Accept absolute paths.
9587     [\\/]* | [A-Za-z]:[\\/]*)
9588       re_direlt='/[^/][^/]*/\.\./'
9589       # Canonicalize the path of ld
9590       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9591       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9592         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9593       done
9594       test -z "$LD" && LD="$ac_prog"
9595       ;;
9596   "")
9597     # If it fails, then pretend we aren't using GCC.
9598     ac_prog=ld
9599     ;;
9600   *)
9601     # If it is relative, then search for the first ld in PATH.
9602     with_gnu_ld=unknown
9603     ;;
9604   esac
9605 elif test "$with_gnu_ld" = yes; then
9606   echo "$as_me:$LINENO: checking for GNU ld" >&5
9607 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9608 else
9609   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9610 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9611 fi
9612 if test "${acl_cv_path_LD+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   if test -z "$LD"; then
9616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9617   for ac_dir in $PATH; do
9618     test -z "$ac_dir" && ac_dir=.
9619     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9620       acl_cv_path_LD="$ac_dir/$ac_prog"
9621       # Check to see if the program is GNU ld.  I'd rather use --version,
9622       # but apparently some GNU ld's only accept -v.
9623       # Break only if it was the GNU/non-GNU ld that we prefer.
9624       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9625         test "$with_gnu_ld" != no && break
9626       else
9627         test "$with_gnu_ld" != yes && break
9628       fi
9629     fi
9630   done
9631   IFS="$ac_save_ifs"
9632 else
9633   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9634 fi
9635 fi
9636
9637 LD="$acl_cv_path_LD"
9638 if test -n "$LD"; then
9639   echo "$as_me:$LINENO: result: $LD" >&5
9640 echo "${ECHO_T}$LD" >&6
9641 else
9642   echo "$as_me:$LINENO: result: no" >&5
9643 echo "${ECHO_T}no" >&6
9644 fi
9645 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9646 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9647    { (exit 1); exit 1; }; }
9648 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9649 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9650 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9654 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9655   acl_cv_prog_gnu_ld=yes
9656 else
9657   acl_cv_prog_gnu_ld=no
9658 fi
9659 fi
9660 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9661 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9662 with_gnu_ld=$acl_cv_prog_gnu_ld
9663
9664
9665
9666                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9667 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9668 if test "${acl_cv_rpath+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671
9672     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9673     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9674     . ./conftest.sh
9675     rm -f ./conftest.sh
9676     acl_cv_rpath=done
9677
9678 fi
9679 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9680 echo "${ECHO_T}$acl_cv_rpath" >&6
9681   wl="$acl_cv_wl"
9682   libext="$acl_cv_libext"
9683   shlibext="$acl_cv_shlibext"
9684   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9685   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9686   hardcode_direct="$acl_cv_hardcode_direct"
9687   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9688     # Check whether --enable-rpath or --disable-rpath was given.
9689 if test "${enable_rpath+set}" = set; then
9690   enableval="$enable_rpath"
9691   :
9692 else
9693   enable_rpath=yes
9694 fi;
9695
9696
9697
9698
9699
9700
9701
9702     use_additional=yes
9703
9704   acl_save_prefix="$prefix"
9705   prefix="$acl_final_prefix"
9706   acl_save_exec_prefix="$exec_prefix"
9707   exec_prefix="$acl_final_exec_prefix"
9708
9709     eval additional_includedir=\"$includedir\"
9710     eval additional_libdir=\"$libdir\"
9711
9712   exec_prefix="$acl_save_exec_prefix"
9713   prefix="$acl_save_prefix"
9714
9715
9716 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9717 if test "${with_libiconv_prefix+set}" = set; then
9718   withval="$with_libiconv_prefix"
9719
9720     if test "X$withval" = "Xno"; then
9721       use_additional=no
9722     else
9723       if test "X$withval" = "X"; then
9724
9725   acl_save_prefix="$prefix"
9726   prefix="$acl_final_prefix"
9727   acl_save_exec_prefix="$exec_prefix"
9728   exec_prefix="$acl_final_exec_prefix"
9729
9730           eval additional_includedir=\"$includedir\"
9731           eval additional_libdir=\"$libdir\"
9732
9733   exec_prefix="$acl_save_exec_prefix"
9734   prefix="$acl_save_prefix"
9735
9736       else
9737         additional_includedir="$withval/include"
9738         additional_libdir="$withval/lib"
9739       fi
9740     fi
9741
9742 fi;
9743       LIBICONV=
9744   LTLIBICONV=
9745   INCICONV=
9746   rpathdirs=
9747   ltrpathdirs=
9748   names_already_handled=
9749   names_next_round='iconv '
9750   while test -n "$names_next_round"; do
9751     names_this_round="$names_next_round"
9752     names_next_round=
9753     for name in $names_this_round; do
9754       already_handled=
9755       for n in $names_already_handled; do
9756         if test "$n" = "$name"; then
9757           already_handled=yes
9758           break
9759         fi
9760       done
9761       if test -z "$already_handled"; then
9762         names_already_handled="$names_already_handled $name"
9763                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9764         eval value=\"\$HAVE_LIB$uppername\"
9765         if test -n "$value"; then
9766           if test "$value" = yes; then
9767             eval value=\"\$LIB$uppername\"
9768             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9769             eval value=\"\$LTLIB$uppername\"
9770             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9771           else
9772                                     :
9773           fi
9774         else
9775                               found_dir=
9776           found_la=
9777           found_so=
9778           found_a=
9779           if test $use_additional = yes; then
9780             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9781               found_dir="$additional_libdir"
9782               found_so="$additional_libdir/lib$name.$shlibext"
9783               if test -f "$additional_libdir/lib$name.la"; then
9784                 found_la="$additional_libdir/lib$name.la"
9785               fi
9786             else
9787               if test -f "$additional_libdir/lib$name.$libext"; then
9788                 found_dir="$additional_libdir"
9789                 found_a="$additional_libdir/lib$name.$libext"
9790                 if test -f "$additional_libdir/lib$name.la"; then
9791                   found_la="$additional_libdir/lib$name.la"
9792                 fi
9793               fi
9794             fi
9795           fi
9796           if test "X$found_dir" = "X"; then
9797             for x in $LDFLAGS $LTLIBICONV; do
9798
9799   acl_save_prefix="$prefix"
9800   prefix="$acl_final_prefix"
9801   acl_save_exec_prefix="$exec_prefix"
9802   exec_prefix="$acl_final_exec_prefix"
9803   eval x=\"$x\"
9804   exec_prefix="$acl_save_exec_prefix"
9805   prefix="$acl_save_prefix"
9806
9807               case "$x" in
9808                 -L*)
9809                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9810                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9811                     found_dir="$dir"
9812                     found_so="$dir/lib$name.$shlibext"
9813                     if test -f "$dir/lib$name.la"; then
9814                       found_la="$dir/lib$name.la"
9815                     fi
9816                   else
9817                     if test -f "$dir/lib$name.$libext"; then
9818                       found_dir="$dir"
9819                       found_a="$dir/lib$name.$libext"
9820                       if test -f "$dir/lib$name.la"; then
9821                         found_la="$dir/lib$name.la"
9822                       fi
9823                     fi
9824                   fi
9825                   ;;
9826               esac
9827               if test "X$found_dir" != "X"; then
9828                 break
9829               fi
9830             done
9831           fi
9832           if test "X$found_dir" != "X"; then
9833                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9834             if test "X$found_so" != "X"; then
9835                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9836                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9837               else
9838                                                                                 haveit=
9839                 for x in $ltrpathdirs; do
9840                   if test "X$x" = "X$found_dir"; then
9841                     haveit=yes
9842                     break
9843                   fi
9844                 done
9845                 if test -z "$haveit"; then
9846                   ltrpathdirs="$ltrpathdirs $found_dir"
9847                 fi
9848                                 if test "$hardcode_direct" = yes; then
9849                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9850                 else
9851                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9852                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9853                                                             haveit=
9854                     for x in $rpathdirs; do
9855                       if test "X$x" = "X$found_dir"; then
9856                         haveit=yes
9857                         break
9858                       fi
9859                     done
9860                     if test -z "$haveit"; then
9861                       rpathdirs="$rpathdirs $found_dir"
9862                     fi
9863                   else
9864                                                                                 haveit=
9865                     for x in $LDFLAGS $LIBICONV; do
9866
9867   acl_save_prefix="$prefix"
9868   prefix="$acl_final_prefix"
9869   acl_save_exec_prefix="$exec_prefix"
9870   exec_prefix="$acl_final_exec_prefix"
9871   eval x=\"$x\"
9872   exec_prefix="$acl_save_exec_prefix"
9873   prefix="$acl_save_prefix"
9874
9875                       if test "X$x" = "X-L$found_dir"; then
9876                         haveit=yes
9877                         break
9878                       fi
9879                     done
9880                     if test -z "$haveit"; then
9881                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9882                     fi
9883                     if test "$hardcode_minus_L" != no; then
9884                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9885                     else
9886                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9887                     fi
9888                   fi
9889                 fi
9890               fi
9891             else
9892               if test "X$found_a" != "X"; then
9893                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9894               else
9895                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9896               fi
9897             fi
9898                         additional_includedir=
9899             case "$found_dir" in
9900               */lib | */lib/)
9901                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9902                 additional_includedir="$basedir/include"
9903                 ;;
9904             esac
9905             if test "X$additional_includedir" != "X"; then
9906                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9907                 haveit=
9908                 if test "X$additional_includedir" = "X/usr/local/include"; then
9909                   if test -n "$GCC"; then
9910                     case $host_os in
9911                       linux*) haveit=yes;;
9912                     esac
9913                   fi
9914                 fi
9915                 if test -z "$haveit"; then
9916                   for x in $CPPFLAGS $INCICONV; do
9917
9918   acl_save_prefix="$prefix"
9919   prefix="$acl_final_prefix"
9920   acl_save_exec_prefix="$exec_prefix"
9921   exec_prefix="$acl_final_exec_prefix"
9922   eval x=\"$x\"
9923   exec_prefix="$acl_save_exec_prefix"
9924   prefix="$acl_save_prefix"
9925
9926                     if test "X$x" = "X-I$additional_includedir"; then
9927                       haveit=yes
9928                       break
9929                     fi
9930                   done
9931                   if test -z "$haveit"; then
9932                     if test -d "$additional_includedir"; then
9933                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9934                     fi
9935                   fi
9936                 fi
9937               fi
9938             fi
9939                         if test -n "$found_la"; then
9940                                                         save_libdir="$libdir"
9941               case "$found_la" in
9942                 */* | *\\*) . "$found_la" ;;
9943                 *) . "./$found_la" ;;
9944               esac
9945               libdir="$save_libdir"
9946                             for dep in $dependency_libs; do
9947                 case "$dep" in
9948                   -L*)
9949                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9950                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9951                       haveit=
9952                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9953                         if test -n "$GCC"; then
9954                           case $host_os in
9955                             linux*) haveit=yes;;
9956                           esac
9957                         fi
9958                       fi
9959                       if test -z "$haveit"; then
9960                         haveit=
9961                         for x in $LDFLAGS $LIBICONV; do
9962
9963   acl_save_prefix="$prefix"
9964   prefix="$acl_final_prefix"
9965   acl_save_exec_prefix="$exec_prefix"
9966   exec_prefix="$acl_final_exec_prefix"
9967   eval x=\"$x\"
9968   exec_prefix="$acl_save_exec_prefix"
9969   prefix="$acl_save_prefix"
9970
9971                           if test "X$x" = "X-L$additional_libdir"; then
9972                             haveit=yes
9973                             break
9974                           fi
9975                         done
9976                         if test -z "$haveit"; then
9977                           if test -d "$additional_libdir"; then
9978                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9979                           fi
9980                         fi
9981                         haveit=
9982                         for x in $LDFLAGS $LTLIBICONV; do
9983
9984   acl_save_prefix="$prefix"
9985   prefix="$acl_final_prefix"
9986   acl_save_exec_prefix="$exec_prefix"
9987   exec_prefix="$acl_final_exec_prefix"
9988   eval x=\"$x\"
9989   exec_prefix="$acl_save_exec_prefix"
9990   prefix="$acl_save_prefix"
9991
9992                           if test "X$x" = "X-L$additional_libdir"; then
9993                             haveit=yes
9994                             break
9995                           fi
9996                         done
9997                         if test -z "$haveit"; then
9998                           if test -d "$additional_libdir"; then
9999                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10000                           fi
10001                         fi
10002                       fi
10003                     fi
10004                     ;;
10005                   -R*)
10006                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10007                     if test "$enable_rpath" != no; then
10008                                                                   haveit=
10009                       for x in $rpathdirs; do
10010                         if test "X$x" = "X$dir"; then
10011                           haveit=yes
10012                           break
10013                         fi
10014                       done
10015                       if test -z "$haveit"; then
10016                         rpathdirs="$rpathdirs $dir"
10017                       fi
10018                                                                   haveit=
10019                       for x in $ltrpathdirs; do
10020                         if test "X$x" = "X$dir"; then
10021                           haveit=yes
10022                           break
10023                         fi
10024                       done
10025                       if test -z "$haveit"; then
10026                         ltrpathdirs="$ltrpathdirs $dir"
10027                       fi
10028                     fi
10029                     ;;
10030                   -l*)
10031                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10032                     ;;
10033                   *.la)
10034                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10035                     ;;
10036                   *)
10037                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10038                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10039                     ;;
10040                 esac
10041               done
10042             fi
10043           else
10044                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10045             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10046           fi
10047         fi
10048       fi
10049     done
10050   done
10051   if test "X$rpathdirs" != "X"; then
10052     if test -n "$hardcode_libdir_separator"; then
10053                         alldirs=
10054       for found_dir in $rpathdirs; do
10055         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10056       done
10057             acl_save_libdir="$libdir"
10058       libdir="$alldirs"
10059       eval flag=\"$hardcode_libdir_flag_spec\"
10060       libdir="$acl_save_libdir"
10061       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10062     else
10063             for found_dir in $rpathdirs; do
10064         acl_save_libdir="$libdir"
10065         libdir="$found_dir"
10066         eval flag=\"$hardcode_libdir_flag_spec\"
10067         libdir="$acl_save_libdir"
10068         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10069       done
10070     fi
10071   fi
10072   if test "X$ltrpathdirs" != "X"; then
10073             for found_dir in $ltrpathdirs; do
10074       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10075     done
10076   fi
10077
10078
10079
10080
10081
10082
10083
10084           am_save_CPPFLAGS="$CPPFLAGS"
10085
10086   for element in $INCICONV; do
10087     haveit=
10088     for x in $CPPFLAGS; do
10089
10090   acl_save_prefix="$prefix"
10091   prefix="$acl_final_prefix"
10092   acl_save_exec_prefix="$exec_prefix"
10093   exec_prefix="$acl_final_exec_prefix"
10094   eval x=\"$x\"
10095   exec_prefix="$acl_save_exec_prefix"
10096   prefix="$acl_save_prefix"
10097
10098       if test "X$x" = "X$element"; then
10099         haveit=yes
10100         break
10101       fi
10102     done
10103     if test -z "$haveit"; then
10104       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10105     fi
10106   done
10107
10108
10109   echo "$as_me:$LINENO: checking for iconv" >&5
10110 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10111 if test "${am_cv_func_iconv+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114
10115     am_cv_func_iconv="no, consider installing GNU libiconv"
10116     am_cv_lib_iconv=no
10117     if test x$gcc_no_link = xyes; then
10118   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10120    { (exit 1); exit 1; }; }
10121 fi
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 #include <stdlib.h>
10129 #include <iconv.h>
10130 int
10131 main ()
10132 {
10133 iconv_t cd = iconv_open("","");
10134        iconv(cd,NULL,NULL,NULL,NULL);
10135        iconv_close(cd);
10136   ;
10137   return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142   (eval $ac_link) 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -z "$ac_c_werror_flag"
10150                          || test ! -s conftest.err'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; } &&
10156          { ac_try='test -s conftest$ac_exeext'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   am_cv_func_iconv=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 fi
10168 rm -f conftest.err conftest.$ac_objext \
10169       conftest$ac_exeext conftest.$ac_ext
10170     if test "$am_cv_func_iconv" != yes; then
10171       am_save_LIBS="$LIBS"
10172       LIBS="$LIBS $LIBICONV"
10173       if test x$gcc_no_link = xyes; then
10174   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10176    { (exit 1); exit 1; }; }
10177 fi
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <stdlib.h>
10185 #include <iconv.h>
10186 int
10187 main ()
10188 {
10189 iconv_t cd = iconv_open("","");
10190          iconv(cd,NULL,NULL,NULL,NULL);
10191          iconv_close(cd);
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198   (eval $ac_link) 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -z "$ac_c_werror_flag"
10206                          || test ! -s conftest.err'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; } &&
10212          { ac_try='test -s conftest$ac_exeext'
10213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214   (eval $ac_try) 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); }; }; then
10218   am_cv_lib_iconv=yes
10219         am_cv_func_iconv=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 fi
10225 rm -f conftest.err conftest.$ac_objext \
10226       conftest$ac_exeext conftest.$ac_ext
10227       LIBS="$am_save_LIBS"
10228     fi
10229
10230 fi
10231 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10232 echo "${ECHO_T}$am_cv_func_iconv" >&6
10233   if test "$am_cv_func_iconv" = yes; then
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define HAVE_ICONV 1
10237 _ACEOF
10238
10239   fi
10240   if test "$am_cv_lib_iconv" = yes; then
10241     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10242 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10243     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10244 echo "${ECHO_T}$LIBICONV" >&6
10245   else
10246             CPPFLAGS="$am_save_CPPFLAGS"
10247     LIBICONV=
10248     LTLIBICONV=
10249   fi
10250
10251
10252
10253   if test "$am_cv_func_iconv" = yes; then
10254     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10255 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10256     if test "${am_cv_proto_iconv+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259
10260       cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266
10267 #include <stdlib.h>
10268 #include <iconv.h>
10269 extern
10270 #ifdef __cplusplus
10271 "C"
10272 #endif
10273 #if defined(__STDC__) || defined(__cplusplus)
10274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10275 #else
10276 size_t iconv();
10277 #endif
10278
10279 int
10280 main ()
10281 {
10282
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289   (eval $ac_compile) 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } &&
10296          { ac_try='test -z "$ac_c_werror_flag"
10297                          || test ! -s conftest.err'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest.$ac_objext'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; }; then
10309   am_cv_proto_iconv_arg1=""
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 am_cv_proto_iconv_arg1="const"
10315 fi
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317       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);"
10318 fi
10319
10320     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10321     echo "$as_me:$LINENO: result: ${ac_t:-
10322          }$am_cv_proto_iconv" >&5
10323 echo "${ECHO_T}${ac_t:-
10324          }$am_cv_proto_iconv" >&6
10325
10326 cat >>confdefs.h <<_ACEOF
10327 #define ICONV_CONST $am_cv_proto_iconv_arg1
10328 _ACEOF
10329
10330   fi
10331
10332
10333   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10334 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10335 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   if test x$gcc_no_link = xyes; then
10339   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10341    { (exit 1); exit 1; }; }
10342 fi
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h.  */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h.  */
10349 #include <locale.h>
10350 int
10351 main ()
10352 {
10353 return LC_MESSAGES
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10360   (eval $ac_link) 2>conftest.er1
10361   ac_status=$?
10362   grep -v '^ *+' conftest.er1 >conftest.err
10363   rm -f conftest.er1
10364   cat conftest.err >&5
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); } &&
10367          { ac_try='test -z "$ac_c_werror_flag"
10368                          || test ! -s conftest.err'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest$ac_exeext'
10375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376   (eval $ac_try) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); }; }; then
10380   am_cv_val_LC_MESSAGES=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385 am_cv_val_LC_MESSAGES=no
10386 fi
10387 rm -f conftest.err conftest.$ac_objext \
10388       conftest$ac_exeext conftest.$ac_ext
10389 fi
10390 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10391 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10392   if test $am_cv_val_LC_MESSAGES = yes; then
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_LC_MESSAGES 1
10396 _ACEOF
10397
10398   fi
10399
10400    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10402 if test "${ac_cv_struct_tm+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h.  */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h.  */
10411 #include <sys/types.h>
10412 #include <time.h>
10413
10414 int
10415 main ()
10416 {
10417 struct tm *tp; tp->tm_sec;
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424   (eval $ac_compile) 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag"
10432                          || test ! -s conftest.err'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   ac_cv_struct_tm=time.h
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_cv_struct_tm=sys/time.h
10450 fi
10451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452 fi
10453 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10454 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10455 if test $ac_cv_struct_tm = sys/time.h; then
10456
10457 cat >>confdefs.h <<\_ACEOF
10458 #define TM_IN_SYS_TIME 1
10459 _ACEOF
10460
10461 fi
10462
10463 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10464 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10465 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474 #include <sys/types.h>
10475 #include <$ac_cv_struct_tm>
10476
10477
10478 int
10479 main ()
10480 {
10481 static struct tm ac_aggr;
10482 if (ac_aggr.tm_zone)
10483 return 0;
10484   ;
10485   return 0;
10486 }
10487 _ACEOF
10488 rm -f conftest.$ac_objext
10489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490   (eval $ac_compile) 2>conftest.er1
10491   ac_status=$?
10492   grep -v '^ *+' conftest.er1 >conftest.err
10493   rm -f conftest.er1
10494   cat conftest.err >&5
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); } &&
10497          { ac_try='test -z "$ac_c_werror_flag"
10498                          || test ! -s conftest.err'
10499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500   (eval $ac_try) 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; } &&
10504          { ac_try='test -s conftest.$ac_objext'
10505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506   (eval $ac_try) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); }; }; then
10510   ac_cv_member_struct_tm_tm_zone=yes
10511 else
10512   echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515 cat >conftest.$ac_ext <<_ACEOF
10516 /* confdefs.h.  */
10517 _ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h.  */
10521 #include <sys/types.h>
10522 #include <$ac_cv_struct_tm>
10523
10524
10525 int
10526 main ()
10527 {
10528 static struct tm ac_aggr;
10529 if (sizeof ac_aggr.tm_zone)
10530 return 0;
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10537   (eval $ac_compile) 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } &&
10544          { ac_try='test -z "$ac_c_werror_flag"
10545                          || test ! -s conftest.err'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; } &&
10551          { ac_try='test -s conftest.$ac_objext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   ac_cv_member_struct_tm_tm_zone=yes
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_cv_member_struct_tm_tm_zone=no
10563 fi
10564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 fi
10568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10570 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10571
10572 cat >>confdefs.h <<_ACEOF
10573 #define HAVE_STRUCT_TM_TM_ZONE 1
10574 _ACEOF
10575
10576
10577 fi
10578
10579 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10580
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_TM_ZONE 1
10583 _ACEOF
10584
10585 else
10586   echo "$as_me:$LINENO: checking for tzname" >&5
10587 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10588 if test "${ac_cv_var_tzname+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   if test x$gcc_no_link = xyes; then
10592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10594    { (exit 1); exit 1; }; }
10595 fi
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 #include <time.h>
10603 #ifndef tzname /* For SGI.  */
10604 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10605 #endif
10606
10607 int
10608 main ()
10609 {
10610 atoi(*tzname);
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617   (eval $ac_link) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag"
10625                          || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest$ac_exeext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   ac_cv_var_tzname=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_cv_var_tzname=no
10643 fi
10644 rm -f conftest.err conftest.$ac_objext \
10645       conftest$ac_exeext conftest.$ac_ext
10646 fi
10647 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10648 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10649   if test $ac_cv_var_tzname = yes; then
10650
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_TZNAME 1
10653 _ACEOF
10654
10655   fi
10656 fi
10657
10658
10659
10660
10661 for ac_func in gethostbyname_r
10662 do
10663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10664 echo "$as_me:$LINENO: checking for $ac_func" >&5
10665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10666 if eval "test \"\${$as_ac_var+set}\" = set"; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   if test x$gcc_no_link = xyes; then
10670   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10672    { (exit 1); exit 1; }; }
10673 fi
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10682 #define $ac_func innocuous_$ac_func
10683
10684 /* System header to define __stub macros and hopefully few prototypes,
10685     which can conflict with char $ac_func (); below.
10686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10687     <limits.h> exists even on freestanding compilers.  */
10688
10689 #ifdef __STDC__
10690 # include <limits.h>
10691 #else
10692 # include <assert.h>
10693 #endif
10694
10695 #undef $ac_func
10696
10697 /* Override any gcc2 internal prototype to avoid an error.  */
10698 #ifdef __cplusplus
10699 extern "C"
10700 {
10701 #endif
10702 /* We use char because int might match the return type of a gcc2
10703    builtin and then its argument prototype would still apply.  */
10704 char $ac_func ();
10705 /* The GNU C library defines this for functions which it implements
10706     to always fail with ENOSYS.  Some functions are actually named
10707     something starting with __ and the normal name is an alias.  */
10708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10709 choke me
10710 #else
10711 char (*f) () = $ac_func;
10712 #endif
10713 #ifdef __cplusplus
10714 }
10715 #endif
10716
10717 int
10718 main ()
10719 {
10720 return f != $ac_func;
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727   (eval $ac_link) 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag"
10735                          || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest$ac_exeext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   eval "$as_ac_var=yes"
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 eval "$as_ac_var=no"
10753 fi
10754 rm -f conftest.err conftest.$ac_objext \
10755       conftest$ac_exeext conftest.$ac_ext
10756 fi
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760   cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_GETHOSTBYNAME_R 1
10767 _ACEOF
10768
10769      # There are two different kinds of gethostbyname_r.
10770      # We look for the one that returns `int'.
10771      # Hopefully this check is robust enough.
10772      cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 #include <netdb.h>
10779
10780 _ACEOF
10781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10782   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10783
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define GETHOSTBYNAME_R_RETURNS_INT 1
10787 _ACEOF
10788
10789 fi
10790 rm -f conftest*
10791
10792
10793      case " $GCINCS " in
10794      *" -D_REENTRANT "*) ;;
10795      *)
10796                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10797 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10798 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801    ac_ext=cc
10802 ac_cpp='$CXXCPP $CPPFLAGS'
10803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10806
10807           cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <netdb.h>
10814 int
10815 main ()
10816 {
10817 gethostbyname_r("", 0, 0);
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824   (eval $ac_compile) 2>conftest.er1
10825   ac_status=$?
10826   grep -v '^ *+' conftest.er1 >conftest.err
10827   rm -f conftest.er1
10828   cat conftest.err >&5
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); } &&
10831          { ac_try='test -z "$ac_cxx_werror_flag"
10832                          || test ! -s conftest.err'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest.$ac_objext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   libjava_cv_gethostbyname_r_needs_reentrant=no
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849                 CPPFLAGS_SAVE="$CPPFLAGS"
10850                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10851                 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 #include <netdb.h>
10858 int
10859 main ()
10860 {
10861 gethostbyname_r("", 0, 0);
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868   (eval $ac_compile) 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } &&
10875          { ac_try='test -z "$ac_cxx_werror_flag"
10876                          || test ! -s conftest.err'
10877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878   (eval $ac_try) 2>&5
10879   ac_status=$?
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); }; } &&
10882          { ac_try='test -s conftest.$ac_objext'
10883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884   (eval $ac_try) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   libjava_cv_gethostbyname_r_needs_reentrant=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 libjava_cv_gethostbyname_r_needs_reentrant=fail
10894 fi
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896                 CPPFLAGS="$CPPFLAGS_SAVE"
10897
10898 fi
10899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10900           ac_ext=c
10901 ac_cpp='$CPP $CPPFLAGS'
10902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905
10906
10907 fi
10908 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10909 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10910         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define _REENTRANT 1
10914 _ACEOF
10915
10916         fi
10917      ;;
10918      esac
10919
10920      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10921 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10922 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10923   echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925         cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h.  */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h.  */
10931
10932 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10933 # define _REENTRANT 1
10934 #endif
10935 #include <netdb.h>
10936 int
10937 main ()
10938 {
10939 struct hostent_data data;
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946   (eval $ac_compile) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest.$ac_objext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   libjava_cv_struct_hostent_data=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 libjava_cv_struct_hostent_data=no
10972 fi
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10976 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10977      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE_STRUCT_HOSTENT_DATA 1
10981 _ACEOF
10982
10983      fi
10984
10985 fi
10986 done
10987
10988
10989    # FIXME: libjava source code expects to find a prototype for
10990    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10991    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10992    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10993    # linkage check is enough, yet C++ code requires proper prototypes.)
10994    cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 #include <netdb.h>
11001
11002 _ACEOF
11003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11005
11006
11007 for ac_func in gethostbyaddr_r
11008 do
11009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11010 echo "$as_me:$LINENO: checking for $ac_func" >&5
11011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11012 if eval "test \"\${$as_ac_var+set}\" = set"; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015   if test x$gcc_no_link = xyes; then
11016   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11018    { (exit 1); exit 1; }; }
11019 fi
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h.  */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h.  */
11026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11028 #define $ac_func innocuous_$ac_func
11029
11030 /* System header to define __stub macros and hopefully few prototypes,
11031     which can conflict with char $ac_func (); below.
11032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033     <limits.h> exists even on freestanding compilers.  */
11034
11035 #ifdef __STDC__
11036 # include <limits.h>
11037 #else
11038 # include <assert.h>
11039 #endif
11040
11041 #undef $ac_func
11042
11043 /* Override any gcc2 internal prototype to avoid an error.  */
11044 #ifdef __cplusplus
11045 extern "C"
11046 {
11047 #endif
11048 /* We use char because int might match the return type of a gcc2
11049    builtin and then its argument prototype would still apply.  */
11050 char $ac_func ();
11051 /* The GNU C library defines this for functions which it implements
11052     to always fail with ENOSYS.  Some functions are actually named
11053     something starting with __ and the normal name is an alias.  */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11055 choke me
11056 #else
11057 char (*f) () = $ac_func;
11058 #endif
11059 #ifdef __cplusplus
11060 }
11061 #endif
11062
11063 int
11064 main ()
11065 {
11066 return f != $ac_func;
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073   (eval $ac_link) 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -z "$ac_c_werror_flag"
11081                          || test ! -s conftest.err'
11082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083   (eval $ac_try) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; } &&
11087          { ac_try='test -s conftest$ac_exeext'
11088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089   (eval $ac_try) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; }; then
11093   eval "$as_ac_var=yes"
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 eval "$as_ac_var=no"
11099 fi
11100 rm -f conftest.err conftest.$ac_objext \
11101       conftest$ac_exeext conftest.$ac_ext
11102 fi
11103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11105 if test `eval echo '${'$as_ac_var'}'` = yes; then
11106   cat >>confdefs.h <<_ACEOF
11107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11108 _ACEOF
11109
11110
11111 cat >>confdefs.h <<\_ACEOF
11112 #define HAVE_GETHOSTBYADDR_R 1
11113 _ACEOF
11114
11115      # There are two different kinds of gethostbyaddr_r.
11116      # We look for the one that returns `int'.
11117      # Hopefully this check is robust enough.
11118      cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <netdb.h>
11125
11126 _ACEOF
11127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11128   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11129
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define GETHOSTBYADDR_R_RETURNS_INT 1
11133 _ACEOF
11134
11135 fi
11136 rm -f conftest*
11137
11138 fi
11139 done
11140
11141 fi
11142 rm -f conftest*
11143
11144
11145
11146 for ac_func in gethostname
11147 do
11148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 echo "$as_me:$LINENO: checking for $ac_func" >&5
11150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11151 if eval "test \"\${$as_ac_var+set}\" = set"; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   if test x$gcc_no_link = xyes; then
11155   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11157    { (exit 1); exit 1; }; }
11158 fi
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11167 #define $ac_func innocuous_$ac_func
11168
11169 /* System header to define __stub macros and hopefully few prototypes,
11170     which can conflict with char $ac_func (); below.
11171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11172     <limits.h> exists even on freestanding compilers.  */
11173
11174 #ifdef __STDC__
11175 # include <limits.h>
11176 #else
11177 # include <assert.h>
11178 #endif
11179
11180 #undef $ac_func
11181
11182 /* Override any gcc2 internal prototype to avoid an error.  */
11183 #ifdef __cplusplus
11184 extern "C"
11185 {
11186 #endif
11187 /* We use char because int might match the return type of a gcc2
11188    builtin and then its argument prototype would still apply.  */
11189 char $ac_func ();
11190 /* The GNU C library defines this for functions which it implements
11191     to always fail with ENOSYS.  Some functions are actually named
11192     something starting with __ and the normal name is an alias.  */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 choke me
11195 #else
11196 char (*f) () = $ac_func;
11197 #endif
11198 #ifdef __cplusplus
11199 }
11200 #endif
11201
11202 int
11203 main ()
11204 {
11205 return f != $ac_func;
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212   (eval $ac_link) 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } &&
11219          { ac_try='test -z "$ac_c_werror_flag"
11220                          || test ! -s conftest.err'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; } &&
11226          { ac_try='test -s conftest$ac_exeext'
11227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228   (eval $ac_try) 2>&5
11229   ac_status=$?
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); }; }; then
11232   eval "$as_ac_var=yes"
11233 else
11234   echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 eval "$as_ac_var=no"
11238 fi
11239 rm -f conftest.err conftest.$ac_objext \
11240       conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11244 if test `eval echo '${'$as_ac_var'}'` = yes; then
11245   cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 _ACEOF
11248
11249
11250 cat >>confdefs.h <<\_ACEOF
11251 #define HAVE_GETHOSTNAME 1
11252 _ACEOF
11253
11254      cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 #include <unistd.h>
11261
11262 _ACEOF
11263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264   $EGREP "gethostname" >/dev/null 2>&1; then
11265
11266
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_GETHOSTNAME_DECL 1
11269 _ACEOF
11270
11271 fi
11272 rm -f conftest*
11273
11274 fi
11275 done
11276
11277
11278
11279 for ac_func in usleep
11280 do
11281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 echo "$as_me:$LINENO: checking for $ac_func" >&5
11283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11284 if eval "test \"\${$as_ac_var+set}\" = set"; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287   if test x$gcc_no_link = xyes; then
11288   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11290    { (exit 1); exit 1; }; }
11291 fi
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h.  */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h.  */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11300 #define $ac_func innocuous_$ac_func
11301
11302 /* System header to define __stub macros and hopefully few prototypes,
11303     which can conflict with char $ac_func (); below.
11304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305     <limits.h> exists even on freestanding compilers.  */
11306
11307 #ifdef __STDC__
11308 # include <limits.h>
11309 #else
11310 # include <assert.h>
11311 #endif
11312
11313 #undef $ac_func
11314
11315 /* Override any gcc2 internal prototype to avoid an error.  */
11316 #ifdef __cplusplus
11317 extern "C"
11318 {
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321    builtin and then its argument prototype would still apply.  */
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324     to always fail with ENOSYS.  Some functions are actually named
11325     something starting with __ and the normal name is an alias.  */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 char (*f) () = $ac_func;
11330 #endif
11331 #ifdef __cplusplus
11332 }
11333 #endif
11334
11335 int
11336 main ()
11337 {
11338 return f != $ac_func;
11339   ;
11340   return 0;
11341 }
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345   (eval $ac_link) 2>conftest.er1
11346   ac_status=$?
11347   grep -v '^ *+' conftest.er1 >conftest.err
11348   rm -f conftest.er1
11349   cat conftest.err >&5
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } &&
11352          { ac_try='test -z "$ac_c_werror_flag"
11353                          || test ! -s conftest.err'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; } &&
11359          { ac_try='test -s conftest$ac_exeext'
11360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361   (eval $ac_try) 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; }; then
11365   eval "$as_ac_var=yes"
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 eval "$as_ac_var=no"
11371 fi
11372 rm -f conftest.err conftest.$ac_objext \
11373       conftest$ac_exeext conftest.$ac_ext
11374 fi
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378   cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11381
11382      cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h.  */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h.  */
11388 #include <unistd.h>
11389
11390 _ACEOF
11391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11392   $EGREP "usleep" >/dev/null 2>&1; then
11393
11394
11395 cat >>confdefs.h <<\_ACEOF
11396 #define HAVE_USLEEP_DECL 1
11397 _ACEOF
11398
11399 fi
11400 rm -f conftest*
11401
11402 fi
11403 done
11404
11405
11406    # Look for these functions in the thread library, but only bother
11407    # if using POSIX threads.
11408    if test "$THREADS" = posix; then
11409       save_LIBS="$LIBS"
11410       LIBS="$LIBS $THREADLIBS"
11411       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11412       # E.g., Solaris.
11413
11414
11415 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11416 do
11417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11418 echo "$as_me:$LINENO: checking for $ac_func" >&5
11419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11420 if eval "test \"\${$as_ac_var+set}\" = set"; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   if test x$gcc_no_link = xyes; then
11424   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11425 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11426    { (exit 1); exit 1; }; }
11427 fi
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11436 #define $ac_func innocuous_$ac_func
11437
11438 /* System header to define __stub macros and hopefully few prototypes,
11439     which can conflict with char $ac_func (); below.
11440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441     <limits.h> exists even on freestanding compilers.  */
11442
11443 #ifdef __STDC__
11444 # include <limits.h>
11445 #else
11446 # include <assert.h>
11447 #endif
11448
11449 #undef $ac_func
11450
11451 /* Override any gcc2 internal prototype to avoid an error.  */
11452 #ifdef __cplusplus
11453 extern "C"
11454 {
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457    builtin and then its argument prototype would still apply.  */
11458 char $ac_func ();
11459 /* The GNU C library defines this for functions which it implements
11460     to always fail with ENOSYS.  Some functions are actually named
11461     something starting with __ and the normal name is an alias.  */
11462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11463 choke me
11464 #else
11465 char (*f) () = $ac_func;
11466 #endif
11467 #ifdef __cplusplus
11468 }
11469 #endif
11470
11471 int
11472 main ()
11473 {
11474 return f != $ac_func;
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -z "$ac_c_werror_flag"
11489                          || test ! -s conftest.err'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; } &&
11495          { ac_try='test -s conftest$ac_exeext'
11496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497   (eval $ac_try) 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; }; then
11501   eval "$as_ac_var=yes"
11502 else
11503   echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 eval "$as_ac_var=no"
11507 fi
11508 rm -f conftest.err conftest.$ac_objext \
11509       conftest$ac_exeext conftest.$ac_ext
11510 fi
11511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11513 if test `eval echo '${'$as_ac_var'}'` = yes; then
11514   cat >>confdefs.h <<_ACEOF
11515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516 _ACEOF
11517
11518 fi
11519 done
11520
11521
11522       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11523       # Solaris 7 the name librt is preferred.
11524
11525 for ac_func in sched_yield
11526 do
11527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11528 echo "$as_me:$LINENO: checking for $ac_func" >&5
11529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_var+set}\" = set"; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   if test x$gcc_no_link = xyes; then
11534   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11536    { (exit 1); exit 1; }; }
11537 fi
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11546 #define $ac_func innocuous_$ac_func
11547
11548 /* System header to define __stub macros and hopefully few prototypes,
11549     which can conflict with char $ac_func (); below.
11550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551     <limits.h> exists even on freestanding compilers.  */
11552
11553 #ifdef __STDC__
11554 # include <limits.h>
11555 #else
11556 # include <assert.h>
11557 #endif
11558
11559 #undef $ac_func
11560
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 {
11565 #endif
11566 /* We use char because int might match the return type of a gcc2
11567    builtin and then its argument prototype would still apply.  */
11568 char $ac_func ();
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11573 choke me
11574 #else
11575 char (*f) () = $ac_func;
11576 #endif
11577 #ifdef __cplusplus
11578 }
11579 #endif
11580
11581 int
11582 main ()
11583 {
11584 return f != $ac_func;
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591   (eval $ac_link) 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_c_werror_flag"
11599                          || test ! -s conftest.err'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; } &&
11605          { ac_try='test -s conftest$ac_exeext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   eval "$as_ac_var=yes"
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 eval "$as_ac_var=no"
11617 fi
11618 rm -f conftest.err conftest.$ac_objext \
11619       conftest$ac_exeext conftest.$ac_ext
11620 fi
11621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624   cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 _ACEOF
11627
11628 else
11629
11630         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11631 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11632 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lrt  $LIBS"
11637 if test x$gcc_no_link = xyes; then
11638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11640    { (exit 1); exit 1; }; }
11641 fi
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648
11649 /* Override any gcc2 internal prototype to avoid an error.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 /* We use char because int might match the return type of a gcc2
11654    builtin and then its argument prototype would still apply.  */
11655 char sched_yield ();
11656 int
11657 main ()
11658 {
11659 sched_yield ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666   (eval $ac_link) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag"
11674                          || test ! -s conftest.err'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; } &&
11680          { ac_try='test -s conftest$ac_exeext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_lib_rt_sched_yield=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_lib_rt_sched_yield=no
11692 fi
11693 rm -f conftest.err conftest.$ac_objext \
11694       conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11698 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11699 if test $ac_cv_lib_rt_sched_yield = yes; then
11700
11701           cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_SCHED_YIELD 1
11703 _ACEOF
11704
11705           THREADLIBS="$THREADLIBS -lrt"
11706           THREADSPEC="$THREADSPEC -lrt"
11707 else
11708
11709           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11710 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11711 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-lposix4  $LIBS"
11716 if test x$gcc_no_link = xyes; then
11717   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11719    { (exit 1); exit 1; }; }
11720 fi
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728 /* Override any gcc2 internal prototype to avoid an error.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 /* We use char because int might match the return type of a gcc2
11733    builtin and then its argument prototype would still apply.  */
11734 char sched_yield ();
11735 int
11736 main ()
11737 {
11738 sched_yield ();
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11745   (eval $ac_link) 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -z "$ac_c_werror_flag"
11753                          || test ! -s conftest.err'
11754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755   (eval $ac_try) 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; } &&
11759          { ac_try='test -s conftest$ac_exeext'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; }; then
11765   ac_cv_lib_posix4_sched_yield=yes
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 ac_cv_lib_posix4_sched_yield=no
11771 fi
11772 rm -f conftest.err conftest.$ac_objext \
11773       conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11775 fi
11776 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11777 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11778 if test $ac_cv_lib_posix4_sched_yield = yes; then
11779
11780             cat >>confdefs.h <<\_ACEOF
11781 #define HAVE_SCHED_YIELD 1
11782 _ACEOF
11783
11784             THREADLIBS="$THREADLIBS -lposix4"
11785             THREADSPEC="$THREADSPEC -lposix4"
11786 fi
11787
11788 fi
11789
11790 fi
11791 done
11792
11793       LIBS="$save_LIBS"
11794
11795       # We can save a little space at runtime if the mutex has m_count
11796       # or __m_count.  This is a nice hack for Linux.
11797       cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 #include <pthread.h>
11804 int
11805 main ()
11806 {
11807
11808           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11809
11810   ;
11811   return 0;
11812 }
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816   (eval $ac_compile) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag"
11824                          || test ! -s conftest.err'
11825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826   (eval $ac_try) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; } &&
11830          { ac_try='test -s conftest.$ac_objext'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; }; then
11836
11837 cat >>confdefs.h <<\_ACEOF
11838 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11839 _ACEOF
11840
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845
11846         cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852 #include <pthread.h>
11853 int
11854 main ()
11855 {
11856
11857             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11858
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865   (eval $ac_compile) 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag"
11873                          || test ! -s conftest.err'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest.$ac_objext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885
11886 cat >>confdefs.h <<\_ACEOF
11887 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11888 _ACEOF
11889
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 fi
11895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11898    fi
11899
11900    # We require a way to get the time.
11901    time_found=no
11902
11903
11904
11905 for ac_func in gettimeofday time ftime
11906 do
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   if test x$gcc_no_link = xyes; then
11914   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11916    { (exit 1); exit 1; }; }
11917 fi
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11926 #define $ac_func innocuous_$ac_func
11927
11928 /* System header to define __stub macros and hopefully few prototypes,
11929     which can conflict with char $ac_func (); below.
11930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931     <limits.h> exists even on freestanding compilers.  */
11932
11933 #ifdef __STDC__
11934 # include <limits.h>
11935 #else
11936 # include <assert.h>
11937 #endif
11938
11939 #undef $ac_func
11940
11941 /* Override any gcc2 internal prototype to avoid an error.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 {
11945 #endif
11946 /* We use char because int might match the return type of a gcc2
11947    builtin and then its argument prototype would still apply.  */
11948 char $ac_func ();
11949 /* The GNU C library defines this for functions which it implements
11950     to always fail with ENOSYS.  Some functions are actually named
11951     something starting with __ and the normal name is an alias.  */
11952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953 choke me
11954 #else
11955 char (*f) () = $ac_func;
11956 #endif
11957 #ifdef __cplusplus
11958 }
11959 #endif
11960
11961 int
11962 main ()
11963 {
11964 return f != $ac_func;
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971   (eval $ac_link) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "$as_ac_var=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "$as_ac_var=no"
11997 fi
11998 rm -f conftest.err conftest.$ac_objext \
11999       conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003 if test `eval echo '${'$as_ac_var'}'` = yes; then
12004   cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 _ACEOF
12007  time_found=yes
12008 fi
12009 done
12010
12011    if test "$time_found" = no; then
12012       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12013 echo "$as_me: error: no function found to get the time" >&2;}
12014    { (exit 1); exit 1; }; }
12015    fi
12016
12017
12018 for ac_func in memmove
12019 do
12020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12023 if eval "test \"\${$as_ac_var+set}\" = set"; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   if test x$gcc_no_link = xyes; then
12027   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12029    { (exit 1); exit 1; }; }
12030 fi
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h.  */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h.  */
12037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12039 #define $ac_func innocuous_$ac_func
12040
12041 /* System header to define __stub macros and hopefully few prototypes,
12042     which can conflict with char $ac_func (); below.
12043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044     <limits.h> exists even on freestanding compilers.  */
12045
12046 #ifdef __STDC__
12047 # include <limits.h>
12048 #else
12049 # include <assert.h>
12050 #endif
12051
12052 #undef $ac_func
12053
12054 /* Override any gcc2 internal prototype to avoid an error.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 {
12058 #endif
12059 /* We use char because int might match the return type of a gcc2
12060    builtin and then its argument prototype would still apply.  */
12061 char $ac_func ();
12062 /* The GNU C library defines this for functions which it implements
12063     to always fail with ENOSYS.  Some functions are actually named
12064     something starting with __ and the normal name is an alias.  */
12065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12066 choke me
12067 #else
12068 char (*f) () = $ac_func;
12069 #endif
12070 #ifdef __cplusplus
12071 }
12072 #endif
12073
12074 int
12075 main ()
12076 {
12077 return f != $ac_func;
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084   (eval $ac_link) 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } &&
12091          { ac_try='test -z "$ac_c_werror_flag"
12092                          || test ! -s conftest.err'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; } &&
12098          { ac_try='test -s conftest$ac_exeext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   eval "$as_ac_var=yes"
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 eval "$as_ac_var=no"
12110 fi
12111 rm -f conftest.err conftest.$ac_objext \
12112       conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117   cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 _ACEOF
12120
12121 fi
12122 done
12123
12124
12125    # We require memcpy.
12126    memcpy_found=no
12127
12128 for ac_func in memcpy
12129 do
12130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 echo "$as_me:$LINENO: checking for $ac_func" >&5
12132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_var+set}\" = set"; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136   if test x$gcc_no_link = xyes; then
12137   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12139    { (exit 1); exit 1; }; }
12140 fi
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12149 #define $ac_func innocuous_$ac_func
12150
12151 /* System header to define __stub macros and hopefully few prototypes,
12152     which can conflict with char $ac_func (); below.
12153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12154     <limits.h> exists even on freestanding compilers.  */
12155
12156 #ifdef __STDC__
12157 # include <limits.h>
12158 #else
12159 # include <assert.h>
12160 #endif
12161
12162 #undef $ac_func
12163
12164 /* Override any gcc2 internal prototype to avoid an error.  */
12165 #ifdef __cplusplus
12166 extern "C"
12167 {
12168 #endif
12169 /* We use char because int might match the return type of a gcc2
12170    builtin and then its argument prototype would still apply.  */
12171 char $ac_func ();
12172 /* The GNU C library defines this for functions which it implements
12173     to always fail with ENOSYS.  Some functions are actually named
12174     something starting with __ and the normal name is an alias.  */
12175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12176 choke me
12177 #else
12178 char (*f) () = $ac_func;
12179 #endif
12180 #ifdef __cplusplus
12181 }
12182 #endif
12183
12184 int
12185 main ()
12186 {
12187 return f != $ac_func;
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194   (eval $ac_link) 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -z "$ac_c_werror_flag"
12202                          || test ! -s conftest.err'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; } &&
12208          { ac_try='test -s conftest$ac_exeext'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   eval "$as_ac_var=yes"
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 eval "$as_ac_var=no"
12220 fi
12221 rm -f conftest.err conftest.$ac_objext \
12222       conftest$ac_exeext conftest.$ac_ext
12223 fi
12224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12226 if test `eval echo '${'$as_ac_var'}'` = yes; then
12227   cat >>confdefs.h <<_ACEOF
12228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12229 _ACEOF
12230  memcpy_found=yes
12231 fi
12232 done
12233
12234    if test "$memcpy_found" = no; then
12235       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12236 echo "$as_me: error: memcpy is required" >&2;}
12237    { (exit 1); exit 1; }; }
12238    fi
12239
12240    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12241 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12242 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12243   echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245   ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-ldl  $LIBS"
12247 if test x$gcc_no_link = xyes; then
12248   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12250    { (exit 1); exit 1; }; }
12251 fi
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h.  */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h.  */
12258
12259 /* Override any gcc2 internal prototype to avoid an error.  */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 /* We use char because int might match the return type of a gcc2
12264    builtin and then its argument prototype would still apply.  */
12265 char dlopen ();
12266 int
12267 main ()
12268 {
12269 dlopen ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276   (eval $ac_link) 2>conftest.er1
12277   ac_status=$?
12278   grep -v '^ *+' conftest.er1 >conftest.err
12279   rm -f conftest.er1
12280   cat conftest.err >&5
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -z "$ac_c_werror_flag"
12284                          || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_lib_dl_dlopen=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_cv_lib_dl_dlopen=no
12302 fi
12303 rm -f conftest.err conftest.$ac_objext \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12309 if test $ac_cv_lib_dl_dlopen = yes; then
12310
12311
12312 cat >>confdefs.h <<\_ACEOF
12313 #define HAVE_DLOPEN 1
12314 _ACEOF
12315
12316 fi
12317
12318
12319    # Some library-finding code we stole from Tcl.
12320    #--------------------------------------------------------------------
12321    #    Check for the existence of the -lsocket and -lnsl libraries.
12322    #    The order here is important, so that they end up in the right
12323    #    order in the command line generated by make.  Here are some
12324    #    special considerations:
12325    #    1. Use "connect" and "accept" to check for -lsocket, and
12326    #       "gethostbyname" to check for -lnsl.
12327    #    2. Use each function name only once:  can't redo a check because
12328    #       autoconf caches the results of the last check and won't redo it.
12329    #    3. Use -lnsl and -lsocket only if they supply procedures that
12330    #       aren't already present in the normal libraries.  This is because
12331    #       IRIX 5.2 has libraries, but they aren't needed and they're
12332    #       bogus:  they goof up name resolution if used.
12333    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12334    #       To get around this problem, check for both libraries together
12335    #       if -lsocket doesn't work by itself.
12336    #--------------------------------------------------------------------
12337
12338    echo "$as_me:$LINENO: checking for socket libraries" >&5
12339 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12340 if test "${gcj_cv_lib_sockets+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   gcj_cv_lib_sockets=
12344      gcj_checkBoth=0
12345      unset ac_cv_func_connect
12346      echo "$as_me:$LINENO: checking for connect" >&5
12347 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12348 if test "${ac_cv_func_connect+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   if test x$gcc_no_link = xyes; then
12352   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12354    { (exit 1); exit 1; }; }
12355 fi
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12364 #define connect innocuous_connect
12365
12366 /* System header to define __stub macros and hopefully few prototypes,
12367     which can conflict with char connect (); below.
12368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12369     <limits.h> exists even on freestanding compilers.  */
12370
12371 #ifdef __STDC__
12372 # include <limits.h>
12373 #else
12374 # include <assert.h>
12375 #endif
12376
12377 #undef connect
12378
12379 /* Override any gcc2 internal prototype to avoid an error.  */
12380 #ifdef __cplusplus
12381 extern "C"
12382 {
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385    builtin and then its argument prototype would still apply.  */
12386 char connect ();
12387 /* The GNU C library defines this for functions which it implements
12388     to always fail with ENOSYS.  Some functions are actually named
12389     something starting with __ and the normal name is an alias.  */
12390 #if defined (__stub_connect) || defined (__stub___connect)
12391 choke me
12392 #else
12393 char (*f) () = connect;
12394 #endif
12395 #ifdef __cplusplus
12396 }
12397 #endif
12398
12399 int
12400 main ()
12401 {
12402 return f != connect;
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409   (eval $ac_link) 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -z "$ac_c_werror_flag"
12417                          || test ! -s conftest.err'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; } &&
12423          { ac_try='test -s conftest$ac_exeext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   ac_cv_func_connect=yes
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_cv_func_connect=no
12435 fi
12436 rm -f conftest.err conftest.$ac_objext \
12437       conftest$ac_exeext conftest.$ac_ext
12438 fi
12439 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12440 echo "${ECHO_T}$ac_cv_func_connect" >&6
12441 if test $ac_cv_func_connect = yes; then
12442   gcj_checkSocket=0
12443 else
12444   gcj_checkSocket=1
12445 fi
12446
12447      if test "$gcj_checkSocket" = 1; then
12448          unset ac_cv_func_connect
12449          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12450 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12451 if test "${ac_cv_lib_socket_main+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-lsocket  $LIBS"
12456 if test x$gcc_no_link = xyes; then
12457   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12459    { (exit 1); exit 1; }; }
12460 fi
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467
12468
12469 int
12470 main ()
12471 {
12472 main ();
12473   ;
12474   return 0;
12475 }
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479   (eval $ac_link) 2>conftest.er1
12480   ac_status=$?
12481   grep -v '^ *+' conftest.er1 >conftest.err
12482   rm -f conftest.er1
12483   cat conftest.err >&5
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } &&
12486          { ac_try='test -z "$ac_c_werror_flag"
12487                          || test ! -s conftest.err'
12488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489   (eval $ac_try) 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; } &&
12493          { ac_try='test -s conftest$ac_exeext'
12494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495   (eval $ac_try) 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; }; then
12499   ac_cv_lib_socket_main=yes
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504 ac_cv_lib_socket_main=no
12505 fi
12506 rm -f conftest.err conftest.$ac_objext \
12507       conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12509 fi
12510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12511 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12512 if test $ac_cv_lib_socket_main = yes; then
12513   gcj_cv_lib_sockets="-lsocket"
12514 else
12515   gcj_checkBoth=1
12516 fi
12517
12518      fi
12519      if test "$gcj_checkBoth" = 1; then
12520          gcj_oldLibs=$LIBS
12521          LIBS="$LIBS -lsocket -lnsl"
12522          unset ac_cv_func_accept
12523          echo "$as_me:$LINENO: checking for accept" >&5
12524 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12525 if test "${ac_cv_func_accept+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   if test x$gcc_no_link = xyes; then
12529   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12531    { (exit 1); exit 1; }; }
12532 fi
12533 cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h.  */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h.  */
12539 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12541 #define accept innocuous_accept
12542
12543 /* System header to define __stub macros and hopefully few prototypes,
12544     which can conflict with char accept (); below.
12545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12546     <limits.h> exists even on freestanding compilers.  */
12547
12548 #ifdef __STDC__
12549 # include <limits.h>
12550 #else
12551 # include <assert.h>
12552 #endif
12553
12554 #undef accept
12555
12556 /* Override any gcc2 internal prototype to avoid an error.  */
12557 #ifdef __cplusplus
12558 extern "C"
12559 {
12560 #endif
12561 /* We use char because int might match the return type of a gcc2
12562    builtin and then its argument prototype would still apply.  */
12563 char accept ();
12564 /* The GNU C library defines this for functions which it implements
12565     to always fail with ENOSYS.  Some functions are actually named
12566     something starting with __ and the normal name is an alias.  */
12567 #if defined (__stub_accept) || defined (__stub___accept)
12568 choke me
12569 #else
12570 char (*f) () = accept;
12571 #endif
12572 #ifdef __cplusplus
12573 }
12574 #endif
12575
12576 int
12577 main ()
12578 {
12579 return f != accept;
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586   (eval $ac_link) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } &&
12593          { ac_try='test -z "$ac_c_werror_flag"
12594                          || test ! -s conftest.err'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   ac_cv_func_accept=yes
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_cv_func_accept=no
12612 fi
12613 rm -f conftest.err conftest.$ac_objext \
12614       conftest$ac_exeext conftest.$ac_ext
12615 fi
12616 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12617 echo "${ECHO_T}$ac_cv_func_accept" >&6
12618 if test $ac_cv_func_accept = yes; then
12619   gcj_checkNsl=0
12620                         gcj_cv_lib_sockets="-lsocket -lnsl"
12621 fi
12622
12623          unset ac_cv_func_accept
12624          LIBS=$gcj_oldLibs
12625      fi
12626      unset ac_cv_func_gethostbyname
12627      gcj_oldLibs=$LIBS
12628      LIBS="$LIBS $gcj_cv_lib_sockets"
12629      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12630 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12631 if test "${ac_cv_func_gethostbyname+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   if test x$gcc_no_link = xyes; then
12635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12637    { (exit 1); exit 1; }; }
12638 fi
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12647 #define gethostbyname innocuous_gethostbyname
12648
12649 /* System header to define __stub macros and hopefully few prototypes,
12650     which can conflict with char gethostbyname (); below.
12651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12652     <limits.h> exists even on freestanding compilers.  */
12653
12654 #ifdef __STDC__
12655 # include <limits.h>
12656 #else
12657 # include <assert.h>
12658 #endif
12659
12660 #undef gethostbyname
12661
12662 /* Override any gcc2 internal prototype to avoid an error.  */
12663 #ifdef __cplusplus
12664 extern "C"
12665 {
12666 #endif
12667 /* We use char because int might match the return type of a gcc2
12668    builtin and then its argument prototype would still apply.  */
12669 char gethostbyname ();
12670 /* The GNU C library defines this for functions which it implements
12671     to always fail with ENOSYS.  Some functions are actually named
12672     something starting with __ and the normal name is an alias.  */
12673 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12674 choke me
12675 #else
12676 char (*f) () = gethostbyname;
12677 #endif
12678 #ifdef __cplusplus
12679 }
12680 #endif
12681
12682 int
12683 main ()
12684 {
12685 return f != gethostbyname;
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692   (eval $ac_link) 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag"
12700                          || test ! -s conftest.err'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; } &&
12706          { ac_try='test -s conftest$ac_exeext'
12707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708   (eval $ac_try) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; }; then
12712   ac_cv_func_gethostbyname=yes
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 ac_cv_func_gethostbyname=no
12718 fi
12719 rm -f conftest.err conftest.$ac_objext \
12720       conftest$ac_exeext conftest.$ac_ext
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12723 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12724 if test $ac_cv_func_gethostbyname = yes; then
12725   :
12726 else
12727   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12728 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12729 if test "${ac_cv_lib_nsl_main+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lnsl  $LIBS"
12734 if test x$gcc_no_link = xyes; then
12735   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12737    { (exit 1); exit 1; }; }
12738 fi
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745
12746
12747 int
12748 main ()
12749 {
12750 main ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12757   (eval $ac_link) 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_c_werror_flag"
12765                          || test ! -s conftest.err'
12766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767   (eval $ac_try) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; } &&
12771          { ac_try='test -s conftest$ac_exeext'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   ac_cv_lib_nsl_main=yes
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 ac_cv_lib_nsl_main=no
12783 fi
12784 rm -f conftest.err conftest.$ac_objext \
12785       conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12789 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12790 if test $ac_cv_lib_nsl_main = yes; then
12791   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12792 fi
12793
12794 fi
12795
12796      unset ac_cv_func_gethostbyname
12797      LIBS=$gcj_oldLIBS
12798
12799 fi
12800 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12801 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12802    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12803
12804    if test "$with_system_zlib" = yes; then
12805       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12806 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12807 if test "${ac_cv_lib_z_deflate+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810   ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lz  $LIBS"
12812 if test x$gcc_no_link = xyes; then
12813   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12815    { (exit 1); exit 1; }; }
12816 fi
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823
12824 /* Override any gcc2 internal prototype to avoid an error.  */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 /* We use char because int might match the return type of a gcc2
12829    builtin and then its argument prototype would still apply.  */
12830 char deflate ();
12831 int
12832 main ()
12833 {
12834 deflate ();
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841   (eval $ac_link) 2>conftest.er1
12842   ac_status=$?
12843   grep -v '^ *+' conftest.er1 >conftest.err
12844   rm -f conftest.er1
12845   cat conftest.err >&5
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } &&
12848          { ac_try='test -z "$ac_c_werror_flag"
12849                          || test ! -s conftest.err'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; } &&
12855          { ac_try='test -s conftest$ac_exeext'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_cv_lib_z_deflate=yes
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_cv_lib_z_deflate=no
12867 fi
12868 rm -f conftest.err conftest.$ac_objext \
12869       conftest$ac_exeext conftest.$ac_ext
12870 LIBS=$ac_check_lib_save_LIBS
12871 fi
12872 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12873 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12874 if test $ac_cv_lib_z_deflate = yes; then
12875   ZLIBSPEC=-lz
12876 else
12877   ZLIBSPEC=
12878 fi
12879
12880    fi
12881
12882    # Test for Gtk stuff, if asked for.
12883    if test "$use_gtk_awt" = yes; then
12884
12885   succeeded=no
12886
12887   if test -z "$PKG_CONFIG"; then
12888     # Extract the first word of "pkg-config", so it can be a program name with args.
12889 set dummy pkg-config; ac_word=$2
12890 echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12892 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   case $PKG_CONFIG in
12896   [\\/]* | ?:[\\/]*)
12897   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12898   ;;
12899   *)
12900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905   for ac_exec_ext in '' $ac_executable_extensions; do
12906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912 done
12913
12914   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12915   ;;
12916 esac
12917 fi
12918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12919
12920 if test -n "$PKG_CONFIG"; then
12921   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12922 echo "${ECHO_T}$PKG_CONFIG" >&6
12923 else
12924   echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6
12926 fi
12927
12928   fi
12929
12930   if test "$PKG_CONFIG" = "no" ; then
12931      echo "*** The pkg-config script could not be found. Make sure it is"
12932      echo "*** in your path, or set the PKG_CONFIG environment variable"
12933      echo "*** to the full path to pkg-config."
12934      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12935   else
12936      PKG_CONFIG_MIN_VERSION=0.9.0
12937      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12938         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12939 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12940
12941         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12942             echo "$as_me:$LINENO: result: yes" >&5
12943 echo "${ECHO_T}yes" >&6
12944             succeeded=yes
12945
12946             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12947 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12948             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12949             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12950 echo "${ECHO_T}$GTK_CFLAGS" >&6
12951
12952             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12953 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12954             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12955             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12956 echo "${ECHO_T}$GTK_LIBS" >&6
12957         else
12958             GTK_CFLAGS=""
12959             GTK_LIBS=""
12960             ## If we have a custom action on failure, don't print errors, but
12961             ## do set a variable so people can do so.
12962             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12963             echo $GTK_PKG_ERRORS
12964         fi
12965
12966
12967
12968      else
12969         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12970         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12971      fi
12972   fi
12973
12974   if test $succeeded = yes; then
12975      :
12976   else
12977      { { 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
12978 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;}
12979    { (exit 1); exit 1; }; }
12980   fi
12981
12982
12983
12984
12985
12986   succeeded=no
12987
12988   if test -z "$PKG_CONFIG"; then
12989     # Extract the first word of "pkg-config", so it can be a program name with args.
12990 set dummy pkg-config; ac_word=$2
12991 echo "$as_me:$LINENO: checking for $ac_word" >&5
12992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12994   echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996   case $PKG_CONFIG in
12997   [\\/]* | ?:[\\/]*)
12998   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12999   ;;
13000   *)
13001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13003 do
13004   IFS=$as_save_IFS
13005   test -z "$as_dir" && as_dir=.
13006   for ac_exec_ext in '' $ac_executable_extensions; do
13007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13008     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13010     break 2
13011   fi
13012 done
13013 done
13014
13015   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13016   ;;
13017 esac
13018 fi
13019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13020
13021 if test -n "$PKG_CONFIG"; then
13022   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13023 echo "${ECHO_T}$PKG_CONFIG" >&6
13024 else
13025   echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6
13027 fi
13028
13029   fi
13030
13031   if test "$PKG_CONFIG" = "no" ; then
13032      echo "*** The pkg-config script could not be found. Make sure it is"
13033      echo "*** in your path, or set the PKG_CONFIG environment variable"
13034      echo "*** to the full path to pkg-config."
13035      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13036   else
13037      PKG_CONFIG_MIN_VERSION=0.9.0
13038      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13039         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13040 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13041
13042         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13043             echo "$as_me:$LINENO: result: yes" >&5
13044 echo "${ECHO_T}yes" >&6
13045             succeeded=yes
13046
13047             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13048 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13049             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13050             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13051 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13052
13053             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13054 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13055             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13056             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13057 echo "${ECHO_T}$GLIB_LIBS" >&6
13058         else
13059             GLIB_CFLAGS=""
13060             GLIB_LIBS=""
13061             ## If we have a custom action on failure, don't print errors, but
13062             ## do set a variable so people can do so.
13063             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13064             echo $GLIB_PKG_ERRORS
13065         fi
13066
13067
13068
13069      else
13070         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13071         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13072      fi
13073   fi
13074
13075   if test $succeeded = yes; then
13076      :
13077   else
13078      { { 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
13079 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;}
13080    { (exit 1); exit 1; }; }
13081   fi
13082
13083
13084
13085
13086
13087   succeeded=no
13088
13089   if test -z "$PKG_CONFIG"; then
13090     # Extract the first word of "pkg-config", so it can be a program name with args.
13091 set dummy pkg-config; ac_word=$2
13092 echo "$as_me:$LINENO: checking for $ac_word" >&5
13093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   case $PKG_CONFIG in
13098   [\\/]* | ?:[\\/]*)
13099   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13100   ;;
13101   *)
13102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13104 do
13105   IFS=$as_save_IFS
13106   test -z "$as_dir" && as_dir=.
13107   for ac_exec_ext in '' $ac_executable_extensions; do
13108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13109     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13111     break 2
13112   fi
13113 done
13114 done
13115
13116   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13117   ;;
13118 esac
13119 fi
13120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13121
13122 if test -n "$PKG_CONFIG"; then
13123   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13124 echo "${ECHO_T}$PKG_CONFIG" >&6
13125 else
13126   echo "$as_me:$LINENO: result: no" >&5
13127 echo "${ECHO_T}no" >&6
13128 fi
13129
13130   fi
13131
13132   if test "$PKG_CONFIG" = "no" ; then
13133      echo "*** The pkg-config script could not be found. Make sure it is"
13134      echo "*** in your path, or set the PKG_CONFIG environment variable"
13135      echo "*** to the full path to pkg-config."
13136      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13137   else
13138      PKG_CONFIG_MIN_VERSION=0.9.0
13139      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13140         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13141 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13142
13143         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13144             echo "$as_me:$LINENO: result: yes" >&5
13145 echo "${ECHO_T}yes" >&6
13146             succeeded=yes
13147
13148             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13149 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13150             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13151             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13152 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13153
13154             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13155 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13156             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13157             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13158 echo "${ECHO_T}$LIBART_LIBS" >&6
13159         else
13160             LIBART_CFLAGS=""
13161             LIBART_LIBS=""
13162             ## If we have a custom action on failure, don't print errors, but
13163             ## do set a variable so people can do so.
13164             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13165             echo $LIBART_PKG_ERRORS
13166         fi
13167
13168
13169
13170      else
13171         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13172         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13173      fi
13174   fi
13175
13176   if test $succeeded = yes; then
13177      :
13178   else
13179      { { 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
13180 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;}
13181    { (exit 1); exit 1; }; }
13182   fi
13183
13184
13185
13186
13187       # We require the XTest Extension to support java.awt.Robot.
13188       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13189 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13190 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lXtst ${X_LIBS} $LIBS"
13195 if test x$gcc_no_link = xyes; then
13196   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13198    { (exit 1); exit 1; }; }
13199 fi
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206
13207 /* Override any gcc2 internal prototype to avoid an error.  */
13208 #ifdef __cplusplus
13209 extern "C"
13210 #endif
13211 /* We use char because int might match the return type of a gcc2
13212    builtin and then its argument prototype would still apply.  */
13213 char XTestQueryExtension ();
13214 int
13215 main ()
13216 {
13217 XTestQueryExtension ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13224   (eval $ac_link) 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag"
13232                          || test ! -s conftest.err'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; } &&
13238          { ac_try='test -s conftest$ac_exeext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   ac_cv_lib_Xtst_XTestQueryExtension=yes
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_cv_lib_Xtst_XTestQueryExtension=no
13250 fi
13251 rm -f conftest.err conftest.$ac_objext \
13252       conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13254 fi
13255 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13256 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13257 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13258   true
13259 else
13260   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13261 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13262    { (exit 1); exit 1; }; }
13263 fi
13264
13265    fi
13266
13267    # On Solaris, and maybe other architectures, the Boehm collector
13268    # requires -ldl.
13269    if test "$GC" = boehm; then
13270       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13271 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13272 if test "${ac_cv_lib_dl_main+set}" = set; then
13273   echo $ECHO_N "(cached) $ECHO_C" >&6
13274 else
13275   ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-ldl  $LIBS"
13277 if test x$gcc_no_link = xyes; then
13278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13280    { (exit 1); exit 1; }; }
13281 fi
13282 cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288
13289
13290 int
13291 main ()
13292 {
13293 main ();
13294   ;
13295   return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300   (eval $ac_link) 2>conftest.er1
13301   ac_status=$?
13302   grep -v '^ *+' conftest.er1 >conftest.err
13303   rm -f conftest.er1
13304   cat conftest.err >&5
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); } &&
13307          { ac_try='test -z "$ac_c_werror_flag"
13308                          || test ! -s conftest.err'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; } &&
13314          { ac_try='test -s conftest$ac_exeext'
13315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316   (eval $ac_try) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   ac_cv_lib_dl_main=yes
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 ac_cv_lib_dl_main=no
13326 fi
13327 rm -f conftest.err conftest.$ac_objext \
13328       conftest$ac_exeext conftest.$ac_ext
13329 LIBS=$ac_check_lib_save_LIBS
13330 fi
13331 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13332 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13333 if test $ac_cv_lib_dl_main = yes; then
13334   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13335 fi
13336
13337    fi
13338 fi
13339
13340
13341 if test "$supply_backtrace" = yes; then
13342   SUPPLY_BACKTRACE_TRUE=
13343   SUPPLY_BACKTRACE_FALSE='#'
13344 else
13345   SUPPLY_BACKTRACE_TRUE='#'
13346   SUPPLY_BACKTRACE_FALSE=
13347 fi
13348
13349
13350 if test -z "${with_multisubdir}"; then
13351    builddotdot=.
13352 else
13353    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13354 fi
13355
13356 NATIVE=yes
13357
13358 # Which gcj do we use?
13359 which_gcj=default
13360 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13361 if test -n "${with_cross_host}"; then
13362   # We are being configured with a cross compiler. We can't
13363   # use ac_exeext, because that is for the target platform.
13364   NATIVE=no
13365   cross_host_exeext=
13366   case "${with_cross_host}" in
13367      *mingw* | *cygwin*)
13368          cross_host_exeext=.exe
13369      ;;
13370   esac
13371   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13372      if test x"$build_noncanonical" = x"$with_cross_host"; then
13373         # Ordinary cross (host!=target and host=build)
13374         which_gcj=built
13375      else
13376         # Canadian cross (host!=target and host!=build)
13377         which_gcj=cross
13378      fi
13379   else
13380      which_gcj=cross
13381   fi
13382 else
13383   # We are being configured with a native or crossed-native compiler
13384   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13385      if test x"$build" = x"$host"; then
13386         # True native build (host=target and host=build)
13387         which_gcj=built
13388      else
13389         # Crossed-native build (host=target and host!=build)
13390         which_gcj=cross
13391      fi
13392   else
13393      which_gcj=path
13394   fi
13395 fi
13396 case "${which_gcj}" in
13397    built)
13398       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13399       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13400       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13401    ;;
13402    cross)
13403       if test "x${with_newlib}" = "xyes"; then
13404          # FIXME (comment): Why is this needed?
13405          GCC_UNWIND_INCLUDE=
13406          GCJ="${target_noncanonical}-gcj"
13407       else
13408          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13409       fi
13410       ZIP='$(target_noncanonical)-fastjar'
13411       GCJH='$(target_noncanonical)-gcjh'
13412    ;;
13413    path)
13414       GCJ="gcj -B`${PWDCMD-pwd}`/"
13415       ## In this case, gcj is found outside the build tree.  However, zip is
13416       ## found in the build tree.
13417       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13418       GCJH=gcjh
13419    ;;
13420 esac
13421
13422
13423
13424
13425 # Create it, so that compile/link tests don't fail
13426 test -f libgcj.spec || touch libgcj.spec
13427
13428 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13429 case $build in
13430     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13431     *)         CLASSPATH_SEPARATOR=':' ;;
13432 esac
13433
13434
13435 # We must search the source tree for java.lang, since we still don't
13436 # have libgcj.jar nor java/lang/*.class
13437 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13438 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13439
13440 # Since some classes depend on this one, we need its source available
13441 # before we can do any GCJ compilation test :-(
13442 if test ! -f gnu/classpath/Configuration.java; then
13443   test -d gnu || mkdir gnu
13444   test -d gnu/classpath || mkdir gnu/classpath
13445   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13446       -e 's,@TOOLKIT@,$TOOLKIT,' \
13447         < $srcdir/gnu/classpath/Configuration.java.in \
13448         > gnu/classpath/Configuration.java
13449   # We do not want to redirect the output of the grep below to /dev/null,
13450   # but we add /dev/null to the input list so that grep will print the
13451   # filename of Configuration.java in case it finds any matches.
13452   if grep @ gnu/classpath/Configuration.java /dev/null; then
13453     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13454 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13455    { (exit 1); exit 1; }; }
13456   fi
13457 fi
13458
13459 if test -n "$ac_tool_prefix"; then
13460   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13461 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13462 echo "$as_me:$LINENO: checking for $ac_word" >&5
13463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13464 if test "${ac_cv_prog_GCJ+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   if test -n "$GCJ"; then
13468   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473   IFS=$as_save_IFS
13474   test -z "$as_dir" && as_dir=.
13475   for ac_exec_ext in '' $ac_executable_extensions; do
13476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13479     break 2
13480   fi
13481 done
13482 done
13483
13484 fi
13485 fi
13486 GCJ=$ac_cv_prog_GCJ
13487 if test -n "$GCJ"; then
13488   echo "$as_me:$LINENO: result: $GCJ" >&5
13489 echo "${ECHO_T}$GCJ" >&6
13490 else
13491   echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13493 fi
13494
13495 fi
13496 if test -z "$ac_cv_prog_GCJ"; then
13497   ac_ct_GCJ=$GCJ
13498   # Extract the first word of "gcj", so it can be a program name with args.
13499 set dummy gcj; ac_word=$2
13500 echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13502 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   if test -n "$ac_ct_GCJ"; then
13506   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511   IFS=$as_save_IFS
13512   test -z "$as_dir" && as_dir=.
13513   for ac_exec_ext in '' $ac_executable_extensions; do
13514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515     ac_cv_prog_ac_ct_GCJ="gcj"
13516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517     break 2
13518   fi
13519 done
13520 done
13521
13522   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13523 fi
13524 fi
13525 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13526 if test -n "$ac_ct_GCJ"; then
13527   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13528 echo "${ECHO_T}$ac_ct_GCJ" >&6
13529 else
13530   echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6
13532 fi
13533
13534   GCJ=$ac_ct_GCJ
13535 else
13536   GCJ="$ac_cv_prog_GCJ"
13537 fi
13538
13539   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13540
13541
13542
13543
13544 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13545
13546 echo "$as_me:$LINENO: checking size of void *" >&5
13547 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13548 if test "${ac_cv_sizeof_void_p+set}" = set; then
13549   echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13552   cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 #include "confdefs.h"
13559 #include <sys/types.h>
13560
13561
13562 int
13563 main ()
13564 {
13565 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572   (eval $ac_compile) 2>conftest.er1
13573   ac_status=$?
13574   grep -v '^ *+' conftest.er1 >conftest.err
13575   rm -f conftest.er1
13576   cat conftest.err >&5
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -z "$ac_c_werror_flag"
13580                          || test ! -s conftest.err'
13581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582   (eval $ac_try) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; } &&
13586          { ac_try='test -s conftest.$ac_objext'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; }; then
13592   ac_cv_sizeof_void_p=$ac_size
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 fi
13598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13600 done
13601
13602 fi
13603
13604 if test x$ac_cv_sizeof_void_p = x ; then
13605   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13606 echo "$as_me: error: cannot determine a size for void *" >&2;}
13607    { (exit 1); exit 1; }; }
13608 fi
13609 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13610 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13611
13612 cat >>confdefs.h <<_ACEOF
13613 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13614 _ACEOF
13615
13616
13617
13618 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13619 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13620 if test "${ac_cv_c_bigendian+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   ac_cv_c_bigendian=unknown
13624 # See if sys/param.h defines the BYTE_ORDER macro.
13625 cat >conftest.$ac_ext <<_ACEOF
13626 /* confdefs.h.  */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h.  */
13631 #include <sys/types.h>
13632 #include <sys/param.h>
13633 int
13634 main ()
13635 {
13636
13637 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13638  bogus endian macros
13639 #endif
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646   (eval $ac_compile) 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag"
13654                          || test ! -s conftest.err'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; } &&
13660          { ac_try='test -s conftest.$ac_objext'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   # It does; now see whether it defined to BIG_ENDIAN or not.
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 #include <sys/types.h>
13674 #include <sys/param.h>
13675 int
13676 main ()
13677 {
13678
13679 #if BYTE_ORDER != BIG_ENDIAN
13680  not big endian
13681 #endif
13682   ;
13683   return 0;
13684 }
13685 _ACEOF
13686 rm -f conftest.$ac_objext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13688   (eval $ac_compile) 2>conftest.er1
13689   ac_status=$?
13690   grep -v '^ *+' conftest.er1 >conftest.err
13691   rm -f conftest.er1
13692   cat conftest.err >&5
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } &&
13695          { ac_try='test -z "$ac_c_werror_flag"
13696                          || test ! -s conftest.err'
13697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698   (eval $ac_try) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }; } &&
13702          { ac_try='test -s conftest.$ac_objext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   ac_cv_c_bigendian=yes
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 ac_cv_c_bigendian=no
13714 fi
13715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716 else
13717   echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 fi
13721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13722 if test $ac_cv_c_bigendian = unknown; then
13723 if test "$cross_compiling" = yes; then
13724    echo $ac_n "cross-compiling... " 2>&6
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 main () {
13733   /* Are we little or big endian?  From Harbison&Steele.  */
13734   union
13735   {
13736     long l;
13737     char c[sizeof (long)];
13738   } u;
13739   u.l = 1;
13740   exit (u.c[sizeof (long) - 1] == 1);
13741 }
13742 _ACEOF
13743 rm -f conftest$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745   (eval $ac_link) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750   (eval $ac_try) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; }; then
13754   ac_cv_c_bigendian=no
13755 else
13756   echo "$as_me: program exited with status $ac_status" >&5
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ( exit $ac_status )
13761 ac_cv_c_bigendian=yes
13762 fi
13763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 fi
13765 fi
13766 fi
13767 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13768 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13769 if test $ac_cv_c_bigendian = unknown; then
13770 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13771 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13772
13773 cat >conftest.c <<EOF
13774 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13775 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13776 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13777 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13778 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13779 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13780 int main() { _ascii (); _ebcdic (); return 0; }
13781 EOF
13782  if test -f conftest.c ; then
13783      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13784         if test `grep -l BIGenDianSyS conftest.o` ; then
13785            echo $ac_n ' big endian probe OK, ' 1>&6
13786            ac_cv_c_bigendian=yes
13787         fi
13788         if test `grep -l LiTTleEnDian conftest.o` ; then
13789            echo $ac_n ' little endian probe OK, ' 1>&6
13790            if test $ac_cv_c_bigendian = yes ; then
13791             ac_cv_c_bigendian=unknown;
13792            else
13793             ac_cv_c_bigendian=no
13794            fi
13795         fi
13796         echo $ac_n 'guessing bigendian ...  ' >&6
13797      fi
13798   fi
13799 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13800 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13801 fi
13802 if test $ac_cv_c_bigendian = yes; then
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define WORDS_BIGENDIAN 1
13806 _ACEOF
13807
13808
13809 cat >>confdefs.h <<\_ACEOF
13810 #define HOST_WORDS_BIG_ENDIAN 1
13811 _ACEOF
13812
13813   BYTEORDER=4321
13814 else
13815   BYTEORDER=1234
13816 fi
13817
13818 cat >>confdefs.h <<_ACEOF
13819 #define BYTEORDER $BYTEORDER
13820 _ACEOF
13821
13822 if test $ac_cv_c_bigendian = unknown; then
13823   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13824 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13825    { (exit 1); exit 1; }; }
13826 fi
13827
13828
13829 ZLIBS=
13830 SYS_ZLIBS=
13831 ZINCS=
13832
13833 if test -z "$ZLIBSPEC"; then
13834    # Use zlib from the GCC tree.
13835    ZINCS='-I$(top_srcdir)/../zlib'
13836    ZLIBS=../zlib/libzgcj_convenience.la
13837 else
13838    # System's zlib.
13839    SYS_ZLIBS="$ZLIBSPEC"
13840 fi
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851 if test "$NATIVE" = yes; then
13852   NATIVE_TRUE=
13853   NATIVE_FALSE='#'
13854 else
13855   NATIVE_TRUE='#'
13856   NATIVE_FALSE=
13857 fi
13858
13859
13860
13861 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13862   NEEDS_DATA_START_TRUE=
13863   NEEDS_DATA_START_FALSE='#'
13864 else
13865   NEEDS_DATA_START_TRUE='#'
13866   NEEDS_DATA_START_FALSE=
13867 fi
13868
13869
13870
13871 # Process the option "--enable-version-specific-runtime-libs"
13872 # Calculate toolexeclibdir
13873 case ${version_specific_libs} in
13874   yes)
13875     # Need the gcc compiler version to know where to install libraries
13876     # and header files if --enable-version-specific-runtime-libs option
13877     # is selected.
13878     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13879     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13880     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13881     toolexeclibdir=$toolexecmainlibdir
13882     ;;
13883   no)
13884     if test -n "$with_cross_host" &&
13885        test x"$with_cross_host" != x"no"; then
13886       # Install a library built with a cross compiler in tooldir, not libdir.
13887       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13888       toolexecmainlibdir='$(toolexecdir)/lib'
13889     else
13890       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13891       toolexecmainlibdir='$(libdir)'
13892     fi
13893     multi_os_directory=`$CC -print-multi-os-directory`
13894     case $multi_os_directory in
13895       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13896       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13897     esac
13898     ;;
13899 esac
13900
13901
13902
13903
13904 # Determine gcj version number.
13905 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13906 GCJVERSION=$gcjversion
13907
13908
13909 cat >>confdefs.h <<_ACEOF
13910 #define GCJVERSION "$GCJVERSION"
13911 _ACEOF
13912
13913
13914
13915 cat >>confdefs.h <<\_ACEOF
13916 #define JV_VERSION "1.4.2"
13917 _ACEOF
13918
13919
13920 cat >>confdefs.h <<\_ACEOF
13921 #define JV_API_VERSION "1.4"
13922 _ACEOF
13923
13924
13925
13926 case "${with_gxx_include_dir}" in
13927   yes)
13928     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13929 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13930    { (exit 1); exit 1; }; }
13931     ;;
13932   no | "")
13933     case "${enable_version_specific_runtime_libs}" in
13934       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13935       *)
13936         libstdcxx_incdir='c++/$(gcc_version)'
13937         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13938     esac ;;
13939   *) gxx_include_dir=${with_gxx_include_dir} ;;
13940 esac
13941
13942
13943
13944
13945 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13946 # On that system, sys/ioctl.h will not include sys/filio.h unless
13947 # BSD_COMP is defined; just including sys/filio.h is simpler.
13948 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13949 # for now.  If you change this, you also must update natFile.cc.
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13971                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13972                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13973                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
13974                   dirent.h
13975 do
13976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978   echo "$as_me:$LINENO: checking for $ac_header" >&5
13979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 fi
13983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13985 else
13986   # Is the header compilable?
13987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 $ac_includes_default
13996 #include <$ac_header>
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag"
14008                          || test ! -s conftest.err'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_header_compiler=yes
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_header_compiler=no
14026 fi
14027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14029 echo "${ECHO_T}$ac_header_compiler" >&6
14030
14031 # Is the header present?
14032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040 #include <$ac_header>
14041 _ACEOF
14042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14044   ac_status=$?
14045   grep -v '^ *+' conftest.er1 >conftest.err
14046   rm -f conftest.er1
14047   cat conftest.err >&5
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } >/dev/null; then
14050   if test -s conftest.err; then
14051     ac_cpp_err=$ac_c_preproc_warn_flag
14052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14053   else
14054     ac_cpp_err=
14055   fi
14056 else
14057   ac_cpp_err=yes
14058 fi
14059 if test -z "$ac_cpp_err"; then
14060   ac_header_preproc=yes
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065   ac_header_preproc=no
14066 fi
14067 rm -f conftest.err conftest.$ac_ext
14068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14069 echo "${ECHO_T}$ac_header_preproc" >&6
14070
14071 # So?  What about this header?
14072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14073   yes:no: )
14074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14078     ac_header_preproc=yes
14079     ;;
14080   no:yes:* )
14081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14093     (
14094       cat <<\_ASBOX
14095 ## ---------------------------------- ##
14096 ## Report this to the libjava lists.  ##
14097 ## ---------------------------------- ##
14098 _ASBOX
14099     ) |
14100       sed "s/^/$as_me: WARNING:     /" >&2
14101     ;;
14102 esac
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   eval "$as_ac_Header=\$ac_header_preproc"
14109 fi
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112
14113 fi
14114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14115   cat >>confdefs.h <<_ACEOF
14116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14117 _ACEOF
14118
14119 fi
14120
14121 done
14122
14123
14124 for ac_header in inttypes.h
14125 do
14126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14128   echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 fi
14133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14135 else
14136   # Is the header compilable?
14137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
14146 #include <$ac_header>
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14150   (eval $ac_compile) 2>conftest.er1
14151   ac_status=$?
14152   grep -v '^ *+' conftest.er1 >conftest.err
14153   rm -f conftest.er1
14154   cat conftest.err >&5
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } &&
14157          { ac_try='test -z "$ac_c_werror_flag"
14158                          || test ! -s conftest.err'
14159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160   (eval $ac_try) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); }; } &&
14164          { ac_try='test -s conftest.$ac_objext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_header_compiler=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_header_compiler=no
14176 fi
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14179 echo "${ECHO_T}$ac_header_compiler" >&6
14180
14181 # Is the header present?
14182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14184 cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190 #include <$ac_header>
14191 _ACEOF
14192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14194   ac_status=$?
14195   grep -v '^ *+' conftest.er1 >conftest.err
14196   rm -f conftest.er1
14197   cat conftest.err >&5
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } >/dev/null; then
14200   if test -s conftest.err; then
14201     ac_cpp_err=$ac_c_preproc_warn_flag
14202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14203   else
14204     ac_cpp_err=
14205   fi
14206 else
14207   ac_cpp_err=yes
14208 fi
14209 if test -z "$ac_cpp_err"; then
14210   ac_header_preproc=yes
14211 else
14212   echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215   ac_header_preproc=no
14216 fi
14217 rm -f conftest.err conftest.$ac_ext
14218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14219 echo "${ECHO_T}$ac_header_preproc" >&6
14220
14221 # So?  What about this header?
14222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14223   yes:no: )
14224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14228     ac_header_preproc=yes
14229     ;;
14230   no:yes:* )
14231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14243     (
14244       cat <<\_ASBOX
14245 ## ---------------------------------- ##
14246 ## Report this to the libjava lists.  ##
14247 ## ---------------------------------- ##
14248 _ASBOX
14249     ) |
14250       sed "s/^/$as_me: WARNING:     /" >&2
14251     ;;
14252 esac
14253 echo "$as_me:$LINENO: checking for $ac_header" >&5
14254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14256   echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258   eval "$as_ac_Header=\$ac_header_preproc"
14259 fi
14260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14262
14263 fi
14264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14265   cat >>confdefs.h <<_ACEOF
14266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14267 _ACEOF
14268
14269
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_INTTYPES_H 1
14272 _ACEOF
14273
14274
14275 cat >>confdefs.h <<\_ACEOF
14276 #define JV_HAVE_INTTYPES_H 1
14277 _ACEOF
14278
14279
14280 fi
14281
14282 done
14283
14284 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14285 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14286 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295 #include <sys/types.h>
14296 #include <sys/wait.h>
14297 #ifndef WEXITSTATUS
14298 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14299 #endif
14300 #ifndef WIFEXITED
14301 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14302 #endif
14303
14304 int
14305 main ()
14306 {
14307   int s;
14308   wait (&s);
14309   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316   (eval $ac_compile) 2>conftest.er1
14317   ac_status=$?
14318   grep -v '^ *+' conftest.er1 >conftest.err
14319   rm -f conftest.er1
14320   cat conftest.err >&5
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); } &&
14323          { ac_try='test -z "$ac_c_werror_flag"
14324                          || test ! -s conftest.err'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; } &&
14330          { ac_try='test -s conftest.$ac_objext'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; }; then
14336   ac_cv_header_sys_wait_h=yes
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 ac_cv_header_sys_wait_h=no
14342 fi
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14346 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14347 if test $ac_cv_header_sys_wait_h = yes; then
14348
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_SYS_WAIT_H 1
14351 _ACEOF
14352
14353 fi
14354
14355
14356 echo "$as_me:$LINENO: checking for ssize_t" >&5
14357 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14358 if test "${ac_cv_type_ssize_t+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 $ac_includes_default
14368 int
14369 main ()
14370 {
14371 if ((ssize_t *) 0)
14372   return 0;
14373 if (sizeof (ssize_t))
14374   return 0;
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381   (eval $ac_compile) 2>conftest.er1
14382   ac_status=$?
14383   grep -v '^ *+' conftest.er1 >conftest.err
14384   rm -f conftest.er1
14385   cat conftest.err >&5
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } &&
14388          { ac_try='test -z "$ac_c_werror_flag"
14389                          || test ! -s conftest.err'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; }; then
14401   ac_cv_type_ssize_t=yes
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 ac_cv_type_ssize_t=no
14407 fi
14408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14409 fi
14410 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14411 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14412 if test $ac_cv_type_ssize_t = yes; then
14413   :
14414 else
14415
14416 cat >>confdefs.h <<_ACEOF
14417 #define ssize_t int
14418 _ACEOF
14419
14420 fi
14421
14422
14423 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14424 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 #include <sys/types.h>
14432 #if STDC_HEADERS
14433 #include <stdlib.h>
14434 #include <stddef.h>
14435 #endif
14436 #if HAVE_NETINET_IN_H
14437 #include <netinet/in.h>
14438 #endif
14439 int
14440 main ()
14441 {
14442 in_addr_t foo;
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14449   (eval $ac_compile) 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_c_werror_flag"
14457                          || test ! -s conftest.err'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; } &&
14463          { ac_try='test -s conftest.$ac_objext'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; }; then
14469
14470 cat >>confdefs.h <<\_ACEOF
14471 #define HAVE_IN_ADDR_T 1
14472 _ACEOF
14473
14474    echo "$as_me:$LINENO: result: yes" >&5
14475 echo "${ECHO_T}yes" >&6
14476 else
14477   echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6
14482 fi
14483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14484
14485 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14486 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14487 cat >conftest.$ac_ext <<_ACEOF
14488 /* confdefs.h.  */
14489 _ACEOF
14490 cat confdefs.h >>conftest.$ac_ext
14491 cat >>conftest.$ac_ext <<_ACEOF
14492 /* end confdefs.h.  */
14493 #include <netinet/in.h>
14494 int
14495 main ()
14496 {
14497 struct ip_mreq mreq;
14498   ;
14499   return 0;
14500 }
14501 _ACEOF
14502 rm -f conftest.$ac_objext
14503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14504   (eval $ac_compile) 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } &&
14511          { ac_try='test -z "$ac_c_werror_flag"
14512                          || test ! -s conftest.err'
14513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514   (eval $ac_try) 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); }; } &&
14518          { ac_try='test -s conftest.$ac_objext'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; }; then
14524
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_STRUCT_IP_MREQ 1
14527 _ACEOF
14528
14529    echo "$as_me:$LINENO: result: yes" >&5
14530 echo "${ECHO_T}yes" >&6
14531 else
14532   echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 echo "$as_me:$LINENO: result: no" >&5
14536 echo "${ECHO_T}no" >&6
14537 fi
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539
14540 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14541 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 #include <netinet/in.h>
14549 int
14550 main ()
14551 {
14552 struct ipv6_mreq mreq6;
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559   (eval $ac_compile) 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } &&
14566          { ac_try='test -z "$ac_c_werror_flag"
14567                          || test ! -s conftest.err'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; } &&
14573          { ac_try='test -s conftest.$ac_objext'
14574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575   (eval $ac_try) 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; }; then
14579
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_STRUCT_IPV6_MREQ 1
14582 _ACEOF
14583
14584    echo "$as_me:$LINENO: result: yes" >&5
14585 echo "${ECHO_T}yes" >&6
14586 else
14587   echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590 echo "$as_me:$LINENO: result: no" >&5
14591 echo "${ECHO_T}no" >&6
14592 fi
14593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594
14595 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14596 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603 #include <netinet/in.h>
14604 int
14605 main ()
14606 {
14607 struct sockaddr_in6 addr6;
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614   (eval $ac_compile) 2>conftest.er1
14615   ac_status=$?
14616   grep -v '^ *+' conftest.er1 >conftest.err
14617   rm -f conftest.er1
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } &&
14621          { ac_try='test -z "$ac_c_werror_flag"
14622                          || test ! -s conftest.err'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; } &&
14628          { ac_try='test -s conftest.$ac_objext'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; }; then
14634
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_INET6 1
14637 _ACEOF
14638
14639    echo "$as_me:$LINENO: result: yes" >&5
14640 echo "${ECHO_T}yes" >&6
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 echo "$as_me:$LINENO: result: no" >&5
14646 echo "${ECHO_T}no" >&6
14647 fi
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649
14650 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14651 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658 #define _POSIX_PII_SOCKET
14659 #include <sys/types.h>
14660 #include <sys/socket.h>
14661 int
14662 main ()
14663 {
14664 socklen_t x = 5;
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671   (eval $ac_compile) 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag"
14679                          || test ! -s conftest.err'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; } &&
14685          { ac_try='test -s conftest.$ac_objext'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_SOCKLEN_T 1
14694 _ACEOF
14695
14696    echo "$as_me:$LINENO: result: yes" >&5
14697 echo "${ECHO_T}yes" >&6
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702 echo "$as_me:$LINENO: result: no" >&5
14703 echo "${ECHO_T}no" >&6
14704 fi
14705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14706
14707 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14708 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715 #include <time.h>
14716 int
14717 main ()
14718 {
14719 struct tm tim; tim.tm_gmtoff = 0;
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14726   (eval $ac_compile) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"
14734                          || test ! -s conftest.err'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest.$ac_objext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746
14747 cat >>confdefs.h <<\_ACEOF
14748 #define STRUCT_TM_HAS_GMTOFF 1
14749 _ACEOF
14750
14751    echo "$as_me:$LINENO: result: yes" >&5
14752 echo "${ECHO_T}yes" >&6
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 echo "$as_me:$LINENO: result: no" >&5
14758 echo "${ECHO_T}no" >&6
14759    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14760 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14761                cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767 #include <time.h>
14768 int
14769 main ()
14770 {
14771 void i(){long z2 = 2*timezone;}
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778   (eval $ac_compile) 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -z "$ac_c_werror_flag"
14786                          || test ! -s conftest.err'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; } &&
14792          { ac_try='test -s conftest.$ac_objext'
14793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794   (eval $ac_try) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_TIMEZONE 1
14801 _ACEOF
14802
14803       echo "$as_me:$LINENO: result: yes" >&5
14804 echo "${ECHO_T}yes" >&6
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 echo "$as_me:$LINENO: result: no" >&5
14810 echo "${ECHO_T}no" >&6
14811        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14812 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14813               cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <time.h>
14820 int
14821 main ()
14822 {
14823 long z2 = _timezone;
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830   (eval $ac_compile) 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_c_werror_flag"
14838                          || test ! -s conftest.err'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; } &&
14844          { ac_try='test -s conftest.$ac_objext'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850
14851 cat >>confdefs.h <<\_ACEOF
14852 #define HAVE_UNDERSCORE_TIMEZONE 1
14853 _ACEOF
14854
14855           echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 echo "$as_me:$LINENO: result: no" >&5
14862 echo "${ECHO_T}no" >&6
14863 fi
14864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869
14870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14871 # for constant arguments.  Useless!
14872 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14874 if test "${ac_cv_working_alloca_h+set}" = set; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877   if test x$gcc_no_link = xyes; then
14878   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14880    { (exit 1); exit 1; }; }
14881 fi
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 #include <alloca.h>
14889 int
14890 main ()
14891 {
14892 char *p = (char *) alloca (2 * sizeof (int));
14893   ;
14894   return 0;
14895 }
14896 _ACEOF
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14899   (eval $ac_link) 2>conftest.er1
14900   ac_status=$?
14901   grep -v '^ *+' conftest.er1 >conftest.err
14902   rm -f conftest.er1
14903   cat conftest.err >&5
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); } &&
14906          { ac_try='test -z "$ac_c_werror_flag"
14907                          || test ! -s conftest.err'
14908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909   (eval $ac_try) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; } &&
14913          { ac_try='test -s conftest$ac_exeext'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   ac_cv_working_alloca_h=yes
14920 else
14921   echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ac_cv_working_alloca_h=no
14925 fi
14926 rm -f conftest.err conftest.$ac_objext \
14927       conftest$ac_exeext conftest.$ac_ext
14928 fi
14929 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14930 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14931 if test $ac_cv_working_alloca_h = yes; then
14932
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_ALLOCA_H 1
14935 _ACEOF
14936
14937 fi
14938
14939 echo "$as_me:$LINENO: checking for alloca" >&5
14940 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14941 if test "${ac_cv_func_alloca_works+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   if test x$gcc_no_link = xyes; then
14945   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14947    { (exit 1); exit 1; }; }
14948 fi
14949 cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 #ifdef __GNUC__
14956 # define alloca __builtin_alloca
14957 #else
14958 # ifdef _MSC_VER
14959 #  include <malloc.h>
14960 #  define alloca _alloca
14961 # else
14962 #  if HAVE_ALLOCA_H
14963 #   include <alloca.h>
14964 #  else
14965 #   ifdef _AIX
14966  #pragma alloca
14967 #   else
14968 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14969 char *alloca ();
14970 #    endif
14971 #   endif
14972 #  endif
14973 # endif
14974 #endif
14975
14976 int
14977 main ()
14978 {
14979 char *p = (char *) alloca (1);
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag"
14994                          || test ! -s conftest.err'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; } &&
15000          { ac_try='test -s conftest$ac_exeext'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_cv_func_alloca_works=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_func_alloca_works=no
15012 fi
15013 rm -f conftest.err conftest.$ac_objext \
15014       conftest$ac_exeext conftest.$ac_ext
15015 fi
15016 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15017 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15018
15019 if test $ac_cv_func_alloca_works = yes; then
15020
15021 cat >>confdefs.h <<\_ACEOF
15022 #define HAVE_ALLOCA 1
15023 _ACEOF
15024
15025 else
15026   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15027 # that cause trouble.  Some versions do not even contain alloca or
15028 # contain a buggy version.  If you still want to use their alloca,
15029 # use ar to extract alloca.o from them instead of compiling alloca.c.
15030
15031 ALLOCA=alloca.$ac_objext
15032
15033 cat >>confdefs.h <<\_ACEOF
15034 #define C_ALLOCA 1
15035 _ACEOF
15036
15037
15038 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15039 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15040 if test "${ac_cv_os_cray+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049 #if defined(CRAY) && ! defined(CRAY2)
15050 webecray
15051 #else
15052 wenotbecray
15053 #endif
15054
15055 _ACEOF
15056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15057   $EGREP "webecray" >/dev/null 2>&1; then
15058   ac_cv_os_cray=yes
15059 else
15060   ac_cv_os_cray=no
15061 fi
15062 rm -f conftest*
15063
15064 fi
15065 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15066 echo "${ECHO_T}$ac_cv_os_cray" >&6
15067 if test $ac_cv_os_cray = yes; then
15068   for ac_func in _getb67 GETB67 getb67; do
15069     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15070 echo "$as_me:$LINENO: checking for $ac_func" >&5
15071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15072 if eval "test \"\${$as_ac_var+set}\" = set"; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   if test x$gcc_no_link = xyes; then
15076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15078    { (exit 1); exit 1; }; }
15079 fi
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15088 #define $ac_func innocuous_$ac_func
15089
15090 /* System header to define __stub macros and hopefully few prototypes,
15091     which can conflict with char $ac_func (); below.
15092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15093     <limits.h> exists even on freestanding compilers.  */
15094
15095 #ifdef __STDC__
15096 # include <limits.h>
15097 #else
15098 # include <assert.h>
15099 #endif
15100
15101 #undef $ac_func
15102
15103 /* Override any gcc2 internal prototype to avoid an error.  */
15104 #ifdef __cplusplus
15105 extern "C"
15106 {
15107 #endif
15108 /* We use char because int might match the return type of a gcc2
15109    builtin and then its argument prototype would still apply.  */
15110 char $ac_func ();
15111 /* The GNU C library defines this for functions which it implements
15112     to always fail with ENOSYS.  Some functions are actually named
15113     something starting with __ and the normal name is an alias.  */
15114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15115 choke me
15116 #else
15117 char (*f) () = $ac_func;
15118 #endif
15119 #ifdef __cplusplus
15120 }
15121 #endif
15122
15123 int
15124 main ()
15125 {
15126 return f != $ac_func;
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133   (eval $ac_link) 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -z "$ac_c_werror_flag"
15141                          || test ! -s conftest.err'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; } &&
15147          { ac_try='test -s conftest$ac_exeext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   eval "$as_ac_var=yes"
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 eval "$as_ac_var=no"
15159 fi
15160 rm -f conftest.err conftest.$ac_objext \
15161       conftest$ac_exeext conftest.$ac_ext
15162 fi
15163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15165 if test `eval echo '${'$as_ac_var'}'` = yes; then
15166
15167 cat >>confdefs.h <<_ACEOF
15168 #define CRAY_STACKSEG_END $ac_func
15169 _ACEOF
15170
15171     break
15172 fi
15173
15174   done
15175 fi
15176
15177 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15178 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15179 if test "${ac_cv_c_stack_direction+set}" = set; then
15180   echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182   if test "$cross_compiling" = yes; then
15183   ac_cv_c_stack_direction=0
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 int
15192 find_stack_direction ()
15193 {
15194   static char *addr = 0;
15195   auto char dummy;
15196   if (addr == 0)
15197     {
15198       addr = &dummy;
15199       return find_stack_direction ();
15200     }
15201   else
15202     return (&dummy > addr) ? 1 : -1;
15203 }
15204
15205 int
15206 main ()
15207 {
15208   exit (find_stack_direction () < 0);
15209 }
15210 _ACEOF
15211 rm -f conftest$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213   (eval $ac_link) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; }; then
15222   ac_cv_c_stack_direction=1
15223 else
15224   echo "$as_me: program exited with status $ac_status" >&5
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 ( exit $ac_status )
15229 ac_cv_c_stack_direction=-1
15230 fi
15231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15232 fi
15233 fi
15234 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15235 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15236
15237 cat >>confdefs.h <<_ACEOF
15238 #define STACK_DIRECTION $ac_cv_c_stack_direction
15239 _ACEOF
15240
15241
15242 fi
15243
15244 if test x$gcc_no_link = xyes; then
15245   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15246     ac_cv_func_mmap_fixed_mapped=no
15247   fi
15248 fi
15249 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15250
15251
15252 for ac_header in stdlib.h unistd.h
15253 do
15254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256   echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259   echo $ECHO_N "(cached) $ECHO_C" >&6
15260 fi
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15263 else
15264   # Is the header compilable?
15265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h.  */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h.  */
15273 $ac_includes_default
15274 #include <$ac_header>
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278   (eval $ac_compile) 2>conftest.er1
15279   ac_status=$?
15280   grep -v '^ *+' conftest.er1 >conftest.err
15281   rm -f conftest.er1
15282   cat conftest.err >&5
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } &&
15285          { ac_try='test -z "$ac_c_werror_flag"
15286                          || test ! -s conftest.err'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; } &&
15292          { ac_try='test -s conftest.$ac_objext'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; }; then
15298   ac_header_compiler=yes
15299 else
15300   echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_header_compiler=no
15304 fi
15305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307 echo "${ECHO_T}$ac_header_compiler" >&6
15308
15309 # Is the header present?
15310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h.  */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h.  */
15318 #include <$ac_header>
15319 _ACEOF
15320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } >/dev/null; then
15328   if test -s conftest.err; then
15329     ac_cpp_err=$ac_c_preproc_warn_flag
15330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15331   else
15332     ac_cpp_err=
15333   fi
15334 else
15335   ac_cpp_err=yes
15336 fi
15337 if test -z "$ac_cpp_err"; then
15338   ac_header_preproc=yes
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343   ac_header_preproc=no
15344 fi
15345 rm -f conftest.err conftest.$ac_ext
15346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347 echo "${ECHO_T}$ac_header_preproc" >&6
15348
15349 # So?  What about this header?
15350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15351   yes:no: )
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15356     ac_header_preproc=yes
15357     ;;
15358   no:yes:* )
15359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15371     (
15372       cat <<\_ASBOX
15373 ## ---------------------------------- ##
15374 ## Report this to the libjava lists.  ##
15375 ## ---------------------------------- ##
15376 _ASBOX
15377     ) |
15378       sed "s/^/$as_me: WARNING:     /" >&2
15379     ;;
15380 esac
15381 echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384   echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386   eval "$as_ac_Header=\$ac_header_preproc"
15387 fi
15388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15390
15391 fi
15392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15393   cat >>confdefs.h <<_ACEOF
15394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15395 _ACEOF
15396
15397 fi
15398
15399 done
15400
15401
15402 for ac_func in getpagesize
15403 do
15404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   if test x$gcc_no_link = xyes; then
15411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15413    { (exit 1); exit 1; }; }
15414 fi
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15423 #define $ac_func innocuous_$ac_func
15424
15425 /* System header to define __stub macros and hopefully few prototypes,
15426     which can conflict with char $ac_func (); below.
15427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15428     <limits.h> exists even on freestanding compilers.  */
15429
15430 #ifdef __STDC__
15431 # include <limits.h>
15432 #else
15433 # include <assert.h>
15434 #endif
15435
15436 #undef $ac_func
15437
15438 /* Override any gcc2 internal prototype to avoid an error.  */
15439 #ifdef __cplusplus
15440 extern "C"
15441 {
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444    builtin and then its argument prototype would still apply.  */
15445 char $ac_func ();
15446 /* The GNU C library defines this for functions which it implements
15447     to always fail with ENOSYS.  Some functions are actually named
15448     something starting with __ and the normal name is an alias.  */
15449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 choke me
15451 #else
15452 char (*f) () = $ac_func;
15453 #endif
15454 #ifdef __cplusplus
15455 }
15456 #endif
15457
15458 int
15459 main ()
15460 {
15461 return f != $ac_func;
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext conftest$ac_exeext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15468   (eval $ac_link) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_c_werror_flag"
15476                          || test ! -s conftest.err'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; } &&
15482          { ac_try='test -s conftest$ac_exeext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   eval "$as_ac_var=yes"
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 eval "$as_ac_var=no"
15494 fi
15495 rm -f conftest.err conftest.$ac_objext \
15496       conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15500 if test `eval echo '${'$as_ac_var'}'` = yes; then
15501   cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 _ACEOF
15504
15505 fi
15506 done
15507
15508 echo "$as_me:$LINENO: checking for working mmap" >&5
15509 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   if test "$cross_compiling" = yes; then
15514   ac_cv_func_mmap_fixed_mapped=no
15515 else
15516   cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522 $ac_includes_default
15523 /* malloc might have been renamed as rpl_malloc. */
15524 #undef malloc
15525
15526 /* Thanks to Mike Haertel and Jim Avera for this test.
15527    Here is a matrix of mmap possibilities:
15528         mmap private not fixed
15529         mmap private fixed at somewhere currently unmapped
15530         mmap private fixed at somewhere already mapped
15531         mmap shared not fixed
15532         mmap shared fixed at somewhere currently unmapped
15533         mmap shared fixed at somewhere already mapped
15534    For private mappings, we should verify that changes cannot be read()
15535    back from the file, nor mmap's back from the file at a different
15536    address.  (There have been systems where private was not correctly
15537    implemented like the infamous i386 svr4.0, and systems where the
15538    VM page cache was not coherent with the file system buffer cache
15539    like early versions of FreeBSD and possibly contemporary NetBSD.)
15540    For shared mappings, we should conversely verify that changes get
15541    propagated back to all the places they're supposed to be.
15542
15543    Grep wants private fixed already mapped.
15544    The main things grep needs to know about mmap are:
15545    * does it exist and is it safe to write into the mmap'd area
15546    * how to use it (BSD variants)  */
15547
15548 #include <fcntl.h>
15549 #include <sys/mman.h>
15550
15551 #if !STDC_HEADERS && !HAVE_STDLIB_H
15552 char *malloc ();
15553 #endif
15554
15555 /* This mess was copied from the GNU getpagesize.h.  */
15556 #if !HAVE_GETPAGESIZE
15557 /* Assume that all systems that can run configure have sys/param.h.  */
15558 # if !HAVE_SYS_PARAM_H
15559 #  define HAVE_SYS_PARAM_H 1
15560 # endif
15561
15562 # ifdef _SC_PAGESIZE
15563 #  define getpagesize() sysconf(_SC_PAGESIZE)
15564 # else /* no _SC_PAGESIZE */
15565 #  if HAVE_SYS_PARAM_H
15566 #   include <sys/param.h>
15567 #   ifdef EXEC_PAGESIZE
15568 #    define getpagesize() EXEC_PAGESIZE
15569 #   else /* no EXEC_PAGESIZE */
15570 #    ifdef NBPG
15571 #     define getpagesize() NBPG * CLSIZE
15572 #     ifndef CLSIZE
15573 #      define CLSIZE 1
15574 #     endif /* no CLSIZE */
15575 #    else /* no NBPG */
15576 #     ifdef NBPC
15577 #      define getpagesize() NBPC
15578 #     else /* no NBPC */
15579 #      ifdef PAGESIZE
15580 #       define getpagesize() PAGESIZE
15581 #      endif /* PAGESIZE */
15582 #     endif /* no NBPC */
15583 #    endif /* no NBPG */
15584 #   endif /* no EXEC_PAGESIZE */
15585 #  else /* no HAVE_SYS_PARAM_H */
15586 #   define getpagesize() 8192   /* punt totally */
15587 #  endif /* no HAVE_SYS_PARAM_H */
15588 # endif /* no _SC_PAGESIZE */
15589
15590 #endif /* no HAVE_GETPAGESIZE */
15591
15592 int
15593 main ()
15594 {
15595   char *data, *data2, *data3;
15596   int i, pagesize;
15597   int fd;
15598
15599   pagesize = getpagesize ();
15600
15601   /* First, make a file with some known garbage in it. */
15602   data = (char *) malloc (pagesize);
15603   if (!data)
15604     exit (1);
15605   for (i = 0; i < pagesize; ++i)
15606     *(data + i) = rand ();
15607   umask (0);
15608   fd = creat ("conftest.mmap", 0600);
15609   if (fd < 0)
15610     exit (1);
15611   if (write (fd, data, pagesize) != pagesize)
15612     exit (1);
15613   close (fd);
15614
15615   /* Next, try to mmap the file at a fixed address which already has
15616      something else allocated at it.  If we can, also make sure that
15617      we see the same garbage.  */
15618   fd = open ("conftest.mmap", O_RDWR);
15619   if (fd < 0)
15620     exit (1);
15621   data2 = (char *) malloc (2 * pagesize);
15622   if (!data2)
15623     exit (1);
15624   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15625   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15626                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15627     exit (1);
15628   for (i = 0; i < pagesize; ++i)
15629     if (*(data + i) != *(data2 + i))
15630       exit (1);
15631
15632   /* Finally, make sure that changes to the mapped area do not
15633      percolate back to the file as seen by read().  (This is a bug on
15634      some variants of i386 svr4.0.)  */
15635   for (i = 0; i < pagesize; ++i)
15636     *(data2 + i) = *(data2 + i) + 1;
15637   data3 = (char *) malloc (pagesize);
15638   if (!data3)
15639     exit (1);
15640   if (read (fd, data3, pagesize) != pagesize)
15641     exit (1);
15642   for (i = 0; i < pagesize; ++i)
15643     if (*(data + i) != *(data3 + i))
15644       exit (1);
15645   close (fd);
15646   exit (0);
15647 }
15648 _ACEOF
15649 rm -f conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651   (eval $ac_link) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656   (eval $ac_try) 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; }; then
15660   ac_cv_func_mmap_fixed_mapped=yes
15661 else
15662   echo "$as_me: program exited with status $ac_status" >&5
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 ( exit $ac_status )
15667 ac_cv_func_mmap_fixed_mapped=no
15668 fi
15669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15670 fi
15671 fi
15672 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15673 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15674 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15675
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_MMAP 1
15678 _ACEOF
15679
15680 fi
15681 rm -f conftest.mmap
15682
15683 fi
15684
15685 for ac_prog in perl
15686 do
15687   # Extract the first word of "$ac_prog", so it can be a program name with args.
15688 set dummy $ac_prog; ac_word=$2
15689 echo "$as_me:$LINENO: checking for $ac_word" >&5
15690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15691 if test "${ac_cv_prog_PERL+set}" = set; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694   if test -n "$PERL"; then
15695   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15696 else
15697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15698 for as_dir in $PATH
15699 do
15700   IFS=$as_save_IFS
15701   test -z "$as_dir" && as_dir=.
15702   for ac_exec_ext in '' $ac_executable_extensions; do
15703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15704     ac_cv_prog_PERL="$ac_prog"
15705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15706     break 2
15707   fi
15708 done
15709 done
15710
15711 fi
15712 fi
15713 PERL=$ac_cv_prog_PERL
15714 if test -n "$PERL"; then
15715   echo "$as_me:$LINENO: result: $PERL" >&5
15716 echo "${ECHO_T}$PERL" >&6
15717 else
15718   echo "$as_me:$LINENO: result: no" >&5
15719 echo "${ECHO_T}no" >&6
15720 fi
15721
15722   test -n "$PERL" && break
15723 done
15724 test -n "$PERL" || PERL="false"
15725
15726
15727 SYSDEP_SOURCES=
15728 SIGNAL_HANDLER_AUX=
15729
15730 case "${host}" in
15731  i?86-*-linux*)
15732     SIGNAL_HANDLER=include/i386-signal.h
15733     ;;
15734  sparc*-sun-solaris*)
15735     SIGNAL_HANDLER=include/sparc-signal.h
15736     ;;
15737 # ia64-*)
15738 #    SYSDEP_SOURCES=sysdep/ia64.c
15739 #    test -d sysdep || mkdir sysdep
15740 #    ;;
15741  hppa*-*-linux*)
15742     SIGNAL_HANDLER=include/pa-signal.h
15743     ;;
15744  ia64-*-linux*)
15745     SIGNAL_HANDLER=include/dwarf2-signal.h
15746     ;;
15747  powerpc*-*-linux*)
15748     SIGNAL_HANDLER=include/powerpc-signal.h
15749     ;;
15750  alpha*-*-linux*)
15751     SIGNAL_HANDLER=include/dwarf2-signal.h
15752     ;;
15753  s390*-*-linux*)
15754     SIGNAL_HANDLER=include/s390-signal.h
15755     ;;
15756  x86_64*-*-linux*)
15757     SIGNAL_HANDLER=include/x86_64-signal.h
15758     SIGNAL_HANDLER_AUX=include/i386-signal.h
15759     ;;
15760  sparc*-*-linux*)
15761     SIGNAL_HANDLER=include/dwarf2-signal.h
15762     ;;
15763  sh*-*-linux*)
15764     SIGNAL_HANDLER=include/sh-signal.h
15765     ;;
15766  *mingw*)
15767     SIGNAL_HANDLER=include/win32-signal.h
15768     ;;
15769  mips*-*-linux*)
15770     SIGNAL_HANDLER=include/mips-signal.h
15771     ;;
15772  *-*-darwin*)
15773     SIGNAL_HANDLER=include/darwin-signal.h
15774     ;;
15775  *)
15776     SIGNAL_HANDLER=include/default-signal.h
15777     ;;
15778 esac
15779
15780 # If we're using sjlj exceptions, forget what we just learned.
15781 if test "$enable_sjlj_exceptions" = yes; then
15782    SIGNAL_HANDLER=include/default-signal.h
15783    SIGNAL_HANDLER_AUX=
15784 fi
15785
15786 # Define here any compiler flags that you need in order to make backtrace() work.
15787 BACKTRACESPEC=
15788 case "${host}" in
15789  x86_64*-*-linux*|i?86-*)
15790     BACKTRACESPEC=-fno-omit-frame-pointer
15791     ;;
15792 esac
15793
15794
15795
15796
15797 if test -z "$SIGNAL_HANDLER_AUX"; then
15798   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15799 fi
15800
15801                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15802
15803
15804 if test "${multilib}" = "yes"; then
15805   multilib_arg="--enable-multilib"
15806 else
15807   multilib_arg=
15808 fi
15809
15810
15811
15812 here=`${PWDCMD-pwd}`
15813
15814
15815 # We get this from the environment.
15816
15817
15818                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15819
15820
15821           ac_config_commands="$ac_config_commands default"
15822
15823
15824 cat >confcache <<\_ACEOF
15825 # This file is a shell script that caches the results of configure
15826 # tests run on this system so they can be shared between configure
15827 # scripts and configure runs, see configure's option --config-cache.
15828 # It is not useful on other systems.  If it contains results you don't
15829 # want to keep, you may remove or edit it.
15830 #
15831 # config.status only pays attention to the cache file if you give it
15832 # the --recheck option to rerun configure.
15833 #
15834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15836 # following values.
15837
15838 _ACEOF
15839
15840 # The following way of writing the cache mishandles newlines in values,
15841 # but we know of no workaround that is simple, portable, and efficient.
15842 # So, don't put newlines in cache variables' values.
15843 # Ultrix sh set writes to stderr and can't be redirected directly,
15844 # and sets the high bit in the cache file unless we assign to the vars.
15845 {
15846   (set) 2>&1 |
15847     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15848     *ac_space=\ *)
15849       # `set' does not quote correctly, so add quotes (double-quote
15850       # substitution turns \\\\ into \\, and sed turns \\ into \).
15851       sed -n \
15852         "s/'/'\\\\''/g;
15853           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15854       ;;
15855     *)
15856       # `set' quotes correctly as required by POSIX, so do not add quotes.
15857       sed -n \
15858         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15859       ;;
15860     esac;
15861 } |
15862   sed '
15863      t clear
15864      : clear
15865      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15866      t end
15867      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15868      : end' >>confcache
15869 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15870   if test -w $cache_file; then
15871     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15872     cat confcache >$cache_file
15873   else
15874     echo "not updating unwritable cache $cache_file"
15875   fi
15876 fi
15877 rm -f confcache
15878
15879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15880 # Let make expand exec_prefix.
15881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15882
15883 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15884 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15885 # trailing colons and then remove the whole line if VPATH becomes empty
15886 # (actually we leave an empty line to preserve line numbers).
15887 if test "x$srcdir" = x.; then
15888   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15889 s/:*\$(srcdir):*/:/;
15890 s/:*\${srcdir}:*/:/;
15891 s/:*@srcdir@:*/:/;
15892 s/^\([^=]*=[     ]*\):*/\1/;
15893 s/:*$//;
15894 s/^[^=]*=[       ]*$//;
15895 }'
15896 fi
15897
15898 DEFS=-DHAVE_CONFIG_H
15899
15900 ac_libobjs=
15901 ac_ltlibobjs=
15902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15903   # 1. Remove the extension, and $U if already installed.
15904   ac_i=`echo "$ac_i" |
15905          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15906   # 2. Add them.
15907   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15908   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15909 done
15910 LIBOBJS=$ac_libobjs
15911
15912 LTLIBOBJS=$ac_ltlibobjs
15913
15914
15915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15916   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&5
15918 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15919 Usually this means the macro was only invoked conditionally." >&2;}
15920    { (exit 1); exit 1; }; }
15921 fi
15922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15923   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&5
15925 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15926 Usually this means the macro was only invoked conditionally." >&2;}
15927    { (exit 1); exit 1; }; }
15928 fi
15929 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15930   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&5
15932 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15933 Usually this means the macro was only invoked conditionally." >&2;}
15934    { (exit 1); exit 1; }; }
15935 fi
15936 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15937   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&5
15939 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15940 Usually this means the macro was only invoked conditionally." >&2;}
15941    { (exit 1); exit 1; }; }
15942 fi
15943 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15944   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&5
15946 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15947 Usually this means the macro was only invoked conditionally." >&2;}
15948    { (exit 1); exit 1; }; }
15949 fi
15950 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15951   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&5
15953 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&2;}
15955    { (exit 1); exit 1; }; }
15956 fi
15957 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15958   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&5
15960 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&2;}
15962    { (exit 1); exit 1; }; }
15963 fi
15964 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15965   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&5
15967 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&2;}
15969    { (exit 1); exit 1; }; }
15970 fi
15971 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15972   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&5
15974 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&2;}
15976    { (exit 1); exit 1; }; }
15977 fi
15978 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15979   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&5
15981 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&2;}
15983    { (exit 1); exit 1; }; }
15984 fi
15985 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15986   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&5
15988 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&2;}
15990    { (exit 1); exit 1; }; }
15991 fi
15992 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15993   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&5
15995 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&2;}
15997    { (exit 1); exit 1; }; }
15998 fi
15999 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16000   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16001 Usually this means the macro was only invoked conditionally." >&5
16002 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16003 Usually this means the macro was only invoked conditionally." >&2;}
16004    { (exit 1); exit 1; }; }
16005 fi
16006 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16007   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16008 Usually this means the macro was only invoked conditionally." >&5
16009 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16010 Usually this means the macro was only invoked conditionally." >&2;}
16011    { (exit 1); exit 1; }; }
16012 fi
16013 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16014   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16015 Usually this means the macro was only invoked conditionally." >&5
16016 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16017 Usually this means the macro was only invoked conditionally." >&2;}
16018    { (exit 1); exit 1; }; }
16019 fi
16020 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16021   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16022 Usually this means the macro was only invoked conditionally." >&5
16023 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16024 Usually this means the macro was only invoked conditionally." >&2;}
16025    { (exit 1); exit 1; }; }
16026 fi
16027 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16028   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16029 Usually this means the macro was only invoked conditionally." >&5
16030 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16031 Usually this means the macro was only invoked conditionally." >&2;}
16032    { (exit 1); exit 1; }; }
16033 fi
16034 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16035   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16036 Usually this means the macro was only invoked conditionally." >&5
16037 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16038 Usually this means the macro was only invoked conditionally." >&2;}
16039    { (exit 1); exit 1; }; }
16040 fi
16041 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16042   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16043 Usually this means the macro was only invoked conditionally." >&5
16044 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16045 Usually this means the macro was only invoked conditionally." >&2;}
16046    { (exit 1); exit 1; }; }
16047 fi
16048 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16049   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16050 Usually this means the macro was only invoked conditionally." >&5
16051 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16052 Usually this means the macro was only invoked conditionally." >&2;}
16053    { (exit 1); exit 1; }; }
16054 fi
16055 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16056   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16057 Usually this means the macro was only invoked conditionally." >&5
16058 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16059 Usually this means the macro was only invoked conditionally." >&2;}
16060    { (exit 1); exit 1; }; }
16061 fi
16062 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16063   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16064 Usually this means the macro was only invoked conditionally." >&5
16065 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16066 Usually this means the macro was only invoked conditionally." >&2;}
16067    { (exit 1); exit 1; }; }
16068 fi
16069 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16070   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16071 Usually this means the macro was only invoked conditionally." >&5
16072 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16073 Usually this means the macro was only invoked conditionally." >&2;}
16074    { (exit 1); exit 1; }; }
16075 fi
16076 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16077   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16078 Usually this means the macro was only invoked conditionally." >&5
16079 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16080 Usually this means the macro was only invoked conditionally." >&2;}
16081    { (exit 1); exit 1; }; }
16082 fi
16083
16084 : ${CONFIG_STATUS=./config.status}
16085 ac_clean_files_save=$ac_clean_files
16086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16087 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16088 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16089 cat >$CONFIG_STATUS <<_ACEOF
16090 #! $SHELL
16091 # Generated by $as_me.
16092 # Run this file to recreate the current configuration.
16093 # Compiler output produced by configure, useful for debugging
16094 # configure, is in config.log if it exists.
16095
16096 debug=false
16097 ac_cs_recheck=false
16098 ac_cs_silent=false
16099 SHELL=\${CONFIG_SHELL-$SHELL}
16100 _ACEOF
16101
16102 cat >>$CONFIG_STATUS <<\_ACEOF
16103 ## --------------------- ##
16104 ## M4sh Initialization.  ##
16105 ## --------------------- ##
16106
16107 # Be Bourne compatible
16108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16109   emulate sh
16110   NULLCMD=:
16111   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16112   # is contrary to our usage.  Disable this feature.
16113   alias -g '${1+"$@"}'='"$@"'
16114 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16115   set -o posix
16116 fi
16117 DUALCASE=1; export DUALCASE # for MKS sh
16118
16119 # Support unset when possible.
16120 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16121   as_unset=unset
16122 else
16123   as_unset=false
16124 fi
16125
16126
16127 # Work around bugs in pre-3.0 UWIN ksh.
16128 $as_unset ENV MAIL MAILPATH
16129 PS1='$ '
16130 PS2='> '
16131 PS4='+ '
16132
16133 # NLS nuisances.
16134 for as_var in \
16135   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16136   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16137   LC_TELEPHONE LC_TIME
16138 do
16139   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16140     eval $as_var=C; export $as_var
16141   else
16142     $as_unset $as_var
16143   fi
16144 done
16145
16146 # Required to use basename.
16147 if expr a : '\(a\)' >/dev/null 2>&1; then
16148   as_expr=expr
16149 else
16150   as_expr=false
16151 fi
16152
16153 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16154   as_basename=basename
16155 else
16156   as_basename=false
16157 fi
16158
16159
16160 # Name of the executable.
16161 as_me=`$as_basename "$0" ||
16162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16163          X"$0" : 'X\(//\)$' \| \
16164          X"$0" : 'X\(/\)$' \| \
16165          .     : '\(.\)' 2>/dev/null ||
16166 echo X/"$0" |
16167     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16168           /^X\/\(\/\/\)$/{ s//\1/; q; }
16169           /^X\/\(\/\).*/{ s//\1/; q; }
16170           s/.*/./; q'`
16171
16172
16173 # PATH needs CR, and LINENO needs CR and PATH.
16174 # Avoid depending upon Character Ranges.
16175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16178 as_cr_digits='0123456789'
16179 as_cr_alnum=$as_cr_Letters$as_cr_digits
16180
16181 # The user is always right.
16182 if test "${PATH_SEPARATOR+set}" != set; then
16183   echo "#! /bin/sh" >conf$$.sh
16184   echo  "exit 0"   >>conf$$.sh
16185   chmod +x conf$$.sh
16186   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16187     PATH_SEPARATOR=';'
16188   else
16189     PATH_SEPARATOR=:
16190   fi
16191   rm -f conf$$.sh
16192 fi
16193
16194
16195   as_lineno_1=$LINENO
16196   as_lineno_2=$LINENO
16197   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16198   test "x$as_lineno_1" != "x$as_lineno_2" &&
16199   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16200   # Find who we are.  Look in the path if we contain no path at all
16201   # relative or not.
16202   case $0 in
16203     *[\\/]* ) as_myself=$0 ;;
16204     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16206 do
16207   IFS=$as_save_IFS
16208   test -z "$as_dir" && as_dir=.
16209   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16210 done
16211
16212        ;;
16213   esac
16214   # We did not find ourselves, most probably we were run as `sh COMMAND'
16215   # in which case we are not to be found in the path.
16216   if test "x$as_myself" = x; then
16217     as_myself=$0
16218   fi
16219   if test ! -f "$as_myself"; then
16220     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16221 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16222    { (exit 1); exit 1; }; }
16223   fi
16224   case $CONFIG_SHELL in
16225   '')
16226     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16228 do
16229   IFS=$as_save_IFS
16230   test -z "$as_dir" && as_dir=.
16231   for as_base in sh bash ksh sh5; do
16232          case $as_dir in
16233          /*)
16234            if ("$as_dir/$as_base" -c '
16235   as_lineno_1=$LINENO
16236   as_lineno_2=$LINENO
16237   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16238   test "x$as_lineno_1" != "x$as_lineno_2" &&
16239   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16240              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16241              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16242              CONFIG_SHELL=$as_dir/$as_base
16243              export CONFIG_SHELL
16244              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16245            fi;;
16246          esac
16247        done
16248 done
16249 ;;
16250   esac
16251
16252   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16253   # uniformly replaced by the line number.  The first 'sed' inserts a
16254   # line-number line before each line; the second 'sed' does the real
16255   # work.  The second script uses 'N' to pair each line-number line
16256   # with the numbered line, and appends trailing '-' during
16257   # substitution so that $LINENO is not a special case at line end.
16258   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16259   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16260   sed '=' <$as_myself |
16261     sed '
16262       N
16263       s,$,-,
16264       : loop
16265       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16266       t loop
16267       s,-$,,
16268       s,^['$as_cr_digits']*\n,,
16269     ' >$as_me.lineno &&
16270   chmod +x $as_me.lineno ||
16271     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16272 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16273    { (exit 1); exit 1; }; }
16274
16275   # Don't try to exec as it changes $[0], causing all sort of problems
16276   # (the dirname of $[0] is not the place where we might find the
16277   # original and so on.  Autoconf is especially sensible to this).
16278   . ./$as_me.lineno
16279   # Exit status is that of the last command.
16280   exit
16281 }
16282
16283
16284 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16285   *c*,-n*) ECHO_N= ECHO_C='
16286 ' ECHO_T='      ' ;;
16287   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16288   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16289 esac
16290
16291 if expr a : '\(a\)' >/dev/null 2>&1; then
16292   as_expr=expr
16293 else
16294   as_expr=false
16295 fi
16296
16297 rm -f conf$$ conf$$.exe conf$$.file
16298 echo >conf$$.file
16299 if ln -s conf$$.file conf$$ 2>/dev/null; then
16300   # We could just check for DJGPP; but this test a) works b) is more generic
16301   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16302   if test -f conf$$.exe; then
16303     # Don't use ln at all; we don't have any links
16304     as_ln_s='cp -p'
16305   else
16306     as_ln_s='ln -s'
16307   fi
16308 elif ln conf$$.file conf$$ 2>/dev/null; then
16309   as_ln_s=ln
16310 else
16311   as_ln_s='cp -p'
16312 fi
16313 rm -f conf$$ conf$$.exe conf$$.file
16314
16315 if mkdir -p . 2>/dev/null; then
16316   as_mkdir_p=:
16317 else
16318   test -d ./-p && rmdir ./-p
16319   as_mkdir_p=false
16320 fi
16321
16322 as_executable_p="test -f"
16323
16324 # Sed expression to map a string onto a valid CPP name.
16325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16326
16327 # Sed expression to map a string onto a valid variable name.
16328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16329
16330
16331 # IFS
16332 # We need space, tab and new line, in precisely that order.
16333 as_nl='
16334 '
16335 IFS="   $as_nl"
16336
16337 # CDPATH.
16338 $as_unset CDPATH
16339
16340 exec 6>&1
16341
16342 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16343 # report actual input values of CONFIG_FILES etc. instead of their
16344 # values after options handling.  Logging --version etc. is OK.
16345 exec 5>>config.log
16346 {
16347   echo
16348   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16349 ## Running $as_me. ##
16350 _ASBOX
16351 } >&5
16352 cat >&5 <<_CSEOF
16353
16354 This file was extended by libjava $as_me version-unused, which was
16355 generated by GNU Autoconf 2.59.  Invocation command line was
16356
16357   CONFIG_FILES    = $CONFIG_FILES
16358   CONFIG_HEADERS  = $CONFIG_HEADERS
16359   CONFIG_LINKS    = $CONFIG_LINKS
16360   CONFIG_COMMANDS = $CONFIG_COMMANDS
16361   $ $0 $@
16362
16363 _CSEOF
16364 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16365 echo >&5
16366 _ACEOF
16367
16368 # Files that config.status was made for.
16369 if test -n "$ac_config_files"; then
16370   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16371 fi
16372
16373 if test -n "$ac_config_headers"; then
16374   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16375 fi
16376
16377 if test -n "$ac_config_links"; then
16378   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16379 fi
16380
16381 if test -n "$ac_config_commands"; then
16382   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16383 fi
16384
16385 cat >>$CONFIG_STATUS <<\_ACEOF
16386
16387 ac_cs_usage="\
16388 \`$as_me' instantiates files from templates according to the
16389 current configuration.
16390
16391 Usage: $0 [OPTIONS] [FILE]...
16392
16393   -h, --help       print this help, then exit
16394   -V, --version    print version number, then exit
16395   -q, --quiet      do not print progress messages
16396   -d, --debug      don't remove temporary files
16397       --recheck    update $as_me by reconfiguring in the same conditions
16398   --file=FILE[:TEMPLATE]
16399                    instantiate the configuration file FILE
16400   --header=FILE[:TEMPLATE]
16401                    instantiate the configuration header FILE
16402
16403 Configuration files:
16404 $config_files
16405
16406 Configuration headers:
16407 $config_headers
16408
16409 Configuration links:
16410 $config_links
16411
16412 Configuration commands:
16413 $config_commands
16414
16415 Report bugs to <bug-autoconf@gnu.org>."
16416 _ACEOF
16417
16418 cat >>$CONFIG_STATUS <<_ACEOF
16419 ac_cs_version="\\
16420 libjava config.status version-unused
16421 configured by $0, generated by GNU Autoconf 2.59,
16422   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16423
16424 Copyright (C) 2003 Free Software Foundation, Inc.
16425 This config.status script is free software; the Free Software Foundation
16426 gives unlimited permission to copy, distribute and modify it."
16427 srcdir=$srcdir
16428 INSTALL="$INSTALL"
16429 _ACEOF
16430
16431 cat >>$CONFIG_STATUS <<\_ACEOF
16432 # If no file are specified by the user, then we need to provide default
16433 # value.  By we need to know if files were specified by the user.
16434 ac_need_defaults=:
16435 while test $# != 0
16436 do
16437   case $1 in
16438   --*=*)
16439     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16440     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16441     ac_shift=:
16442     ;;
16443   -*)
16444     ac_option=$1
16445     ac_optarg=$2
16446     ac_shift=shift
16447     ;;
16448   *) # This is not an option, so the user has probably given explicit
16449      # arguments.
16450      ac_option=$1
16451      ac_need_defaults=false;;
16452   esac
16453
16454   case $ac_option in
16455   # Handling of the options.
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16459     ac_cs_recheck=: ;;
16460   --version | --vers* | -V )
16461     echo "$ac_cs_version"; exit 0 ;;
16462   --he | --h)
16463     # Conflict between --help and --header
16464     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16465 Try \`$0 --help' for more information." >&5
16466 echo "$as_me: error: ambiguous option: $1
16467 Try \`$0 --help' for more information." >&2;}
16468    { (exit 1); exit 1; }; };;
16469   --help | --hel | -h )
16470     echo "$ac_cs_usage"; exit 0 ;;
16471   --debug | --d* | -d )
16472     debug=: ;;
16473   --file | --fil | --fi | --f )
16474     $ac_shift
16475     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16476     ac_need_defaults=false;;
16477   --header | --heade | --head | --hea )
16478     $ac_shift
16479     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16480     ac_need_defaults=false;;
16481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16482   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16483     ac_cs_silent=: ;;
16484
16485   # This is an error.
16486   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16487 Try \`$0 --help' for more information." >&5
16488 echo "$as_me: error: unrecognized option: $1
16489 Try \`$0 --help' for more information." >&2;}
16490    { (exit 1); exit 1; }; } ;;
16491
16492   *) ac_config_targets="$ac_config_targets $1" ;;
16493
16494   esac
16495   shift
16496 done
16497
16498 ac_configure_extra_args=
16499
16500 if $ac_cs_silent; then
16501   exec 6>/dev/null
16502   ac_configure_extra_args="$ac_configure_extra_args --silent"
16503 fi
16504
16505 _ACEOF
16506 cat >>$CONFIG_STATUS <<_ACEOF
16507 if \$ac_cs_recheck; then
16508   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16509   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16510 fi
16511
16512 _ACEOF
16513
16514 cat >>$CONFIG_STATUS <<_ACEOF
16515 #
16516 # INIT-COMMANDS section.
16517 #
16518
16519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16520 srcdir=${srcdir}
16521 host=${host}
16522 target=${target}
16523 with_multisubdir=${with_multisubdir}
16524 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16525 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16526 libgcj_basedir=${libgcj_basedir}
16527 CC="${CC}"
16528 CXX="${CXX}"
16529 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16530
16531
16532 _ACEOF
16533
16534
16535
16536 cat >>$CONFIG_STATUS <<\_ACEOF
16537 for ac_config_target in $ac_config_targets
16538 do
16539   case "$ac_config_target" in
16540   # Handling of arguments.
16541   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16542   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16543   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16544   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16545   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16546   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16547   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16548   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16549   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16550   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16551   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16552   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16553   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16554   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16555   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16556   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16557   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16558   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16559   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16560   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16561   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16562   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16563   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16564   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16565   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16566   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16567   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16568   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16569   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16570   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16571   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16572   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16573   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16575    { (exit 1); exit 1; }; };;
16576   esac
16577 done
16578
16579 # If the user did not use the arguments to specify the items to instantiate,
16580 # then the envvar interface is used.  Set only those that are not.
16581 # We use the long form for the default assignment because of an extremely
16582 # bizarre bug on SunOS 4.1.3.
16583 if $ac_need_defaults; then
16584   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16585   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16586   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16587   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16588 fi
16589
16590 # Have a temporary directory for convenience.  Make it in the build tree
16591 # simply because there is no reason to put it here, and in addition,
16592 # creating and moving files from /tmp can sometimes cause problems.
16593 # Create a temporary directory, and hook for its removal unless debugging.
16594 $debug ||
16595 {
16596   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16597   trap '{ (exit 1); exit 1; }' 1 2 13 15
16598 }
16599
16600 # Create a (secure) tmp directory for tmp files.
16601
16602 {
16603   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16604   test -n "$tmp" && test -d "$tmp"
16605 }  ||
16606 {
16607   tmp=./confstat$$-$RANDOM
16608   (umask 077 && mkdir $tmp)
16609 } ||
16610 {
16611    echo "$me: cannot create a temporary directory in ." >&2
16612    { (exit 1); exit 1; }
16613 }
16614
16615 _ACEOF
16616
16617 cat >>$CONFIG_STATUS <<_ACEOF
16618
16619 #
16620 # CONFIG_FILES section.
16621 #
16622
16623 # No need to generate the scripts if there are no CONFIG_FILES.
16624 # This happens for instance when ./config.status config.h
16625 if test -n "\$CONFIG_FILES"; then
16626   # Protect against being on the right side of a sed subst in config.status.
16627   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16628    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16629 s,@SHELL@,$SHELL,;t t
16630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16636 s,@exec_prefix@,$exec_prefix,;t t
16637 s,@prefix@,$prefix,;t t
16638 s,@program_transform_name@,$program_transform_name,;t t
16639 s,@bindir@,$bindir,;t t
16640 s,@sbindir@,$sbindir,;t t
16641 s,@libexecdir@,$libexecdir,;t t
16642 s,@datadir@,$datadir,;t t
16643 s,@sysconfdir@,$sysconfdir,;t t
16644 s,@sharedstatedir@,$sharedstatedir,;t t
16645 s,@localstatedir@,$localstatedir,;t t
16646 s,@libdir@,$libdir,;t t
16647 s,@includedir@,$includedir,;t t
16648 s,@oldincludedir@,$oldincludedir,;t t
16649 s,@infodir@,$infodir,;t t
16650 s,@mandir@,$mandir,;t t
16651 s,@build_alias@,$build_alias,;t t
16652 s,@host_alias@,$host_alias,;t t
16653 s,@target_alias@,$target_alias,;t t
16654 s,@DEFS@,$DEFS,;t t
16655 s,@ECHO_C@,$ECHO_C,;t t
16656 s,@ECHO_N@,$ECHO_N,;t t
16657 s,@ECHO_T@,$ECHO_T,;t t
16658 s,@LIBS@,$LIBS,;t t
16659 s,@build@,$build,;t t
16660 s,@build_cpu@,$build_cpu,;t t
16661 s,@build_vendor@,$build_vendor,;t t
16662 s,@build_os@,$build_os,;t t
16663 s,@build_subdir@,$build_subdir,;t t
16664 s,@host_subdir@,$host_subdir,;t t
16665 s,@target_subdir@,$target_subdir,;t t
16666 s,@libgcj_basedir@,$libgcj_basedir,;t t
16667 s,@host@,$host,;t t
16668 s,@host_cpu@,$host_cpu,;t t
16669 s,@host_vendor@,$host_vendor,;t t
16670 s,@host_os@,$host_os,;t t
16671 s,@target@,$target,;t t
16672 s,@target_cpu@,$target_cpu,;t t
16673 s,@target_vendor@,$target_vendor,;t t
16674 s,@target_os@,$target_os,;t t
16675 s,@target_noncanonical@,$target_noncanonical,;t t
16676 s,@LN_S@,$LN_S,;t t
16677 s,@mkinstalldirs@,$mkinstalldirs,;t t
16678 s,@CC@,$CC,;t t
16679 s,@ac_ct_CC@,$ac_ct_CC,;t t
16680 s,@EXEEXT@,$EXEEXT,;t t
16681 s,@OBJEXT@,$OBJEXT,;t t
16682 s,@CXX@,$CXX,;t t
16683 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16684 s,@CFLAGS@,$CFLAGS,;t t
16685 s,@CXXFLAGS@,$CXXFLAGS,;t t
16686 s,@LDFLAGS@,$LDFLAGS,;t t
16687 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16688 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16689 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16690 s,@CYGPATH_W@,$CYGPATH_W,;t t
16691 s,@PACKAGE@,$PACKAGE,;t t
16692 s,@VERSION@,$VERSION,;t t
16693 s,@ACLOCAL@,$ACLOCAL,;t t
16694 s,@AUTOCONF@,$AUTOCONF,;t t
16695 s,@AUTOMAKE@,$AUTOMAKE,;t t
16696 s,@AUTOHEADER@,$AUTOHEADER,;t t
16697 s,@MAKEINFO@,$MAKEINFO,;t t
16698 s,@install_sh@,$install_sh,;t t
16699 s,@STRIP@,$STRIP,;t t
16700 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16701 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16702 s,@mkdir_p@,$mkdir_p,;t t
16703 s,@AWK@,$AWK,;t t
16704 s,@SET_MAKE@,$SET_MAKE,;t t
16705 s,@am__leading_dot@,$am__leading_dot,;t t
16706 s,@AMTAR@,$AMTAR,;t t
16707 s,@am__tar@,$am__tar,;t t
16708 s,@am__untar@,$am__untar,;t t
16709 s,@DEPDIR@,$DEPDIR,;t t
16710 s,@am__include@,$am__include,;t t
16711 s,@am__quote@,$am__quote,;t t
16712 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16713 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16714 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16715 s,@CCDEPMODE@,$CCDEPMODE,;t t
16716 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16717 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16718 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16719 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16720 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16721 s,@AS@,$AS,;t t
16722 s,@ac_ct_AS@,$ac_ct_AS,;t t
16723 s,@AR@,$AR,;t t
16724 s,@ac_ct_AR@,$ac_ct_AR,;t t
16725 s,@RANLIB@,$RANLIB,;t t
16726 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16727 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16728 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16729 s,@MAINT@,$MAINT,;t t
16730 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16731 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16732 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16733 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16734 s,@INCLTDL@,$INCLTDL,;t t
16735 s,@LIBLTDL@,$LIBLTDL,;t t
16736 s,@DIRLTDL@,$DIRLTDL,;t t
16737 s,@LIBTOOL@,$LIBTOOL,;t t
16738 s,@CXXCPP@,$CXXCPP,;t t
16739 s,@CPPFLAGS@,$CPPFLAGS,;t t
16740 s,@GCJ@,$GCJ,;t t
16741 s,@GCJFLAGS@,$GCJFLAGS,;t t
16742 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16743 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16744 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16745 s,@subdirs@,$subdirs,;t t
16746 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16747 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16748 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16749 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16750 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16751 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16752 s,@JAVA_HOME@,$JAVA_HOME,;t t
16753 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16754 s,@INTERPRETER@,$INTERPRETER,;t t
16755 s,@LIBFFI@,$LIBFFI,;t t
16756 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16757 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16758 s,@CPP@,$CPP,;t t
16759 s,@EGREP@,$EGREP,;t t
16760 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16761 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16762 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16763 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16764 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16765 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16766 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16767 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16768 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16769 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16770 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16771 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16772 s,@X_CFLAGS@,$X_CFLAGS,;t t
16773 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16774 s,@X_LIBS@,$X_LIBS,;t t
16775 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16776 s,@TOOLKIT@,$TOOLKIT,;t t
16777 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16778 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16779 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16780 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16781 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16782 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16783 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16784 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16785 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16786 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16787 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16788 s,@GCLIBS@,$GCLIBS,;t t
16789 s,@GCINCS@,$GCINCS,;t t
16790 s,@GCDEPS@,$GCDEPS,;t t
16791 s,@GCSPEC@,$GCSPEC,;t t
16792 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16793 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16794 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16795 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16796 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16797 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16798 s,@THREADLIBS@,$THREADLIBS,;t t
16799 s,@THREADINCS@,$THREADINCS,;t t
16800 s,@THREADDEPS@,$THREADDEPS,;t t
16801 s,@THREADSPEC@,$THREADSPEC,;t t
16802 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16803 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16804 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16805 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16806 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16807 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16808 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16809 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16810 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16811 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16812 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16813 s,@LIBICONV@,$LIBICONV,;t t
16814 s,@LTLIBICONV@,$LTLIBICONV,;t t
16815 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16816 s,@GTK_LIBS@,$GTK_LIBS,;t t
16817 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16818 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16819 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16820 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16821 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16822 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16823 s,@GCJH@,$GCJH,;t t
16824 s,@ZIP@,$ZIP,;t t
16825 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16826 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16827 s,@ZLIBS@,$ZLIBS,;t t
16828 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16829 s,@ZINCS@,$ZINCS,;t t
16830 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16831 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16832 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16833 s,@IEEESPEC@,$IEEESPEC,;t t
16834 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16835 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16836 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16837 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16838 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16839 s,@toolexecdir@,$toolexecdir,;t t
16840 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16841 s,@toolexeclibdir@,$toolexeclibdir,;t t
16842 s,@GCJVERSION@,$GCJVERSION,;t t
16843 s,@gxx_include_dir@,$gxx_include_dir,;t t
16844 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16845 s,@ALLOCA@,$ALLOCA,;t t
16846 s,@PERL@,$PERL,;t t
16847 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16848 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16849 s,@here@,$here,;t t
16850 s,@LIBOBJS@,$LIBOBJS,;t t
16851 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16852 CEOF
16853
16854 _ACEOF
16855
16856   cat >>$CONFIG_STATUS <<\_ACEOF
16857   # Split the substitutions into bite-sized pieces for seds with
16858   # small command number limits, like on Digital OSF/1 and HP-UX.
16859   ac_max_sed_lines=48
16860   ac_sed_frag=1 # Number of current file.
16861   ac_beg=1 # First line for current file.
16862   ac_end=$ac_max_sed_lines # Line after last line for current file.
16863   ac_more_lines=:
16864   ac_sed_cmds=
16865   while $ac_more_lines; do
16866     if test $ac_beg -gt 1; then
16867       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16868     else
16869       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16870     fi
16871     if test ! -s $tmp/subs.frag; then
16872       ac_more_lines=false
16873     else
16874       # The purpose of the label and of the branching condition is to
16875       # speed up the sed processing (if there are no `@' at all, there
16876       # is no need to browse any of the substitutions).
16877       # These are the two extra sed commands mentioned above.
16878       (echo ':t
16879   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16880       if test -z "$ac_sed_cmds"; then
16881         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16882       else
16883         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16884       fi
16885       ac_sed_frag=`expr $ac_sed_frag + 1`
16886       ac_beg=$ac_end
16887       ac_end=`expr $ac_end + $ac_max_sed_lines`
16888     fi
16889   done
16890   if test -z "$ac_sed_cmds"; then
16891     ac_sed_cmds=cat
16892   fi
16893 fi # test -n "$CONFIG_FILES"
16894
16895 _ACEOF
16896 cat >>$CONFIG_STATUS <<\_ACEOF
16897 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16898   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16899   case $ac_file in
16900   - | *:- | *:-:* ) # input from stdin
16901         cat >$tmp/stdin
16902         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16903         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16904   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16905         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16906   * )   ac_file_in=$ac_file.in ;;
16907   esac
16908
16909   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16910   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912          X"$ac_file" : 'X\(//\)[^/]' \| \
16913          X"$ac_file" : 'X\(//\)$' \| \
16914          X"$ac_file" : 'X\(/\)' \| \
16915          .     : '\(.\)' 2>/dev/null ||
16916 echo X"$ac_file" |
16917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16919           /^X\(\/\/\)$/{ s//\1/; q; }
16920           /^X\(\/\).*/{ s//\1/; q; }
16921           s/.*/./; q'`
16922   { if $as_mkdir_p; then
16923     mkdir -p "$ac_dir"
16924   else
16925     as_dir="$ac_dir"
16926     as_dirs=
16927     while test ! -d "$as_dir"; do
16928       as_dirs="$as_dir $as_dirs"
16929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16931          X"$as_dir" : 'X\(//\)[^/]' \| \
16932          X"$as_dir" : 'X\(//\)$' \| \
16933          X"$as_dir" : 'X\(/\)' \| \
16934          .     : '\(.\)' 2>/dev/null ||
16935 echo X"$as_dir" |
16936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16938           /^X\(\/\/\)$/{ s//\1/; q; }
16939           /^X\(\/\).*/{ s//\1/; q; }
16940           s/.*/./; q'`
16941     done
16942     test ! -n "$as_dirs" || mkdir $as_dirs
16943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16945    { (exit 1); exit 1; }; }; }
16946
16947   ac_builddir=.
16948
16949 if test "$ac_dir" != .; then
16950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16951   # A "../" for each directory in $ac_dir_suffix.
16952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16953 else
16954   ac_dir_suffix= ac_top_builddir=
16955 fi
16956
16957 case $srcdir in
16958   .)  # No --srcdir option.  We are building in place.
16959     ac_srcdir=.
16960     if test -z "$ac_top_builddir"; then
16961        ac_top_srcdir=.
16962     else
16963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16964     fi ;;
16965   [\\/]* | ?:[\\/]* )  # Absolute path.
16966     ac_srcdir=$srcdir$ac_dir_suffix;
16967     ac_top_srcdir=$srcdir ;;
16968   *) # Relative path.
16969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16971 esac
16972
16973 # Do not use `cd foo && pwd` to compute absolute paths, because
16974 # the directories may not exist.
16975 case `pwd` in
16976 .) ac_abs_builddir="$ac_dir";;
16977 *)
16978   case "$ac_dir" in
16979   .) ac_abs_builddir=`pwd`;;
16980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16982   esac;;
16983 esac
16984 case $ac_abs_builddir in
16985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16986 *)
16987   case ${ac_top_builddir}. in
16988   .) ac_abs_top_builddir=$ac_abs_builddir;;
16989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16991   esac;;
16992 esac
16993 case $ac_abs_builddir in
16994 .) ac_abs_srcdir=$ac_srcdir;;
16995 *)
16996   case $ac_srcdir in
16997   .) ac_abs_srcdir=$ac_abs_builddir;;
16998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17000   esac;;
17001 esac
17002 case $ac_abs_builddir in
17003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17004 *)
17005   case $ac_top_srcdir in
17006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17009   esac;;
17010 esac
17011
17012
17013   case $INSTALL in
17014   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17015   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17016   esac
17017
17018   if test x"$ac_file" != x-; then
17019     { echo "$as_me:$LINENO: creating $ac_file" >&5
17020 echo "$as_me: creating $ac_file" >&6;}
17021     rm -f "$ac_file"
17022   fi
17023   # Let's still pretend it is `configure' which instantiates (i.e., don't
17024   # use $as_me), people would be surprised to read:
17025   #    /* config.h.  Generated by config.status.  */
17026   if test x"$ac_file" = x-; then
17027     configure_input=
17028   else
17029     configure_input="$ac_file.  "
17030   fi
17031   configure_input=$configure_input"Generated from `echo $ac_file_in |
17032                                      sed 's,.*/,,'` by configure."
17033
17034   # First look for the input files in the build tree, otherwise in the
17035   # src tree.
17036   ac_file_inputs=`IFS=:
17037     for f in $ac_file_in; do
17038       case $f in
17039       -) echo $tmp/stdin ;;
17040       [\\/$]*)
17041          # Absolute (can't be DOS-style, as IFS=:)
17042          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17043 echo "$as_me: error: cannot find input file: $f" >&2;}
17044    { (exit 1); exit 1; }; }
17045          echo "$f";;
17046       *) # Relative
17047          if test -f "$f"; then
17048            # Build tree
17049            echo "$f"
17050          elif test -f "$srcdir/$f"; then
17051            # Source tree
17052            echo "$srcdir/$f"
17053          else
17054            # /dev/null tree
17055            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17056 echo "$as_me: error: cannot find input file: $f" >&2;}
17057    { (exit 1); exit 1; }; }
17058          fi;;
17059       esac
17060     done` || { (exit 1); exit 1; }
17061 _ACEOF
17062 cat >>$CONFIG_STATUS <<_ACEOF
17063   sed "$ac_vpsub
17064 $extrasub
17065 _ACEOF
17066 cat >>$CONFIG_STATUS <<\_ACEOF
17067 :t
17068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17069 s,@configure_input@,$configure_input,;t t
17070 s,@srcdir@,$ac_srcdir,;t t
17071 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17072 s,@top_srcdir@,$ac_top_srcdir,;t t
17073 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17074 s,@builddir@,$ac_builddir,;t t
17075 s,@abs_builddir@,$ac_abs_builddir,;t t
17076 s,@top_builddir@,$ac_top_builddir,;t t
17077 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17078 s,@INSTALL@,$ac_INSTALL,;t t
17079 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17080   rm -f $tmp/stdin
17081   if test x"$ac_file" != x-; then
17082     mv $tmp/out $ac_file
17083   else
17084     cat $tmp/out
17085     rm -f $tmp/out
17086   fi
17087
17088 done
17089 _ACEOF
17090 cat >>$CONFIG_STATUS <<\_ACEOF
17091
17092 #
17093 # CONFIG_HEADER section.
17094 #
17095
17096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17098 #
17099 # ac_d sets the value in "#define NAME VALUE" lines.
17100 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17101 ac_dB='[         ].*$,\1#\2'
17102 ac_dC=' '
17103 ac_dD=',;t'
17104 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17105 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17106 ac_uB='$,\1#\2define\3'
17107 ac_uC=' '
17108 ac_uD=',;t'
17109
17110 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17111   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17112   case $ac_file in
17113   - | *:- | *:-:* ) # input from stdin
17114         cat >$tmp/stdin
17115         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17116         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17117   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17118         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17119   * )   ac_file_in=$ac_file.in ;;
17120   esac
17121
17122   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17123 echo "$as_me: creating $ac_file" >&6;}
17124
17125   # First look for the input files in the build tree, otherwise in the
17126   # src tree.
17127   ac_file_inputs=`IFS=:
17128     for f in $ac_file_in; do
17129       case $f in
17130       -) echo $tmp/stdin ;;
17131       [\\/$]*)
17132          # Absolute (can't be DOS-style, as IFS=:)
17133          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17134 echo "$as_me: error: cannot find input file: $f" >&2;}
17135    { (exit 1); exit 1; }; }
17136          # Do quote $f, to prevent DOS paths from being IFS'd.
17137          echo "$f";;
17138       *) # Relative
17139          if test -f "$f"; then
17140            # Build tree
17141            echo "$f"
17142          elif test -f "$srcdir/$f"; then
17143            # Source tree
17144            echo "$srcdir/$f"
17145          else
17146            # /dev/null tree
17147            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17148 echo "$as_me: error: cannot find input file: $f" >&2;}
17149    { (exit 1); exit 1; }; }
17150          fi;;
17151       esac
17152     done` || { (exit 1); exit 1; }
17153   # Remove the trailing spaces.
17154   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17155
17156 _ACEOF
17157
17158 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17159 # `conftest.undefs', that substitutes the proper values into
17160 # config.h.in to produce config.h.  The first handles `#define'
17161 # templates, and the second `#undef' templates.
17162 # And first: Protect against being on the right side of a sed subst in
17163 # config.status.  Protect against being in an unquoted here document
17164 # in config.status.
17165 rm -f conftest.defines conftest.undefs
17166 # Using a here document instead of a string reduces the quoting nightmare.
17167 # Putting comments in sed scripts is not portable.
17168 #
17169 # `end' is used to avoid that the second main sed command (meant for
17170 # 0-ary CPP macros) applies to n-ary macro definitions.
17171 # See the Autoconf documentation for `clear'.
17172 cat >confdef2sed.sed <<\_ACEOF
17173 s/[\\&,]/\\&/g
17174 s,[\\$`],\\&,g
17175 t clear
17176 : clear
17177 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17178 t end
17179 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17180 : end
17181 _ACEOF
17182 # If some macros were called several times there might be several times
17183 # the same #defines, which is useless.  Nevertheless, we may not want to
17184 # sort them, since we want the *last* AC-DEFINE to be honored.
17185 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17186 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17187 rm -f confdef2sed.sed
17188
17189 # This sed command replaces #undef with comments.  This is necessary, for
17190 # example, in the case of _POSIX_SOURCE, which is predefined and required
17191 # on some systems where configure will not decide to define it.
17192 cat >>conftest.undefs <<\_ACEOF
17193 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17194 _ACEOF
17195
17196 # Break up conftest.defines because some shells have a limit on the size
17197 # of here documents, and old seds have small limits too (100 cmds).
17198 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17199 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17200 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17201 echo '  :' >>$CONFIG_STATUS
17202 rm -f conftest.tail
17203 while grep . conftest.defines >/dev/null
17204 do
17205   # Write a limited-size here document to $tmp/defines.sed.
17206   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17207   # Speed up: don't consider the non `#define' lines.
17208   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17209   # Work around the forget-to-reset-the-flag bug.
17210   echo 't clr' >>$CONFIG_STATUS
17211   echo ': clr' >>$CONFIG_STATUS
17212   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17213   echo 'CEOF
17214   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17215   rm -f $tmp/in
17216   mv $tmp/out $tmp/in
17217 ' >>$CONFIG_STATUS
17218   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17219   rm -f conftest.defines
17220   mv conftest.tail conftest.defines
17221 done
17222 rm -f conftest.defines
17223 echo '  fi # grep' >>$CONFIG_STATUS
17224 echo >>$CONFIG_STATUS
17225
17226 # Break up conftest.undefs because some shells have a limit on the size
17227 # of here documents, and old seds have small limits too (100 cmds).
17228 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17229 rm -f conftest.tail
17230 while grep . conftest.undefs >/dev/null
17231 do
17232   # Write a limited-size here document to $tmp/undefs.sed.
17233   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17234   # Speed up: don't consider the non `#undef'
17235   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17236   # Work around the forget-to-reset-the-flag bug.
17237   echo 't clr' >>$CONFIG_STATUS
17238   echo ': clr' >>$CONFIG_STATUS
17239   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17240   echo 'CEOF
17241   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17242   rm -f $tmp/in
17243   mv $tmp/out $tmp/in
17244 ' >>$CONFIG_STATUS
17245   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17246   rm -f conftest.undefs
17247   mv conftest.tail conftest.undefs
17248 done
17249 rm -f conftest.undefs
17250
17251 cat >>$CONFIG_STATUS <<\_ACEOF
17252   # Let's still pretend it is `configure' which instantiates (i.e., don't
17253   # use $as_me), people would be surprised to read:
17254   #    /* config.h.  Generated by config.status.  */
17255   if test x"$ac_file" = x-; then
17256     echo "/* Generated by configure.  */" >$tmp/config.h
17257   else
17258     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17259   fi
17260   cat $tmp/in >>$tmp/config.h
17261   rm -f $tmp/in
17262   if test x"$ac_file" != x-; then
17263     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17264       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17265 echo "$as_me: $ac_file is unchanged" >&6;}
17266     else
17267       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17269          X"$ac_file" : 'X\(//\)[^/]' \| \
17270          X"$ac_file" : 'X\(//\)$' \| \
17271          X"$ac_file" : 'X\(/\)' \| \
17272          .     : '\(.\)' 2>/dev/null ||
17273 echo X"$ac_file" |
17274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17276           /^X\(\/\/\)$/{ s//\1/; q; }
17277           /^X\(\/\).*/{ s//\1/; q; }
17278           s/.*/./; q'`
17279       { if $as_mkdir_p; then
17280     mkdir -p "$ac_dir"
17281   else
17282     as_dir="$ac_dir"
17283     as_dirs=
17284     while test ! -d "$as_dir"; do
17285       as_dirs="$as_dir $as_dirs"
17286       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288          X"$as_dir" : 'X\(//\)[^/]' \| \
17289          X"$as_dir" : 'X\(//\)$' \| \
17290          X"$as_dir" : 'X\(/\)' \| \
17291          .     : '\(.\)' 2>/dev/null ||
17292 echo X"$as_dir" |
17293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17295           /^X\(\/\/\)$/{ s//\1/; q; }
17296           /^X\(\/\).*/{ s//\1/; q; }
17297           s/.*/./; q'`
17298     done
17299     test ! -n "$as_dirs" || mkdir $as_dirs
17300   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17302    { (exit 1); exit 1; }; }; }
17303
17304       rm -f $ac_file
17305       mv $tmp/config.h $ac_file
17306     fi
17307   else
17308     cat $tmp/config.h
17309     rm -f $tmp/config.h
17310   fi
17311 # Compute $ac_file's index in $config_headers.
17312 _am_stamp_count=1
17313 for _am_header in $config_headers :; do
17314   case $_am_header in
17315     $ac_file | $ac_file:* )
17316       break ;;
17317     * )
17318       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17319   esac
17320 done
17321 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17322 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17323          X$ac_file : 'X\(//\)[^/]' \| \
17324          X$ac_file : 'X\(//\)$' \| \
17325          X$ac_file : 'X\(/\)' \| \
17326          .     : '\(.\)' 2>/dev/null ||
17327 echo X$ac_file |
17328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17330           /^X\(\/\/\)$/{ s//\1/; q; }
17331           /^X\(\/\).*/{ s//\1/; q; }
17332           s/.*/./; q'`/stamp-h$_am_stamp_count
17333 done
17334 _ACEOF
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336
17337 #
17338 # CONFIG_LINKS section.
17339 #
17340
17341 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17342   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17343   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17344
17345   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17346 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17347
17348   if test ! -r $srcdir/$ac_source; then
17349     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17350 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17351    { (exit 1); exit 1; }; }
17352   fi
17353   rm -f $ac_dest
17354
17355   # Make relative symlinks.
17356   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17357 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17358          X"$ac_dest" : 'X\(//\)[^/]' \| \
17359          X"$ac_dest" : 'X\(//\)$' \| \
17360          X"$ac_dest" : 'X\(/\)' \| \
17361          .     : '\(.\)' 2>/dev/null ||
17362 echo X"$ac_dest" |
17363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17364           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17365           /^X\(\/\/\)$/{ s//\1/; q; }
17366           /^X\(\/\).*/{ s//\1/; q; }
17367           s/.*/./; q'`
17368   { if $as_mkdir_p; then
17369     mkdir -p "$ac_dest_dir"
17370   else
17371     as_dir="$ac_dest_dir"
17372     as_dirs=
17373     while test ! -d "$as_dir"; do
17374       as_dirs="$as_dir $as_dirs"
17375       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17377          X"$as_dir" : 'X\(//\)[^/]' \| \
17378          X"$as_dir" : 'X\(//\)$' \| \
17379          X"$as_dir" : 'X\(/\)' \| \
17380          .     : '\(.\)' 2>/dev/null ||
17381 echo X"$as_dir" |
17382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17384           /^X\(\/\/\)$/{ s//\1/; q; }
17385           /^X\(\/\).*/{ s//\1/; q; }
17386           s/.*/./; q'`
17387     done
17388     test ! -n "$as_dirs" || mkdir $as_dirs
17389   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17390 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17391    { (exit 1); exit 1; }; }; }
17392
17393   ac_builddir=.
17394
17395 if test "$ac_dest_dir" != .; then
17396   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17397   # A "../" for each directory in $ac_dir_suffix.
17398   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17399 else
17400   ac_dir_suffix= ac_top_builddir=
17401 fi
17402
17403 case $srcdir in
17404   .)  # No --srcdir option.  We are building in place.
17405     ac_srcdir=.
17406     if test -z "$ac_top_builddir"; then
17407        ac_top_srcdir=.
17408     else
17409        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17410     fi ;;
17411   [\\/]* | ?:[\\/]* )  # Absolute path.
17412     ac_srcdir=$srcdir$ac_dir_suffix;
17413     ac_top_srcdir=$srcdir ;;
17414   *) # Relative path.
17415     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17416     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17417 esac
17418
17419 # Do not use `cd foo && pwd` to compute absolute paths, because
17420 # the directories may not exist.
17421 case `pwd` in
17422 .) ac_abs_builddir="$ac_dest_dir";;
17423 *)
17424   case "$ac_dest_dir" in
17425   .) ac_abs_builddir=`pwd`;;
17426   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17427   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17428   esac;;
17429 esac
17430 case $ac_abs_builddir in
17431 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17432 *)
17433   case ${ac_top_builddir}. in
17434   .) ac_abs_top_builddir=$ac_abs_builddir;;
17435   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17436   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17437   esac;;
17438 esac
17439 case $ac_abs_builddir in
17440 .) ac_abs_srcdir=$ac_srcdir;;
17441 *)
17442   case $ac_srcdir in
17443   .) ac_abs_srcdir=$ac_abs_builddir;;
17444   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17445   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17446   esac;;
17447 esac
17448 case $ac_abs_builddir in
17449 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17450 *)
17451   case $ac_top_srcdir in
17452   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17453   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17454   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17455   esac;;
17456 esac
17457
17458
17459   case $srcdir in
17460   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17461       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17462   esac
17463
17464   # Try a symlink, then a hard link, then a copy.
17465   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17466     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17467     cp -p $srcdir/$ac_source $ac_dest ||
17468     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17469 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17470    { (exit 1); exit 1; }; }
17471 done
17472 _ACEOF
17473 cat >>$CONFIG_STATUS <<\_ACEOF
17474
17475 #
17476 # CONFIG_COMMANDS section.
17477 #
17478 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17479   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17480   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17481   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17482 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17483          X"$ac_dest" : 'X\(//\)[^/]' \| \
17484          X"$ac_dest" : 'X\(//\)$' \| \
17485          X"$ac_dest" : 'X\(/\)' \| \
17486          .     : '\(.\)' 2>/dev/null ||
17487 echo X"$ac_dest" |
17488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17490           /^X\(\/\/\)$/{ s//\1/; q; }
17491           /^X\(\/\).*/{ s//\1/; q; }
17492           s/.*/./; q'`
17493   { if $as_mkdir_p; then
17494     mkdir -p "$ac_dir"
17495   else
17496     as_dir="$ac_dir"
17497     as_dirs=
17498     while test ! -d "$as_dir"; do
17499       as_dirs="$as_dir $as_dirs"
17500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17502          X"$as_dir" : 'X\(//\)[^/]' \| \
17503          X"$as_dir" : 'X\(//\)$' \| \
17504          X"$as_dir" : 'X\(/\)' \| \
17505          .     : '\(.\)' 2>/dev/null ||
17506 echo X"$as_dir" |
17507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17509           /^X\(\/\/\)$/{ s//\1/; q; }
17510           /^X\(\/\).*/{ s//\1/; q; }
17511           s/.*/./; q'`
17512     done
17513     test ! -n "$as_dirs" || mkdir $as_dirs
17514   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17516    { (exit 1); exit 1; }; }; }
17517
17518   ac_builddir=.
17519
17520 if test "$ac_dir" != .; then
17521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17522   # A "../" for each directory in $ac_dir_suffix.
17523   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17524 else
17525   ac_dir_suffix= ac_top_builddir=
17526 fi
17527
17528 case $srcdir in
17529   .)  # No --srcdir option.  We are building in place.
17530     ac_srcdir=.
17531     if test -z "$ac_top_builddir"; then
17532        ac_top_srcdir=.
17533     else
17534        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17535     fi ;;
17536   [\\/]* | ?:[\\/]* )  # Absolute path.
17537     ac_srcdir=$srcdir$ac_dir_suffix;
17538     ac_top_srcdir=$srcdir ;;
17539   *) # Relative path.
17540     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17541     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17542 esac
17543
17544 # Do not use `cd foo && pwd` to compute absolute paths, because
17545 # the directories may not exist.
17546 case `pwd` in
17547 .) ac_abs_builddir="$ac_dir";;
17548 *)
17549   case "$ac_dir" in
17550   .) ac_abs_builddir=`pwd`;;
17551   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17552   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17553   esac;;
17554 esac
17555 case $ac_abs_builddir in
17556 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17557 *)
17558   case ${ac_top_builddir}. in
17559   .) ac_abs_top_builddir=$ac_abs_builddir;;
17560   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17561   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17562   esac;;
17563 esac
17564 case $ac_abs_builddir in
17565 .) ac_abs_srcdir=$ac_srcdir;;
17566 *)
17567   case $ac_srcdir in
17568   .) ac_abs_srcdir=$ac_abs_builddir;;
17569   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17570   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17571   esac;;
17572 esac
17573 case $ac_abs_builddir in
17574 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17575 *)
17576   case $ac_top_srcdir in
17577   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17578   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17579   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17580   esac;;
17581 esac
17582
17583
17584   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17585 echo "$as_me: executing $ac_dest commands" >&6;}
17586   case $ac_dest in
17587     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17588   # Strip MF so we end up with the name of the file.
17589   mf=`echo "$mf" | sed -e 's/:.*$//'`
17590   # Check whether this is an Automake generated Makefile or not.
17591   # We used to match only the files named `Makefile.in', but
17592   # some people rename them; so instead we look at the file content.
17593   # Grep'ing the first line is not enough: some people post-process
17594   # each Makefile.in and add a new line on top of each file to say so.
17595   # So let's grep whole file.
17596   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17597     dirpart=`(dirname "$mf") 2>/dev/null ||
17598 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17599          X"$mf" : 'X\(//\)[^/]' \| \
17600          X"$mf" : 'X\(//\)$' \| \
17601          X"$mf" : 'X\(/\)' \| \
17602          .     : '\(.\)' 2>/dev/null ||
17603 echo X"$mf" |
17604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17605           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17606           /^X\(\/\/\)$/{ s//\1/; q; }
17607           /^X\(\/\).*/{ s//\1/; q; }
17608           s/.*/./; q'`
17609   else
17610     continue
17611   fi
17612   # Extract the definition of DEPDIR, am__include, and am__quote
17613   # from the Makefile without running `make'.
17614   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17615   test -z "$DEPDIR" && continue
17616   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17617   test -z "am__include" && continue
17618   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17619   # When using ansi2knr, U may be empty or an underscore; expand it
17620   U=`sed -n 's/^U = //p' < "$mf"`
17621   # Find all dependency output files, they are included files with
17622   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17623   # simplest approach to changing $(DEPDIR) to its actual value in the
17624   # expansion.
17625   for file in `sed -n "
17626     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17627        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17628     # Make sure the directory exists.
17629     test -f "$dirpart/$file" && continue
17630     fdir=`(dirname "$file") 2>/dev/null ||
17631 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17632          X"$file" : 'X\(//\)[^/]' \| \
17633          X"$file" : 'X\(//\)$' \| \
17634          X"$file" : 'X\(/\)' \| \
17635          .     : '\(.\)' 2>/dev/null ||
17636 echo X"$file" |
17637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17638           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17639           /^X\(\/\/\)$/{ s//\1/; q; }
17640           /^X\(\/\).*/{ s//\1/; q; }
17641           s/.*/./; q'`
17642     { if $as_mkdir_p; then
17643     mkdir -p $dirpart/$fdir
17644   else
17645     as_dir=$dirpart/$fdir
17646     as_dirs=
17647     while test ! -d "$as_dir"; do
17648       as_dirs="$as_dir $as_dirs"
17649       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651          X"$as_dir" : 'X\(//\)[^/]' \| \
17652          X"$as_dir" : 'X\(//\)$' \| \
17653          X"$as_dir" : 'X\(/\)' \| \
17654          .     : '\(.\)' 2>/dev/null ||
17655 echo X"$as_dir" |
17656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17657           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17658           /^X\(\/\/\)$/{ s//\1/; q; }
17659           /^X\(\/\).*/{ s//\1/; q; }
17660           s/.*/./; q'`
17661     done
17662     test ! -n "$as_dirs" || mkdir $as_dirs
17663   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17664 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17665    { (exit 1); exit 1; }; }; }
17666
17667     # echo "creating $dirpart/$file"
17668     echo '# dummy' > "$dirpart/$file"
17669   done
17670 done
17671  ;;
17672     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17673 case " $CONFIG_FILES " in
17674  *" Makefile "*)
17675    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17676    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17677    ;;
17678 esac
17679 for ac_multi_file in $CONFIG_FILES; do
17680   case $ac_multi_file in
17681   */Makefile)
17682     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17683   esac
17684 done
17685  ;;
17686   esac
17687 done
17688 _ACEOF
17689
17690 cat >>$CONFIG_STATUS <<\_ACEOF
17691
17692 { (exit 0); exit 0; }
17693 _ACEOF
17694 chmod +x $CONFIG_STATUS
17695 ac_clean_files=$ac_clean_files_save
17696
17697
17698 # configure is writing to config.log, and then calls config.status.
17699 # config.status does its own redirection, appending to config.log.
17700 # Unfortunately, on DOS this fails, as config.log is still kept open
17701 # by configure, so config.status won't be able to write to it; its
17702 # output is simply discarded.  So we exec the FD to /dev/null,
17703 # effectively closing config.log, so it can be properly (re)opened and
17704 # appended to by config.status.  When coming back to configure, we
17705 # need to make the FD available again.
17706 if test "$no_create" != yes; then
17707   ac_cs_success=:
17708   ac_config_status_args=
17709   test "$silent" = yes &&
17710     ac_config_status_args="$ac_config_status_args --quiet"
17711   exec 5>/dev/null
17712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17713   exec 5>>config.log
17714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17715   # would make configure fail if this is the last instruction.
17716   $ac_cs_success || { (exit 1); exit 1; }
17717 fi
17718
17719 #
17720 # CONFIG_SUBDIRS section.
17721 #
17722 if test "$no_recursion" != yes; then
17723
17724   # Remove --cache-file and --srcdir arguments so they do not pile up.
17725   ac_sub_configure_args=
17726   ac_prev=
17727   for ac_arg in $ac_configure_args; do
17728     if test -n "$ac_prev"; then
17729       ac_prev=
17730       continue
17731     fi
17732     case $ac_arg in
17733     -cache-file | --cache-file | --cache-fil | --cache-fi \
17734     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17735       ac_prev=cache_file ;;
17736     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17737     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17738     | --c=*)
17739       ;;
17740     --config-cache | -C)
17741       ;;
17742     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17743       ac_prev=srcdir ;;
17744     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17745       ;;
17746     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17747       ac_prev=prefix ;;
17748     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17749       ;;
17750     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17751     esac
17752   done
17753
17754   # Always prepend --prefix to ensure using the same prefix
17755   # in subdir configurations.
17756   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17757
17758   ac_popdir=`pwd`
17759   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17760
17761     # Do not complain, so a configure script can configure whichever
17762     # parts of a large source tree are present.
17763     test -d $srcdir/$ac_dir || continue
17764
17765     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17766 echo "$as_me: configuring in $ac_dir" >&6;}
17767     { if $as_mkdir_p; then
17768     mkdir -p "$ac_dir"
17769   else
17770     as_dir="$ac_dir"
17771     as_dirs=
17772     while test ! -d "$as_dir"; do
17773       as_dirs="$as_dir $as_dirs"
17774       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17776          X"$as_dir" : 'X\(//\)[^/]' \| \
17777          X"$as_dir" : 'X\(//\)$' \| \
17778          X"$as_dir" : 'X\(/\)' \| \
17779          .     : '\(.\)' 2>/dev/null ||
17780 echo X"$as_dir" |
17781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17783           /^X\(\/\/\)$/{ s//\1/; q; }
17784           /^X\(\/\).*/{ s//\1/; q; }
17785           s/.*/./; q'`
17786     done
17787     test ! -n "$as_dirs" || mkdir $as_dirs
17788   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17789 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17790    { (exit 1); exit 1; }; }; }
17791
17792     ac_builddir=.
17793
17794 if test "$ac_dir" != .; then
17795   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17796   # A "../" for each directory in $ac_dir_suffix.
17797   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17798 else
17799   ac_dir_suffix= ac_top_builddir=
17800 fi
17801
17802 case $srcdir in
17803   .)  # No --srcdir option.  We are building in place.
17804     ac_srcdir=.
17805     if test -z "$ac_top_builddir"; then
17806        ac_top_srcdir=.
17807     else
17808        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17809     fi ;;
17810   [\\/]* | ?:[\\/]* )  # Absolute path.
17811     ac_srcdir=$srcdir$ac_dir_suffix;
17812     ac_top_srcdir=$srcdir ;;
17813   *) # Relative path.
17814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17816 esac
17817
17818 # Do not use `cd foo && pwd` to compute absolute paths, because
17819 # the directories may not exist.
17820 case `pwd` in
17821 .) ac_abs_builddir="$ac_dir";;
17822 *)
17823   case "$ac_dir" in
17824   .) ac_abs_builddir=`pwd`;;
17825   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17826   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17827   esac;;
17828 esac
17829 case $ac_abs_builddir in
17830 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17831 *)
17832   case ${ac_top_builddir}. in
17833   .) ac_abs_top_builddir=$ac_abs_builddir;;
17834   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17835   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17836   esac;;
17837 esac
17838 case $ac_abs_builddir in
17839 .) ac_abs_srcdir=$ac_srcdir;;
17840 *)
17841   case $ac_srcdir in
17842   .) ac_abs_srcdir=$ac_abs_builddir;;
17843   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17844   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17845   esac;;
17846 esac
17847 case $ac_abs_builddir in
17848 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17849 *)
17850   case $ac_top_srcdir in
17851   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17852   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17853   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17854   esac;;
17855 esac
17856
17857
17858     cd $ac_dir
17859
17860     # Check for guested configure; otherwise get Cygnus style configure.
17861     if test -f $ac_srcdir/configure.gnu; then
17862       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17863     elif test -f $ac_srcdir/configure; then
17864       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17865     elif test -f $ac_srcdir/configure.in; then
17866       ac_sub_configure=$ac_configure
17867     else
17868       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17870       ac_sub_configure=
17871     fi
17872
17873     # The recursion is here.
17874     if test -n "$ac_sub_configure"; then
17875       # Make the cache file name correct relative to the subdirectory.
17876       case $cache_file in
17877       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17878       *) # Relative path.
17879         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17880       esac
17881
17882       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17883 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17884       # The eval makes quoting arguments work.
17885       eval $ac_sub_configure $ac_sub_configure_args \
17886            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17887         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17889    { (exit 1); exit 1; }; }
17890     fi
17891
17892     cd $ac_popdir
17893   done
17894 fi
17895