]> gcc.gnu.org Git - gcc.git/blob - libjava/configure
configure.in: Renamed to configure.ac.
[gcc.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
824
825 cat <<\_ACEOF
826
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
870
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
877 --enable-java-awt list of AWT peer implementations to be built
878 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
879 --enable-java-gc=TYPE choose garbage collector (default is boehm)
880
881 Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-target-subdir=SUBDIR
885 configure in a subdirectory
886 --with-cross-host=HOST configure with a cross compiler from HOST
887 --with-newlib configure with newlib
888 --with-gnu-ld assume the C compiler uses GNU ld default=no
889 --with-pic try to use only PIC/non-PIC objects default=use both
890 --with-win32-nlsapi=ansi or unicows or unicode
891 native MinGW libgcj Win32 OS API (default is ansi)
892 --without-libffi don't use libffi
893 --with-ecos enable runtime eCos target support
894 --with-system-zlib use installed libz
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CXX C++ compiler command
906 CXXFLAGS C++ compiler flags
907 CXXCPP C++ preprocessor
908 CPP C preprocessor
909
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
912
913 _ACEOF
914 fi
915
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
918 ac_popdir=`pwd`
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
921 ac_builddir=.
922
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 else
928 ac_dir_suffix= ac_top_builddir=
929 fi
930
931 case $srcdir in
932 .) # No --srcdir option. We are building in place.
933 ac_srcdir=.
934 if test -z "$ac_top_builddir"; then
935 ac_top_srcdir=.
936 else
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938 fi ;;
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
942 *) # Relative path.
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 esac
946
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
949 case `pwd` in
950 .) ac_abs_builddir="$ac_dir";;
951 *)
952 case "$ac_dir" in
953 .) ac_abs_builddir=`pwd`;;
954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *)
961 case ${ac_top_builddir}. in
962 .) ac_abs_top_builddir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
969 *)
970 case $ac_srcdir in
971 .) ac_abs_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
974 esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *)
979 case $ac_top_srcdir in
980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
983 esac;;
984 esac
985
986 cd $ac_dir
987 # Check for guested configure; otherwise get Cygnus style configure.
988 if test -f $ac_srcdir/configure.gnu; then
989 echo
990 $SHELL $ac_srcdir/configure.gnu --help=recursive
991 elif test -f $ac_srcdir/configure; then
992 echo
993 $SHELL $ac_srcdir/configure --help=recursive
994 elif test -f $ac_srcdir/configure.ac ||
995 test -f $ac_srcdir/configure.in; then
996 echo
997 $ac_configure --help
998 else
999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000 fi
1001 cd "$ac_popdir"
1002 done
1003 fi
1004
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1007 cat <<\_ACEOF
1008 libjava configure version-unused
1009 generated by GNU Autoconf 2.59
1010
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1014 _ACEOF
1015 exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by libjava $as_me version-unused, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1024
1025 $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120 done
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
1141 {
1142 (set) 2>&1 |
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
1145 sed -n \
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
1149 *)
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ;;
1153 esac;
1154 }
1155 echo
1156
1157 cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191 echo
1192 sed "/^$/d" confdefs.h | sort
1193 echo
1194 fi
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 exit $exit_status
1202 ' 0
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
1248 fi
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1254 . "$ac_site_file"
1255 fi
1256 done
1257
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
1269 else
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1297 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1298 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1299 echo "$as_me: former value: $ac_old_val" >&2;}
1300 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1301 echo "$as_me: current value: $ac_new_val" >&2;}
1302 ac_cache_corrupted=:
1303 fi;;
1304 esac
1305 # Pass precious variables to config.status.
1306 if test "$ac_new_set" = set; then
1307 case $ac_new_val in
1308 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310 *) ac_arg=$ac_var=$ac_new_val ;;
1311 esac
1312 case " $ac_configure_args " in
1313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315 esac
1316 fi
1317 done
1318 if $ac_cache_corrupted; then
1319 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323 { (exit 1); exit 1; }; }
1324 fi
1325
1326 ac_ext=c
1327 ac_cpp='$CPP $CPPFLAGS'
1328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361 # We use these options to decide which functions to include.
1362
1363 # Check whether --with-target-subdir or --without-target-subdir was given.
1364 if test "${with_target_subdir+set}" = set; then
1365 withval="$with_target_subdir"
1366
1367 fi;
1368
1369 # We may get other options which we don't document:
1370 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1371
1372 # When building with srcdir == objdir, links to the source files will
1373 # be created in directories within the target_subdir. We have to
1374 # adjust toplevel_srcdir accordingly, so that configure finds
1375 # install-sh and other auxiliary files that live in the top-level
1376 # source directory.
1377 if test "${srcdir}" = "."; then
1378 if test -z "${with_target_subdir}"; then
1379 toprel=".."
1380 else
1381 if test "${with_target_subdir}" != "."; then
1382 toprel="${with_multisrctop}../.."
1383 else
1384 toprel="${with_multisrctop}.."
1385 fi
1386 fi
1387 else
1388 toprel=".."
1389 fi
1390
1391 libgcj_basedir=$srcdir/$toprel/./libjava
1392
1393
1394 ac_aux_dir=
1395 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1396 if test -f $ac_dir/install-sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install-sh -c"
1399 break
1400 elif test -f $ac_dir/install.sh; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/install.sh -c"
1403 break
1404 elif test -f $ac_dir/shtool; then
1405 ac_aux_dir=$ac_dir
1406 ac_install_sh="$ac_aux_dir/shtool install -c"
1407 break
1408 fi
1409 done
1410 if test -z "$ac_aux_dir"; then
1411 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1412 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1413 { (exit 1); exit 1; }; }
1414 fi
1415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1417 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1418
1419 # Make sure we can run config.sub.
1420 $ac_config_sub sun4 >/dev/null 2>&1 ||
1421 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1422 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425 echo "$as_me:$LINENO: checking build system type" >&5
1426 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1427 if test "${ac_cv_build+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430 ac_cv_build_alias=$build_alias
1431 test -z "$ac_cv_build_alias" &&
1432 ac_cv_build_alias=`$ac_config_guess`
1433 test -z "$ac_cv_build_alias" &&
1434 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1436 { (exit 1); exit 1; }; }
1437 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1441
1442 fi
1443 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1444 echo "${ECHO_T}$ac_cv_build" >&6
1445 build=$ac_cv_build
1446 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449
1450
1451 echo "$as_me:$LINENO: checking host system type" >&5
1452 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1453 if test "${ac_cv_host+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 ac_cv_host_alias=$host_alias
1457 test -z "$ac_cv_host_alias" &&
1458 ac_cv_host_alias=$ac_cv_build_alias
1459 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1463
1464 fi
1465 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1466 echo "${ECHO_T}$ac_cv_host" >&6
1467 host=$ac_cv_host
1468 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1471
1472
1473 echo "$as_me:$LINENO: checking target system type" >&5
1474 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1475 if test "${ac_cv_target+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478 ac_cv_target_alias=$target_alias
1479 test "x$ac_cv_target_alias" = "x" &&
1480 ac_cv_target_alias=$ac_cv_host_alias
1481 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1482 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1483 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1484 { (exit 1); exit 1; }; }
1485
1486 fi
1487 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1488 echo "${ECHO_T}$ac_cv_target" >&6
1489 target=$ac_cv_target
1490 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1491 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1492 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1493
1494
1495 # The aliases save the names the user supplied, while $host etc.
1496 # will get canonicalized.
1497 test -n "$target_alias" &&
1498 test "$program_prefix$program_suffix$program_transform_name" = \
1499 NONENONEs,x,x, &&
1500 program_prefix=${target_alias}-
1501 case ${build_alias} in
1502 "") build_noncanonical=${build} ;;
1503 *) build_noncanonical=${build_alias} ;;
1504 esac
1505
1506 case ${host_alias} in
1507 "") host_noncanonical=${build_noncanonical} ;;
1508 *) host_noncanonical=${host_alias} ;;
1509 esac
1510
1511 case ${target_alias} in
1512 "") target_noncanonical=${host_noncanonical} ;;
1513 *) target_noncanonical=${target_alias} ;;
1514 esac
1515
1516
1517
1518
1519 # This works around the fact that libtool configuration may change LD
1520 # for this particular configuration, but some shells, instead of
1521 # keeping the changes in LD private, export them just because LD is
1522 # exported.
1523 ORIGINAL_LD_FOR_MULTILIBS=$LD
1524
1525 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1526 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1527 LN_S=$as_ln_s
1528 if test "$LN_S" = "ln -s"; then
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 else
1532 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1533 echo "${ECHO_T}no, using $LN_S" >&6
1534 fi
1535
1536
1537 # This works around an automake problem.
1538 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1539
1540
1541
1542 # Check whether --with-cross-host or --without-cross-host was given.
1543 if test "${with_cross_host+set}" = set; then
1544 withval="$with_cross_host"
1545
1546 fi;
1547
1548
1549 # Check whether --with-newlib or --without-newlib was given.
1550 if test "${with_newlib+set}" = set; then
1551 withval="$with_newlib"
1552
1553 fi;
1554
1555 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1556 if test "${enable_version_specific_runtime_libs+set}" = set; then
1557 enableval="$enable_version_specific_runtime_libs"
1558 case "$enableval" in
1559 yes) version_specific_libs=yes ;;
1560 no) version_specific_libs=no ;;
1561 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1562 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1563 { (exit 1); exit 1; }; };;
1564 esac
1565 else
1566 version_specific_libs=no
1567
1568 fi;
1569
1570 # Default to --enable-multilib
1571 # Check whether --enable-multilib or --disable-multilib was given.
1572 if test "${enable_multilib+set}" = set; then
1573 enableval="$enable_multilib"
1574 case "${enableval}" in
1575 yes) multilib=yes ;;
1576 no) multilib=no ;;
1577 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1578 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1579 { (exit 1); exit 1; }; } ;;
1580 esac
1581 else
1582 multilib=yes
1583 fi;
1584 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1585
1586
1587 # (1) We use an abnormal CXX (without library references), so we
1588 # must cache it under a different name.
1589 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1590 # the non-multilib-adjusted value will be used in multilibs.
1591 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1592 # (4) As another side effect, automake doesn't automatically include them
1593 # in Makefile.in.
1594 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1595 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1596 # used in later tests. This may not be necessary in libjava; I don't know.
1597
1598
1599
1600 save_CXXFLAGS="$CXXFLAGS"
1601 CXXFLAGS="$CXXFLAGS -fno-builtin"
1602 ac_ext=c
1603 ac_cpp='$CPP $CPPFLAGS'
1604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607 if test -n "$ac_tool_prefix"; then
1608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615 if test -n "$CC"; then
1616 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621 IFS=$as_save_IFS
1622 test -z "$as_dir" && as_dir=.
1623 for ac_exec_ext in '' $ac_executable_extensions; do
1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627 break 2
1628 fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645 ac_ct_CC=$CC
1646 # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$ac_ct_CC"; then
1654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_ac_ct_CC="gcc"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 CC=$ac_ct_CC
1682 else
1683 CC="$ac_cv_prog_CC"
1684 fi
1685
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689 set dummy ${ac_tool_prefix}cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="${ac_tool_prefix}cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 CC=$ac_cv_prog_CC
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 fi
1724 if test -z "$ac_cv_prog_CC"; then
1725 ac_ct_CC=$CC
1726 # Extract the first word of "cc", so it can be a program name with args.
1727 set dummy cc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733 if test -n "$ac_ct_CC"; then
1734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739 IFS=$as_save_IFS
1740 test -z "$as_dir" && as_dir=.
1741 for ac_exec_ext in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_ac_ct_CC="cc"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 break 2
1746 fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753 if test -n "$ac_ct_CC"; then
1754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755 echo "${ECHO_T}$ac_ct_CC" >&6
1756 else
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761 CC=$ac_ct_CC
1762 else
1763 CC="$ac_cv_prog_CC"
1764 fi
1765
1766 fi
1767 if test -z "$CC"; then
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 else
1778 ac_prog_rejected=no
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787 ac_prog_rejected=yes
1788 continue
1789 fi
1790 ac_cv_prog_CC="cc"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1793 fi
1794 done
1795 done
1796
1797 if test $ac_prog_rejected = yes; then
1798 # We found a bogon in the path, so make sure we never use it.
1799 set dummy $ac_cv_prog_CC
1800 shift
1801 if test $# != 0; then
1802 # We chose a different compiler from the bogus one.
1803 # However, it has the same basename, so the bogon will be chosen
1804 # first if we set CC to just the basename; use the full file name.
1805 shift
1806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807 fi
1808 fi
1809 fi
1810 fi
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 fi
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 for ac_prog in cl
1824 do
1825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$CC"; then
1833 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853 echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 test -n "$CC" && break
1861 done
1862 fi
1863 if test -z "$CC"; then
1864 ac_ct_CC=$CC
1865 for ac_prog in cl
1866 do
1867 # Extract the first word of "$ac_prog", so it can be a program name with args.
1868 set dummy $ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1879 do
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC="$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1887 fi
1888 done
1889 done
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1900 fi
1901
1902 test -n "$ac_ct_CC" && break
1903 done
1904
1905 CC=$ac_ct_CC
1906 fi
1907
1908 fi
1909
1910
1911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: no acceptable C compiler found in \$PATH
1914 See \`config.log' for more details." >&2;}
1915 { (exit 1); exit 1; }; }
1916
1917 # Provide some information about the compiler.
1918 echo "$as_me:$LINENO:" \
1919 "checking for C compiler version" >&5
1920 ac_compiler=`set X $ac_compile; echo $2`
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1922 (eval $ac_compiler --version </dev/null >&5) 2>&5
1923 ac_status=$?
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1927 (eval $ac_compiler -v </dev/null >&5) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); }
1931 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1932 (eval $ac_compiler -V </dev/null >&5) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }
1936
1937 cat >conftest.$ac_ext <<_ACEOF
1938 /* confdefs.h. */
1939 _ACEOF
1940 cat confdefs.h >>conftest.$ac_ext
1941 cat >>conftest.$ac_ext <<_ACEOF
1942 /* end confdefs.h. */
1943
1944 int
1945 main ()
1946 {
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 # FIXME: Cleanup?
1953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1954 (eval $ac_link) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; then
1958 gcc_no_link=no
1959 else
1960 gcc_no_link=yes
1961 fi
1962
1963 if test x$gcc_no_link = xyes; then
1964 # Setting cross_compile will disable run tests; it will
1965 # also disable AC_CHECK_FILE but that's generally
1966 # correct if we can't link.
1967 cross_compiling=yes
1968 EXEEXT=
1969 else
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1976
1977 int
1978 main ()
1979 {
1980
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 ac_clean_files_save=$ac_clean_files
1986 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1987 # Try to create an executable without -o first, disregard a.out.
1988 # It will help us diagnose broken compilers, and finding out an intuition
1989 # of exeext.
1990 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1991 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1992 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1994 (eval $ac_link_default) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # Find the output, starting from the most likely. This scheme is
1999 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2000 # resort.
2001
2002 # Be careful to initialize this variable, since it used to be cached.
2003 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2004 ac_cv_exeext=
2005 # b.out is created by i960 compilers.
2006 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2007 do
2008 test -f "$ac_file" || continue
2009 case $ac_file in
2010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2011 ;;
2012 conftest.$ac_ext )
2013 # This is the source file.
2014 ;;
2015 [ab].out )
2016 # We found the default executable, but exeext='' is most
2017 # certainly right.
2018 break;;
2019 *.* )
2020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2021 # FIXME: I believe we export ac_cv_exeext for Libtool,
2022 # but it would be cool to find out if it's true. Does anybody
2023 # maintain Libtool? --akim.
2024 export ac_cv_exeext
2025 break;;
2026 * )
2027 break;;
2028 esac
2029 done
2030 else
2031 echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: C compiler cannot create executables
2037 See \`config.log' for more details." >&2;}
2038 { (exit 77); exit 77; }; }
2039 fi
2040
2041 ac_exeext=$ac_cv_exeext
2042 echo "$as_me:$LINENO: result: $ac_file" >&5
2043 echo "${ECHO_T}$ac_file" >&6
2044
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2048 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2049 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2050 # If not cross compiling, check that we can run a simple program.
2051 if test "$cross_compiling" != yes; then
2052 if { ac_try='./$ac_file'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2058 cross_compiling=no
2059 else
2060 if test "$cross_compiling" = maybe; then
2061 cross_compiling=yes
2062 else
2063 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'.
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2070 fi
2071 fi
2072 fi
2073 echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6
2075
2076 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2077 ac_clean_files=$ac_clean_files_save
2078 # Check the compiler produces executables we can run. If not, either
2079 # the compiler is broken, or we cross compile.
2080 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2081 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2082 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2083 echo "${ECHO_T}$cross_compiling" >&6
2084
2085 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2086 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2088 (eval $ac_link) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
2092 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2093 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2094 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 # `rm'.
2096 for ac_file in conftest.exe conftest conftest.*; do
2097 test -f "$ac_file" || continue
2098 case $ac_file in
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2100 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2101 export ac_cv_exeext
2102 break;;
2103 * ) break;;
2104 esac
2105 done
2106 else
2107 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2117
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2120 ac_exeext=$EXEEXT
2121 fi
2122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2124 if test "${ac_cv_objext+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 cat >conftest.$ac_ext <<_ACEOF
2128 /* confdefs.h. */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h. */
2133
2134 int
2135 main ()
2136 {
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 rm -f conftest.o conftest.obj
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2149 case $ac_file in
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2152 break;;
2153 esac
2154 done
2155 else
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2162 See \`config.log' for more details." >&2;}
2163 { (exit 1); exit 1; }; }
2164 fi
2165
2166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2169 echo "${ECHO_T}$ac_cv_objext" >&6
2170 OBJEXT=$ac_cv_objext
2171 ac_objext=$OBJEXT
2172 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2173 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2174 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h. */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2183
2184 int
2185 main ()
2186 {
2187 #ifndef __GNUC__
2188 choke me
2189 #endif
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 ac_compiler_gnu=yes
2217 else
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 ac_compiler_gnu=no
2222 fi
2223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2225
2226 fi
2227 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2229 GCC=`test $ac_compiler_gnu = yes && echo yes`
2230 ac_test_CFLAGS=${CFLAGS+set}
2231 ac_save_CFLAGS=$CFLAGS
2232 CFLAGS="-g"
2233 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2234 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2235 if test "${ac_cv_prog_cc_g+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244
2245 int
2246 main ()
2247 {
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 ac_cv_prog_cc_g=yes
2275 else
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_cv_prog_cc_g=no
2280 fi
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2285 if test "$ac_test_CFLAGS" = set; then
2286 CFLAGS=$ac_save_CFLAGS
2287 elif test $ac_cv_prog_cc_g = yes; then
2288 if test "$GCC" = yes; then
2289 CFLAGS="-g -O2"
2290 else
2291 CFLAGS="-g"
2292 fi
2293 else
2294 if test "$GCC" = yes; then
2295 CFLAGS="-O2"
2296 else
2297 CFLAGS=
2298 fi
2299 fi
2300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 ac_cv_prog_cc_stdc=no
2306 ac_save_CC=$CC
2307 cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h. */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2313 #include <stdarg.h>
2314 #include <stdio.h>
2315 #include <sys/types.h>
2316 #include <sys/stat.h>
2317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2318 struct buf { int x; };
2319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2320 static char *e (p, i)
2321 char **p;
2322 int i;
2323 {
2324 return p[i];
2325 }
2326 static char *f (char * (*g) (char **, int), char **p, ...)
2327 {
2328 char *s;
2329 va_list v;
2330 va_start (v,p);
2331 s = g (p, va_arg (v,int));
2332 va_end (v);
2333 return s;
2334 }
2335
2336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2337 function prototypes and stuff, but not '\xHH' hex character constants.
2338 These don't provoke an error unfortunately, instead are silently treated
2339 as 'x'. The following induces an error, until -std1 is added to get
2340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2341 array size at least. It's necessary to write '\x00'==0 to get something
2342 that's true only with -std1. */
2343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2344
2345 int test (int i, double x);
2346 struct s1 {int (*f) (int a);};
2347 struct s2 {int (*f) (double a);};
2348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 int argc;
2350 char **argv;
2351 int
2352 main ()
2353 {
2354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2355 ;
2356 return 0;
2357 }
2358 _ACEOF
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX -qlanglvl=ansi
2362 # Ultrix and OSF/1 -std1
2363 # HP-UX 10.20 and later -Ae
2364 # HP-UX older versions -Aa -D_HPUX_SOURCE
2365 # SVR4 -Xc -D__EXTENSIONS__
2366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2367 do
2368 CC="$ac_save_CC $ac_arg"
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_cv_prog_cc_stdc=$ac_arg
2391 break
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 fi
2397 rm -f conftest.err conftest.$ac_objext
2398 done
2399 rm -f conftest.$ac_ext conftest.$ac_objext
2400 CC=$ac_save_CC
2401
2402 fi
2403
2404 case "x$ac_cv_prog_cc_stdc" in
2405 x|xno)
2406 echo "$as_me:$LINENO: result: none needed" >&5
2407 echo "${ECHO_T}none needed" >&6 ;;
2408 *)
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2411 CC="$CC $ac_cv_prog_cc_stdc" ;;
2412 esac
2413
2414 # Some people use a C++ compiler to compile C. Since we use `exit',
2415 # in C++ we need to declare it. In case someone uses the same compiler
2416 # for both compiling C and C++ we need to have the C++ compiler decide
2417 # the declaration of exit, since it's the most demanding environment.
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #ifndef __cplusplus
2420 choke me
2421 #endif
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>conftest.er1
2426 ac_status=$?
2427 grep -v '^ *+' conftest.er1 >conftest.err
2428 rm -f conftest.er1
2429 cat conftest.err >&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); } &&
2432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2444 for ac_declaration in \
2445 '' \
2446 'extern "C" void std::exit (int) throw (); using std::exit;' \
2447 'extern "C" void std::exit (int); using std::exit;' \
2448 'extern "C" void exit (int) throw ();' \
2449 'extern "C" void exit (int);' \
2450 'void exit (int);'
2451 do
2452 cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h. */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458 $ac_declaration
2459 #include <stdlib.h>
2460 int
2461 main ()
2462 {
2463 exit (42);
2464 ;
2465 return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 :
2490 else
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 continue
2495 fi
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h. */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2503 $ac_declaration
2504 int
2505 main ()
2506 {
2507 exit (42);
2508 ;
2509 return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2533 break
2534 else
2535 echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 fi
2539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2540 done
2541 rm -f conftest*
2542 if test -n "$ac_declaration"; then
2543 echo '#ifdef __cplusplus' >>confdefs.h
2544 echo $ac_declaration >>confdefs.h
2545 echo '#endif' >>confdefs.h
2546 fi
2547
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 fi
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_ext=c
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560 ac_ext=cc
2561 ac_cpp='$CXXCPP $CPPFLAGS'
2562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2567 do
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test -n "$CXX"; then
2576 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591
2592 fi
2593 fi
2594 CXX=$glibcxx_cv_prog_CXX
2595 if test -n "$CXX"; then
2596 echo "$as_me:$LINENO: result: $CXX" >&5
2597 echo "${ECHO_T}$CXX" >&6
2598 else
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603 test -n "$CXX" && break
2604 done
2605 fi
2606 if test -z "$CXX"; then
2607 ac_ct_CXX=$CXX
2608 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2609 do
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$ac_ct_CXX"; then
2618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633
2634 fi
2635 fi
2636 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2637 if test -n "$ac_ct_CXX"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2639 echo "${ECHO_T}$ac_ct_CXX" >&6
2640 else
2641 echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6
2643 fi
2644
2645 test -n "$ac_ct_CXX" && break
2646 done
2647 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2648
2649 CXX=$ac_ct_CXX
2650 fi
2651
2652
2653 # Provide some information about the compiler.
2654 echo "$as_me:$LINENO:" \
2655 "checking for C++ compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2658 (eval $ac_compiler --version </dev/null >&5) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2663 (eval $ac_compiler -v </dev/null >&5) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2668 (eval $ac_compiler -V </dev/null >&5) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2672
2673 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2674 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684
2685 int
2686 main ()
2687 {
2688 #ifndef __GNUC__
2689 choke me
2690 #endif
2691
2692 ;
2693 return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } &&
2705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2717 ac_compiler_gnu=yes
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_compiler_gnu=no
2723 fi
2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2726
2727 fi
2728 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2729 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2730 GXX=`test $ac_compiler_gnu = yes && echo yes`
2731 ac_test_CXXFLAGS=${CXXFLAGS+set}
2732 ac_save_CXXFLAGS=$CXXFLAGS
2733 CXXFLAGS="-g"
2734 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2735 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2736 if test "${ac_cv_prog_cxx_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h. */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2745
2746 int
2747 main ()
2748 {
2749
2750 ;
2751 return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 ac_cv_prog_cxx_g=yes
2776 else
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 ac_cv_prog_cxx_g=no
2781 fi
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2786 if test "$ac_test_CXXFLAGS" = set; then
2787 CXXFLAGS=$ac_save_CXXFLAGS
2788 elif test $ac_cv_prog_cxx_g = yes; then
2789 if test "$GXX" = yes; then
2790 CXXFLAGS="-g -O2"
2791 else
2792 CXXFLAGS="-g"
2793 fi
2794 else
2795 if test "$GXX" = yes; then
2796 CXXFLAGS="-O2"
2797 else
2798 CXXFLAGS=
2799 fi
2800 fi
2801 for ac_declaration in \
2802 '' \
2803 'extern "C" void std::exit (int) throw (); using std::exit;' \
2804 'extern "C" void std::exit (int); using std::exit;' \
2805 'extern "C" void exit (int) throw ();' \
2806 'extern "C" void exit (int);' \
2807 'void exit (int);'
2808 do
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 $ac_declaration
2816 #include <stdlib.h>
2817 int
2818 main ()
2819 {
2820 exit (42);
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 :
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 continue
2852 fi
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 $ac_declaration
2861 int
2862 main ()
2863 {
2864 exit (42);
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 break
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 fi
2896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897 done
2898 rm -f conftest*
2899 if test -n "$ac_declaration"; then
2900 echo '#ifdef __cplusplus' >>confdefs.h
2901 echo $ac_declaration >>confdefs.h
2902 echo '#endif' >>confdefs.h
2903 fi
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911 CXXFLAGS="$save_CXXFLAGS"
2912
2913
2914
2915
2916
2917 am__api_version="1.9"
2918 # Find a good install program. We prefer a C program (faster),
2919 # so one script is as good as another. But avoid the broken or
2920 # incompatible versions:
2921 # SysV /etc/install, /usr/sbin/install
2922 # SunOS /usr/etc/install
2923 # IRIX /sbin/install
2924 # AIX /bin/install
2925 # AmigaOS /C/install, which installs bootblocks on floppy discs
2926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2929 # OS/2's system install, which has a completely different semantic
2930 # ./install, which can be erroneously created by make from ./install.sh.
2931 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2933 if test -z "$INSTALL"; then
2934 if test "${ac_cv_path_install+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 # Account for people who put trailing slashes in PATH elements.
2943 case $as_dir/ in
2944 ./ | .// | /cC/* | \
2945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2946 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2947 /usr/ucb/* ) ;;
2948 *)
2949 # OSF1 and SCO ODT 3.0 have their own names for install.
2950 # Don't use installbsd from OSF since it installs stuff as root
2951 # by default.
2952 for ac_prog in ginstall scoinst install; do
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2955 if test $ac_prog = install &&
2956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2957 # AIX install. It has an incompatible calling convention.
2958 :
2959 elif test $ac_prog = install &&
2960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2961 # program-specific install script used by HP pwplus--don't use.
2962 :
2963 else
2964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2965 break 3
2966 fi
2967 fi
2968 done
2969 done
2970 ;;
2971 esac
2972 done
2973
2974
2975 fi
2976 if test "${ac_cv_path_install+set}" = set; then
2977 INSTALL=$ac_cv_path_install
2978 else
2979 # As a last resort, use the slow shell script. We don't cache a
2980 # path for INSTALL within a source directory, because that will
2981 # break other packages using the cache if that directory is
2982 # removed, or if the path is relative.
2983 INSTALL=$ac_install_sh
2984 fi
2985 fi
2986 echo "$as_me:$LINENO: result: $INSTALL" >&5
2987 echo "${ECHO_T}$INSTALL" >&6
2988
2989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2990 # It thinks the first close brace ends the variable substitution.
2991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2992
2993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2994
2995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2996
2997 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2998 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2999 # Just in case
3000 sleep 1
3001 echo timestamp > conftest.file
3002 # Do `set' in a subshell so we don't clobber the current shell's
3003 # arguments. Must try -L first in case configure is actually a
3004 # symlink; some systems play weird games with the mod time of symlinks
3005 # (eg FreeBSD returns the mod time of the symlink's containing
3006 # directory).
3007 if (
3008 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3009 if test "$*" = "X"; then
3010 # -L didn't work.
3011 set X `ls -t $srcdir/configure conftest.file`
3012 fi
3013 rm -f conftest.file
3014 if test "$*" != "X $srcdir/configure conftest.file" \
3015 && test "$*" != "X conftest.file $srcdir/configure"; then
3016
3017 # If neither matched, then we have a broken ls. This can happen
3018 # if, for instance, CONFIG_SHELL is bash and it inherits a
3019 # broken ls alias from the environment. This has actually
3020 # happened. Such a system could not be considered "sane".
3021 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3022 alias in your environment" >&5
3023 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3024 alias in your environment" >&2;}
3025 { (exit 1); exit 1; }; }
3026 fi
3027
3028 test "$2" = conftest.file
3029 )
3030 then
3031 # Ok.
3032 :
3033 else
3034 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3035 Check your system clock" >&5
3036 echo "$as_me: error: newly created file is older than distributed files!
3037 Check your system clock" >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040 echo "$as_me:$LINENO: result: yes" >&5
3041 echo "${ECHO_T}yes" >&6
3042 test "$program_prefix" != NONE &&
3043 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3044 # Use a double $ so make ignores it.
3045 test "$program_suffix" != NONE &&
3046 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3047 # Double any \ or $. echo might interpret backslashes.
3048 # By default was `s,x,x', remove it if useless.
3049 cat <<\_ACEOF >conftest.sed
3050 s/[\\$]/&&/g;s/;s,x,x,$//
3051 _ACEOF
3052 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3053 rm conftest.sed
3054
3055 # expand $ac_aux_dir to an absolute path
3056 am_aux_dir=`cd $ac_aux_dir && pwd`
3057
3058 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3059 # Use eval to expand $SHELL
3060 if eval "$MISSING --run true"; then
3061 am_missing_run="$MISSING --run "
3062 else
3063 am_missing_run=
3064 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3065 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3066 fi
3067
3068 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3069 # We used to keeping the `.' as first argument, in order to
3070 # allow $(mkdir_p) to be used without argument. As in
3071 # $(mkdir_p) $(somedir)
3072 # where $(somedir) is conditionally defined. However this is wrong
3073 # for two reasons:
3074 # 1. if the package is installed by a user who cannot write `.'
3075 # make install will fail,
3076 # 2. the above comment should most certainly read
3077 # $(mkdir_p) $(DESTDIR)$(somedir)
3078 # so it does not work when $(somedir) is undefined and
3079 # $(DESTDIR) is not.
3080 # To support the latter case, we have to write
3081 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3082 # so the `.' trick is pointless.
3083 mkdir_p='mkdir -p --'
3084 else
3085 # On NextStep and OpenStep, the `mkdir' command does not
3086 # recognize any option. It will interpret all options as
3087 # directories to create, and then abort because `.' already
3088 # exists.
3089 for d in ./-p ./--version;
3090 do
3091 test -d $d && rmdir $d
3092 done
3093 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3094 if test -f "$ac_aux_dir/mkinstalldirs"; then
3095 mkdir_p='$(mkinstalldirs)'
3096 else
3097 mkdir_p='$(install_sh) -d'
3098 fi
3099 fi
3100
3101 for ac_prog in gawk mawk nawk awk
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107 if test "${ac_cv_prog_AWK+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126
3127 fi
3128 fi
3129 AWK=$ac_cv_prog_AWK
3130 if test -n "$AWK"; then
3131 echo "$as_me:$LINENO: result: $AWK" >&5
3132 echo "${ECHO_T}$AWK" >&6
3133 else
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136 fi
3137
3138 test -n "$AWK" && break
3139 done
3140
3141 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3142 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3143 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3144 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.make <<\_ACEOF
3148 all:
3149 @echo 'ac_maketemp="$(MAKE)"'
3150 _ACEOF
3151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3152 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3153 if test -n "$ac_maketemp"; then
3154 eval ac_cv_prog_make_${ac_make}_set=yes
3155 else
3156 eval ac_cv_prog_make_${ac_make}_set=no
3157 fi
3158 rm -f conftest.make
3159 fi
3160 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3163 SET_MAKE=
3164 else
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 SET_MAKE="MAKE=${MAKE-make}"
3168 fi
3169
3170 rm -rf .tst 2>/dev/null
3171 mkdir .tst 2>/dev/null
3172 if test -d .tst; then
3173 am__leading_dot=.
3174 else
3175 am__leading_dot=_
3176 fi
3177 rmdir .tst 2>/dev/null
3178
3179 DEPDIR="${am__leading_dot}deps"
3180
3181 ac_config_commands="$ac_config_commands depfiles"
3182
3183
3184 am_make=${MAKE-make}
3185 cat > confinc << 'END'
3186 am__doit:
3187 @echo done
3188 .PHONY: am__doit
3189 END
3190 # If we don't find an include directive, just comment out the code.
3191 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3192 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3193 am__include="#"
3194 am__quote=
3195 _am_result=none
3196 # First try GNU make style include.
3197 echo "include confinc" > confmf
3198 # We grep out `Entering directory' and `Leaving directory'
3199 # messages which can occur if `w' ends up in MAKEFLAGS.
3200 # In particular we don't look at `^make:' because GNU make might
3201 # be invoked under some other name (usually "gmake"), in which
3202 # case it prints its new name instead of `make'.
3203 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3204 am__include=include
3205 am__quote=
3206 _am_result=GNU
3207 fi
3208 # Now try BSD make style include.
3209 if test "$am__include" = "#"; then
3210 echo '.include "confinc"' > confmf
3211 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3212 am__include=.include
3213 am__quote="\""
3214 _am_result=BSD
3215 fi
3216 fi
3217
3218
3219 echo "$as_me:$LINENO: result: $_am_result" >&5
3220 echo "${ECHO_T}$_am_result" >&6
3221 rm -f confinc confmf
3222
3223 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3224 if test "${enable_dependency_tracking+set}" = set; then
3225 enableval="$enable_dependency_tracking"
3226
3227 fi;
3228 if test "x$enable_dependency_tracking" != xno; then
3229 am_depcomp="$ac_aux_dir/depcomp"
3230 AMDEPBACKSLASH='\'
3231 fi
3232
3233
3234 if test "x$enable_dependency_tracking" != xno; then
3235 AMDEP_TRUE=
3236 AMDEP_FALSE='#'
3237 else
3238 AMDEP_TRUE='#'
3239 AMDEP_FALSE=
3240 fi
3241
3242
3243
3244 # test to see if srcdir already configured
3245 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3246 test -f $srcdir/config.status; then
3247 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3248 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3249 { (exit 1); exit 1; }; }
3250 fi
3251
3252 # test whether we have cygpath
3253 if test -z "$CYGPATH_W"; then
3254 if (cygpath --version) >/dev/null 2>/dev/null; then
3255 CYGPATH_W='cygpath -w'
3256 else
3257 CYGPATH_W=echo
3258 fi
3259 fi
3260
3261
3262 # Define the identity of the package.
3263 PACKAGE='libjava'
3264 VERSION='version-unused'
3265
3266
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE "$PACKAGE"
3269 _ACEOF
3270
3271
3272 cat >>confdefs.h <<_ACEOF
3273 #define VERSION "$VERSION"
3274 _ACEOF
3275
3276 # Some tools Automake needs.
3277
3278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3279
3280
3281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3282
3283
3284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3285
3286
3287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3288
3289
3290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3291
3292 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3293
3294 # Installed binaries are usually stripped using `strip' when the user
3295 # run `make install-strip'. However `strip' might not be the right
3296 # tool to use in cross-compilation environments, therefore Automake
3297 # will honor the `STRIP' environment variable to overrule this program.
3298 if test "$cross_compiling" != no; then
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}strip; ac_word=$2
3302 echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3304 if test "${ac_cv_prog_STRIP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if test -n "$STRIP"; then
3308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323
3324 fi
3325 fi
3326 STRIP=$ac_cv_prog_STRIP
3327 if test -n "$STRIP"; then
3328 echo "$as_me:$LINENO: result: $STRIP" >&5
3329 echo "${ECHO_T}$STRIP" >&6
3330 else
3331 echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335 fi
3336 if test -z "$ac_cv_prog_STRIP"; then
3337 ac_ct_STRIP=$STRIP
3338 # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy 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_ac_ct_STRIP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 if test -n "$ac_ct_STRIP"; then
3346 ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="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 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3363 fi
3364 fi
3365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3366 if test -n "$ac_ct_STRIP"; then
3367 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3368 echo "${ECHO_T}$ac_ct_STRIP" >&6
3369 else
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 STRIP=$ac_ct_STRIP
3375 else
3376 STRIP="$ac_cv_prog_STRIP"
3377 fi
3378
3379 fi
3380 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3381
3382 # We need awk for the "check" target. The system "awk" is bad on
3383 # some platforms.
3384 # Always define AMTAR for backward compatibility.
3385
3386 AMTAR=${AMTAR-"${am_missing_run}tar"}
3387
3388 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3389
3390
3391
3392
3393 depcc="$CC" am_compiler_list=
3394
3395 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3396 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3397 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3401 # We make a subdir and do the tests there. Otherwise we can end up
3402 # making bogus files that we don't know about and never remove. For
3403 # instance it was reported that on HP-UX the gcc test will end up
3404 # making a dummy file named `D' -- because `-MD' means `put the output
3405 # in D'.
3406 mkdir conftest.dir
3407 # Copy depcomp to subdir because otherwise we won't find it if we're
3408 # using a relative directory.
3409 cp "$am_depcomp" conftest.dir
3410 cd conftest.dir
3411 # We will build objects and dependencies in a subdirectory because
3412 # it helps to detect inapplicable dependency modes. For instance
3413 # both Tru64's cc and ICC support -MD to output dependencies as a
3414 # side effect of compilation, but ICC will put the dependencies in
3415 # the current directory while Tru64 will put them in the object
3416 # directory.
3417 mkdir sub
3418
3419 am_cv_CC_dependencies_compiler_type=none
3420 if test "$am_compiler_list" = ""; then
3421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3422 fi
3423 for depmode in $am_compiler_list; do
3424 # Setup a source with many dependencies, because some compilers
3425 # like to wrap large dependency lists on column 80 (with \), and
3426 # we should not choose a depcomp mode which is confused by this.
3427 #
3428 # We need to recreate these files for each test, as the compiler may
3429 # overwrite some of them when testing with obscure command lines.
3430 # This happens at least with the AIX C compiler.
3431 : > sub/conftest.c
3432 for i in 1 2 3 4 5 6; do
3433 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3434 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3435 # Solaris 8's {/usr,}/bin/sh.
3436 touch sub/conftst$i.h
3437 done
3438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3439
3440 case $depmode in
3441 nosideeffect)
3442 # after this tag, mechanisms are not by side-effect, so they'll
3443 # only be used when explicitly requested
3444 if test "x$enable_dependency_tracking" = xyes; then
3445 continue
3446 else
3447 break
3448 fi
3449 ;;
3450 none) break ;;
3451 esac
3452 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3453 # mode. It turns out that the SunPro C++ compiler does not properly
3454 # handle `-M -o', and we need to detect this.
3455 if depmode=$depmode \
3456 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3458 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3459 >/dev/null 2>conftest.err &&
3460 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3461 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3462 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3463 # icc doesn't choke on unknown options, it will just issue warnings
3464 # or remarks (even with -Werror). So we grep stderr for any message
3465 # that says an option was ignored or not supported.
3466 # When given -MP, icc 7.0 and 7.1 complain thusly:
3467 # icc: Command line warning: ignoring option '-M'; no argument required
3468 # The diagnosis changed in icc 8.0:
3469 # icc: Command line remark: option '-MP' not supported
3470 if (grep 'ignoring option' conftest.err ||
3471 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3472 am_cv_CC_dependencies_compiler_type=$depmode
3473 break
3474 fi
3475 fi
3476 done
3477
3478 cd ..
3479 rm -rf conftest.dir
3480 else
3481 am_cv_CC_dependencies_compiler_type=none
3482 fi
3483
3484 fi
3485 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3486 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3487 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3488
3489
3490
3491 if
3492 test "x$enable_dependency_tracking" != xno \
3493 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3494 am__fastdepCC_TRUE=
3495 am__fastdepCC_FALSE='#'
3496 else
3497 am__fastdepCC_TRUE='#'
3498 am__fastdepCC_FALSE=
3499 fi
3500
3501
3502 depcc="$CXX" am_compiler_list=
3503
3504 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3505 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3506 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3510 # We make a subdir and do the tests there. Otherwise we can end up
3511 # making bogus files that we don't know about and never remove. For
3512 # instance it was reported that on HP-UX the gcc test will end up
3513 # making a dummy file named `D' -- because `-MD' means `put the output
3514 # in D'.
3515 mkdir conftest.dir
3516 # Copy depcomp to subdir because otherwise we won't find it if we're
3517 # using a relative directory.
3518 cp "$am_depcomp" conftest.dir
3519 cd conftest.dir
3520 # We will build objects and dependencies in a subdirectory because
3521 # it helps to detect inapplicable dependency modes. For instance
3522 # both Tru64's cc and ICC support -MD to output dependencies as a
3523 # side effect of compilation, but ICC will put the dependencies in
3524 # the current directory while Tru64 will put them in the object
3525 # directory.
3526 mkdir sub
3527
3528 am_cv_CXX_dependencies_compiler_type=none
3529 if test "$am_compiler_list" = ""; then
3530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3531 fi
3532 for depmode in $am_compiler_list; do
3533 # Setup a source with many dependencies, because some compilers
3534 # like to wrap large dependency lists on column 80 (with \), and
3535 # we should not choose a depcomp mode which is confused by this.
3536 #
3537 # We need to recreate these files for each test, as the compiler may
3538 # overwrite some of them when testing with obscure command lines.
3539 # This happens at least with the AIX C compiler.
3540 : > sub/conftest.c
3541 for i in 1 2 3 4 5 6; do
3542 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3543 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3544 # Solaris 8's {/usr,}/bin/sh.
3545 touch sub/conftst$i.h
3546 done
3547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3548
3549 case $depmode in
3550 nosideeffect)
3551 # after this tag, mechanisms are not by side-effect, so they'll
3552 # only be used when explicitly requested
3553 if test "x$enable_dependency_tracking" = xyes; then
3554 continue
3555 else
3556 break
3557 fi
3558 ;;
3559 none) break ;;
3560 esac
3561 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3562 # mode. It turns out that the SunPro C++ compiler does not properly
3563 # handle `-M -o', and we need to detect this.
3564 if depmode=$depmode \
3565 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3567 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3568 >/dev/null 2>conftest.err &&
3569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3570 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3572 # icc doesn't choke on unknown options, it will just issue warnings
3573 # or remarks (even with -Werror). So we grep stderr for any message
3574 # that says an option was ignored or not supported.
3575 # When given -MP, icc 7.0 and 7.1 complain thusly:
3576 # icc: Command line warning: ignoring option '-M'; no argument required
3577 # The diagnosis changed in icc 8.0:
3578 # icc: Command line remark: option '-MP' not supported
3579 if (grep 'ignoring option' conftest.err ||
3580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3581 am_cv_CXX_dependencies_compiler_type=$depmode
3582 break
3583 fi
3584 fi
3585 done
3586
3587 cd ..
3588 rm -rf conftest.dir
3589 else
3590 am_cv_CXX_dependencies_compiler_type=none
3591 fi
3592
3593 fi
3594 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3595 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3596 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3597
3598
3599
3600 if
3601 test "x$enable_dependency_tracking" != xno \
3602 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3603 am__fastdepCXX_TRUE=
3604 am__fastdepCXX_FALSE='#'
3605 else
3606 am__fastdepCXX_TRUE='#'
3607 am__fastdepCXX_FALSE=
3608 fi
3609
3610
3611
3612
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3615 set dummy ${ac_tool_prefix}as; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_AS+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 if test -n "$AS"; then
3622 ac_cv_prog_AS="$AS" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_AS="${ac_tool_prefix}as"
3632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637
3638 fi
3639 fi
3640 AS=$ac_cv_prog_AS
3641 if test -n "$AS"; then
3642 echo "$as_me:$LINENO: result: $AS" >&5
3643 echo "${ECHO_T}$AS" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3647 fi
3648
3649 fi
3650 if test -z "$ac_cv_prog_AS"; then
3651 ac_ct_AS=$AS
3652 # Extract the first word of "as", so it can be a program name with args.
3653 set dummy 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_ac_ct_AS+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 if test -n "$ac_ct_AS"; then
3660 ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="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 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3679 if test -n "$ac_ct_AS"; then
3680 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3681 echo "${ECHO_T}$ac_ct_AS" >&6
3682 else
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687 AS=$ac_ct_AS
3688 else
3689 AS="$ac_cv_prog_AS"
3690 fi
3691
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}ar; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_AR+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 if test -n "$AR"; then
3701 ac_cv_prog_AR="$AR" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_AR="${ac_tool_prefix}ar"
3711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714 done
3715 done
3716
3717 fi
3718 fi
3719 AR=$ac_cv_prog_AR
3720 if test -n "$AR"; then
3721 echo "$as_me:$LINENO: result: $AR" >&5
3722 echo "${ECHO_T}$AR" >&6
3723 else
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726 fi
3727
3728 fi
3729 if test -z "$ac_cv_prog_AR"; then
3730 ac_ct_AR=$AR
3731 # Extract the first word of "ar", so it can be a program name with args.
3732 set dummy 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_ac_ct_AR+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 if test -n "$ac_ct_AR"; then
3739 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3758 if test -n "$ac_ct_AR"; then
3759 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3760 echo "${ECHO_T}$ac_ct_AR" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 AR=$ac_ct_AR
3767 else
3768 AR="$ac_cv_prog_AR"
3769 fi
3770
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3774 echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3776 if test "${ac_cv_prog_RANLIB+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 if test -n "$RANLIB"; then
3780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795
3796 fi
3797 fi
3798 RANLIB=$ac_cv_prog_RANLIB
3799 if test -n "$RANLIB"; then
3800 echo "$as_me:$LINENO: result: $RANLIB" >&5
3801 echo "${ECHO_T}$RANLIB" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6
3805 fi
3806
3807 fi
3808 if test -z "$ac_cv_prog_RANLIB"; then
3809 ac_ct_RANLIB=$RANLIB
3810 # Extract the first word of "ranlib", so it can be a program name with args.
3811 set dummy 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_ac_ct_RANLIB+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 if test -n "$ac_ct_RANLIB"; then
3818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="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 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3835 fi
3836 fi
3837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3838 if test -n "$ac_ct_RANLIB"; then
3839 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3840 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3841 else
3842 echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844 fi
3845
3846 RANLIB=$ac_ct_RANLIB
3847 else
3848 RANLIB="$ac_cv_prog_RANLIB"
3849 fi
3850
3851
3852 # Find a good install program. We prefer a C program (faster),
3853 # so one script is as good as another. But avoid the broken or
3854 # incompatible versions:
3855 # SysV /etc/install, /usr/sbin/install
3856 # SunOS /usr/etc/install
3857 # IRIX /sbin/install
3858 # AIX /bin/install
3859 # AmigaOS /C/install, which installs bootblocks on floppy discs
3860 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3861 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3862 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3863 # OS/2's system install, which has a completely different semantic
3864 # ./install, which can be erroneously created by make from ./install.sh.
3865 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3866 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3867 if test -z "$INSTALL"; then
3868 if test "${ac_cv_path_install+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 # Account for people who put trailing slashes in PATH elements.
3877 case $as_dir/ in
3878 ./ | .// | /cC/* | \
3879 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3880 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3881 /usr/ucb/* ) ;;
3882 *)
3883 # OSF1 and SCO ODT 3.0 have their own names for install.
3884 # Don't use installbsd from OSF since it installs stuff as root
3885 # by default.
3886 for ac_prog in ginstall scoinst install; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3889 if test $ac_prog = install &&
3890 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3891 # AIX install. It has an incompatible calling convention.
3892 :
3893 elif test $ac_prog = install &&
3894 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3895 # program-specific install script used by HP pwplus--don't use.
3896 :
3897 else
3898 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3899 break 3
3900 fi
3901 fi
3902 done
3903 done
3904 ;;
3905 esac
3906 done
3907
3908
3909 fi
3910 if test "${ac_cv_path_install+set}" = set; then
3911 INSTALL=$ac_cv_path_install
3912 else
3913 # As a last resort, use the slow shell script. We don't cache a
3914 # path for INSTALL within a source directory, because that will
3915 # break other packages using the cache if that directory is
3916 # removed, or if the path is relative.
3917 INSTALL=$ac_install_sh
3918 fi
3919 fi
3920 echo "$as_me:$LINENO: result: $INSTALL" >&5
3921 echo "${ECHO_T}$INSTALL" >&6
3922
3923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3924 # It thinks the first close brace ends the variable substitution.
3925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3926
3927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3928
3929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3930
3931
3932 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3933 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3934 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3935 if test "${enable_maintainer_mode+set}" = set; then
3936 enableval="$enable_maintainer_mode"
3937 USE_MAINTAINER_MODE=$enableval
3938 else
3939 USE_MAINTAINER_MODE=no
3940 fi;
3941 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3942 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3943
3944
3945 if test $USE_MAINTAINER_MODE = yes; then
3946 MAINTAINER_MODE_TRUE=
3947 MAINTAINER_MODE_FALSE='#'
3948 else
3949 MAINTAINER_MODE_TRUE='#'
3950 MAINTAINER_MODE_FALSE=
3951 fi
3952
3953 MAINT=$MAINTAINER_MODE_TRUE
3954
3955
3956
3957
3958
3959 # configure.host sets the following important variables
3960 # libgcj_cflags - host specific C compiler flags
3961 # libgcj_cxxflags - host specific C++ compiler flags
3962 # libgcj_javaflags - host specific Java compiler flags
3963
3964 libgcj_cflags=
3965 libgcj_cxxflags=
3966 libgcj_javaflags=
3967
3968 . ${srcdir}/configure.host
3969
3970 LIBGCJ_CFLAGS="${libgcj_cflags}"
3971 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3972 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3973
3974
3975
3976
3977 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3978
3979
3980 # Only use libltdl for non-newlib builds.
3981 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3982 case $enable_ltdl_convenience in
3983 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3984 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3985 { (exit 1); exit 1; }; } ;;
3986 "") enable_ltdl_convenience=yes
3987 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3988 esac
3989 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3990 INCLTDL='-I${top_srcdir}/''libltdl'
3991
3992
3993 DIRLTDL=libltdl
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define USE_LTDL 1
3997 _ACEOF
3998
3999 # Sigh. Libtool's macro doesn't do the right thing.
4000 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4001 # FIXME: this is a hack.
4002 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4003 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4004 fi
4005
4006
4007
4008 # Check whether --enable-shared or --disable-shared was given.
4009 if test "${enable_shared+set}" = set; then
4010 enableval="$enable_shared"
4011 p=${PACKAGE-default}
4012 case $enableval in
4013 yes) enable_shared=yes ;;
4014 no) enable_shared=no ;;
4015 *)
4016 enable_shared=no
4017 # Look at the argument we got. We use all the common list separators.
4018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4019 for pkg in $enableval; do
4020 if test "X$pkg" = "X$p"; then
4021 enable_shared=yes
4022 fi
4023 done
4024 IFS="$ac_save_ifs"
4025 ;;
4026 esac
4027 else
4028 enable_shared=yes
4029 fi;
4030 # Check whether --enable-static or --disable-static was given.
4031 if test "${enable_static+set}" = set; then
4032 enableval="$enable_static"
4033 p=${PACKAGE-default}
4034 case $enableval in
4035 yes) enable_static=yes ;;
4036 no) enable_static=no ;;
4037 *)
4038 enable_static=no
4039 # Look at the argument we got. We use all the common list separators.
4040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4041 for pkg in $enableval; do
4042 if test "X$pkg" = "X$p"; then
4043 enable_static=yes
4044 fi
4045 done
4046 IFS="$ac_save_ifs"
4047 ;;
4048 esac
4049 else
4050 enable_static=yes
4051 fi;
4052 # Check whether --enable-fast-install or --disable-fast-install was given.
4053 if test "${enable_fast_install+set}" = set; then
4054 enableval="$enable_fast_install"
4055 p=${PACKAGE-default}
4056 case $enableval in
4057 yes) enable_fast_install=yes ;;
4058 no) enable_fast_install=no ;;
4059 *)
4060 enable_fast_install=no
4061 # Look at the argument we got. We use all the common list separators.
4062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4063 for pkg in $enableval; do
4064 if test "X$pkg" = "X$p"; then
4065 enable_fast_install=yes
4066 fi
4067 done
4068 IFS="$ac_save_ifs"
4069 ;;
4070 esac
4071 else
4072 enable_fast_install=yes
4073 fi;
4074
4075 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4076 if test "${with_gnu_ld+set}" = set; then
4077 withval="$with_gnu_ld"
4078 test "$withval" = no || with_gnu_ld=yes
4079 else
4080 with_gnu_ld=no
4081 fi;
4082 ac_prog=ld
4083 if test "$GCC" = yes; then
4084 # Check if gcc -print-prog-name=ld gives a path.
4085 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4086 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4087 case $host in
4088 *-*-mingw*)
4089 # gcc leaves a trailing carriage return which upsets mingw
4090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4091 *)
4092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4093 esac
4094 case $ac_prog in
4095 # Accept absolute paths.
4096 [\\/]* | [A-Za-z]:[\\/]*)
4097 re_direlt='/[^/][^/]*/\.\./'
4098 # Canonicalize the path of ld
4099 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4100 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4101 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4102 done
4103 test -z "$LD" && LD="$ac_prog"
4104 ;;
4105 "")
4106 # If it fails, then pretend we aren't using GCC.
4107 ac_prog=ld
4108 ;;
4109 *)
4110 # If it is relative, then search for the first ld in PATH.
4111 with_gnu_ld=unknown
4112 ;;
4113 esac
4114 elif test "$with_gnu_ld" = yes; then
4115 echo "$as_me:$LINENO: checking for GNU ld" >&5
4116 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4117 else
4118 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4119 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4120 fi
4121 if test "${lt_cv_path_LD+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 if test -z "$LD"; then
4125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4126 for ac_dir in $PATH; do
4127 test -z "$ac_dir" && ac_dir=.
4128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4129 lt_cv_path_LD="$ac_dir/$ac_prog"
4130 # Check to see if the program is GNU ld. I'd rather use --version,
4131 # but apparently some GNU ld's only accept -v.
4132 # Break only if it was the GNU/non-GNU ld that we prefer.
4133 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4134 test "$with_gnu_ld" != no && break
4135 else
4136 test "$with_gnu_ld" != yes && break
4137 fi
4138 fi
4139 done
4140 IFS="$ac_save_ifs"
4141 else
4142 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4143 fi
4144 fi
4145
4146 LD="$lt_cv_path_LD"
4147 if test -n "$LD"; then
4148 echo "$as_me:$LINENO: result: $LD" >&5
4149 echo "${ECHO_T}$LD" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4155 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4156 { (exit 1); exit 1; }; }
4157 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4158 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4159 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4163 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4164 lt_cv_prog_gnu_ld=yes
4165 else
4166 lt_cv_prog_gnu_ld=no
4167 fi
4168 fi
4169 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4170 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4171 with_gnu_ld=$lt_cv_prog_gnu_ld
4172
4173
4174 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4175 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4176 if test "${lt_cv_ld_reload_flag+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 lt_cv_ld_reload_flag='-r'
4180 fi
4181 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4182 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4183 reload_flag=$lt_cv_ld_reload_flag
4184 test -n "$reload_flag" && reload_flag=" $reload_flag"
4185
4186 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4187 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4188 if test "${lt_cv_path_NM+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if test -n "$NM"; then
4192 # Let the user override the test.
4193 lt_cv_path_NM="$NM"
4194 else
4195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4196 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4197 test -z "$ac_dir" && ac_dir=.
4198 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4199 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4200 # Check to see if the nm accepts a BSD-compat flag.
4201 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4202 # nm: unknown option "B" ignored
4203 # Tru64's nm complains that /dev/null is an invalid object file
4204 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4205 lt_cv_path_NM="$tmp_nm -B"
4206 break
4207 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4208 lt_cv_path_NM="$tmp_nm -p"
4209 break
4210 else
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212 continue # so that we can try to find one that supports BSD flags
4213 fi
4214 fi
4215 done
4216 IFS="$ac_save_ifs"
4217 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4218 fi
4219 fi
4220
4221 NM="$lt_cv_path_NM"
4222 echo "$as_me:$LINENO: result: $NM" >&5
4223 echo "${ECHO_T}$NM" >&6
4224
4225 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4226 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4227 if test "${lt_cv_deplibs_check_method+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 lt_cv_file_magic_cmd='$MAGIC_CMD'
4231 lt_cv_file_magic_test_file=
4232 lt_cv_deplibs_check_method='unknown'
4233 # Need to set the preceding variable on all platforms that support
4234 # interlibrary dependencies.
4235 # 'none' -- dependencies not supported.
4236 # `unknown' -- same as none, but documents that we really don't know.
4237 # 'pass_all' -- all dependencies passed with no checks.
4238 # 'test_compile' -- check by making test program.
4239 # 'file_magic [regex]' -- check by looking for files in library path
4240 # which responds to the $file_magic_cmd with a given egrep regex.
4241 # If you have `file' or equivalent on your system and you're not sure
4242 # whether `pass_all' will *always* work, you probably want this one.
4243
4244 case $host_os in
4245 aix*)
4246 lt_cv_deplibs_check_method=pass_all
4247 ;;
4248
4249 beos*)
4250 lt_cv_deplibs_check_method=pass_all
4251 ;;
4252
4253 bsdi4*)
4254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4255 lt_cv_file_magic_cmd='/usr/bin/file -L'
4256 lt_cv_file_magic_test_file=/shlib/libc.so
4257 ;;
4258
4259 cygwin* | mingw* |pw32*)
4260 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4261 lt_cv_file_magic_cmd='$OBJDUMP -f'
4262 ;;
4263
4264 darwin* | rhapsody*)
4265 # this will be overwritten by pass_all, but leave it in just in case
4266 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4267 lt_cv_file_magic_cmd='/usr/bin/file -L'
4268 case "$host_os" in
4269 rhapsody* | darwin1.012)
4270 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4271 ;;
4272 *) # Darwin 1.3 on
4273 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4274 ;;
4275 esac
4276 lt_cv_deplibs_check_method=pass_all
4277 ;;
4278
4279 freebsd* | kfreebsd*-gnu)
4280 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4281 case $host_cpu in
4282 i*86 )
4283 # Not sure whether the presence of OpenBSD here was a mistake.
4284 # Let's accept both of them until this is cleared up.
4285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4286 lt_cv_file_magic_cmd=/usr/bin/file
4287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4288 ;;
4289 esac
4290 else
4291 lt_cv_deplibs_check_method=pass_all
4292 fi
4293 ;;
4294
4295 gnu*)
4296 lt_cv_deplibs_check_method=pass_all
4297 ;;
4298
4299 hpux10.20*|hpux11*)
4300 case $host_cpu in
4301 hppa*)
4302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4303 lt_cv_file_magic_cmd=/usr/bin/file
4304 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4305 ;;
4306 ia64*)
4307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4308 lt_cv_file_magic_cmd=/usr/bin/file
4309 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4310 ;;
4311 esac
4312 ;;
4313
4314 irix5* | irix6*)
4315 case $host_os in
4316 irix5*)
4317 # this will be overridden with pass_all, but let us keep it just in case
4318 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4319 ;;
4320 *)
4321 case $LD in
4322 *-32|*"-32 ") libmagic=32-bit;;
4323 *-n32|*"-n32 ") libmagic=N32;;
4324 *-64|*"-64 ") libmagic=64-bit;;
4325 *) libmagic=never-match;;
4326 esac
4327 # this will be overridden with pass_all, but let us keep it just in case
4328 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4329 ;;
4330 esac
4331 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334
4335 # This must be Linux ELF.
4336 linux-gnu*)
4337 case $host_cpu in
4338 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4339 lt_cv_deplibs_check_method=pass_all ;;
4340 *)
4341 # glibc up to 2.1.1 does not perform some relocations on ARM
4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4343 esac
4344 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4345 ;;
4346
4347 netbsd* | knetbsd*-gnu)
4348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4350 else
4351 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4352 fi
4353 ;;
4354
4355 newsos6)
4356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4357 lt_cv_file_magic_cmd=/usr/bin/file
4358 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4359 ;;
4360
4361 osf3* | osf4* | osf5*)
4362 # this will be overridden with pass_all, but let us keep it just in case
4363 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4364 lt_cv_file_magic_test_file=/shlib/libc.so
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368 sco3.2v5*)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371
4372 solaris*)
4373 lt_cv_deplibs_check_method=pass_all
4374 lt_cv_file_magic_test_file=/lib/libc.so
4375 ;;
4376
4377 sysv5uw[78]* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4379 ;;
4380
4381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4382 case $host_vendor in
4383 ncr)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386 motorola)
4387 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]'
4388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4389 ;;
4390 esac
4391 ;;
4392 esac
4393
4394 fi
4395 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4396 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4397 file_magic_cmd=$lt_cv_file_magic_cmd
4398 deplibs_check_method=$lt_cv_deplibs_check_method
4399
4400
4401
4402
4403 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4404
4405 # Only perform the check for file, if the check method requires it
4406 case $deplibs_check_method in
4407 file_magic*)
4408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4409 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4410 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 case $MAGIC_CMD in
4415 /*)
4416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4417 ;;
4418 ?:/*)
4419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4420 ;;
4421 *)
4422 ac_save_MAGIC_CMD="$MAGIC_CMD"
4423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4424 ac_dummy="/usr/bin:$PATH"
4425 for ac_dir in $ac_dummy; do
4426 test -z "$ac_dir" && ac_dir=.
4427 if test -f $ac_dir/${ac_tool_prefix}file; then
4428 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4429 if test -n "$file_magic_test_file"; then
4430 case $deplibs_check_method in
4431 "file_magic "*)
4432 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4435 egrep "$file_magic_regex" > /dev/null; then
4436 :
4437 else
4438 cat <<EOF 1>&2
4439
4440 *** Warning: the command libtool uses to detect shared libraries,
4441 *** $file_magic_cmd, produces output that libtool cannot recognize.
4442 *** The result is that libtool may fail to recognize shared libraries
4443 *** as such. This will affect the creation of libtool libraries that
4444 *** depend on shared libraries, but programs linked with such libtool
4445 *** libraries will work regardless of this problem. Nevertheless, you
4446 *** may want to report the problem to your system manager and/or to
4447 *** bug-libtool@gnu.org
4448
4449 EOF
4450 fi ;;
4451 esac
4452 fi
4453 break
4454 fi
4455 done
4456 IFS="$ac_save_ifs"
4457 MAGIC_CMD="$ac_save_MAGIC_CMD"
4458 ;;
4459 esac
4460 fi
4461
4462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4463 if test -n "$MAGIC_CMD"; then
4464 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4465 echo "${ECHO_T}$MAGIC_CMD" >&6
4466 else
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471 if test -z "$lt_cv_path_MAGIC_CMD"; then
4472 if test -n "$ac_tool_prefix"; then
4473 echo "$as_me:$LINENO: checking for file" >&5
4474 echo $ECHO_N "checking for file... $ECHO_C" >&6
4475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 case $MAGIC_CMD in
4479 /*)
4480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4481 ;;
4482 ?:/*)
4483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4484 ;;
4485 *)
4486 ac_save_MAGIC_CMD="$MAGIC_CMD"
4487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 ac_dummy="/usr/bin:$PATH"
4489 for ac_dir in $ac_dummy; do
4490 test -z "$ac_dir" && ac_dir=.
4491 if test -f $ac_dir/file; then
4492 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4493 if test -n "$file_magic_test_file"; then
4494 case $deplibs_check_method in
4495 "file_magic "*)
4496 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4499 egrep "$file_magic_regex" > /dev/null; then
4500 :
4501 else
4502 cat <<EOF 1>&2
4503
4504 *** Warning: the command libtool uses to detect shared libraries,
4505 *** $file_magic_cmd, produces output that libtool cannot recognize.
4506 *** The result is that libtool may fail to recognize shared libraries
4507 *** as such. This will affect the creation of libtool libraries that
4508 *** depend on shared libraries, but programs linked with such libtool
4509 *** libraries will work regardless of this problem. Nevertheless, you
4510 *** may want to report the problem to your system manager and/or to
4511 *** bug-libtool@gnu.org
4512
4513 EOF
4514 fi ;;
4515 esac
4516 fi
4517 break
4518 fi
4519 done
4520 IFS="$ac_save_ifs"
4521 MAGIC_CMD="$ac_save_MAGIC_CMD"
4522 ;;
4523 esac
4524 fi
4525
4526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4527 if test -n "$MAGIC_CMD"; then
4528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4529 echo "${ECHO_T}$MAGIC_CMD" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535 else
4536 MAGIC_CMD=:
4537 fi
4538 fi
4539
4540 fi
4541 ;;
4542 esac
4543
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4547 echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549 if test "${ac_cv_prog_RANLIB+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 if test -n "$RANLIB"; then
4553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566 done
4567 done
4568
4569 fi
4570 fi
4571 RANLIB=$ac_cv_prog_RANLIB
4572 if test -n "$RANLIB"; then
4573 echo "$as_me:$LINENO: result: $RANLIB" >&5
4574 echo "${ECHO_T}$RANLIB" >&6
4575 else
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4578 fi
4579
4580 fi
4581 if test -z "$ac_cv_prog_RANLIB"; then
4582 ac_ct_RANLIB=$RANLIB
4583 # Extract the first word of "ranlib", so it can be a program name with args.
4584 set dummy ranlib; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 if test -n "$ac_ct_RANLIB"; then
4591 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_ac_ct_RANLIB="ranlib"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606
4607 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4608 fi
4609 fi
4610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4611 if test -n "$ac_ct_RANLIB"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4613 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4617 fi
4618
4619 RANLIB=$ac_ct_RANLIB
4620 else
4621 RANLIB="$ac_cv_prog_RANLIB"
4622 fi
4623
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}strip; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_prog_STRIP+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 if test -n "$STRIP"; then
4633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648
4649 fi
4650 fi
4651 STRIP=$ac_cv_prog_STRIP
4652 if test -n "$STRIP"; then
4653 echo "$as_me:$LINENO: result: $STRIP" >&5
4654 echo "${ECHO_T}$STRIP" >&6
4655 else
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4658 fi
4659
4660 fi
4661 if test -z "$ac_cv_prog_STRIP"; then
4662 ac_ct_STRIP=$STRIP
4663 # Extract the first word of "strip", so it can be a program name with args.
4664 set dummy strip; ac_word=$2
4665 echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 if test -n "$ac_ct_STRIP"; then
4671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_STRIP="strip"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686
4687 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4688 fi
4689 fi
4690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4691 if test -n "$ac_ct_STRIP"; then
4692 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4693 echo "${ECHO_T}$ac_ct_STRIP" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4697 fi
4698
4699 STRIP=$ac_ct_STRIP
4700 else
4701 STRIP="$ac_cv_prog_STRIP"
4702 fi
4703
4704
4705 # Check for any special flags to pass to ltconfig.
4706 libtool_flags="--cache-file=$cache_file"
4707 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4708 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4709 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4710 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4711 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4712
4713
4714 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4715 if test "${enable_libtool_lock+set}" = set; then
4716 enableval="$enable_libtool_lock"
4717
4718 fi;
4719 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4720 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4721
4722
4723 # Check whether --with-pic or --without-pic was given.
4724 if test "${with_pic+set}" = set; then
4725 withval="$with_pic"
4726 pic_mode="$withval"
4727 else
4728 pic_mode=default
4729 fi;
4730 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4731 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4732
4733 # Some flags need to be propagated to the compiler or linker for good
4734 # libtool support.
4735 case $host in
4736 *-*-irix6*)
4737 # Find out which ABI we are using.
4738 echo '#line 4738 "configure"' > conftest.$ac_ext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; then
4744 if test "$lt_cv_prog_gnu_ld" = yes; then
4745 case `/usr/bin/file conftest.$ac_objext` in
4746 *32-bit*)
4747 LD="${LD-ld} -melf32bsmip"
4748 ;;
4749 *N32*)
4750 LD="${LD-ld} -melf32bmipn32"
4751 ;;
4752 *64-bit*)
4753 LD="${LD-ld} -melf64bmip"
4754 ;;
4755 esac
4756 else
4757 case `/usr/bin/file conftest.$ac_objext` in
4758 *32-bit*)
4759 LD="${LD-ld} -32"
4760 ;;
4761 *N32*)
4762 LD="${LD-ld} -n32"
4763 ;;
4764 *64-bit*)
4765 LD="${LD-ld} -64"
4766 ;;
4767 esac
4768 fi
4769 fi
4770 rm -rf conftest*
4771 ;;
4772
4773 ia64-*-hpux*)
4774 # Find out which ABI we are using.
4775 echo 'int i;' > conftest.$ac_ext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; then
4781 case "`/usr/bin/file conftest.o`" in
4782 *ELF-32*)
4783 HPUX_IA64_MODE="32"
4784 ;;
4785 *ELF-64*)
4786 HPUX_IA64_MODE="64"
4787 ;;
4788 esac
4789 fi
4790 rm -rf conftest*
4791 ;;
4792
4793 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4794 # Find out which ABI we are using.
4795 echo 'int i;' > conftest.$ac_ext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; then
4801 case "`/usr/bin/file conftest.o`" in
4802 *32-bit*)
4803 case $host in
4804 x86_64-*linux*)
4805 LD="${LD-ld} -m elf_i386"
4806 ;;
4807 ppc64-*linux*|powerpc64-*linux*)
4808 LD="${LD-ld} -m elf32ppclinux"
4809 ;;
4810 s390x-*linux*)
4811 LD="${LD-ld} -m elf_s390"
4812 ;;
4813 sparc64-*linux*)
4814 LD="${LD-ld} -m elf32_sparc"
4815 ;;
4816 esac
4817 ;;
4818 *64-bit*)
4819 case $host in
4820 x86_64-*linux*)
4821 LD="${LD-ld} -m elf_x86_64"
4822 ;;
4823 ppc*-*linux*|powerpc*-*linux*)
4824 LD="${LD-ld} -m elf64ppc"
4825 ;;
4826 s390*-*linux*)
4827 LD="${LD-ld} -m elf64_s390"
4828 ;;
4829 sparc*-*linux*)
4830 LD="${LD-ld} -m elf64_sparc"
4831 ;;
4832 esac
4833 ;;
4834 esac
4835 fi
4836 rm -rf conftest*
4837 ;;
4838
4839 *-*-sco3.2v5*)
4840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4841 SAVE_CFLAGS="$CFLAGS"
4842 CFLAGS="$CFLAGS -belf"
4843 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4844 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4845 if test "${lt_cv_cc_needs_belf+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848
4849
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856 if test x$gcc_no_link = xyes; then
4857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4859 { (exit 1); exit 1; }; }
4860 fi
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 lt_cv_cc_needs_belf=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 lt_cv_cc_needs_belf=no
4903 fi
4904 rm -f conftest.err conftest.$ac_objext \
4905 conftest$ac_exeext conftest.$ac_ext
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912 fi
4913 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4914 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4915 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4916 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4917 CFLAGS="$SAVE_CFLAGS"
4918 fi
4919 ;;
4920
4921
4922 esac
4923
4924
4925 # Save cache, so that ltconfig can load it
4926 cat >confcache <<\_ACEOF
4927 # This file is a shell script that caches the results of configure
4928 # tests run on this system so they can be shared between configure
4929 # scripts and configure runs, see configure's option --config-cache.
4930 # It is not useful on other systems. If it contains results you don't
4931 # want to keep, you may remove or edit it.
4932 #
4933 # config.status only pays attention to the cache file if you give it
4934 # the --recheck option to rerun configure.
4935 #
4936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4938 # following values.
4939
4940 _ACEOF
4941
4942 # The following way of writing the cache mishandles newlines in values,
4943 # but we know of no workaround that is simple, portable, and efficient.
4944 # So, don't put newlines in cache variables' values.
4945 # Ultrix sh set writes to stderr and can't be redirected directly,
4946 # and sets the high bit in the cache file unless we assign to the vars.
4947 {
4948 (set) 2>&1 |
4949 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4950 *ac_space=\ *)
4951 # `set' does not quote correctly, so add quotes (double-quote
4952 # substitution turns \\\\ into \\, and sed turns \\ into \).
4953 sed -n \
4954 "s/'/'\\\\''/g;
4955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4956 ;;
4957 *)
4958 # `set' quotes correctly as required by POSIX, so do not add quotes.
4959 sed -n \
4960 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4961 ;;
4962 esac;
4963 } |
4964 sed '
4965 t clear
4966 : clear
4967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4968 t end
4969 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4970 : end' >>confcache
4971 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4972 if test -w $cache_file; then
4973 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4974 cat confcache >$cache_file
4975 else
4976 echo "not updating unwritable cache $cache_file"
4977 fi
4978 fi
4979 rm -f confcache
4980
4981 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4982 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4983 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4984 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4985 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4986 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4987 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4988 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4989 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4990 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4991 echo "$as_me: error: libtool configure failed" >&2;}
4992 { (exit 1); exit 1; }; }
4993
4994 # Reload cache, that may have been modified by ltconfig
4995 if test -r "$cache_file"; then
4996 # Some versions of bash will fail to source /dev/null (special
4997 # files actually), so we avoid doing that.
4998 if test -f "$cache_file"; then
4999 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5000 echo "$as_me: loading cache $cache_file" >&6;}
5001 case $cache_file in
5002 [\\/]* | ?:[\\/]* ) . $cache_file;;
5003 *) . ./$cache_file;;
5004 esac
5005 fi
5006 else
5007 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5008 echo "$as_me: creating cache $cache_file" >&6;}
5009 >$cache_file
5010 fi
5011
5012
5013 # This can be used to rebuild libtool when needed
5014 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5015
5016 # Always use our own libtool.
5017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5018
5019 # Redirect the config.log output again, so that the ltconfig log is not
5020 # clobbered by the next message.
5021 exec 5>>./config.log
5022
5023 ac_ext=cc
5024 ac_cpp='$CXXCPP $CPPFLAGS'
5025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5028 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5029 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5030 if test -z "$CXXCPP"; then
5031 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 # Double quotes because CXXCPP needs to be expanded
5035 for CXXCPP in "$CXX -E" "/lib/cpp"
5036 do
5037 ac_preproc_ok=false
5038 for ac_cxx_preproc_warn_flag in '' yes
5039 do
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_cxx_preproc_warn_flag
5069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5070 else
5071 ac_cpp_err=
5072 fi
5073 else
5074 ac_cpp_err=yes
5075 fi
5076 if test -z "$ac_cpp_err"; then
5077 :
5078 else
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 # Broken: fails on valid input.
5083 continue
5084 fi
5085 rm -f conftest.err conftest.$ac_ext
5086
5087 # OK, works on sane cases. Now check whether non-existent headers
5088 # can be detected and how.
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5096 _ACEOF
5097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } >/dev/null; then
5105 if test -s conftest.err; then
5106 ac_cpp_err=$ac_cxx_preproc_warn_flag
5107 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5108 else
5109 ac_cpp_err=
5110 fi
5111 else
5112 ac_cpp_err=yes
5113 fi
5114 if test -z "$ac_cpp_err"; then
5115 # Broken: success on invalid input.
5116 continue
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Passes both tests.
5122 ac_preproc_ok=:
5123 break
5124 fi
5125 rm -f conftest.err conftest.$ac_ext
5126
5127 done
5128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5129 rm -f conftest.err conftest.$ac_ext
5130 if $ac_preproc_ok; then
5131 break
5132 fi
5133
5134 done
5135 ac_cv_prog_CXXCPP=$CXXCPP
5136
5137 fi
5138 CXXCPP=$ac_cv_prog_CXXCPP
5139 else
5140 ac_cv_prog_CXXCPP=$CXXCPP
5141 fi
5142 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5143 echo "${ECHO_T}$CXXCPP" >&6
5144 ac_preproc_ok=false
5145 for ac_cxx_preproc_warn_flag in '' yes
5146 do
5147 # Use a header file that comes with gcc, so configuring glibc
5148 # with a fresh cross-compiler works.
5149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5150 # <limits.h> exists even on freestanding compilers.
5151 # On the NeXT, cc -E runs the code through the compiler's parser,
5152 # not just through cpp. "Syntax error" is here to catch this case.
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 #ifdef __STDC__
5160 # include <limits.h>
5161 #else
5162 # include <assert.h>
5163 #endif
5164 Syntax error
5165 _ACEOF
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_cxx_preproc_warn_flag
5176 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5177 else
5178 ac_cpp_err=
5179 fi
5180 else
5181 ac_cpp_err=yes
5182 fi
5183 if test -z "$ac_cpp_err"; then
5184 :
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 # Broken: fails on valid input.
5190 continue
5191 fi
5192 rm -f conftest.err conftest.$ac_ext
5193
5194 # OK, works on sane cases. Now check whether non-existent headers
5195 # can be detected and how.
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <ac_nonexistent.h>
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_cxx_preproc_warn_flag
5214 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5215 else
5216 ac_cpp_err=
5217 fi
5218 else
5219 ac_cpp_err=yes
5220 fi
5221 if test -z "$ac_cpp_err"; then
5222 # Broken: success on invalid input.
5223 continue
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Passes both tests.
5229 ac_preproc_ok=:
5230 break
5231 fi
5232 rm -f conftest.err conftest.$ac_ext
5233
5234 done
5235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5236 rm -f conftest.err conftest.$ac_ext
5237 if $ac_preproc_ok; then
5238 :
5239 else
5240 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5241 See \`config.log' for more details." >&5
5242 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5243 See \`config.log' for more details." >&2;}
5244 { (exit 1); exit 1; }; }
5245 fi
5246
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252
5253
5254
5255 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5256 lt_save_CC="$CC"
5257 lt_save_CFLAGS="$CFLAGS"
5258 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5259 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5260 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5261 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5262 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5263 deplibs_check_method="$deplibs_check_method" \
5264 file_magic_cmd="$file_magic_cmd" \
5265 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5266 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5267 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5268 echo "$as_me: error: libtool tag configuration failed" >&2;}
5269 { (exit 1); exit 1; }; }
5270 CC="$lt_save_CC"
5271 CFLAGS="$lt_save_CFLAGS"
5272
5273 # Redirect the config.log output again, so that the ltconfig log is not
5274 # clobbered by the next message.
5275 exec 5>>./config.log
5276
5277
5278
5279
5280
5281
5282
5283 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5284 do
5285 # Extract the first word of "$ac_prog", so it can be a program name with args.
5286 set dummy $ac_prog; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_prog_GCJ+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 if test -n "$GCJ"; then
5293 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_GCJ="$ac_prog"
5303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308
5309 fi
5310 fi
5311 GCJ=$ac_cv_prog_GCJ
5312 if test -n "$GCJ"; then
5313 echo "$as_me:$LINENO: result: $GCJ" >&5
5314 echo "${ECHO_T}$GCJ" >&6
5315 else
5316 echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6
5318 fi
5319
5320 test -n "$GCJ" && break
5321 done
5322 test -n "$GCJ" || GCJ="gcj"
5323
5324 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5325 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5326 { (exit 1); exit 1; }; }
5327 if test "x${GCJFLAGS-unset}" = xunset; then
5328 GCJFLAGS="-g -O2"
5329 fi
5330
5331
5332 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5333
5334 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5336 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340 # We make a subdir and do the tests there. Otherwise we can end up
5341 # making bogus files that we don't know about and never remove. For
5342 # instance it was reported that on HP-UX the gcc test will end up
5343 # making a dummy file named `D' -- because `-MD' means `put the output
5344 # in D'.
5345 mkdir conftest.dir
5346 # Copy depcomp to subdir because otherwise we won't find it if we're
5347 # using a relative directory.
5348 cp "$am_depcomp" conftest.dir
5349 cd conftest.dir
5350 # We will build objects and dependencies in a subdirectory because
5351 # it helps to detect inapplicable dependency modes. For instance
5352 # both Tru64's cc and ICC support -MD to output dependencies as a
5353 # side effect of compilation, but ICC will put the dependencies in
5354 # the current directory while Tru64 will put them in the object
5355 # directory.
5356 mkdir sub
5357
5358 am_cv_GCJ_dependencies_compiler_type=none
5359 if test "$am_compiler_list" = ""; then
5360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5361 fi
5362 for depmode in $am_compiler_list; do
5363 # Setup a source with many dependencies, because some compilers
5364 # like to wrap large dependency lists on column 80 (with \), and
5365 # we should not choose a depcomp mode which is confused by this.
5366 #
5367 # We need to recreate these files for each test, as the compiler may
5368 # overwrite some of them when testing with obscure command lines.
5369 # This happens at least with the AIX C compiler.
5370 : > sub/conftest.c
5371 for i in 1 2 3 4 5 6; do
5372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374 # Solaris 8's {/usr,}/bin/sh.
5375 touch sub/conftst$i.h
5376 done
5377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5378
5379 case $depmode in
5380 nosideeffect)
5381 # after this tag, mechanisms are not by side-effect, so they'll
5382 # only be used when explicitly requested
5383 if test "x$enable_dependency_tracking" = xyes; then
5384 continue
5385 else
5386 break
5387 fi
5388 ;;
5389 none) break ;;
5390 esac
5391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5392 # mode. It turns out that the SunPro C++ compiler does not properly
5393 # handle `-M -o', and we need to detect this.
5394 if depmode=$depmode \
5395 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398 >/dev/null 2>conftest.err &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_GCJ_dependencies_compiler_type=$depmode
5412 break
5413 fi
5414 fi
5415 done
5416
5417 cd ..
5418 rm -rf conftest.dir
5419 else
5420 am_cv_GCJ_dependencies_compiler_type=none
5421 fi
5422
5423 fi
5424 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5425 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5426 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5427
5428
5429
5430 if
5431 test "x$enable_dependency_tracking" != xno \
5432 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5433 am__fastdepGCJ_TRUE=
5434 am__fastdepGCJ_FALSE='#'
5435 else
5436 am__fastdepGCJ_TRUE='#'
5437 am__fastdepGCJ_FALSE=
5438 fi
5439
5440
5441
5442
5443 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5444 lt_save_CC="$CC"
5445 lt_save_CFLAGS="$CFLAGS"
5446 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5447 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5448 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5449 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5450 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5451 deplibs_check_method="$deplibs_check_method" \
5452 file_magic_cmd="$file_magic_cmd" \
5453 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5454 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5455 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5456 echo "$as_me: error: libtool tag configuration failed" >&2;}
5457 { (exit 1); exit 1; }; }
5458 CC="$lt_save_CC"
5459 CFLAGS="$lt_save_CFLAGS"
5460
5461 # Redirect the config.log output again, so that the ltconfig log is not
5462 # clobbered by the next message.
5463 exec 5>>./config.log
5464
5465
5466
5467 if test "x$CC" != xcc; then
5468 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5469 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5470 else
5471 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5472 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5473 fi
5474 set dummy $CC; ac_cc=`echo $2 |
5475 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5476 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485
5486 int
5487 main ()
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 # Make sure it works both with $CC and with simple cc.
5495 # We do the test twice because some compilers refuse to overwrite an
5496 # existing .o file with -o, though they will create one.
5497 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5498 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); };
5508 then
5509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5510 if test "x$CC" != xcc; then
5511 # Test first that cc exists at all.
5512 if { ac_try='cc -c conftest.$ac_ext >&5'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5519 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); };
5529 then
5530 # cc works too.
5531 :
5532 else
5533 # cc exists but doesn't like -o.
5534 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5535 fi
5536 fi
5537 fi
5538 else
5539 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5540 fi
5541 rm -f conftest*
5542
5543 fi
5544 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5545 echo "$as_me:$LINENO: result: yes" >&5
5546 echo "${ECHO_T}yes" >&6
5547 else
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define NO_MINUS_C_MINUS_O 1
5553 _ACEOF
5554
5555 fi
5556
5557 # FIXME: we rely on the cache variable name because
5558 # there is no other way.
5559 set dummy $CC
5560 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5561 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5562 # Losing compiler, so override with the script.
5563 # FIXME: It is wrong to rewrite CC.
5564 # But if we don't then we get into trouble of one sort or another.
5565 # A longer-term fix would be to have automake use am__CC in this case,
5566 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5567 CC="$am_aux_dir/compile $CC"
5568 fi
5569
5570
5571
5572 subdirs="$subdirs libltdl"
5573
5574
5575 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5576 COMPPATH=.
5577 else
5578 COMPPATH=..
5579 fi
5580
5581
5582 # The -no-testsuite modules omit the test subdir.
5583
5584
5585 if test -d $srcdir/testsuite; then
5586 TESTSUBDIR_TRUE=
5587 TESTSUBDIR_FALSE='#'
5588 else
5589 TESTSUBDIR_TRUE='#'
5590 TESTSUBDIR_FALSE=
5591 fi
5592
5593
5594 # Should the runtime set system properties by examining the
5595 # environment variable GCJ_PROPERTIES?
5596 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5597 if test "${enable_getenv_properties+set}" = set; then
5598 enableval="$enable_getenv_properties"
5599
5600 fi;
5601
5602 # Whether GCJ_PROPERTIES is used depends on the target.
5603 if test -z "$enable_getenv_properties"; then
5604 enable_getenv_properties=${enable_getenv_properties_default-yes}
5605 fi
5606 if test "$enable_getenv_properties" = no; then
5607
5608 cat >>confdefs.h <<\_ACEOF
5609 #define DISABLE_GETENV_PROPERTIES 1
5610 _ACEOF
5611
5612 fi
5613
5614 # Whether we should use arguments to main()
5615 if test -z "$enable_main_args"; then
5616 enable_main_args=${enable_main_args_default-yes}
5617 fi
5618 if test "$enable_main_args" = no; then
5619
5620 cat >>confdefs.h <<\_ACEOF
5621 #define DISABLE_MAIN_ARGS 1
5622 _ACEOF
5623
5624 fi
5625
5626
5627 # Should we use hashtable-based synchronization?
5628 # Currently works only for Linux X86/ia64
5629 # Typically faster and more space-efficient
5630 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5631 if test "${enable_hash_synchronization+set}" = set; then
5632 enableval="$enable_hash_synchronization"
5633
5634 fi;
5635
5636 if test -z "$enable_hash_synchronization"; then
5637 enable_hash_synchronization=$enable_hash_synchronization_default
5638 fi
5639
5640 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5641 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5642 if test "${enable_libgcj_multifile+set}" = set; then
5643 enableval="$enable_libgcj_multifile"
5644 case "${enableval}" in
5645 yes) enable_libgcj_multifile=yes ;;
5646 no) enable_libgcj_multifile=no ;;
5647 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5648 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5649 { (exit 1); exit 1; }; } ;;
5650 esac
5651 else
5652 enable_libgcj_multifile=no
5653 fi;
5654
5655
5656 if test "$enable_libgcj_multifile" = yes; then
5657 ONESTEP_TRUE=
5658 ONESTEP_FALSE='#'
5659 else
5660 ONESTEP_TRUE='#'
5661 ONESTEP_FALSE=
5662 fi
5663
5664
5665 # What is the native OS API for MinGW?
5666
5667 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5668 if test "${with_win32_nlsapi+set}" = set; then
5669 withval="$with_win32_nlsapi"
5670 case "${withval}" in
5671 ansi) with_win32_nlsapi=ansi ;;
5672 unicows) with_win32_nlsapi=unicows ;;
5673 unicode) with_win32_nlsapi=unicode ;;
5674 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5675 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5676 { (exit 1); exit 1; }; } ;;
5677 esac
5678 else
5679 with_win32_nlsapi=ansi
5680 fi;
5681
5682 case "${with_win32_nlsapi}" in
5683 unicows | unicode)
5684
5685 cat >>confdefs.h <<\_ACEOF
5686 #define MINGW_LIBGCJ_UNICODE 1
5687 _ACEOF
5688
5689 ;;
5690 esac
5691
5692 # configure.host sets slow_pthread_self if the synchronization code should
5693 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5694 if test "${slow_pthread_self}" = "yes"; then
5695
5696 cat >>confdefs.h <<\_ACEOF
5697 #define SLOW_PTHREAD_SELF 1
5698 _ACEOF
5699
5700 fi
5701
5702
5703 # See if the user has requested runtime debugging.
5704 LIBGCJDEBUG="false"
5705
5706 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5707 if test "${enable_libgcj_debug+set}" = set; then
5708 enableval="$enable_libgcj_debug"
5709 if test "$enable_libgcj_debug" = yes; then
5710
5711 cat >>confdefs.h <<\_ACEOF
5712 #define DEBUG 1
5713 _ACEOF
5714
5715 LIBGCJDEBUG="true"
5716 fi
5717 fi;
5718
5719 # See if the user has the interpreter included.
5720 # Check whether --enable-interpreter or --disable-interpreter was given.
5721 if test "${enable_interpreter+set}" = set; then
5722 enableval="$enable_interpreter"
5723 if test "$enable_interpreter" = yes; then
5724 # This can also be set in configure.host.
5725 libgcj_interpreter=yes
5726 elif test "$enable_interpreter" = no; then
5727 libgcj_interpreter=no
5728 fi
5729 fi;
5730
5731 if test "$libgcj_interpreter" = yes; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define INTERPRETER 1
5735 _ACEOF
5736
5737 fi
5738 INTERPRETER="$libgcj_interpreter"
5739
5740
5741 echo "$as_me:$LINENO: checking for exception model to use" >&5
5742 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5743 ac_ext=cc
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748
5749 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5750 if test "${enable_sjlj_exceptions+set}" = set; then
5751 enableval="$enable_sjlj_exceptions"
5752 :
5753 else
5754 cat > conftest.$ac_ext << EOF
5755 #line 5755 "configure"
5756 struct S { ~S(); };
5757 void bar();
5758 void foo()
5759 {
5760 S s;
5761 bar();
5762 }
5763 EOF
5764 old_CXXFLAGS="$CXXFLAGS"
5765 CXXFLAGS=-S
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; then
5771 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5772 enable_sjlj_exceptions=yes
5773 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5774 enable_sjlj_exceptions=no
5775 fi
5776 fi
5777 CXXFLAGS="$old_CXXFLAGS"
5778 rm -f conftest*
5779 fi;
5780 if test x$enable_sjlj_exceptions = xyes; then
5781
5782 cat >>confdefs.h <<\_ACEOF
5783 #define SJLJ_EXCEPTIONS 1
5784 _ACEOF
5785
5786 ac_exception_model_name=sjlj
5787 elif test x$enable_sjlj_exceptions = xno; then
5788 ac_exception_model_name="call frame"
5789 else
5790 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5791 echo "$as_me: error: unable to detect exception model" >&2;}
5792 { (exit 1); exit 1; }; }
5793 fi
5794 ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799
5800 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5801 echo "${ECHO_T}$ac_exception_model_name" >&6
5802
5803 # If we are non using SJLJ exceptions, and this host does not have support
5804 # for unwinding from a signal handler, enable checked dereferences and divides.
5805 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5806 CHECKREFSPEC=-fcheck-references
5807 DIVIDESPEC=-fuse-divide-subroutine
5808 EXCEPTIONSPEC=
5809 fi
5810
5811 # See if the user wants to disable java.net. This is the mildly
5812 # ugly way that we admit that target-side configuration sucks.
5813 # Check whether --enable-java-net or --disable-java-net was given.
5814 if test "${enable_java_net+set}" = set; then
5815 enableval="$enable_java_net"
5816
5817 fi;
5818
5819 # Whether java.net is built by default can depend on the target.
5820 if test -z "$enable_java_net"; then
5821 enable_java_net=${enable_java_net_default-yes}
5822 fi
5823 if test "$enable_java_net" = no; then
5824
5825 cat >>confdefs.h <<\_ACEOF
5826 #define DISABLE_JAVA_NET 1
5827 _ACEOF
5828
5829 fi
5830
5831 # See if the user wants to configure without libffi. Some
5832 # architectures don't support it, and default values are set in
5833 # configure.host.
5834
5835 # Check whether --with-libffi or --without-libffi was given.
5836 if test "${with_libffi+set}" = set; then
5837 withval="$with_libffi"
5838 :
5839 else
5840 with_libffi=${with_libffi_default-yes}
5841 fi;
5842
5843 LIBFFI=
5844 LIBFFIINCS=
5845 if test "$with_libffi" != no; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define USE_LIBFFI 1
5849 _ACEOF
5850
5851 LIBFFI=../libffi/libffi_convenience.la
5852 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5853 fi
5854
5855
5856
5857 # See if the user wants to disable JVMPI support.
5858 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5859 if test "${enable_jvmpi+set}" = set; then
5860 enableval="$enable_jvmpi"
5861
5862 fi;
5863
5864 if test "$enable_jvmpi" != no; then
5865
5866 cat >>confdefs.h <<\_ACEOF
5867 #define ENABLE_JVMPI 1
5868 _ACEOF
5869
5870 fi
5871
5872 # If the target is an eCos system, use the appropriate eCos
5873 # I/O routines.
5874 # FIXME: this should not be a local option but a global target
5875 # system; at present there is no eCos target.
5876 TARGET_ECOS=${PROCESS-"no"}
5877
5878 # Check whether --with-ecos or --without-ecos was given.
5879 if test "${with_ecos+set}" = set; then
5880 withval="$with_ecos"
5881 TARGET_ECOS="$with_ecos"
5882
5883 fi;
5884
5885 supply_backtrace=no
5886
5887 PLATFORM_INNER_NAT_HDRS=
5888 case "$TARGET_ECOS" in
5889 no) case "$host" in
5890 *mingw*)
5891 PLATFORM=Win32
5892 PLATFORMNET=Win32
5893 PLATFORMH=win32.h
5894
5895 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5896 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5897 LD_PROG=`$CC --print-prog-name=ld`
5898 LD_VERSION=`$LD_PROG --version`
5899 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5900 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5901 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5902 LD_OK="ok"
5903 else
5904 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5905 LD_OK="ok"
5906 fi
5907 fi
5908 if test "x$LD_OK" != x; then
5909 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5910 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5911 else
5912 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5913 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5914 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5915 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5919 _ACEOF
5920
5921 fi
5922 ;;
5923 *)
5924 PLATFORM=Posix
5925 PLATFORMNET=Posix
5926 PLATFORMH=posix.h
5927 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5928 ;;
5929 esac
5930 ;;
5931 *)
5932 PLATFORM=Ecos
5933 PLATFORMNET=NoNet
5934
5935 cat >>confdefs.h <<\_ACEOF
5936 #define ECOS 1
5937 _ACEOF
5938
5939 PLATFORMH=posix.h
5940 ;;
5941 esac
5942
5943 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5944
5945
5946 ac_ext=c
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5953 # On Suns, sometimes $CPP names a directory.
5954 if test -n "$CPP" && test -d "$CPP"; then
5955 CPP=
5956 fi
5957 if test -z "$CPP"; then
5958 if test "${ac_cv_prog_CPP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 # Double quotes because CPP needs to be expanded
5962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5963 do
5964 ac_preproc_ok=false
5965 for ac_c_preproc_warn_flag in '' yes
5966 do
5967 # Use a header file that comes with gcc, so configuring glibc
5968 # with a fresh cross-compiler works.
5969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 # <limits.h> exists even on freestanding compilers.
5971 # On the NeXT, cc -E runs the code through the compiler's parser,
5972 # not just through cpp. "Syntax error" is here to catch this case.
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #ifdef __STDC__
5980 # include <limits.h>
5981 #else
5982 # include <assert.h>
5983 #endif
5984 Syntax error
5985 _ACEOF
5986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null; then
5994 if test -s conftest.err; then
5995 ac_cpp_err=$ac_c_preproc_warn_flag
5996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5997 else
5998 ac_cpp_err=
5999 fi
6000 else
6001 ac_cpp_err=yes
6002 fi
6003 if test -z "$ac_cpp_err"; then
6004 :
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 # Broken: fails on valid input.
6010 continue
6011 fi
6012 rm -f conftest.err conftest.$ac_ext
6013
6014 # OK, works on sane cases. Now check whether non-existent headers
6015 # can be detected and how.
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <ac_nonexistent.h>
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_c_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035 else
6036 ac_cpp_err=
6037 fi
6038 else
6039 ac_cpp_err=yes
6040 fi
6041 if test -z "$ac_cpp_err"; then
6042 # Broken: success on invalid input.
6043 continue
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 # Passes both tests.
6049 ac_preproc_ok=:
6050 break
6051 fi
6052 rm -f conftest.err conftest.$ac_ext
6053
6054 done
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then
6058 break
6059 fi
6060
6061 done
6062 ac_cv_prog_CPP=$CPP
6063
6064 fi
6065 CPP=$ac_cv_prog_CPP
6066 else
6067 ac_cv_prog_CPP=$CPP
6068 fi
6069 echo "$as_me:$LINENO: result: $CPP" >&5
6070 echo "${ECHO_T}$CPP" >&6
6071 ac_preproc_ok=false
6072 for ac_c_preproc_warn_flag in '' yes
6073 do
6074 # Use a header file that comes with gcc, so configuring glibc
6075 # with a fresh cross-compiler works.
6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077 # <limits.h> exists even on freestanding compilers.
6078 # On the NeXT, cc -E runs the code through the compiler's parser,
6079 # not just through cpp. "Syntax error" is here to catch this case.
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #ifdef __STDC__
6087 # include <limits.h>
6088 #else
6089 # include <assert.h>
6090 #endif
6091 Syntax error
6092 _ACEOF
6093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null; then
6101 if test -s conftest.err; then
6102 ac_cpp_err=$ac_c_preproc_warn_flag
6103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6104 else
6105 ac_cpp_err=
6106 fi
6107 else
6108 ac_cpp_err=yes
6109 fi
6110 if test -z "$ac_cpp_err"; then
6111 :
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 # Broken: fails on valid input.
6117 continue
6118 fi
6119 rm -f conftest.err conftest.$ac_ext
6120
6121 # OK, works on sane cases. Now check whether non-existent headers
6122 # can be detected and how.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <ac_nonexistent.h>
6130 _ACEOF
6131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null; then
6139 if test -s conftest.err; then
6140 ac_cpp_err=$ac_c_preproc_warn_flag
6141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6142 else
6143 ac_cpp_err=
6144 fi
6145 else
6146 ac_cpp_err=yes
6147 fi
6148 if test -z "$ac_cpp_err"; then
6149 # Broken: success on invalid input.
6150 continue
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 # Passes both tests.
6156 ac_preproc_ok=:
6157 break
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161 done
6162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6163 rm -f conftest.err conftest.$ac_ext
6164 if $ac_preproc_ok; then
6165 :
6166 else
6167 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6168 See \`config.log' for more details." >&5
6169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6170 See \`config.log' for more details." >&2;}
6171 { (exit 1); exit 1; }; }
6172 fi
6173
6174 ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181 echo "$as_me:$LINENO: checking for egrep" >&5
6182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6183 if test "${ac_cv_prog_egrep+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6187 then ac_cv_prog_egrep='grep -E'
6188 else ac_cv_prog_egrep='egrep'
6189 fi
6190 fi
6191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6193 EGREP=$ac_cv_prog_egrep
6194
6195
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <stdint.h>
6203
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "uint32_t" >/dev/null 2>&1; then
6207
6208 cat >>confdefs.h <<\_ACEOF
6209 #define HAVE_INT32_DEFINED 1
6210 _ACEOF
6211
6212 fi
6213 rm -f conftest*
6214
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <inttypes.h>
6222
6223 _ACEOF
6224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6225 $EGREP "uint32_t" >/dev/null 2>&1; then
6226
6227 cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_INT32_DEFINED 1
6229 _ACEOF
6230
6231 fi
6232 rm -f conftest*
6233
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <sys/types.h>
6241
6242 _ACEOF
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "u_int32_t" >/dev/null 2>&1; then
6245
6246 cat >>confdefs.h <<\_ACEOF
6247 #define HAVE_BSD_INT32_DEFINED 1
6248 _ACEOF
6249
6250 fi
6251 rm -f conftest*
6252
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #include <sys/config.h>
6260
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "u_int32_t" >/dev/null 2>&1; then
6264
6265 cat >>confdefs.h <<\_ACEOF
6266 #define HAVE_BSD_INT32_DEFINED 1
6267 _ACEOF
6268
6269 fi
6270 rm -f conftest*
6271
6272
6273
6274
6275 if test "$PLATFORM" = Win32; then
6276 USING_WIN32_PLATFORM_TRUE=
6277 USING_WIN32_PLATFORM_FALSE='#'
6278 else
6279 USING_WIN32_PLATFORM_TRUE='#'
6280 USING_WIN32_PLATFORM_FALSE=
6281 fi
6282
6283
6284
6285 if test "$PLATFORM" = Posix; then
6286 USING_POSIX_PLATFORM_TRUE=
6287 USING_POSIX_PLATFORM_FALSE='#'
6288 else
6289 USING_POSIX_PLATFORM_TRUE='#'
6290 USING_POSIX_PLATFORM_FALSE=
6291 fi
6292
6293
6294
6295 if test "$PLATFORM" = Ecos; then
6296 USING_ECOS_PLATFORM_TRUE=
6297 USING_ECOS_PLATFORM_FALSE='#'
6298 else
6299 USING_ECOS_PLATFORM_TRUE='#'
6300 USING_ECOS_PLATFORM_FALSE=
6301 fi
6302
6303
6304 # These may not be defined in a non-ANS conformant embedded system.
6305 # FIXME: Should these case a runtime exception in that case?
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <time.h>
6313
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "mktime" >/dev/null 2>&1; then
6317
6318 cat >>confdefs.h <<\_ACEOF
6319 #define HAVE_MKTIME 1
6320 _ACEOF
6321
6322 fi
6323 rm -f conftest*
6324
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <time.h>
6332
6333 _ACEOF
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 $EGREP "localtime" >/dev/null 2>&1; then
6336
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_LOCALTIME 1
6339 _ACEOF
6340
6341 fi
6342 rm -f conftest*
6343
6344
6345 # Create the subdirectory for natFile.cc, or the attempt
6346 # to create the link will fail.
6347 test -d java || mkdir java
6348 test -d java/io || mkdir java/io
6349 test -d gnu || mkdir gnu
6350 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6351
6352
6353 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6354 test -d java/lang || mkdir java/lang
6355 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6356
6357 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6358
6359
6360 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6361 test -d java/net || mkdir java/net
6362 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6363
6364 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6365
6366
6367 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6368 test -d gnu/java || mkdir gnu/java
6369 test -d gnu/java/net || mkdir gnu/java/net
6370 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6371
6372 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6373
6374
6375 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6376 test -d gnu/java/nio || mkdir gnu/java/nio
6377 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6378
6379 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6380
6381 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6382 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6383
6384
6385 case "${host}" in
6386 *mingw*)
6387 SYSTEMSPEC="-lgdi32 -lws2_32"
6388 if test "${with_win32_nlsapi}" = "unicows"; then
6389 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6390 fi
6391 ;;
6392 *)
6393 SYSTEMSPEC=
6394 ;;
6395 esac
6396
6397
6398 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6399
6400
6401
6402 # Check whether --with-system-zlib or --without-system-zlib was given.
6403 if test "${with_system_zlib+set}" = set; then
6404 withval="$with_system_zlib"
6405
6406 fi;
6407 ZLIBSPEC=
6408
6409 ZLIBTESTSPEC=
6410
6411
6412
6413 if test "x$ac_path_x_has_been_run" != xyes; then
6414 echo "$as_me:$LINENO: checking for X" >&5
6415 echo $ECHO_N "checking for X... $ECHO_C" >&6
6416
6417 ac_path_x_has_been_run=yes
6418
6419 # Check whether --with-x or --without-x was given.
6420 if test "${with_x+set}" = set; then
6421 withval="$with_x"
6422
6423 fi;
6424 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6425 if test "x$with_x" = xno; then
6426 # The user explicitly disabled X.
6427 have_x=disabled
6428 else
6429 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6430 # Both variables are already set.
6431 have_x=yes
6432 else
6433 if test "${ac_cv_have_x+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 # One or both of the vars are not set, and there is no cached value.
6437 ac_x_includes=no ac_x_libraries=no
6438 rm -fr conftest.dir
6439 if mkdir conftest.dir; then
6440 cd conftest.dir
6441 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6442 cat >Imakefile <<'_ACEOF'
6443 acfindx:
6444 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6445 _ACEOF
6446 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6448 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6449 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6450 for ac_extension in a so sl; do
6451 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6452 test -f $ac_im_libdir/libX11.$ac_extension; then
6453 ac_im_usrlibdir=$ac_im_libdir; break
6454 fi
6455 done
6456 # Screen out bogus values from the imake configuration. They are
6457 # bogus both because they are the default anyway, and because
6458 # using them would break gcc on systems where it needs fixed includes.
6459 case $ac_im_incroot in
6460 /usr/include) ;;
6461 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6462 esac
6463 case $ac_im_usrlibdir in
6464 /usr/lib | /lib) ;;
6465 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6466 esac
6467 fi
6468 cd ..
6469 rm -fr conftest.dir
6470 fi
6471
6472 # Standard set of common directories for X headers.
6473 # Check X11 before X11Rn because it is often a symlink to the current release.
6474 ac_x_header_dirs='
6475 /usr/X11/include
6476 /usr/X11R6/include
6477 /usr/X11R5/include
6478 /usr/X11R4/include
6479
6480 /usr/include/X11
6481 /usr/include/X11R6
6482 /usr/include/X11R5
6483 /usr/include/X11R4
6484
6485 /usr/local/X11/include
6486 /usr/local/X11R6/include
6487 /usr/local/X11R5/include
6488 /usr/local/X11R4/include
6489
6490 /usr/local/include/X11
6491 /usr/local/include/X11R6
6492 /usr/local/include/X11R5
6493 /usr/local/include/X11R4
6494
6495 /usr/X386/include
6496 /usr/x386/include
6497 /usr/XFree86/include/X11
6498
6499 /usr/include
6500 /usr/local/include
6501 /usr/unsupported/include
6502 /usr/athena/include
6503 /usr/local/x11r5/include
6504 /usr/lpp/Xamples/include
6505
6506 /usr/openwin/include
6507 /usr/openwin/share/include'
6508
6509 if test "$ac_x_includes" = no; then
6510 # Guess where to find include files, by looking for a specified header file.
6511 # First, try using that file with no special directory specified.
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <X11/Intrinsic.h>
6519 _ACEOF
6520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } >/dev/null; then
6528 if test -s conftest.err; then
6529 ac_cpp_err=$ac_c_preproc_warn_flag
6530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6531 else
6532 ac_cpp_err=
6533 fi
6534 else
6535 ac_cpp_err=yes
6536 fi
6537 if test -z "$ac_cpp_err"; then
6538 # We can compile using X headers with no special include directory.
6539 ac_x_includes=
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 for ac_dir in $ac_x_header_dirs; do
6545 if test -r "$ac_dir/X11/Intrinsic.h"; then
6546 ac_x_includes=$ac_dir
6547 break
6548 fi
6549 done
6550 fi
6551 rm -f conftest.err conftest.$ac_ext
6552 fi # $ac_x_includes = no
6553
6554 if test "$ac_x_libraries" = no; then
6555 # Check for the libraries.
6556 # See if we find them without any special options.
6557 # Don't add to $LIBS permanently.
6558 ac_save_LIBS=$LIBS
6559 LIBS="-lXt $LIBS"
6560 if test x$gcc_no_link = xyes; then
6561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6563 { (exit 1); exit 1; }; }
6564 fi
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <X11/Intrinsic.h>
6572 int
6573 main ()
6574 {
6575 XtMalloc (0)
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 LIBS=$ac_save_LIBS
6602 # We can link X programs with no special library path.
6603 ac_x_libraries=
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 LIBS=$ac_save_LIBS
6609 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6610 do
6611 # Don't even attempt the hair of trying to link an X program!
6612 for ac_extension in a so sl; do
6613 if test -r $ac_dir/libXt.$ac_extension; then
6614 ac_x_libraries=$ac_dir
6615 break 2
6616 fi
6617 done
6618 done
6619 fi
6620 rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622 fi # $ac_x_libraries = no
6623
6624 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6625 # Didn't find X anywhere. Cache the known absence of X.
6626 ac_cv_have_x="have_x=no"
6627 else
6628 # Record where we found X for the cache.
6629 ac_cv_have_x="have_x=yes \
6630 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6631 fi
6632 fi
6633
6634 fi
6635 eval "$ac_cv_have_x"
6636 fi # $with_x != no
6637
6638 if test "$have_x" != yes; then
6639 echo "$as_me:$LINENO: result: $have_x" >&5
6640 echo "${ECHO_T}$have_x" >&6
6641 no_x=yes
6642 else
6643 # If each of the values was on the command line, it overrides each guess.
6644 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6645 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6646 # Update the cache value to reflect the command line values.
6647 ac_cv_have_x="have_x=yes \
6648 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6649 # It might be that x_includes is empty (headers are found in the
6650 # standard search path. Then output the corresponding message
6651 ac_out_x_includes=$x_includes
6652 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6653 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6654 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6655 fi
6656
6657 fi
6658 if test "$no_x" = yes; then
6659 # Not all programs may use this symbol, but it does not hurt to define it.
6660
6661 cat >>confdefs.h <<\_ACEOF
6662 #define X_DISPLAY_MISSING 1
6663 _ACEOF
6664
6665 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6666 else
6667 if test -n "$x_includes"; then
6668 X_CFLAGS="$X_CFLAGS -I$x_includes"
6669 fi
6670
6671 # It would also be nice to do this for all -L options, not just this one.
6672 if test -n "$x_libraries"; then
6673 X_LIBS="$X_LIBS -L$x_libraries"
6674 # For Solaris; some versions of Sun CC require a space after -R and
6675 # others require no space. Words are not sufficient . . . .
6676 case `(uname -sr) 2>/dev/null` in
6677 "SunOS 5"*)
6678 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6679 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6680 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6681 if test x$gcc_no_link = xyes; then
6682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6684 { (exit 1); exit 1; }; }
6685 fi
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692
6693 int
6694 main ()
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; } &&
6716 { ac_try='test -s conftest$ac_exeext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 ac_R_nospace=yes
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 ac_R_nospace=no
6728 fi
6729 rm -f conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 if test $ac_R_nospace = yes; then
6732 echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6
6734 X_LIBS="$X_LIBS -R$x_libraries"
6735 else
6736 LIBS="$ac_xsave_LIBS -R $x_libraries"
6737 if test x$gcc_no_link = xyes; then
6738 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6740 { (exit 1); exit 1; }; }
6741 fi
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748
6749 int
6750 main ()
6751 {
6752
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_R_space=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_R_space=no
6784 fi
6785 rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 if test $ac_R_space = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789 echo "${ECHO_T}yes" >&6
6790 X_LIBS="$X_LIBS -R $x_libraries"
6791 else
6792 echo "$as_me:$LINENO: result: neither works" >&5
6793 echo "${ECHO_T}neither works" >&6
6794 fi
6795 fi
6796 LIBS=$ac_xsave_LIBS
6797 esac
6798 fi
6799
6800 # Check for system-dependent libraries X programs must link with.
6801 # Do this before checking for the system-independent R6 libraries
6802 # (-lICE), since we may need -lsocket or whatever for X linking.
6803
6804 if test "$ISC" = yes; then
6805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6806 else
6807 # Martyn Johnson says this is needed for Ultrix, if the X
6808 # libraries were built with DECnet support. And Karl Berry says
6809 # the Alpha needs dnet_stub (dnet does not exist).
6810 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6811 if test x$gcc_no_link = xyes; then
6812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6814 { (exit 1); exit 1; }; }
6815 fi
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 #ifdef __cplusplus
6825 extern "C"
6826 #endif
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char XOpenDisplay ();
6830 int
6831 main ()
6832 {
6833 XOpenDisplay ();
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest$ac_exeext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 :
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6865 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6866 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-ldnet $LIBS"
6871 if test x$gcc_no_link = xyes; then
6872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6874 { (exit 1); exit 1; }; }
6875 fi
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 #ifdef __cplusplus
6885 extern "C"
6886 #endif
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char dnet_ntoa ();
6890 int
6891 main ()
6892 {
6893 dnet_ntoa ();
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_lib_dnet_dnet_ntoa=yes
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 ac_cv_lib_dnet_dnet_ntoa=no
6925 fi
6926 rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928 LIBS=$ac_check_lib_save_LIBS
6929 fi
6930 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6931 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6932 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6933 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6934 fi
6935
6936 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6937 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6938 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6939 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 ac_check_lib_save_LIBS=$LIBS
6943 LIBS="-ldnet_stub $LIBS"
6944 if test x$gcc_no_link = xyes; then
6945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6947 { (exit 1); exit 1; }; }
6948 fi
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955
6956 /* Override any gcc2 internal prototype to avoid an error. */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char dnet_ntoa ();
6963 int
6964 main ()
6965 {
6966 dnet_ntoa ();
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_cv_lib_dnet_stub_dnet_ntoa=no
6998 fi
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7002 fi
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7004 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7005 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7007 fi
7008
7009 fi
7010 fi
7011 rm -f conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS="$ac_xsave_LIBS"
7014
7015 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7016 # to get the SysV transport functions.
7017 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7018 # needs -lnsl.
7019 # The nsl library prevents programs from opening the X display
7020 # on Irix 5.2, according to T.E. Dickey.
7021 # The functions gethostbyname, getservbyname, and inet_addr are
7022 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7023 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7024 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7025 if test "${ac_cv_func_gethostbyname+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 if test x$gcc_no_link = xyes; then
7029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7031 { (exit 1); exit 1; }; }
7032 fi
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7041 #define gethostbyname innocuous_gethostbyname
7042
7043 /* System header to define __stub macros and hopefully few prototypes,
7044 which can conflict with char gethostbyname (); below.
7045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7046 <limits.h> exists even on freestanding compilers. */
7047
7048 #ifdef __STDC__
7049 # include <limits.h>
7050 #else
7051 # include <assert.h>
7052 #endif
7053
7054 #undef gethostbyname
7055
7056 /* Override any gcc2 internal prototype to avoid an error. */
7057 #ifdef __cplusplus
7058 extern "C"
7059 {
7060 #endif
7061 /* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7063 char gethostbyname ();
7064 /* The GNU C library defines this for functions which it implements
7065 to always fail with ENOSYS. Some functions are actually named
7066 something starting with __ and the normal name is an alias. */
7067 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7068 choke me
7069 #else
7070 char (*f) () = gethostbyname;
7071 #endif
7072 #ifdef __cplusplus
7073 }
7074 #endif
7075
7076 int
7077 main ()
7078 {
7079 return f != gethostbyname;
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext conftest$ac_exeext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; } &&
7099 { ac_try='test -s conftest$ac_exeext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_func_gethostbyname=yes
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 ac_cv_func_gethostbyname=no
7111 fi
7112 rm -f conftest.err conftest.$ac_objext \
7113 conftest$ac_exeext conftest.$ac_ext
7114 fi
7115 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7116 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7117
7118 if test $ac_cv_func_gethostbyname = no; then
7119 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7120 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7121 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 ac_check_lib_save_LIBS=$LIBS
7125 LIBS="-lnsl $LIBS"
7126 if test x$gcc_no_link = xyes; then
7127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7129 { (exit 1); exit 1; }; }
7130 fi
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 #ifdef __cplusplus
7140 extern "C"
7141 #endif
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7144 char gethostbyname ();
7145 int
7146 main ()
7147 {
7148 gethostbyname ();
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7155 (eval $ac_link) 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; } &&
7168 { ac_try='test -s conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_lib_nsl_gethostbyname=yes
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_lib_nsl_gethostbyname=no
7180 fi
7181 rm -f conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 LIBS=$ac_check_lib_save_LIBS
7184 fi
7185 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7186 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7187 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7188 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7189 fi
7190
7191 if test $ac_cv_lib_nsl_gethostbyname = no; then
7192 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7193 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7194 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 ac_check_lib_save_LIBS=$LIBS
7198 LIBS="-lbsd $LIBS"
7199 if test x$gcc_no_link = xyes; then
7200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7202 { (exit 1); exit 1; }; }
7203 fi
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 #ifdef __cplusplus
7213 extern "C"
7214 #endif
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7217 char gethostbyname ();
7218 int
7219 main ()
7220 {
7221 gethostbyname ();
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 rm -f conftest.$ac_objext conftest$ac_exeext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228 (eval $ac_link) 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_lib_bsd_gethostbyname=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_cv_lib_bsd_gethostbyname=no
7253 fi
7254 rm -f conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LIBS=$ac_check_lib_save_LIBS
7257 fi
7258 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7259 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7260 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7262 fi
7263
7264 fi
7265 fi
7266
7267 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7268 # socket/setsockopt and other routines are undefined under SCO ODT
7269 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7270 # on later versions), says Simon Leinen: it contains gethostby*
7271 # variants that don't use the name server (or something). -lsocket
7272 # must be given before -lnsl if both are needed. We assume that
7273 # if connect needs -lnsl, so does gethostbyname.
7274 echo "$as_me:$LINENO: checking for connect" >&5
7275 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7276 if test "${ac_cv_func_connect+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 if test x$gcc_no_link = xyes; then
7280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7282 { (exit 1); exit 1; }; }
7283 fi
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7292 #define connect innocuous_connect
7293
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char connect (); below.
7296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297 <limits.h> exists even on freestanding compilers. */
7298
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304
7305 #undef connect
7306
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 #ifdef __cplusplus
7309 extern "C"
7310 {
7311 #endif
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7314 char connect ();
7315 /* The GNU C library defines this for functions which it implements
7316 to always fail with ENOSYS. Some functions are actually named
7317 something starting with __ and the normal name is an alias. */
7318 #if defined (__stub_connect) || defined (__stub___connect)
7319 choke me
7320 #else
7321 char (*f) () = connect;
7322 #endif
7323 #ifdef __cplusplus
7324 }
7325 #endif
7326
7327 int
7328 main ()
7329 {
7330 return f != connect;
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest$ac_exeext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 ac_cv_func_connect=yes
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_func_connect=no
7362 fi
7363 rm -f conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7365 fi
7366 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7367 echo "${ECHO_T}$ac_cv_func_connect" >&6
7368
7369 if test $ac_cv_func_connect = no; then
7370 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7371 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7372 if test "${ac_cv_lib_socket_connect+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 ac_check_lib_save_LIBS=$LIBS
7376 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7377 if test x$gcc_no_link = xyes; then
7378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7380 { (exit 1); exit 1; }; }
7381 fi
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388
7389 /* Override any gcc2 internal prototype to avoid an error. */
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395 char connect ();
7396 int
7397 main ()
7398 {
7399 connect ();
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try='test -s conftest$ac_exeext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_lib_socket_connect=yes
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ac_cv_lib_socket_connect=no
7431 fi
7432 rm -f conftest.err conftest.$ac_objext \
7433 conftest$ac_exeext conftest.$ac_ext
7434 LIBS=$ac_check_lib_save_LIBS
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7437 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7438 if test $ac_cv_lib_socket_connect = yes; then
7439 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7440 fi
7441
7442 fi
7443
7444 # Guillermo Gomez says -lposix is necessary on A/UX.
7445 echo "$as_me:$LINENO: checking for remove" >&5
7446 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7447 if test "${ac_cv_func_remove+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 if test x$gcc_no_link = xyes; then
7451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7453 { (exit 1); exit 1; }; }
7454 fi
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7463 #define remove innocuous_remove
7464
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char remove (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */
7469
7470 #ifdef __STDC__
7471 # include <limits.h>
7472 #else
7473 # include <assert.h>
7474 #endif
7475
7476 #undef remove
7477
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 #ifdef __cplusplus
7480 extern "C"
7481 {
7482 #endif
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char remove ();
7486 /* The GNU C library defines this for functions which it implements
7487 to always fail with ENOSYS. Some functions are actually named
7488 something starting with __ and the normal name is an alias. */
7489 #if defined (__stub_remove) || defined (__stub___remove)
7490 choke me
7491 #else
7492 char (*f) () = remove;
7493 #endif
7494 #ifdef __cplusplus
7495 }
7496 #endif
7497
7498 int
7499 main ()
7500 {
7501 return f != remove;
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_cv_func_remove=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_cv_func_remove=no
7533 fi
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 fi
7537 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7538 echo "${ECHO_T}$ac_cv_func_remove" >&6
7539
7540 if test $ac_cv_func_remove = no; then
7541 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7542 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7543 if test "${ac_cv_lib_posix_remove+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 ac_check_lib_save_LIBS=$LIBS
7547 LIBS="-lposix $LIBS"
7548 if test x$gcc_no_link = xyes; then
7549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7551 { (exit 1); exit 1; }; }
7552 fi
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 #ifdef __cplusplus
7562 extern "C"
7563 #endif
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566 char remove ();
7567 int
7568 main ()
7569 {
7570 remove ();
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest$ac_exeext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_lib_posix_remove=yes
7597 else
7598 echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601 ac_cv_lib_posix_remove=no
7602 fi
7603 rm -f conftest.err conftest.$ac_objext \
7604 conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS
7606 fi
7607 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7608 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7609 if test $ac_cv_lib_posix_remove = yes; then
7610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7611 fi
7612
7613 fi
7614
7615 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7616 echo "$as_me:$LINENO: checking for shmat" >&5
7617 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7618 if test "${ac_cv_func_shmat+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 if test x$gcc_no_link = xyes; then
7622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7624 { (exit 1); exit 1; }; }
7625 fi
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634 #define shmat innocuous_shmat
7635
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char shmat (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7640
7641 #ifdef __STDC__
7642 # include <limits.h>
7643 #else
7644 # include <assert.h>
7645 #endif
7646
7647 #undef shmat
7648
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 #ifdef __cplusplus
7651 extern "C"
7652 {
7653 #endif
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char shmat ();
7657 /* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7660 #if defined (__stub_shmat) || defined (__stub___shmat)
7661 choke me
7662 #else
7663 char (*f) () = shmat;
7664 #endif
7665 #ifdef __cplusplus
7666 }
7667 #endif
7668
7669 int
7670 main ()
7671 {
7672 return f != shmat;
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ac_cv_func_shmat=yes
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 ac_cv_func_shmat=no
7704 fi
7705 rm -f conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7707 fi
7708 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7709 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7710
7711 if test $ac_cv_func_shmat = no; then
7712 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7713 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7714 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 ac_check_lib_save_LIBS=$LIBS
7718 LIBS="-lipc $LIBS"
7719 if test x$gcc_no_link = xyes; then
7720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7722 { (exit 1); exit 1; }; }
7723 fi
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730
7731 /* Override any gcc2 internal prototype to avoid an error. */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737 char shmat ();
7738 int
7739 main ()
7740 {
7741 shmat ();
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_lib_ipc_shmat=yes
7768 else
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772 ac_cv_lib_ipc_shmat=no
7773 fi
7774 rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7777 fi
7778 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7779 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7780 if test $ac_cv_lib_ipc_shmat = yes; then
7781 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7782 fi
7783
7784 fi
7785 fi
7786
7787 # Check for libraries that X11R6 Xt/Xaw programs need.
7788 ac_save_LDFLAGS=$LDFLAGS
7789 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7790 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7791 # check for ICE first), but we must link in the order -lSM -lICE or
7792 # we get undefined symbols. So assume we have SM if we have ICE.
7793 # These have to be linked with before -lX11, unlike the other
7794 # libraries we check for below, so use a different variable.
7795 # John Interrante, Karl Berry
7796 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7797 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7798 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 ac_check_lib_save_LIBS=$LIBS
7802 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7803 if test x$gcc_no_link = xyes; then
7804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7806 { (exit 1); exit 1; }; }
7807 fi
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 #ifdef __cplusplus
7817 extern "C"
7818 #endif
7819 /* We use char because int might match the return type of a gcc2
7820 builtin and then its argument prototype would still apply. */
7821 char IceConnectionNumber ();
7822 int
7823 main ()
7824 {
7825 IceConnectionNumber ();
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; } &&
7845 { ac_try='test -s conftest$ac_exeext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_lib_ICE_IceConnectionNumber=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ac_cv_lib_ICE_IceConnectionNumber=no
7857 fi
7858 rm -f conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 LIBS=$ac_check_lib_save_LIBS
7861 fi
7862 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7863 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7864 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7865 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7866 fi
7867
7868 LDFLAGS=$ac_save_LDFLAGS
7869
7870 fi
7871
7872
7873 # Determine which AWT peer libraries to build
7874 # Check whether --enable-java-awt or --disable-java-awt was given.
7875 if test "${enable_java_awt+set}" = set; then
7876 enableval="$enable_java_awt"
7877
7878 fi;
7879
7880 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7881 use_xlib_awt=""
7882 use_gtk_awt=""
7883 # The default toolkit to use is the first one specified.
7884 TOOLKIT=
7885
7886
7887 for peer in $peerlibs ; do
7888 case $peer in
7889 xlib)
7890 if test "$no_x" = yes; then
7891 echo "*** xlib peers requested but no X library available" 1>&2
7892 exit 1
7893 else
7894 use_xlib_awt="yes"
7895 if test -z "$TOOLKIT"; then
7896 TOOLKIT=gnu.awt.xlib.XToolkit
7897 fi
7898 fi
7899 ;;
7900 gtk)
7901 if test "$no_x" = yes; then
7902 echo "*** xlib peers requested but no X library available" 1>&2
7903 exit 1
7904 else
7905 use_gtk_awt=yes
7906 if test -z "$TOOLKIT"; then
7907 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7908 fi
7909 test -d jniinclude || mkdir jniinclude
7910 fi
7911 ;;
7912 no)
7913 use_xlib_awt=
7914 use_gtk_awt=
7915 break
7916 ;;
7917 *)
7918 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7919 exit 1
7920 esac
7921 done
7922
7923
7924
7925 if test "$use_xlib_awt" = yes; then
7926 XLIB_AWT_TRUE=
7927 XLIB_AWT_FALSE='#'
7928 else
7929 XLIB_AWT_TRUE='#'
7930 XLIB_AWT_FALSE=
7931 fi
7932
7933
7934
7935 if test "$use_gtk_awt" = yes; then
7936 GTK_AWT_TRUE=
7937 GTK_AWT_FALSE='#'
7938 else
7939 GTK_AWT_TRUE='#'
7940 GTK_AWT_FALSE=
7941 fi
7942
7943
7944 # determine whether to enable the cairo GTK Graphics2D backend
7945 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7946 if test "${enable_gtk_cairo+set}" = set; then
7947 enableval="$enable_gtk_cairo"
7948
7949 fi;
7950
7951
7952 if test "x${enable_gtk_cairo}" = xyes; then
7953 GTK_CAIRO_TRUE=
7954 GTK_CAIRO_FALSE='#'
7955 else
7956 GTK_CAIRO_TRUE='#'
7957 GTK_CAIRO_FALSE=
7958 fi
7959
7960 if test "x${enable_gtk_cairo}" = xyes
7961 then
7962
7963 succeeded=no
7964
7965 if test -z "$PKG_CONFIG"; then
7966 # Extract the first word of "pkg-config", so it can be a program name with args.
7967 set dummy pkg-config; ac_word=$2
7968 echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 case $PKG_CONFIG in
7974 [\\/]* | ?:[\\/]*)
7975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991
7992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7993 ;;
7994 esac
7995 fi
7996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7997
7998 if test -n "$PKG_CONFIG"; then
7999 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8000 echo "${ECHO_T}$PKG_CONFIG" >&6
8001 else
8002 echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6
8004 fi
8005
8006 fi
8007
8008 if test "$PKG_CONFIG" = "no" ; then
8009 echo "*** The pkg-config script could not be found. Make sure it is"
8010 echo "*** in your path, or set the PKG_CONFIG environment variable"
8011 echo "*** to the full path to pkg-config."
8012 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8013 else
8014 PKG_CONFIG_MIN_VERSION=0.9.0
8015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8016 echo "$as_me:$LINENO: checking for cairo" >&5
8017 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8018
8019 if $PKG_CONFIG --exists "cairo" ; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8022 succeeded=yes
8023
8024 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8025 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8026 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8027 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8028 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8029
8030 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8031 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8032 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8033 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8034 echo "${ECHO_T}$CAIRO_LIBS" >&6
8035 else
8036 CAIRO_CFLAGS=""
8037 CAIRO_LIBS=""
8038 ## If we have a custom action on failure, don't print errors, but
8039 ## do set a variable so people can do so.
8040 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8041 echo $CAIRO_PKG_ERRORS
8042 fi
8043
8044
8045
8046 else
8047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8049 fi
8050 fi
8051
8052 if test $succeeded = yes; then
8053 :
8054 else
8055 { { 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
8056 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;}
8057 { (exit 1); exit 1; }; }
8058 fi
8059
8060
8061 succeeded=no
8062
8063 if test -z "$PKG_CONFIG"; then
8064 # Extract the first word of "pkg-config", so it can be a program name with args.
8065 set dummy pkg-config; ac_word=$2
8066 echo "$as_me:$LINENO: checking for $ac_word" >&5
8067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8068 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 case $PKG_CONFIG in
8072 [\\/]* | ?:[\\/]*)
8073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8074 ;;
8075 *)
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087 done
8088 done
8089
8090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8091 ;;
8092 esac
8093 fi
8094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8095
8096 if test -n "$PKG_CONFIG"; then
8097 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8098 echo "${ECHO_T}$PKG_CONFIG" >&6
8099 else
8100 echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6
8102 fi
8103
8104 fi
8105
8106 if test "$PKG_CONFIG" = "no" ; then
8107 echo "*** The pkg-config script could not be found. Make sure it is"
8108 echo "*** in your path, or set the PKG_CONFIG environment variable"
8109 echo "*** to the full path to pkg-config."
8110 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8111 else
8112 PKG_CONFIG_MIN_VERSION=0.9.0
8113 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8114 echo "$as_me:$LINENO: checking for pangoft2" >&5
8115 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8116
8117 if $PKG_CONFIG --exists "pangoft2" ; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119 echo "${ECHO_T}yes" >&6
8120 succeeded=yes
8121
8122 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8123 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8124 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8125 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8126 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8127
8128 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8129 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8130 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8131 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8132 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8133 else
8134 PANGOFT2_CFLAGS=""
8135 PANGOFT2_LIBS=""
8136 ## If we have a custom action on failure, don't print errors, but
8137 ## do set a variable so people can do so.
8138 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8139 echo $PANGOFT2_PKG_ERRORS
8140 fi
8141
8142
8143
8144 else
8145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8147 fi
8148 fi
8149
8150 if test $succeeded = yes; then
8151 :
8152 else
8153 { { 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
8154 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;}
8155 { (exit 1); exit 1; }; }
8156 fi
8157
8158 fi
8159
8160
8161
8162
8163
8164 # FIXME: this should be _libs on some hosts.
8165 libsubdir=.libs
8166
8167 # Allow the GC to be disabled. Can be useful when debugging.
8168 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8169 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8170 # Check whether --enable-java-gc or --disable-java-gc was given.
8171 if test "${enable_java_gc+set}" = set; then
8172 enableval="$enable_java_gc"
8173 GC=$enableval
8174 else
8175 GC=boehm
8176 fi;
8177 GCLIBS=
8178 GCINCS=
8179 GCDEPS=
8180 GCSPEC=
8181 JC1GCSPEC=
8182 GCTESTSPEC=
8183 case "$GC" in
8184 boehm)
8185 echo "$as_me:$LINENO: result: boehm" >&5
8186 echo "${ECHO_T}boehm" >&6
8187 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8188 JC1GCSPEC='-fuse-boehm-gc'
8189 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8190 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8191 GCOBJS=boehm.lo
8192 GCHDR=boehm-gc.h
8193 # The POSIX thread support needs to know this.
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_BOEHM_GC 1
8197 _ACEOF
8198
8199 ;;
8200 no)
8201 echo "$as_me:$LINENO: result: none" >&5
8202 echo "${ECHO_T}none" >&6
8203 GCHDR=no-gc.h
8204 ;;
8205 *)
8206 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8207 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8208 { (exit 1); exit 1; }; }
8209 ;;
8210 esac
8211
8212
8213
8214
8215
8216
8217 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8218
8219
8220
8221 if test "$GC" = boehm; then
8222 USING_BOEHMGC_TRUE=
8223 USING_BOEHMGC_FALSE='#'
8224 else
8225 USING_BOEHMGC_TRUE='#'
8226 USING_BOEHMGC_FALSE=
8227 fi
8228
8229
8230
8231 if test "$GC" = no; then
8232 USING_NOGC_TRUE=
8233 USING_NOGC_FALSE='#'
8234 else
8235 USING_NOGC_TRUE='#'
8236 USING_NOGC_FALSE=
8237 fi
8238
8239
8240
8241 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8242 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8243 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8244 echo "$as_me:$LINENO: result: $THREADS" >&5
8245 echo "${ECHO_T}$THREADS" >&6
8246
8247 case "$THREADS" in
8248 no | none | single)
8249 THREADS=none
8250 ;;
8251 posix | pthreads)
8252 THREADS=posix
8253 case "$host" in
8254 *-*-linux*)
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define LINUX_THREADS 1
8258 _ACEOF
8259
8260 ;;
8261 esac
8262 ;;
8263 win32)
8264 ;;
8265 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8266 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8267 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8268 { (exit 1); exit 1; }; }
8269 ;;
8270 *)
8271 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8272 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8273 { (exit 1); exit 1; }; }
8274 ;;
8275 esac
8276
8277 THREADCXXFLAGS=
8278 THREADLDFLAGS=
8279 THREADLIBS=
8280 THREADINCS=
8281 THREADDEPS=
8282 THREADH=
8283 THREADSPEC=
8284 case "$THREADS" in
8285 posix)
8286 case "$host" in
8287 *-*-cygwin*)
8288 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8289 ;;
8290 *-*-freebsd[1234]*)
8291 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8292 # merely adds pthread_* functions) but it does have a -pthread switch
8293 # which is required at link-time to select -lc_r *instead* of -lc.
8294 THREADLDFLAGS=-pthread
8295 # Don't set THREADSPEC here as might be expected since -pthread is
8296 # not processed when found within a spec file, it must come from
8297 # the command line. For now, the user must provide the -pthread
8298 # switch to link code compiled with gcj. In future, consider adding
8299 # support for weak references to pthread_* functions ala gthr.h API.
8300 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8301 ;;
8302 *-*-freebsd*)
8303 # FreeBSD 5 implements a model much closer to other modern UNIX
8304 # which support threads. However, it still does not support
8305 # -lpthread.
8306 THREADLDFLAGS=-pthread
8307 THREADSPEC=-lc_r
8308 ;;
8309 alpha*-dec-osf*)
8310 THREADCXXFLAGS=-pthread
8311 # boehm-gc needs some functions from librt, so link that too.
8312 THREADLIBS='-lpthread -lrt'
8313 THREADSPEC='-lpthread -lrt'
8314 ;;
8315 *)
8316 THREADLIBS=-lpthread
8317 THREADSPEC=-lpthread
8318 ;;
8319 esac
8320 THREADH=posix-threads.h
8321 # MIT pthreads doesn't seem to have the mutexattr functions.
8322 # But for now we don't check for it. We just assume you aren't
8323 # using MIT pthreads.
8324
8325 cat >>confdefs.h <<\_ACEOF
8326 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8327 _ACEOF
8328
8329
8330 # If we're using the Boehm GC, then we happen to know that it
8331 # defines _REENTRANT, so we don't bother. Eww.
8332 if test "$GC" != boehm; then
8333
8334 cat >>confdefs.h <<\_ACEOF
8335 #define _REENTRANT 1
8336 _ACEOF
8337
8338 fi
8339
8340 cat >>confdefs.h <<\_ACEOF
8341 #define _POSIX_PTHREAD_SEMANTICS 1
8342 _ACEOF
8343
8344 ;;
8345
8346 win32)
8347 THREADH=win32-threads.h
8348 ;;
8349
8350 none)
8351 THREADH=no-threads.h
8352 ;;
8353 esac
8354 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 if test "$THREADS" = posix; then
8365 USING_POSIX_THREADS_TRUE=
8366 USING_POSIX_THREADS_FALSE='#'
8367 else
8368 USING_POSIX_THREADS_TRUE='#'
8369 USING_POSIX_THREADS_FALSE=
8370 fi
8371
8372
8373
8374 if test "$THREADS" = win32; then
8375 USING_WIN32_THREADS_TRUE=
8376 USING_WIN32_THREADS_FALSE='#'
8377 else
8378 USING_WIN32_THREADS_TRUE='#'
8379 USING_WIN32_THREADS_FALSE=
8380 fi
8381
8382
8383
8384 if test "$THREADS" = none; then
8385 USING_NO_THREADS_TRUE=
8386 USING_NO_THREADS_FALSE='#'
8387 else
8388 USING_NO_THREADS_TRUE='#'
8389 USING_NO_THREADS_FALSE=
8390 fi
8391
8392
8393 if test -d sysdep; then true; else mkdir sysdep; fi
8394 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8395
8396
8397 HASH_SYNC_SPEC=
8398 # Hash synchronization is only useful with posix threads right now.
8399 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8400 HASH_SYNC_SPEC=-fhash-synchronization
8401
8402 cat >>confdefs.h <<\_ACEOF
8403 #define JV_HASH_SYNCHRONIZATION 1
8404 _ACEOF
8405
8406 fi
8407
8408
8409
8410
8411
8412 if test "$GCC" = yes; then
8413 USING_GCC_TRUE=
8414 USING_GCC_FALSE='#'
8415 else
8416 USING_GCC_TRUE='#'
8417 USING_GCC_FALSE=
8418 fi
8419
8420
8421 # We're in the tree with gcc, and need to include some of its headers.
8422 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8423
8424 # Figure out where generated headers like libgcj-config.h get installed.
8425 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8426 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8427 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8428 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8429
8430
8431
8432 if test "x${with_newlib}" = "xyes"; then
8433 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8434 # may not work correctly, because the compiler may not be able to
8435 # link executables.
8436
8437 # We assume newlib. This lets us hard-code the functions we know
8438 # we'll have.
8439
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_MEMMOVE 1
8442 _ACEOF
8443
8444
8445 cat >>confdefs.h <<\_ACEOF
8446 #define HAVE_MEMCPY 1
8447 _ACEOF
8448
8449
8450 cat >>confdefs.h <<\_ACEOF
8451 #define HAVE_STRERROR 1
8452 _ACEOF
8453
8454
8455 cat >>confdefs.h <<\_ACEOF
8456 #define HAVE_TIME 1
8457 _ACEOF
8458
8459
8460 cat >>confdefs.h <<\_ACEOF
8461 #define HAVE_GMTIME_R 1
8462 _ACEOF
8463
8464
8465 cat >>confdefs.h <<\_ACEOF
8466 #define HAVE_LOCALTIME_R 1
8467 _ACEOF
8468
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_USLEEP_DECL 1
8472 _ACEOF
8473
8474 # This is only for POSIX threads.
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8478 _ACEOF
8479
8480 # We also assume we are using gcc, which provides alloca.
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_ALLOCA 1
8483 _ACEOF
8484
8485
8486 # Assume we do not have getuid and friends.
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define NO_GETUID 1
8490 _ACEOF
8491
8492 PLATFORMNET=NoNet
8493 else
8494
8495
8496
8497
8498
8499
8500
8501
8502 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8503 do
8504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8505 echo "$as_me:$LINENO: checking for $ac_func" >&5
8506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8507 if eval "test \"\${$as_ac_var+set}\" = set"; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 if test x$gcc_no_link = xyes; then
8511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8513 { (exit 1); exit 1; }; }
8514 fi
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8523 #define $ac_func innocuous_$ac_func
8524
8525 /* System header to define __stub macros and hopefully few prototypes,
8526 which can conflict with char $ac_func (); below.
8527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8528 <limits.h> exists even on freestanding compilers. */
8529
8530 #ifdef __STDC__
8531 # include <limits.h>
8532 #else
8533 # include <assert.h>
8534 #endif
8535
8536 #undef $ac_func
8537
8538 /* Override any gcc2 internal prototype to avoid an error. */
8539 #ifdef __cplusplus
8540 extern "C"
8541 {
8542 #endif
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8545 char $ac_func ();
8546 /* The GNU C library defines this for functions which it implements
8547 to always fail with ENOSYS. Some functions are actually named
8548 something starting with __ and the normal name is an alias. */
8549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8550 choke me
8551 #else
8552 char (*f) () = $ac_func;
8553 #endif
8554 #ifdef __cplusplus
8555 }
8556 #endif
8557
8558 int
8559 main ()
8560 {
8561 return f != $ac_func;
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try='test -s conftest$ac_exeext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 eval "$as_ac_var=yes"
8588 else
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 eval "$as_ac_var=no"
8593 fi
8594 rm -f conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 fi
8597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8599 if test `eval echo '${'$as_ac_var'}'` = yes; then
8600 cat >>confdefs.h <<_ACEOF
8601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8602 _ACEOF
8603
8604 fi
8605 done
8606
8607
8608
8609
8610
8611
8612 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8613 do
8614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8615 echo "$as_me:$LINENO: checking for $ac_func" >&5
8616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8617 if eval "test \"\${$as_ac_var+set}\" = set"; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 if test x$gcc_no_link = xyes; then
8621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8623 { (exit 1); exit 1; }; }
8624 fi
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8633 #define $ac_func innocuous_$ac_func
8634
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char $ac_func (); below.
8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 <limits.h> exists even on freestanding compilers. */
8639
8640 #ifdef __STDC__
8641 # include <limits.h>
8642 #else
8643 # include <assert.h>
8644 #endif
8645
8646 #undef $ac_func
8647
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 #ifdef __cplusplus
8650 extern "C"
8651 {
8652 #endif
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char $ac_func ();
8656 /* The GNU C library defines this for functions which it implements
8657 to always fail with ENOSYS. Some functions are actually named
8658 something starting with __ and the normal name is an alias. */
8659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8660 choke me
8661 #else
8662 char (*f) () = $ac_func;
8663 #endif
8664 #ifdef __cplusplus
8665 }
8666 #endif
8667
8668 int
8669 main ()
8670 {
8671 return f != $ac_func;
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 eval "$as_ac_var=yes"
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 eval "$as_ac_var=no"
8703 fi
8704 rm -f conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 fi
8707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8709 if test `eval echo '${'$as_ac_var'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8712 _ACEOF
8713
8714 fi
8715 done
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8727 do
8728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8729 echo "$as_me:$LINENO: checking for $ac_func" >&5
8730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_var+set}\" = set"; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 if test x$gcc_no_link = xyes; then
8735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8737 { (exit 1); exit 1; }; }
8738 fi
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8747 #define $ac_func innocuous_$ac_func
8748
8749 /* System header to define __stub macros and hopefully few prototypes,
8750 which can conflict with char $ac_func (); below.
8751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8752 <limits.h> exists even on freestanding compilers. */
8753
8754 #ifdef __STDC__
8755 # include <limits.h>
8756 #else
8757 # include <assert.h>
8758 #endif
8759
8760 #undef $ac_func
8761
8762 /* Override any gcc2 internal prototype to avoid an error. */
8763 #ifdef __cplusplus
8764 extern "C"
8765 {
8766 #endif
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8769 char $ac_func ();
8770 /* The GNU C library defines this for functions which it implements
8771 to always fail with ENOSYS. Some functions are actually named
8772 something starting with __ and the normal name is an alias. */
8773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8774 choke me
8775 #else
8776 char (*f) () = $ac_func;
8777 #endif
8778 #ifdef __cplusplus
8779 }
8780 #endif
8781
8782 int
8783 main ()
8784 {
8785 return f != $ac_func;
8786 ;
8787 return 0;
8788 }
8789 _ACEOF
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8792 (eval $ac_link) 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } &&
8799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest$ac_exeext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 eval "$as_ac_var=yes"
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816 eval "$as_ac_var=no"
8817 fi
8818 rm -f conftest.err conftest.$ac_objext \
8819 conftest$ac_exeext conftest.$ac_ext
8820 fi
8821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8823 if test `eval echo '${'$as_ac_var'}'` = yes; then
8824 cat >>confdefs.h <<_ACEOF
8825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8826 _ACEOF
8827
8828 fi
8829 done
8830
8831
8832
8833 for ac_func in nl_langinfo setlocale
8834 do
8835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8836 echo "$as_me:$LINENO: checking for $ac_func" >&5
8837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_var+set}\" = set"; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 if test x$gcc_no_link = xyes; then
8842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8844 { (exit 1); exit 1; }; }
8845 fi
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h. */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8854 #define $ac_func innocuous_$ac_func
8855
8856 /* System header to define __stub macros and hopefully few prototypes,
8857 which can conflict with char $ac_func (); below.
8858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8859 <limits.h> exists even on freestanding compilers. */
8860
8861 #ifdef __STDC__
8862 # include <limits.h>
8863 #else
8864 # include <assert.h>
8865 #endif
8866
8867 #undef $ac_func
8868
8869 /* Override any gcc2 internal prototype to avoid an error. */
8870 #ifdef __cplusplus
8871 extern "C"
8872 {
8873 #endif
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8876 char $ac_func ();
8877 /* The GNU C library defines this for functions which it implements
8878 to always fail with ENOSYS. Some functions are actually named
8879 something starting with __ and the normal name is an alias. */
8880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8881 choke me
8882 #else
8883 char (*f) () = $ac_func;
8884 #endif
8885 #ifdef __cplusplus
8886 }
8887 #endif
8888
8889 int
8890 main ()
8891 {
8892 return f != $ac_func;
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899 (eval $ac_link) 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 eval "$as_ac_var=yes"
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 eval "$as_ac_var=no"
8924 fi
8925 rm -f conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 fi
8928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8930 if test `eval echo '${'$as_ac_var'}'` = yes; then
8931 cat >>confdefs.h <<_ACEOF
8932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8933 _ACEOF
8934
8935 fi
8936 done
8937
8938
8939
8940 for ac_func in inet_aton inet_addr
8941 do
8942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 if test x$gcc_no_link = xyes; then
8949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8951 { (exit 1); exit 1; }; }
8952 fi
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8961 #define $ac_func innocuous_$ac_func
8962
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char $ac_func (); below.
8965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8966 <limits.h> exists even on freestanding compilers. */
8967
8968 #ifdef __STDC__
8969 # include <limits.h>
8970 #else
8971 # include <assert.h>
8972 #endif
8973
8974 #undef $ac_func
8975
8976 /* Override any gcc2 internal prototype to avoid an error. */
8977 #ifdef __cplusplus
8978 extern "C"
8979 {
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8983 char $ac_func ();
8984 /* The GNU C library defines this for functions which it implements
8985 to always fail with ENOSYS. Some functions are actually named
8986 something starting with __ and the normal name is an alias. */
8987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8988 choke me
8989 #else
8990 char (*f) () = $ac_func;
8991 #endif
8992 #ifdef __cplusplus
8993 }
8994 #endif
8995
8996 int
8997 main ()
8998 {
8999 return f != $ac_func;
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006 (eval $ac_link) 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s 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 eval "$as_ac_var=yes"
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 eval "$as_ac_var=no"
9031 fi
9032 rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 fi
9035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9037 if test `eval echo '${'$as_ac_var'}'` = yes; then
9038 cat >>confdefs.h <<_ACEOF
9039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9040 _ACEOF
9041 break
9042 fi
9043 done
9044
9045
9046
9047
9048 for ac_func in inet_pton uname inet_ntoa
9049 do
9050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9051 echo "$as_me:$LINENO: checking for $ac_func" >&5
9052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_var+set}\" = set"; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 if test x$gcc_no_link = xyes; then
9057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9059 { (exit 1); exit 1; }; }
9060 fi
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define $ac_func innocuous_$ac_func
9070
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9075
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9081
9082 #undef $ac_func
9083
9084 /* Override any gcc2 internal prototype to avoid an error. */
9085 #ifdef __cplusplus
9086 extern "C"
9087 {
9088 #endif
9089 /* We use char because int might match the return type of a gcc2
9090 builtin and then its argument prototype would still apply. */
9091 char $ac_func ();
9092 /* The GNU C library defines this for functions which it implements
9093 to always fail with ENOSYS. Some functions are actually named
9094 something starting with __ and the normal name is an alias. */
9095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9096 choke me
9097 #else
9098 char (*f) () = $ac_func;
9099 #endif
9100 #ifdef __cplusplus
9101 }
9102 #endif
9103
9104 int
9105 main ()
9106 {
9107 return f != $ac_func;
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 eval "$as_ac_var=yes"
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 eval "$as_ac_var=no"
9139 fi
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 fi
9143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9145 if test `eval echo '${'$as_ac_var'}'` = yes; then
9146 cat >>confdefs.h <<_ACEOF
9147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9148 _ACEOF
9149
9150 fi
9151 done
9152
9153
9154
9155
9156
9157
9158 for ac_func in fork execvp pipe sigaction ftruncate
9159 do
9160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9161 echo "$as_me:$LINENO: checking for $ac_func" >&5
9162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9163 if eval "test \"\${$as_ac_var+set}\" = set"; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 if test x$gcc_no_link = xyes; then
9167 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9168 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9169 { (exit 1); exit 1; }; }
9170 fi
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9179 #define $ac_func innocuous_$ac_func
9180
9181 /* System header to define __stub macros and hopefully few prototypes,
9182 which can conflict with char $ac_func (); below.
9183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9184 <limits.h> exists even on freestanding compilers. */
9185
9186 #ifdef __STDC__
9187 # include <limits.h>
9188 #else
9189 # include <assert.h>
9190 #endif
9191
9192 #undef $ac_func
9193
9194 /* Override any gcc2 internal prototype to avoid an error. */
9195 #ifdef __cplusplus
9196 extern "C"
9197 {
9198 #endif
9199 /* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9201 char $ac_func ();
9202 /* The GNU C library defines this for functions which it implements
9203 to always fail with ENOSYS. Some functions are actually named
9204 something starting with __ and the normal name is an alias. */
9205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9206 choke me
9207 #else
9208 char (*f) () = $ac_func;
9209 #endif
9210 #ifdef __cplusplus
9211 }
9212 #endif
9213
9214 int
9215 main ()
9216 {
9217 return f != $ac_func;
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 eval "$as_ac_var=yes"
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9247
9248 eval "$as_ac_var=no"
9249 fi
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 fi
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9255 if test `eval echo '${'$as_ac_var'}'` = yes; then
9256 cat >>confdefs.h <<_ACEOF
9257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9258 _ACEOF
9259
9260 fi
9261 done
9262
9263 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9264 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9265 if test "${ac_cv_header_stdc+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #include <stdlib.h>
9275 #include <stdarg.h>
9276 #include <string.h>
9277 #include <float.h>
9278
9279 int
9280 main ()
9281 {
9282
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289 (eval $ac_compile) 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest.$ac_objext'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_header_stdc=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 ac_cv_header_stdc=no
9314 fi
9315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9316
9317 if test $ac_cv_header_stdc = yes; then
9318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 #include <string.h>
9326
9327 _ACEOF
9328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9329 $EGREP "memchr" >/dev/null 2>&1; then
9330 :
9331 else
9332 ac_cv_header_stdc=no
9333 fi
9334 rm -f conftest*
9335
9336 fi
9337
9338 if test $ac_cv_header_stdc = yes; then
9339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <stdlib.h>
9347
9348 _ACEOF
9349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9350 $EGREP "free" >/dev/null 2>&1; then
9351 :
9352 else
9353 ac_cv_header_stdc=no
9354 fi
9355 rm -f conftest*
9356
9357 fi
9358
9359 if test $ac_cv_header_stdc = yes; then
9360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9361 if test "$cross_compiling" = yes; then
9362 :
9363 else
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 #include <ctype.h>
9371 #if ((' ' & 0x0FF) == 0x020)
9372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9374 #else
9375 # define ISLOWER(c) \
9376 (('a' <= (c) && (c) <= 'i') \
9377 || ('j' <= (c) && (c) <= 'r') \
9378 || ('s' <= (c) && (c) <= 'z'))
9379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9380 #endif
9381
9382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9383 int
9384 main ()
9385 {
9386 int i;
9387 for (i = 0; i < 256; i++)
9388 if (XOR (islower (i), ISLOWER (i))
9389 || toupper (i) != TOUPPER (i))
9390 exit(2);
9391 exit (0);
9392 }
9393 _ACEOF
9394 rm -f conftest$ac_exeext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 :
9406 else
9407 echo "$as_me: program exited with status $ac_status" >&5
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411 ( exit $ac_status )
9412 ac_cv_header_stdc=no
9413 fi
9414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9415 fi
9416 fi
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9419 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9420 if test $ac_cv_header_stdc = yes; then
9421
9422 cat >>confdefs.h <<\_ACEOF
9423 #define STDC_HEADERS 1
9424 _ACEOF
9425
9426 fi
9427
9428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9439 inttypes.h stdint.h unistd.h
9440 do
9441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9442 echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 $ac_includes_default
9454
9455 #include <$ac_header>
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459 (eval $ac_compile) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest.$ac_objext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 eval "$as_ac_Header=yes"
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 eval "$as_ac_Header=no"
9484 fi
9485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9486 fi
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492 _ACEOF
9493
9494 fi
9495
9496 done
9497
9498
9499
9500
9501
9502 for ac_header in execinfo.h unistd.h dlfcn.h
9503 do
9504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9506 echo "$as_me:$LINENO: checking for $ac_header" >&5
9507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 fi
9511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9513 else
9514 # Is the header compilable?
9515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 $ac_includes_default
9524 #include <$ac_header>
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_header_compiler=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_header_compiler=no
9553 fi
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9557
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <$ac_header>
9568 _ACEOF
9569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } >/dev/null; then
9577 if test -s conftest.err; then
9578 ac_cpp_err=$ac_c_preproc_warn_flag
9579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9580 else
9581 ac_cpp_err=
9582 fi
9583 else
9584 ac_cpp_err=yes
9585 fi
9586 if test -z "$ac_cpp_err"; then
9587 ac_header_preproc=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_header_preproc=no
9593 fi
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9597
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9600 yes:no: )
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9606 ;;
9607 no:yes:* )
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9620 (
9621 cat <<\_ASBOX
9622 ## ---------------------------------- ##
9623 ## Report this to the libjava lists. ##
9624 ## ---------------------------------- ##
9625 _ASBOX
9626 ) |
9627 sed "s/^/$as_me: WARNING: /" >&2
9628 ;;
9629 esac
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9635 eval "$as_ac_Header=\$ac_header_preproc"
9636 fi
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9639
9640 fi
9641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9644 _ACEOF
9645
9646 fi
9647
9648 done
9649
9650 echo "$as_me:$LINENO: checking for backtrace" >&5
9651 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9652 if test "${ac_cv_func_backtrace+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 if test x$gcc_no_link = xyes; then
9656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9658 { (exit 1); exit 1; }; }
9659 fi
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668 #define backtrace innocuous_backtrace
9669
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char backtrace (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9674
9675 #ifdef __STDC__
9676 # include <limits.h>
9677 #else
9678 # include <assert.h>
9679 #endif
9680
9681 #undef backtrace
9682
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 {
9687 #endif
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690 char backtrace ();
9691 /* The GNU C library defines this for functions which it implements
9692 to always fail with ENOSYS. Some functions are actually named
9693 something starting with __ and the normal name is an alias. */
9694 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9695 choke me
9696 #else
9697 char (*f) () = backtrace;
9698 #endif
9699 #ifdef __cplusplus
9700 }
9701 #endif
9702
9703 int
9704 main ()
9705 {
9706 return f != backtrace;
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_func_backtrace=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_func_backtrace=no
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi
9742 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9743 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9744 if test $ac_cv_func_backtrace = yes; then
9745
9746 case "$host" in
9747 ia64-*-linux*)
9748 # Has broken backtrace()
9749 ;;
9750 mips*-*-linux*)
9751 # Has broken backtrace(), but we supply our own.
9752 if test -d sysdep; then true; else mkdir -p sysdep; fi
9753 supply_backtrace=yes
9754
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_BACKTRACE 1
9757 _ACEOF
9758
9759 ;;
9760 *)
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_BACKTRACE 1
9764 _ACEOF
9765
9766 ;;
9767 esac
9768
9769 else
9770
9771 case "$host" in
9772 *mingw*)
9773 # Has backtrace() defined in libgcj itself
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_BACKTRACE 1
9777 _ACEOF
9778
9779 ;;
9780 esac
9781
9782 fi
9783
9784
9785 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9786 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9787 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 ac_check_lib_save_LIBS=$LIBS
9791 LIBS="-ldl $LIBS"
9792 if test x$gcc_no_link = xyes; then
9793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9795 { (exit 1); exit 1; }; }
9796 fi
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803
9804 /* Override any gcc2 internal prototype to avoid an error. */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810 char dladdr ();
9811 int
9812 main ()
9813 {
9814 dladdr ();
9815 ;
9816 return 0;
9817 }
9818 _ACEOF
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_cv_lib_dl_dladdr=yes
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_cv_lib_dl_dladdr=no
9846 fi
9847 rm -f conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9853 if test $ac_cv_lib_dl_dladdr = yes; then
9854
9855 if test "x${disable_dladdr}" = "xyes"; then
9856 #Broken dladdr().
9857 true
9858 else
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_DLADDR 1
9862 _ACEOF
9863
9864 fi
9865
9866 fi
9867
9868 if test x"$build" = x"$host"; then
9869 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9870 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9871 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 test "$cross_compiling" = yes &&
9875 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9876 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9877 { (exit 1); exit 1; }; }
9878 if test -r "/proc/self/exe"; then
9879 ac_cv_file__proc_self_exe=yes
9880 else
9881 ac_cv_file__proc_self_exe=no
9882 fi
9883 fi
9884 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9885 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9886 if test $ac_cv_file__proc_self_exe = yes; then
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define HAVE__PROC_SELF_EXE 1
9890 _ACEOF
9891
9892
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_PROC_SELF_EXE 1
9896 _ACEOF
9897
9898 fi
9899
9900 else
9901 case $host in
9902 *-linux*)
9903
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_PROC_SELF_EXE 1
9906 _ACEOF
9907
9908 ;;
9909 esac
9910 fi
9911
9912
9913
9914 am_cv_lib_iconv_ldpath=
9915
9916 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9917 if test "${with_libiconv_prefix+set}" = set; then
9918 withval="$with_libiconv_prefix"
9919
9920 for dir in `echo "$withval" | tr : ' '`; do
9921 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9922 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9923 done
9924
9925 fi;
9926
9927 echo "$as_me:$LINENO: checking for iconv" >&5
9928 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9929 if test "${am_cv_func_iconv+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932
9933 am_cv_func_iconv="no, consider installing GNU libiconv"
9934 am_cv_lib_iconv=no
9935 if test x$gcc_no_link = xyes; then
9936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9938 { (exit 1); exit 1; }; }
9939 fi
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 #include <stdlib.h>
9947 #include <iconv.h>
9948 int
9949 main ()
9950 {
9951 iconv_t cd = iconv_open("","");
9952 iconv(cd,NULL,NULL,NULL,NULL);
9953 iconv_close(cd);
9954 ;
9955 return 0;
9956 }
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 am_cv_func_iconv=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 if test "$am_cv_func_iconv" != yes; then
9988 am_save_LIBS="$LIBS"
9989 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
9990 if test x$gcc_no_link = xyes; then
9991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9993 { (exit 1); exit 1; }; }
9994 fi
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <stdlib.h>
10002 #include <iconv.h>
10003 int
10004 main ()
10005 {
10006 iconv_t cd = iconv_open("","");
10007 iconv(cd,NULL,NULL,NULL,NULL);
10008 iconv_close(cd);
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 am_cv_lib_iconv=yes
10035 am_cv_func_iconv=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 fi
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS="$am_save_LIBS"
10044 fi
10045
10046 fi
10047 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10048 echo "${ECHO_T}$am_cv_func_iconv" >&6
10049 if test "$am_cv_func_iconv" = yes; then
10050
10051 cat >>confdefs.h <<\_ACEOF
10052 #define HAVE_ICONV 1
10053 _ACEOF
10054
10055 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10056 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10057 if test "${am_cv_proto_iconv+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067
10068 #include <stdlib.h>
10069 #include <iconv.h>
10070 extern
10071 #ifdef __cplusplus
10072 "C"
10073 #endif
10074 #if defined(__STDC__) || defined(__cplusplus)
10075 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10076 #else
10077 size_t iconv();
10078 #endif
10079
10080 int
10081 main ()
10082 {
10083
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 am_cv_proto_iconv_arg1=""
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 am_cv_proto_iconv_arg1="const"
10115 fi
10116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 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);"
10118 fi
10119
10120 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10121 echo "$as_me:$LINENO: result: ${ac_t:-
10122 }$am_cv_proto_iconv" >&5
10123 echo "${ECHO_T}${ac_t:-
10124 }$am_cv_proto_iconv" >&6
10125
10126 cat >>confdefs.h <<_ACEOF
10127 #define ICONV_CONST $am_cv_proto_iconv_arg1
10128 _ACEOF
10129
10130 fi
10131 LIBICONV=
10132 if test "$am_cv_lib_iconv" = yes; then
10133 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10134 fi
10135
10136
10137
10138 for ac_header in locale.h
10139 do
10140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10142 echo "$as_me:$LINENO: checking for $ac_header" >&5
10143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 fi
10147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10149 else
10150 # Is the header compilable?
10151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 $ac_includes_default
10160 #include <$ac_header>
10161 _ACEOF
10162 rm -f conftest.$ac_objext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164 (eval $ac_compile) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_header_compiler=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_header_compiler=no
10189 fi
10190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10192 echo "${ECHO_T}$ac_header_compiler" >&6
10193
10194 # Is the header present?
10195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <$ac_header>
10204 _ACEOF
10205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } >/dev/null; then
10213 if test -s conftest.err; then
10214 ac_cpp_err=$ac_c_preproc_warn_flag
10215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10216 else
10217 ac_cpp_err=
10218 fi
10219 else
10220 ac_cpp_err=yes
10221 fi
10222 if test -z "$ac_cpp_err"; then
10223 ac_header_preproc=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ac_header_preproc=no
10229 fi
10230 rm -f conftest.err conftest.$ac_ext
10231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10232 echo "${ECHO_T}$ac_header_preproc" >&6
10233
10234 # So? What about this header?
10235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10236 yes:no: )
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10241 ac_header_preproc=yes
10242 ;;
10243 no:yes:* )
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10256 (
10257 cat <<\_ASBOX
10258 ## ---------------------------------- ##
10259 ## Report this to the libjava lists. ##
10260 ## ---------------------------------- ##
10261 _ASBOX
10262 ) |
10263 sed "s/^/$as_me: WARNING: /" >&2
10264 ;;
10265 esac
10266 echo "$as_me:$LINENO: checking for $ac_header" >&5
10267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 eval "$as_ac_Header=\$ac_header_preproc"
10272 fi
10273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10275
10276 fi
10277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10278 cat >>confdefs.h <<_ACEOF
10279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10280 _ACEOF
10281
10282 fi
10283
10284 done
10285
10286 if test $ac_cv_header_locale_h = yes; then
10287 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10288 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10289 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292 if test x$gcc_no_link = xyes; then
10293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10295 { (exit 1); exit 1; }; }
10296 fi
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303 #include <locale.h>
10304 int
10305 main ()
10306 {
10307 return LC_MESSAGES
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 am_cv_val_LC_MESSAGES=yes
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 am_cv_val_LC_MESSAGES=no
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 fi
10343 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10344 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10345 if test $am_cv_val_LC_MESSAGES = yes; then
10346
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_LC_MESSAGES 1
10349 _ACEOF
10350
10351 fi
10352 fi
10353 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10355 if test "${ac_cv_struct_tm+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h. */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 #include <sys/types.h>
10365 #include <time.h>
10366
10367 int
10368 main ()
10369 {
10370 struct tm *tp; tp->tm_sec;
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest.$ac_objext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 ac_cv_struct_tm=time.h
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 ac_cv_struct_tm=sys/time.h
10402 fi
10403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404 fi
10405 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10406 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10407 if test $ac_cv_struct_tm = sys/time.h; then
10408
10409 cat >>confdefs.h <<\_ACEOF
10410 #define TM_IN_SYS_TIME 1
10411 _ACEOF
10412
10413 fi
10414
10415 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10416 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10417 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 #include <sys/types.h>
10427 #include <$ac_cv_struct_tm>
10428
10429
10430 int
10431 main ()
10432 {
10433 static struct tm ac_aggr;
10434 if (ac_aggr.tm_zone)
10435 return 0;
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest.$ac_objext'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; }; then
10461 ac_cv_member_struct_tm_tm_zone=yes
10462 else
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 #include <sys/types.h>
10473 #include <$ac_cv_struct_tm>
10474
10475
10476 int
10477 main ()
10478 {
10479 static struct tm ac_aggr;
10480 if (sizeof ac_aggr.tm_zone)
10481 return 0;
10482 ;
10483 return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_member_struct_tm_tm_zone=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_cv_member_struct_tm_tm_zone=no
10513 fi
10514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515 fi
10516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10517 fi
10518 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10519 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10520 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10521
10522 cat >>confdefs.h <<_ACEOF
10523 #define HAVE_STRUCT_TM_TM_ZONE 1
10524 _ACEOF
10525
10526
10527 fi
10528
10529 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10530
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_TM_ZONE 1
10533 _ACEOF
10534
10535 else
10536 echo "$as_me:$LINENO: checking for tzname" >&5
10537 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10538 if test "${ac_cv_var_tzname+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 if test x$gcc_no_link = xyes; then
10542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10544 { (exit 1); exit 1; }; }
10545 fi
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <time.h>
10553 #ifndef tzname /* For SGI. */
10554 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10555 #endif
10556
10557 int
10558 main ()
10559 {
10560 atoi(*tzname);
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest$ac_exeext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_var_tzname=yes
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 ac_cv_var_tzname=no
10592 fi
10593 rm -f conftest.err conftest.$ac_objext \
10594 conftest$ac_exeext conftest.$ac_ext
10595 fi
10596 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10597 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10598 if test $ac_cv_var_tzname = yes; then
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_TZNAME 1
10602 _ACEOF
10603
10604 fi
10605 fi
10606
10607
10608
10609
10610 for ac_func in gethostbyname_r
10611 do
10612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 echo "$as_me:$LINENO: checking for $ac_func" >&5
10614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_var+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 if test x$gcc_no_link = xyes; then
10619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10621 { (exit 1); exit 1; }; }
10622 fi
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10631 #define $ac_func innocuous_$ac_func
10632
10633 /* System header to define __stub macros and hopefully few prototypes,
10634 which can conflict with char $ac_func (); below.
10635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10636 <limits.h> exists even on freestanding compilers. */
10637
10638 #ifdef __STDC__
10639 # include <limits.h>
10640 #else
10641 # include <assert.h>
10642 #endif
10643
10644 #undef $ac_func
10645
10646 /* Override any gcc2 internal prototype to avoid an error. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 {
10650 #endif
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653 char $ac_func ();
10654 /* The GNU C library defines this for functions which it implements
10655 to always fail with ENOSYS. Some functions are actually named
10656 something starting with __ and the normal name is an alias. */
10657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658 choke me
10659 #else
10660 char (*f) () = $ac_func;
10661 #endif
10662 #ifdef __cplusplus
10663 }
10664 #endif
10665
10666 int
10667 main ()
10668 {
10669 return f != $ac_func;
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest$ac_exeext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 eval "$as_ac_var=yes"
10696 else
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700 eval "$as_ac_var=no"
10701 fi
10702 rm -f conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704 fi
10705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707 if test `eval echo '${'$as_ac_var'}'` = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10710 _ACEOF
10711
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_GETHOSTBYNAME_R 1
10715 _ACEOF
10716
10717 # There are two different kinds of gethostbyname_r.
10718 # We look for the one that returns `int'.
10719 # Hopefully this check is robust enough.
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #include <netdb.h>
10727
10728 _ACEOF
10729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10730 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10731
10732
10733 cat >>confdefs.h <<\_ACEOF
10734 #define GETHOSTBYNAME_R_RETURNS_INT 1
10735 _ACEOF
10736
10737 fi
10738 rm -f conftest*
10739
10740
10741 case " $GCINCS " in
10742 *" -D_REENTRANT "*) ;;
10743 *)
10744 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10745 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10746 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 ac_ext=cc
10750 ac_cpp='$CXXCPP $CPPFLAGS'
10751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10754
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <netdb.h>
10762 int
10763 main ()
10764 {
10765 gethostbyname_r("", 0, 0);
10766 ;
10767 return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest.$ac_objext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 libjava_cv_gethostbyname_r_needs_reentrant=no
10792 else
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 CPPFLAGS_SAVE="$CPPFLAGS"
10797 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h. */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 #include <netdb.h>
10805 int
10806 main ()
10807 {
10808 gethostbyname_r("", 0, 0);
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815 (eval $ac_compile) 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 libjava_cv_gethostbyname_r_needs_reentrant=yes
10835 else
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 libjava_cv_gethostbyname_r_needs_reentrant=fail
10840 fi
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842 CPPFLAGS="$CPPFLAGS_SAVE"
10843
10844 fi
10845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846 ac_ext=c
10847 ac_cpp='$CPP $CPPFLAGS'
10848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851
10852
10853 fi
10854 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10855 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10856 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10857
10858 cat >>confdefs.h <<\_ACEOF
10859 #define _REENTRANT 1
10860 _ACEOF
10861
10862 fi
10863 ;;
10864 esac
10865
10866 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10867 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10868 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877
10878 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10879 # define _REENTRANT 1
10880 #endif
10881 #include <netdb.h>
10882 int
10883 main ()
10884 {
10885 struct hostent_data data;
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 libjava_cv_struct_hostent_data=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 libjava_cv_struct_hostent_data=no
10917 fi
10918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919 fi
10920 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10921 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10922 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_STRUCT_HOSTENT_DATA 1
10926 _ACEOF
10927
10928 fi
10929
10930 fi
10931 done
10932
10933
10934 # FIXME: libjava source code expects to find a prototype for
10935 # gethostbyaddr_r in netdb.h. The outer check ensures that
10936 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10937 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10938 # linkage check is enough, yet C++ code requires proper prototypes.)
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 #include <netdb.h>
10946
10947 _ACEOF
10948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10949 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10950
10951
10952 for ac_func in gethostbyaddr_r
10953 do
10954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 echo "$as_me:$LINENO: checking for $ac_func" >&5
10956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10957 if eval "test \"\${$as_ac_var+set}\" = set"; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960 if test x$gcc_no_link = xyes; then
10961 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10963 { (exit 1); exit 1; }; }
10964 fi
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973 #define $ac_func innocuous_$ac_func
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef $ac_func
10987
10988 /* Override any gcc2 internal prototype to avoid an error. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 {
10992 #endif
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995 char $ac_func ();
10996 /* The GNU C library defines this for functions which it implements
10997 to always fail with ENOSYS. Some functions are actually named
10998 something starting with __ and the normal name is an alias. */
10999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11000 choke me
11001 #else
11002 char (*f) () = $ac_func;
11003 #endif
11004 #ifdef __cplusplus
11005 }
11006 #endif
11007
11008 int
11009 main ()
11010 {
11011 return f != $ac_func;
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 eval "$as_ac_var=yes"
11038 else
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 eval "$as_ac_var=no"
11043 fi
11044 rm -f conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 fi
11047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11049 if test `eval echo '${'$as_ac_var'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11052 _ACEOF
11053
11054
11055 cat >>confdefs.h <<\_ACEOF
11056 #define HAVE_GETHOSTBYADDR_R 1
11057 _ACEOF
11058
11059 # There are two different kinds of gethostbyaddr_r.
11060 # We look for the one that returns `int'.
11061 # Hopefully this check is robust enough.
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 #include <netdb.h>
11069
11070 _ACEOF
11071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11072 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11073
11074
11075 cat >>confdefs.h <<\_ACEOF
11076 #define GETHOSTBYADDR_R_RETURNS_INT 1
11077 _ACEOF
11078
11079 fi
11080 rm -f conftest*
11081
11082 fi
11083 done
11084
11085 fi
11086 rm -f conftest*
11087
11088
11089
11090 for ac_func in gethostname
11091 do
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11095 if eval "test \"\${$as_ac_var+set}\" = set"; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 if test x$gcc_no_link = xyes; then
11099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11101 { (exit 1); exit 1; }; }
11102 fi
11103 cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h. */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define $ac_func innocuous_$ac_func
11112
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char $ac_func (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11117
11118 #ifdef __STDC__
11119 # include <limits.h>
11120 #else
11121 # include <assert.h>
11122 #endif
11123
11124 #undef $ac_func
11125
11126 /* Override any gcc2 internal prototype to avoid an error. */
11127 #ifdef __cplusplus
11128 extern "C"
11129 {
11130 #endif
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char $ac_func ();
11134 /* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11138 choke me
11139 #else
11140 char (*f) () = $ac_func;
11141 #endif
11142 #ifdef __cplusplus
11143 }
11144 #endif
11145
11146 int
11147 main ()
11148 {
11149 return f != $ac_func;
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 eval "$as_ac_var=yes"
11176 else
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 eval "$as_ac_var=no"
11181 fi
11182 rm -f conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 fi
11185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11190 _ACEOF
11191
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_GETHOSTNAME 1
11195 _ACEOF
11196
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 #include <unistd.h>
11204
11205 _ACEOF
11206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11207 $EGREP "gethostname" >/dev/null 2>&1; then
11208
11209
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_GETHOSTNAME_DECL 1
11212 _ACEOF
11213
11214 fi
11215 rm -f conftest*
11216
11217 fi
11218 done
11219
11220
11221
11222 for ac_func in usleep
11223 do
11224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11225 echo "$as_me:$LINENO: checking for $ac_func" >&5
11226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11227 if eval "test \"\${$as_ac_var+set}\" = set"; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 if test x$gcc_no_link = xyes; then
11231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11233 { (exit 1); exit 1; }; }
11234 fi
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h. */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11243 #define $ac_func innocuous_$ac_func
11244
11245 /* System header to define __stub macros and hopefully few prototypes,
11246 which can conflict with char $ac_func (); below.
11247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11248 <limits.h> exists even on freestanding compilers. */
11249
11250 #ifdef __STDC__
11251 # include <limits.h>
11252 #else
11253 # include <assert.h>
11254 #endif
11255
11256 #undef $ac_func
11257
11258 /* Override any gcc2 internal prototype to avoid an error. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 {
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11265 char $ac_func ();
11266 /* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11270 choke me
11271 #else
11272 char (*f) () = $ac_func;
11273 #endif
11274 #ifdef __cplusplus
11275 }
11276 #endif
11277
11278 int
11279 main ()
11280 {
11281 return f != $ac_func;
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>conftest.er1
11289 ac_status=$?
11290 grep -v '^ *+' conftest.er1 >conftest.err
11291 rm -f conftest.er1
11292 cat conftest.err >&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest$ac_exeext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 eval "$as_ac_var=yes"
11308 else
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 eval "$as_ac_var=no"
11313 fi
11314 rm -f conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 fi
11317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11319 if test `eval echo '${'$as_ac_var'}'` = yes; then
11320 cat >>confdefs.h <<_ACEOF
11321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11322 _ACEOF
11323
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <unistd.h>
11331
11332 _ACEOF
11333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11334 $EGREP "usleep" >/dev/null 2>&1; then
11335
11336
11337 cat >>confdefs.h <<\_ACEOF
11338 #define HAVE_USLEEP_DECL 1
11339 _ACEOF
11340
11341 fi
11342 rm -f conftest*
11343
11344 fi
11345 done
11346
11347
11348 # Look for these functions in the thread library, but only bother
11349 # if using POSIX threads.
11350 if test "$THREADS" = posix; then
11351 save_LIBS="$LIBS"
11352 LIBS="$LIBS $THREADLIBS"
11353 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11354 # E.g., Solaris.
11355
11356
11357 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11358 do
11359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11362 if eval "test \"\${$as_ac_var+set}\" = set"; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365 if test x$gcc_no_link = xyes; then
11366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11368 { (exit 1); exit 1; }; }
11369 fi
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11378 #define $ac_func innocuous_$ac_func
11379
11380 /* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below.
11382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383 <limits.h> exists even on freestanding compilers. */
11384
11385 #ifdef __STDC__
11386 # include <limits.h>
11387 #else
11388 # include <assert.h>
11389 #endif
11390
11391 #undef $ac_func
11392
11393 /* Override any gcc2 internal prototype to avoid an error. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 {
11397 #endif
11398 /* We use char because int might match the return type of a gcc2
11399 builtin and then its argument prototype would still apply. */
11400 char $ac_func ();
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11405 choke me
11406 #else
11407 char (*f) () = $ac_func;
11408 #endif
11409 #ifdef __cplusplus
11410 }
11411 #endif
11412
11413 int
11414 main ()
11415 {
11416 return f != $ac_func;
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11423 (eval $ac_link) 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest$ac_exeext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 eval "$as_ac_var=yes"
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11446
11447 eval "$as_ac_var=no"
11448 fi
11449 rm -f conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 fi
11452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11454 if test `eval echo '${'$as_ac_var'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 _ACEOF
11458
11459 fi
11460 done
11461
11462
11463 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11464 # Solaris 7 the name librt is preferred.
11465
11466 for ac_func in sched_yield
11467 do
11468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11469 echo "$as_me:$LINENO: checking for $ac_func" >&5
11470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11471 if eval "test \"\${$as_ac_var+set}\" = set"; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474 if test x$gcc_no_link = xyes; then
11475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11477 { (exit 1); exit 1; }; }
11478 fi
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11487 #define $ac_func innocuous_$ac_func
11488
11489 /* System header to define __stub macros and hopefully few prototypes,
11490 which can conflict with char $ac_func (); below.
11491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492 <limits.h> exists even on freestanding compilers. */
11493
11494 #ifdef __STDC__
11495 # include <limits.h>
11496 #else
11497 # include <assert.h>
11498 #endif
11499
11500 #undef $ac_func
11501
11502 /* Override any gcc2 internal prototype to avoid an error. */
11503 #ifdef __cplusplus
11504 extern "C"
11505 {
11506 #endif
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char $ac_func ();
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514 choke me
11515 #else
11516 char (*f) () = $ac_func;
11517 #endif
11518 #ifdef __cplusplus
11519 }
11520 #endif
11521
11522 int
11523 main ()
11524 {
11525 return f != $ac_func;
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest$ac_exeext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 eval "$as_ac_var=yes"
11552 else
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 eval "$as_ac_var=no"
11557 fi
11558 rm -f conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 fi
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11563 if test `eval echo '${'$as_ac_var'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11566 _ACEOF
11567
11568 else
11569
11570 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11571 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11572 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575 ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-lrt $LIBS"
11577 if test x$gcc_no_link = xyes; then
11578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11580 { (exit 1); exit 1; }; }
11581 fi
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588
11589 /* Override any gcc2 internal prototype to avoid an error. */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 /* We use char because int might match the return type of a gcc2
11594 builtin and then its argument prototype would still apply. */
11595 char sched_yield ();
11596 int
11597 main ()
11598 {
11599 sched_yield ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_lib_rt_sched_yield=yes
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_cv_lib_rt_sched_yield=no
11631 fi
11632 rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11637 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11638 if test $ac_cv_lib_rt_sched_yield = yes; then
11639
11640 cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_SCHED_YIELD 1
11642 _ACEOF
11643
11644 THREADLIBS="$THREADLIBS -lrt"
11645 THREADSPEC="$THREADSPEC -lrt"
11646 else
11647
11648 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11649 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11650 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lposix4 $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11658 { (exit 1); exit 1; }; }
11659 fi
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666
11667 /* Override any gcc2 internal prototype to avoid an error. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673 char sched_yield ();
11674 int
11675 main ()
11676 {
11677 sched_yield ();
11678 ;
11679 return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_lib_posix4_sched_yield=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_cv_lib_posix4_sched_yield=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11715 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11716 if test $ac_cv_lib_posix4_sched_yield = yes; then
11717
11718 cat >>confdefs.h <<\_ACEOF
11719 #define HAVE_SCHED_YIELD 1
11720 _ACEOF
11721
11722 THREADLIBS="$THREADLIBS -lposix4"
11723 THREADSPEC="$THREADSPEC -lposix4"
11724 fi
11725
11726 fi
11727
11728 fi
11729 done
11730
11731 LIBS="$save_LIBS"
11732
11733 # We can save a little space at runtime if the mutex has m_count
11734 # or __m_count. This is a nice hack for Linux.
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 #include <pthread.h>
11742 int
11743 main ()
11744 {
11745
11746 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11747
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest.$ac_objext'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773
11774 cat >>confdefs.h <<\_ACEOF
11775 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11776 _ACEOF
11777
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 #include <pthread.h>
11790 int
11791 main ()
11792 {
11793
11794 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11795
11796 ;
11797 return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802 (eval $ac_compile) 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11824 _ACEOF
11825
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 fi
11831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11832 fi
11833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11834 fi
11835
11836 # We require a way to get the time.
11837 time_found=no
11838
11839
11840
11841 for ac_func in gettimeofday time ftime
11842 do
11843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11844 echo "$as_me:$LINENO: checking for $ac_func" >&5
11845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11846 if eval "test \"\${$as_ac_var+set}\" = set"; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 if test x$gcc_no_link = xyes; then
11850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11852 { (exit 1); exit 1; }; }
11853 fi
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef $ac_func
11876
11877 /* Override any gcc2 internal prototype to avoid an error. */
11878 #ifdef __cplusplus
11879 extern "C"
11880 {
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11884 char $ac_func ();
11885 /* The GNU C library defines this for functions which it implements
11886 to always fail with ENOSYS. Some functions are actually named
11887 something starting with __ and the normal name is an alias. */
11888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11889 choke me
11890 #else
11891 char (*f) () = $ac_func;
11892 #endif
11893 #ifdef __cplusplus
11894 }
11895 #endif
11896
11897 int
11898 main ()
11899 {
11900 return f != $ac_func;
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 eval "$as_ac_var=yes"
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 eval "$as_ac_var=no"
11932 fi
11933 rm -f conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 fi
11936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11938 if test `eval echo '${'$as_ac_var'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11941 _ACEOF
11942 time_found=yes
11943 fi
11944 done
11945
11946 if test "$time_found" = no; then
11947 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11948 echo "$as_me: error: no function found to get the time" >&2;}
11949 { (exit 1); exit 1; }; }
11950 fi
11951
11952
11953 for ac_func in memmove
11954 do
11955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11956 echo "$as_me:$LINENO: checking for $ac_func" >&5
11957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11958 if eval "test \"\${$as_ac_var+set}\" = set"; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 if test x$gcc_no_link = xyes; then
11962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11964 { (exit 1); exit 1; }; }
11965 fi
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974 #define $ac_func innocuous_$ac_func
11975
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980
11981 #ifdef __STDC__
11982 # include <limits.h>
11983 #else
11984 # include <assert.h>
11985 #endif
11986
11987 #undef $ac_func
11988
11989 /* Override any gcc2 internal prototype to avoid an error. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 {
11993 #endif
11994 /* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */
11996 char $ac_func ();
11997 /* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001 choke me
12002 #else
12003 char (*f) () = $ac_func;
12004 #endif
12005 #ifdef __cplusplus
12006 }
12007 #endif
12008
12009 int
12010 main ()
12011 {
12012 return f != $ac_func;
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 eval "$as_ac_var=yes"
12039 else
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 eval "$as_ac_var=no"
12044 fi
12045 rm -f conftest.err conftest.$ac_objext \
12046 conftest$ac_exeext conftest.$ac_ext
12047 fi
12048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12050 if test `eval echo '${'$as_ac_var'}'` = yes; then
12051 cat >>confdefs.h <<_ACEOF
12052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12053 _ACEOF
12054
12055 fi
12056 done
12057
12058
12059 # We require memcpy.
12060 memcpy_found=no
12061
12062 for ac_func in memcpy
12063 do
12064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12065 echo "$as_me:$LINENO: checking for $ac_func" >&5
12066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12067 if eval "test \"\${$as_ac_var+set}\" = set"; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 else
12070 if test x$gcc_no_link = xyes; then
12071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12073 { (exit 1); exit 1; }; }
12074 fi
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h. */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12083 #define $ac_func innocuous_$ac_func
12084
12085 /* System header to define __stub macros and hopefully few prototypes,
12086 which can conflict with char $ac_func (); below.
12087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088 <limits.h> exists even on freestanding compilers. */
12089
12090 #ifdef __STDC__
12091 # include <limits.h>
12092 #else
12093 # include <assert.h>
12094 #endif
12095
12096 #undef $ac_func
12097
12098 /* Override any gcc2 internal prototype to avoid an error. */
12099 #ifdef __cplusplus
12100 extern "C"
12101 {
12102 #endif
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12105 char $ac_func ();
12106 /* The GNU C library defines this for functions which it implements
12107 to always fail with ENOSYS. Some functions are actually named
12108 something starting with __ and the normal name is an alias. */
12109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12110 choke me
12111 #else
12112 char (*f) () = $ac_func;
12113 #endif
12114 #ifdef __cplusplus
12115 }
12116 #endif
12117
12118 int
12119 main ()
12120 {
12121 return f != $ac_func;
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 eval "$as_ac_var=yes"
12148 else
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 eval "$as_ac_var=no"
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 fi
12157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12159 if test `eval echo '${'$as_ac_var'}'` = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12162 _ACEOF
12163 memcpy_found=yes
12164 fi
12165 done
12166
12167 if test "$memcpy_found" = no; then
12168 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12169 echo "$as_me: error: memcpy is required" >&2;}
12170 { (exit 1); exit 1; }; }
12171 fi
12172
12173 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-ldl $LIBS"
12180 if test x$gcc_no_link = xyes; then
12181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12183 { (exit 1); exit 1; }; }
12184 fi
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191
12192 /* Override any gcc2 internal prototype to avoid an error. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198 char dlopen ();
12199 int
12200 main ()
12201 {
12202 dlopen ();
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_lib_dl_dlopen=yes
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_lib_dl_dlopen=no
12234 fi
12235 rm -f conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12240 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12241 if test $ac_cv_lib_dl_dlopen = yes; then
12242
12243
12244 cat >>confdefs.h <<\_ACEOF
12245 #define HAVE_DLOPEN 1
12246 _ACEOF
12247
12248 fi
12249
12250
12251 # Some library-finding code we stole from Tcl.
12252 #--------------------------------------------------------------------
12253 # Check for the existence of the -lsocket and -lnsl libraries.
12254 # The order here is important, so that they end up in the right
12255 # order in the command line generated by make. Here are some
12256 # special considerations:
12257 # 1. Use "connect" and "accept" to check for -lsocket, and
12258 # "gethostbyname" to check for -lnsl.
12259 # 2. Use each function name only once: can't redo a check because
12260 # autoconf caches the results of the last check and won't redo it.
12261 # 3. Use -lnsl and -lsocket only if they supply procedures that
12262 # aren't already present in the normal libraries. This is because
12263 # IRIX 5.2 has libraries, but they aren't needed and they're
12264 # bogus: they goof up name resolution if used.
12265 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12266 # To get around this problem, check for both libraries together
12267 # if -lsocket doesn't work by itself.
12268 #--------------------------------------------------------------------
12269
12270 echo "$as_me:$LINENO: checking for socket libraries" >&5
12271 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12272 if test "${gcj_cv_lib_sockets+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 gcj_cv_lib_sockets=
12276 gcj_checkBoth=0
12277 unset ac_cv_func_connect
12278 echo "$as_me:$LINENO: checking for connect" >&5
12279 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12280 if test "${ac_cv_func_connect+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283 if test x$gcc_no_link = xyes; then
12284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12286 { (exit 1); exit 1; }; }
12287 fi
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12296 #define connect innocuous_connect
12297
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char connect (); below.
12300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12301 <limits.h> exists even on freestanding compilers. */
12302
12303 #ifdef __STDC__
12304 # include <limits.h>
12305 #else
12306 # include <assert.h>
12307 #endif
12308
12309 #undef connect
12310
12311 /* Override any gcc2 internal prototype to avoid an error. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 {
12315 #endif
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12318 char connect ();
12319 /* The GNU C library defines this for functions which it implements
12320 to always fail with ENOSYS. Some functions are actually named
12321 something starting with __ and the normal name is an alias. */
12322 #if defined (__stub_connect) || defined (__stub___connect)
12323 choke me
12324 #else
12325 char (*f) () = connect;
12326 #endif
12327 #ifdef __cplusplus
12328 }
12329 #endif
12330
12331 int
12332 main ()
12333 {
12334 return f != connect;
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_func_connect=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 ac_cv_func_connect=no
12366 fi
12367 rm -f conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 fi
12370 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12371 echo "${ECHO_T}$ac_cv_func_connect" >&6
12372 if test $ac_cv_func_connect = yes; then
12373 gcj_checkSocket=0
12374 else
12375 gcj_checkSocket=1
12376 fi
12377
12378 if test "$gcj_checkSocket" = 1; then
12379 unset ac_cv_func_connect
12380 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12381 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12382 if test "${ac_cv_lib_socket_main+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-lsocket $LIBS"
12387 if test x$gcc_no_link = xyes; then
12388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12390 { (exit 1); exit 1; }; }
12391 fi
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398
12399
12400 int
12401 main ()
12402 {
12403 main ();
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || 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_lib_socket_main=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_cv_lib_socket_main=no
12435 fi
12436 rm -f conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12439 fi
12440 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12441 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12442 if test $ac_cv_lib_socket_main = yes; then
12443 gcj_cv_lib_sockets="-lsocket"
12444 else
12445 gcj_checkBoth=1
12446 fi
12447
12448 fi
12449 if test "$gcj_checkBoth" = 1; then
12450 gcj_oldLibs=$LIBS
12451 LIBS="$LIBS -lsocket -lnsl"
12452 unset ac_cv_func_accept
12453 echo "$as_me:$LINENO: checking for accept" >&5
12454 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12455 if test "${ac_cv_func_accept+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 if test x$gcc_no_link = xyes; then
12459 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12460 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12461 { (exit 1); exit 1; }; }
12462 fi
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12471 #define accept innocuous_accept
12472
12473 /* System header to define __stub macros and hopefully few prototypes,
12474 which can conflict with char accept (); below.
12475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 <limits.h> exists even on freestanding compilers. */
12477
12478 #ifdef __STDC__
12479 # include <limits.h>
12480 #else
12481 # include <assert.h>
12482 #endif
12483
12484 #undef accept
12485
12486 /* Override any gcc2 internal prototype to avoid an error. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 {
12490 #endif
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12493 char accept ();
12494 /* The GNU C library defines this for functions which it implements
12495 to always fail with ENOSYS. Some functions are actually named
12496 something starting with __ and the normal name is an alias. */
12497 #if defined (__stub_accept) || defined (__stub___accept)
12498 choke me
12499 #else
12500 char (*f) () = accept;
12501 #endif
12502 #ifdef __cplusplus
12503 }
12504 #endif
12505
12506 int
12507 main ()
12508 {
12509 return f != accept;
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; } &&
12529 { ac_try='test -s conftest$ac_exeext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 ac_cv_func_accept=yes
12536 else
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 ac_cv_func_accept=no
12541 fi
12542 rm -f conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12544 fi
12545 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12546 echo "${ECHO_T}$ac_cv_func_accept" >&6
12547 if test $ac_cv_func_accept = yes; then
12548 gcj_checkNsl=0
12549 gcj_cv_lib_sockets="-lsocket -lnsl"
12550 fi
12551
12552 unset ac_cv_func_accept
12553 LIBS=$gcj_oldLibs
12554 fi
12555 unset ac_cv_func_gethostbyname
12556 gcj_oldLibs=$LIBS
12557 LIBS="$LIBS $gcj_cv_lib_sockets"
12558 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12559 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12560 if test "${ac_cv_func_gethostbyname+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 if test x$gcc_no_link = xyes; then
12564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12566 { (exit 1); exit 1; }; }
12567 fi
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h. */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12576 #define gethostbyname innocuous_gethostbyname
12577
12578 /* System header to define __stub macros and hopefully few prototypes,
12579 which can conflict with char gethostbyname (); below.
12580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12581 <limits.h> exists even on freestanding compilers. */
12582
12583 #ifdef __STDC__
12584 # include <limits.h>
12585 #else
12586 # include <assert.h>
12587 #endif
12588
12589 #undef gethostbyname
12590
12591 /* Override any gcc2 internal prototype to avoid an error. */
12592 #ifdef __cplusplus
12593 extern "C"
12594 {
12595 #endif
12596 /* We use char because int might match the return type of a gcc2
12597 builtin and then its argument prototype would still apply. */
12598 char gethostbyname ();
12599 /* The GNU C library defines this for functions which it implements
12600 to always fail with ENOSYS. Some functions are actually named
12601 something starting with __ and the normal name is an alias. */
12602 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12603 choke me
12604 #else
12605 char (*f) () = gethostbyname;
12606 #endif
12607 #ifdef __cplusplus
12608 }
12609 #endif
12610
12611 int
12612 main ()
12613 {
12614 return f != gethostbyname;
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621 (eval $ac_link) 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_func_gethostbyname=yes
12641 else
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ac_cv_func_gethostbyname=no
12646 fi
12647 rm -f conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12651 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12652 if test $ac_cv_func_gethostbyname = yes; then
12653 :
12654 else
12655 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12656 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12657 if test "${ac_cv_lib_nsl_main+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660 ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-lnsl $LIBS"
12662 if test x$gcc_no_link = xyes; then
12663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12665 { (exit 1); exit 1; }; }
12666 fi
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673
12674
12675 int
12676 main ()
12677 {
12678 main ();
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext conftest$ac_exeext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12685 (eval $ac_link) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_cv_lib_nsl_main=yes
12705 else
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 ac_cv_lib_nsl_main=no
12710 fi
12711 rm -f conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12716 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12717 if test $ac_cv_lib_nsl_main = yes; then
12718 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12719 fi
12720
12721 fi
12722
12723 unset ac_cv_func_gethostbyname
12724 LIBS=$gcj_oldLIBS
12725
12726 fi
12727 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12728 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12729 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12730
12731 if test "$with_system_zlib" = yes; then
12732 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12733 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12734 if test "${ac_cv_lib_z_deflate+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lz $LIBS"
12739 if test x$gcc_no_link = xyes; then
12740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12742 { (exit 1); exit 1; }; }
12743 fi
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750
12751 /* Override any gcc2 internal prototype to avoid an error. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char deflate ();
12758 int
12759 main ()
12760 {
12761 deflate ();
12762 ;
12763 return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_lib_z_deflate=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_cv_lib_z_deflate=no
12793 fi
12794 rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12797 fi
12798 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12799 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12800 if test $ac_cv_lib_z_deflate = yes; then
12801 ZLIBSPEC=-lz
12802 else
12803 ZLIBSPEC=
12804 fi
12805
12806 fi
12807
12808 # Test for Gtk stuff, if asked for.
12809 if test "$use_gtk_awt" = yes; then
12810
12811 succeeded=no
12812
12813 if test -z "$PKG_CONFIG"; then
12814 # Extract the first word of "pkg-config", so it can be a program name with args.
12815 set dummy pkg-config; ac_word=$2
12816 echo "$as_me:$LINENO: checking for $ac_word" >&5
12817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 case $PKG_CONFIG in
12822 [\\/]* | ?:[\\/]*)
12823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12824 ;;
12825 *)
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837 done
12838 done
12839
12840 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12841 ;;
12842 esac
12843 fi
12844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12845
12846 if test -n "$PKG_CONFIG"; then
12847 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12848 echo "${ECHO_T}$PKG_CONFIG" >&6
12849 else
12850 echo "$as_me:$LINENO: result: no" >&5
12851 echo "${ECHO_T}no" >&6
12852 fi
12853
12854 fi
12855
12856 if test "$PKG_CONFIG" = "no" ; then
12857 echo "*** The pkg-config script could not be found. Make sure it is"
12858 echo "*** in your path, or set the PKG_CONFIG environment variable"
12859 echo "*** to the full path to pkg-config."
12860 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12861 else
12862 PKG_CONFIG_MIN_VERSION=0.9.0
12863 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12864 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12865 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12866
12867 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12868 echo "$as_me:$LINENO: result: yes" >&5
12869 echo "${ECHO_T}yes" >&6
12870 succeeded=yes
12871
12872 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12873 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12874 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12875 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12876 echo "${ECHO_T}$GTK_CFLAGS" >&6
12877
12878 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12879 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12880 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12881 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12882 echo "${ECHO_T}$GTK_LIBS" >&6
12883 else
12884 GTK_CFLAGS=""
12885 GTK_LIBS=""
12886 ## If we have a custom action on failure, don't print errors, but
12887 ## do set a variable so people can do so.
12888 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12889 echo $GTK_PKG_ERRORS
12890 fi
12891
12892
12893
12894 else
12895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12897 fi
12898 fi
12899
12900 if test $succeeded = yes; then
12901 :
12902 else
12903 { { 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
12904 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;}
12905 { (exit 1); exit 1; }; }
12906 fi
12907
12908
12909
12910
12911
12912 succeeded=no
12913
12914 if test -z "$PKG_CONFIG"; then
12915 # Extract the first word of "pkg-config", so it can be a program name with args.
12916 set dummy pkg-config; ac_word=$2
12917 echo "$as_me:$LINENO: checking for $ac_word" >&5
12918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922 case $PKG_CONFIG in
12923 [\\/]* | ?:[\\/]*)
12924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12925 ;;
12926 *)
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $PATH
12929 do
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12937 fi
12938 done
12939 done
12940
12941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12942 ;;
12943 esac
12944 fi
12945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12946
12947 if test -n "$PKG_CONFIG"; then
12948 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12949 echo "${ECHO_T}$PKG_CONFIG" >&6
12950 else
12951 echo "$as_me:$LINENO: result: no" >&5
12952 echo "${ECHO_T}no" >&6
12953 fi
12954
12955 fi
12956
12957 if test "$PKG_CONFIG" = "no" ; then
12958 echo "*** The pkg-config script could not be found. Make sure it is"
12959 echo "*** in your path, or set the PKG_CONFIG environment variable"
12960 echo "*** to the full path to pkg-config."
12961 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12962 else
12963 PKG_CONFIG_MIN_VERSION=0.9.0
12964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12965 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12966 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12967
12968 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12969 echo "$as_me:$LINENO: result: yes" >&5
12970 echo "${ECHO_T}yes" >&6
12971 succeeded=yes
12972
12973 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12974 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12975 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12976 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12977 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12978
12979 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12980 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12981 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12982 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12983 echo "${ECHO_T}$GLIB_LIBS" >&6
12984 else
12985 GLIB_CFLAGS=""
12986 GLIB_LIBS=""
12987 ## If we have a custom action on failure, don't print errors, but
12988 ## do set a variable so people can do so.
12989 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12990 echo $GLIB_PKG_ERRORS
12991 fi
12992
12993
12994
12995 else
12996 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12997 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12998 fi
12999 fi
13000
13001 if test $succeeded = yes; then
13002 :
13003 else
13004 { { 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
13005 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;}
13006 { (exit 1); exit 1; }; }
13007 fi
13008
13009
13010
13011
13012
13013 succeeded=no
13014
13015 if test -z "$PKG_CONFIG"; then
13016 # Extract the first word of "pkg-config", so it can be a program name with args.
13017 set dummy pkg-config; ac_word=$2
13018 echo "$as_me:$LINENO: checking for $ac_word" >&5
13019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 case $PKG_CONFIG in
13024 [\\/]* | ?:[\\/]*)
13025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13026 ;;
13027 *)
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031 IFS=$as_save_IFS
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13037 break 2
13038 fi
13039 done
13040 done
13041
13042 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13043 ;;
13044 esac
13045 fi
13046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13047
13048 if test -n "$PKG_CONFIG"; then
13049 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13050 echo "${ECHO_T}$PKG_CONFIG" >&6
13051 else
13052 echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6
13054 fi
13055
13056 fi
13057
13058 if test "$PKG_CONFIG" = "no" ; then
13059 echo "*** The pkg-config script could not be found. Make sure it is"
13060 echo "*** in your path, or set the PKG_CONFIG environment variable"
13061 echo "*** to the full path to pkg-config."
13062 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13063 else
13064 PKG_CONFIG_MIN_VERSION=0.9.0
13065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13066 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13067 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13068
13069 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13070 echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6
13072 succeeded=yes
13073
13074 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13075 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13076 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13077 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13078 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13079
13080 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13081 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13082 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13083 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13084 echo "${ECHO_T}$LIBART_LIBS" >&6
13085 else
13086 LIBART_CFLAGS=""
13087 LIBART_LIBS=""
13088 ## If we have a custom action on failure, don't print errors, but
13089 ## do set a variable so people can do so.
13090 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13091 echo $LIBART_PKG_ERRORS
13092 fi
13093
13094
13095
13096 else
13097 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13098 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13099 fi
13100 fi
13101
13102 if test $succeeded = yes; then
13103 :
13104 else
13105 { { 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
13106 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;}
13107 { (exit 1); exit 1; }; }
13108 fi
13109
13110
13111
13112 fi
13113
13114 # On Solaris, and maybe other architectures, the Boehm collector
13115 # requires -ldl.
13116 if test "$GC" = boehm; then
13117 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13118 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13119 if test "${ac_cv_lib_dl_main+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-ldl $LIBS"
13124 if test x$gcc_no_link = xyes; then
13125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13127 { (exit 1); exit 1; }; }
13128 fi
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135
13136
13137 int
13138 main ()
13139 {
13140 main ();
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest$ac_exeext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_lib_dl_main=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171 ac_cv_lib_dl_main=no
13172 fi
13173 rm -f conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13176 fi
13177 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13178 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13179 if test $ac_cv_lib_dl_main = yes; then
13180 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13181 fi
13182
13183 fi
13184 fi
13185
13186
13187 if test "$supply_backtrace" = yes; then
13188 SUPPLY_BACKTRACE_TRUE=
13189 SUPPLY_BACKTRACE_FALSE='#'
13190 else
13191 SUPPLY_BACKTRACE_TRUE='#'
13192 SUPPLY_BACKTRACE_FALSE=
13193 fi
13194
13195
13196 if test -z "${with_multisubdir}"; then
13197 builddotdot=.
13198 else
13199 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13200 fi
13201
13202 NATIVE=yes
13203
13204 # Which gcj do we use?
13205 which_gcj=default
13206 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13207 if test -n "${with_cross_host}"; then
13208 # We are being configured with a cross compiler. We can't
13209 # use ac_exeext, because that is for the target platform.
13210 NATIVE=no
13211 cross_host_exeext=
13212 case "${with_cross_host}" in
13213 *mingw* | *cygwin*)
13214 cross_host_exeext=.exe
13215 ;;
13216 esac
13217 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13218 if test x"$build_noncanonical" = x"$with_cross_host"; then
13219 # Ordinary cross (host!=target and host=build)
13220 which_gcj=built
13221 else
13222 # Canadian cross (host!=target and host!=build)
13223 which_gcj=cross
13224 fi
13225 else
13226 which_gcj=cross
13227 fi
13228 else
13229 # We are being configured with a native or crossed-native compiler
13230 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13231 if test x"$build" = x"$host"; then
13232 # True native build (host=target and host=build)
13233 which_gcj=built
13234 else
13235 # Crossed-native build (host=target and host!=build)
13236 which_gcj=cross
13237 fi
13238 else
13239 which_gcj=path
13240 fi
13241 fi
13242 case "${which_gcj}" in
13243 built)
13244 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13245 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13246 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13247 ;;
13248 cross)
13249 if test "x${with_newlib}" = "xyes"; then
13250 # FIXME (comment): Why is this needed?
13251 GCC_UNWIND_INCLUDE=
13252 GCJ="${target_noncanonical}-gcj"
13253 else
13254 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13255 fi
13256 ZIP=jar
13257 GCJH='$(target_noncanonical)-gcjh'
13258 ;;
13259 path)
13260 GCJ="gcj -B`${PWDCMD-pwd}`/"
13261 ## In this case, gcj is found outside the build tree. However, zip is
13262 ## found in the build tree.
13263 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13264 GCJH=gcjh
13265 ;;
13266 esac
13267
13268
13269
13270
13271 # Create it, so that compile/link tests don't fail
13272 test -f libgcj.spec || touch libgcj.spec
13273
13274 # We must search the source tree for java.lang, since we still don't
13275 # have libgcj.jar nor java/lang/*.class
13276 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13277 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13278
13279 # Since some classes depend on this one, we need its source available
13280 # before we can do any GCJ compilation test :-(
13281 if test ! -f gnu/classpath/Configuration.java; then
13282 test -d gnu || mkdir gnu
13283 test -d gnu/classpath || mkdir gnu/classpath
13284 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13285 -e 's,@TOOLKIT@,$TOOLKIT,' \
13286 < $srcdir/gnu/classpath/Configuration.java.in \
13287 > gnu/classpath/Configuration.java
13288 # We do not want to redirect the output of the grep below to /dev/null,
13289 # but we add /dev/null to the input list so that grep will print the
13290 # filename of Configuration.java in case it finds any matches.
13291 if grep @ gnu/classpath/Configuration.java /dev/null; then
13292 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13293 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13294 { (exit 1); exit 1; }; }
13295 fi
13296 fi
13297
13298 if test -n "$ac_tool_prefix"; then
13299 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13300 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13301 echo "$as_me:$LINENO: checking for $ac_word" >&5
13302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13303 if test "${ac_cv_prog_GCJ+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 if test -n "$GCJ"; then
13307 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13308 else
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13316 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320 done
13321 done
13322
13323 fi
13324 fi
13325 GCJ=$ac_cv_prog_GCJ
13326 if test -n "$GCJ"; then
13327 echo "$as_me:$LINENO: result: $GCJ" >&5
13328 echo "${ECHO_T}$GCJ" >&6
13329 else
13330 echo "$as_me:$LINENO: result: no" >&5
13331 echo "${ECHO_T}no" >&6
13332 fi
13333
13334 fi
13335 if test -z "$ac_cv_prog_GCJ"; then
13336 ac_ct_GCJ=$GCJ
13337 # Extract the first word of "gcj", so it can be a program name with args.
13338 set dummy gcj; ac_word=$2
13339 echo "$as_me:$LINENO: checking for $ac_word" >&5
13340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13341 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 if test -n "$ac_ct_GCJ"; then
13345 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13346 else
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13349 do
13350 IFS=$as_save_IFS
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354 ac_cv_prog_ac_ct_GCJ="gcj"
13355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 break 2
13357 fi
13358 done
13359 done
13360
13361 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13362 fi
13363 fi
13364 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13365 if test -n "$ac_ct_GCJ"; then
13366 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13367 echo "${ECHO_T}$ac_ct_GCJ" >&6
13368 else
13369 echo "$as_me:$LINENO: result: no" >&5
13370 echo "${ECHO_T}no" >&6
13371 fi
13372
13373 GCJ=$ac_ct_GCJ
13374 else
13375 GCJ="$ac_cv_prog_GCJ"
13376 fi
13377
13378 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13379
13380
13381
13382
13383 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13384
13385 echo "$as_me:$LINENO: checking size of void *" >&5
13386 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13387 if test "${ac_cv_sizeof_void_p+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 #include "confdefs.h"
13398 #include <sys/types.h>
13399
13400
13401 int
13402 main ()
13403 {
13404 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_sizeof_void_p=$ac_size
13431 else
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 fi
13436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13437 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13438 done
13439
13440 fi
13441
13442 if test x$ac_cv_sizeof_void_p = x ; then
13443 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13444 echo "$as_me: error: cannot determine a size for void *" >&2;}
13445 { (exit 1); exit 1; }; }
13446 fi
13447 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13448 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13449
13450 cat >>confdefs.h <<_ACEOF
13451 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13452 _ACEOF
13453
13454
13455
13456 ZLIBS=
13457 SYS_ZLIBS=
13458 ZINCS=
13459
13460 if test -z "$ZLIBSPEC"; then
13461 # Use zlib from the GCC tree.
13462 ZINCS='-I$(top_srcdir)/../zlib'
13463 ZLIBS=../zlib/libzgcj_convenience.la
13464 else
13465 # System's zlib.
13466 SYS_ZLIBS="$ZLIBSPEC"
13467 fi
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478 if test "$NATIVE" = yes; then
13479 NATIVE_TRUE=
13480 NATIVE_FALSE='#'
13481 else
13482 NATIVE_TRUE='#'
13483 NATIVE_FALSE=
13484 fi
13485
13486
13487
13488 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13489 NEEDS_DATA_START_TRUE=
13490 NEEDS_DATA_START_FALSE='#'
13491 else
13492 NEEDS_DATA_START_TRUE='#'
13493 NEEDS_DATA_START_FALSE=
13494 fi
13495
13496
13497
13498 # Process the option "--enable-version-specific-runtime-libs"
13499 # Calculate toolexeclibdir
13500 case ${version_specific_libs} in
13501 yes)
13502 # Need the gcc compiler version to know where to install libraries
13503 # and header files if --enable-version-specific-runtime-libs option
13504 # is selected.
13505 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13506 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13507 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13508 toolexeclibdir=$toolexecmainlibdir
13509 ;;
13510 no)
13511 if test -n "$with_cross_host" &&
13512 test x"$with_cross_host" != x"no"; then
13513 # Install a library built with a cross compiler in tooldir, not libdir.
13514 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13515 toolexecmainlibdir='$(toolexecdir)/lib'
13516 else
13517 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13518 toolexecmainlibdir='$(libdir)'
13519 fi
13520 multi_os_directory=`$CC -print-multi-os-directory`
13521 case $multi_os_directory in
13522 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13523 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13524 esac
13525 ;;
13526 esac
13527
13528
13529
13530
13531 # Determine gcj version number.
13532 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13533 GCJVERSION=$gcjversion
13534
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define GCJVERSION "$GCJVERSION"
13538 _ACEOF
13539
13540
13541 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13542 # On that system, sys/ioctl.h will not include sys/filio.h unless
13543 # BSD_COMP is defined; just including sys/filio.h is simpler.
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
13564 do
13565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13567 echo "$as_me:$LINENO: checking for $ac_header" >&5
13568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 fi
13572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13574 else
13575 # Is the header compilable?
13576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 $ac_includes_default
13585 #include <$ac_header>
13586 _ACEOF
13587 rm -f conftest.$ac_objext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13589 (eval $ac_compile) 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 ac_header_compiler=yes
13609 else
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 ac_header_compiler=no
13614 fi
13615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13617 echo "${ECHO_T}$ac_header_compiler" >&6
13618
13619 # Is the header present?
13620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h. */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 #include <$ac_header>
13629 _ACEOF
13630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } >/dev/null; then
13638 if test -s conftest.err; then
13639 ac_cpp_err=$ac_c_preproc_warn_flag
13640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13641 else
13642 ac_cpp_err=
13643 fi
13644 else
13645 ac_cpp_err=yes
13646 fi
13647 if test -z "$ac_cpp_err"; then
13648 ac_header_preproc=yes
13649 else
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_header_preproc=no
13654 fi
13655 rm -f conftest.err conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13657 echo "${ECHO_T}$ac_header_preproc" >&6
13658
13659 # So? What about this header?
13660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13661 yes:no: )
13662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13666 ac_header_preproc=yes
13667 ;;
13668 no:yes:* )
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13681 (
13682 cat <<\_ASBOX
13683 ## ---------------------------------- ##
13684 ## Report this to the libjava lists. ##
13685 ## ---------------------------------- ##
13686 _ASBOX
13687 ) |
13688 sed "s/^/$as_me: WARNING: /" >&2
13689 ;;
13690 esac
13691 echo "$as_me:$LINENO: checking for $ac_header" >&5
13692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 eval "$as_ac_Header=\$ac_header_preproc"
13697 fi
13698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13700
13701 fi
13702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13703 cat >>confdefs.h <<_ACEOF
13704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13705 _ACEOF
13706
13707 fi
13708
13709 done
13710
13711 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13712 # for now. If you change this, you also must update natFile.cc.
13713
13714 for ac_header in dirent.h
13715 do
13716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13718 echo "$as_me:$LINENO: checking for $ac_header" >&5
13719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 fi
13723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13725 else
13726 # Is the header compilable?
13727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13729 cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h. */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13736 #include <$ac_header>
13737 _ACEOF
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_header_compiler=yes
13760 else
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_header_compiler=no
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 echo "${ECHO_T}$ac_header_compiler" >&6
13769
13770 # Is the header present?
13771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <$ac_header>
13780 _ACEOF
13781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } >/dev/null; then
13789 if test -s conftest.err; then
13790 ac_cpp_err=$ac_c_preproc_warn_flag
13791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13792 else
13793 ac_cpp_err=
13794 fi
13795 else
13796 ac_cpp_err=yes
13797 fi
13798 if test -z "$ac_cpp_err"; then
13799 ac_header_preproc=yes
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 ac_header_preproc=no
13805 fi
13806 rm -f conftest.err conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808 echo "${ECHO_T}$ac_header_preproc" >&6
13809
13810 # So? What about this header?
13811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13812 yes:no: )
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13817 ac_header_preproc=yes
13818 ;;
13819 no:yes:* )
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13832 (
13833 cat <<\_ASBOX
13834 ## ---------------------------------- ##
13835 ## Report this to the libjava lists. ##
13836 ## ---------------------------------- ##
13837 _ASBOX
13838 ) |
13839 sed "s/^/$as_me: WARNING: /" >&2
13840 ;;
13841 esac
13842 echo "$as_me:$LINENO: checking for $ac_header" >&5
13843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847 eval "$as_ac_Header=\$ac_header_preproc"
13848 fi
13849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13851
13852 fi
13853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13854 cat >>confdefs.h <<_ACEOF
13855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13856 _ACEOF
13857
13858 fi
13859
13860 done
13861
13862
13863 for ac_header in inttypes.h
13864 do
13865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13867 echo "$as_me:$LINENO: checking for $ac_header" >&5
13868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 fi
13872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13874 else
13875 # Is the header compilable?
13876 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13885 #include <$ac_header>
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
13896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest.$ac_objext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 ac_header_compiler=yes
13909 else
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_compiler=no
13914 fi
13915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13917 echo "${ECHO_T}$ac_header_compiler" >&6
13918
13919 # Is the header present?
13920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <$ac_header>
13929 _ACEOF
13930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } >/dev/null; then
13938 if test -s conftest.err; then
13939 ac_cpp_err=$ac_c_preproc_warn_flag
13940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13941 else
13942 ac_cpp_err=
13943 fi
13944 else
13945 ac_cpp_err=yes
13946 fi
13947 if test -z "$ac_cpp_err"; then
13948 ac_header_preproc=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_preproc=no
13954 fi
13955 rm -f conftest.err conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13957 echo "${ECHO_T}$ac_header_preproc" >&6
13958
13959 # So? What about this header?
13960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13961 yes:no: )
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13966 ac_header_preproc=yes
13967 ;;
13968 no:yes:* )
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13981 (
13982 cat <<\_ASBOX
13983 ## ---------------------------------- ##
13984 ## Report this to the libjava lists. ##
13985 ## ---------------------------------- ##
13986 _ASBOX
13987 ) |
13988 sed "s/^/$as_me: WARNING: /" >&2
13989 ;;
13990 esac
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996 eval "$as_ac_Header=\$ac_header_preproc"
13997 fi
13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14000
14001 fi
14002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14003 cat >>confdefs.h <<_ACEOF
14004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14005 _ACEOF
14006
14007
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_INTTYPES_H 1
14010 _ACEOF
14011
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define JV_HAVE_INTTYPES_H 1
14015 _ACEOF
14016
14017
14018 fi
14019
14020 done
14021
14022 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14023 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14024 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 #include <sys/types.h>
14034 #include <sys/wait.h>
14035 #ifndef WEXITSTATUS
14036 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14037 #endif
14038 #ifndef WIFEXITED
14039 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14040 #endif
14041
14042 int
14043 main ()
14044 {
14045 int s;
14046 wait (&s);
14047 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14048 ;
14049 return 0;
14050 }
14051 _ACEOF
14052 rm -f conftest.$ac_objext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_header_sys_wait_h=yes
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_cv_header_sys_wait_h=no
14079 fi
14080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14081 fi
14082 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14083 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14084 if test $ac_cv_header_sys_wait_h = yes; then
14085
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_SYS_WAIT_H 1
14088 _ACEOF
14089
14090 fi
14091
14092
14093 echo "$as_me:$LINENO: checking for ssize_t" >&5
14094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14095 if test "${ac_cv_type_ssize_t+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h. */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 $ac_includes_default
14105 int
14106 main ()
14107 {
14108 if ((ssize_t *) 0)
14109 return 0;
14110 if (sizeof (ssize_t))
14111 return 0;
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14118 (eval $ac_compile) 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_type_ssize_t=yes
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_cv_type_ssize_t=no
14143 fi
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145 fi
14146 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14147 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14148 if test $ac_cv_type_ssize_t = yes; then
14149 :
14150 else
14151
14152 cat >>confdefs.h <<_ACEOF
14153 #define ssize_t int
14154 _ACEOF
14155
14156 fi
14157
14158
14159 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14160 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 #include <sys/types.h>
14168 #if STDC_HEADERS
14169 #include <stdlib.h>
14170 #include <stddef.h>
14171 #endif
14172 #if HAVE_NETINET_IN_H
14173 #include <netinet/in.h>
14174 #endif
14175 int
14176 main ()
14177 {
14178 in_addr_t foo;
14179 ;
14180 return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204
14205 cat >>confdefs.h <<\_ACEOF
14206 #define HAVE_IN_ADDR_T 1
14207 _ACEOF
14208
14209 echo "$as_me:$LINENO: result: yes" >&5
14210 echo "${ECHO_T}yes" >&6
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217 fi
14218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219
14220 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14221 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 #include <netinet/in.h>
14229 int
14230 main ()
14231 {
14232 struct ip_mreq mreq;
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>conftest.er1
14240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_STRUCT_IP_MREQ 1
14261 _ACEOF
14262
14263 echo "$as_me:$LINENO: result: yes" >&5
14264 echo "${ECHO_T}yes" >&6
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 echo "$as_me:$LINENO: result: no" >&5
14270 echo "${ECHO_T}no" >&6
14271 fi
14272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273
14274 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14275 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 #include <netinet/in.h>
14283 int
14284 main ()
14285 {
14286 struct ipv6_mreq mreq6;
14287 ;
14288 return 0;
14289 }
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312
14313 cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_STRUCT_IPV6_MREQ 1
14315 _ACEOF
14316
14317 echo "$as_me:$LINENO: result: yes" >&5
14318 echo "${ECHO_T}yes" >&6
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 echo "$as_me:$LINENO: result: no" >&5
14324 echo "${ECHO_T}no" >&6
14325 fi
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327
14328 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14329 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h. */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 #include <netinet/in.h>
14337 int
14338 main ()
14339 {
14340 struct sockaddr_in6 addr6;
14341 ;
14342 return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_INET6 1
14369 _ACEOF
14370
14371 echo "$as_me:$LINENO: result: yes" >&5
14372 echo "${ECHO_T}yes" >&6
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 echo "$as_me:$LINENO: result: no" >&5
14378 echo "${ECHO_T}no" >&6
14379 fi
14380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381
14382 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14383 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 #define _POSIX_PII_SOCKET
14391 #include <sys/types.h>
14392 #include <sys/socket.h>
14393 int
14394 main ()
14395 {
14396 socklen_t x = 5;
14397 ;
14398 return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14403 (eval $ac_compile) 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422
14423 cat >>confdefs.h <<\_ACEOF
14424 #define HAVE_SOCKLEN_T 1
14425 _ACEOF
14426
14427 echo "$as_me:$LINENO: result: yes" >&5
14428 echo "${ECHO_T}yes" >&6
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 echo "$as_me:$LINENO: result: no" >&5
14434 echo "${ECHO_T}no" >&6
14435 fi
14436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14437
14438 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14439 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <time.h>
14447 int
14448 main ()
14449 {
14450 struct tm tim; tim.tm_gmtoff = 0;
14451 ;
14452 return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457 (eval $ac_compile) 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476
14477 cat >>confdefs.h <<\_ACEOF
14478 #define STRUCT_TM_HAS_GMTOFF 1
14479 _ACEOF
14480
14481 echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 echo "$as_me:$LINENO: result: no" >&5
14488 echo "${ECHO_T}no" >&6
14489 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14490 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <time.h>
14498 int
14499 main ()
14500 {
14501 void i(){long z2 = 2*timezone;}
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527
14528 cat >>confdefs.h <<\_ACEOF
14529 #define HAVE_TIMEZONE 1
14530 _ACEOF
14531
14532 echo "$as_me:$LINENO: result: yes" >&5
14533 echo "${ECHO_T}yes" >&6
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 echo "$as_me:$LINENO: result: no" >&5
14539 echo "${ECHO_T}no" >&6
14540 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14541 echo $ECHO_N "checking for global _timezone variable... $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 <time.h>
14549 int
14550 main ()
14551 {
14552 long z2 = _timezone;
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" || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578
14579 cat >>confdefs.h <<\_ACEOF
14580 #define HAVE_UNDERSCORE_TIMEZONE 1
14581 _ACEOF
14582
14583 echo "$as_me:$LINENO: result: yes" >&5
14584 echo "${ECHO_T}yes" >&6
14585 else
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 echo "$as_me:$LINENO: result: no" >&5
14590 echo "${ECHO_T}no" >&6
14591 fi
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595 fi
14596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14597
14598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14599 # for constant arguments. Useless!
14600 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14601 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14602 if test "${ac_cv_working_alloca_h+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 if test x$gcc_no_link = xyes; then
14606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14608 { (exit 1); exit 1; }; }
14609 fi
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h. */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include <alloca.h>
14617 int
14618 main ()
14619 {
14620 char *p = (char *) alloca (2 * sizeof (int));
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest$ac_exeext'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 ac_cv_working_alloca_h=yes
14647 else
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14650
14651 ac_cv_working_alloca_h=no
14652 fi
14653 rm -f conftest.err conftest.$ac_objext \
14654 conftest$ac_exeext conftest.$ac_ext
14655 fi
14656 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14657 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14658 if test $ac_cv_working_alloca_h = yes; then
14659
14660 cat >>confdefs.h <<\_ACEOF
14661 #define HAVE_ALLOCA_H 1
14662 _ACEOF
14663
14664 fi
14665
14666 echo "$as_me:$LINENO: checking for alloca" >&5
14667 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14668 if test "${ac_cv_func_alloca_works+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671 if test x$gcc_no_link = xyes; then
14672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14674 { (exit 1); exit 1; }; }
14675 fi
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #ifdef __GNUC__
14683 # define alloca __builtin_alloca
14684 #else
14685 # ifdef _MSC_VER
14686 # include <malloc.h>
14687 # define alloca _alloca
14688 # else
14689 # if HAVE_ALLOCA_H
14690 # include <alloca.h>
14691 # else
14692 # ifdef _AIX
14693 #pragma alloca
14694 # else
14695 # ifndef alloca /* predefined by HP cc +Olibcalls */
14696 char *alloca ();
14697 # endif
14698 # endif
14699 # endif
14700 # endif
14701 #endif
14702
14703 int
14704 main ()
14705 {
14706 char *p = (char *) alloca (1);
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713 (eval $ac_link) 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest$ac_exeext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_cv_func_alloca_works=yes
14733 else
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_cv_func_alloca_works=no
14738 fi
14739 rm -f conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 fi
14742 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14743 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14744
14745 if test $ac_cv_func_alloca_works = yes; then
14746
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_ALLOCA 1
14749 _ACEOF
14750
14751 else
14752 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14753 # that cause trouble. Some versions do not even contain alloca or
14754 # contain a buggy version. If you still want to use their alloca,
14755 # use ar to extract alloca.o from them instead of compiling alloca.c.
14756
14757 ALLOCA=alloca.$ac_objext
14758
14759 cat >>confdefs.h <<\_ACEOF
14760 #define C_ALLOCA 1
14761 _ACEOF
14762
14763
14764 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14765 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14766 if test "${ac_cv_os_cray+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #if defined(CRAY) && ! defined(CRAY2)
14776 webecray
14777 #else
14778 wenotbecray
14779 #endif
14780
14781 _ACEOF
14782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14783 $EGREP "webecray" >/dev/null 2>&1; then
14784 ac_cv_os_cray=yes
14785 else
14786 ac_cv_os_cray=no
14787 fi
14788 rm -f conftest*
14789
14790 fi
14791 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14792 echo "${ECHO_T}$ac_cv_os_cray" >&6
14793 if test $ac_cv_os_cray = yes; then
14794 for ac_func in _getb67 GETB67 getb67; do
14795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14796 echo "$as_me:$LINENO: checking for $ac_func" >&5
14797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14798 if eval "test \"\${$as_ac_var+set}\" = set"; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801 if test x$gcc_no_link = xyes; then
14802 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14804 { (exit 1); exit 1; }; }
14805 fi
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14814 #define $ac_func innocuous_$ac_func
14815
14816 /* System header to define __stub macros and hopefully few prototypes,
14817 which can conflict with char $ac_func (); below.
14818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 <limits.h> exists even on freestanding compilers. */
14820
14821 #ifdef __STDC__
14822 # include <limits.h>
14823 #else
14824 # include <assert.h>
14825 #endif
14826
14827 #undef $ac_func
14828
14829 /* Override any gcc2 internal prototype to avoid an error. */
14830 #ifdef __cplusplus
14831 extern "C"
14832 {
14833 #endif
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836 char $ac_func ();
14837 /* The GNU C library defines this for functions which it implements
14838 to always fail with ENOSYS. Some functions are actually named
14839 something starting with __ and the normal name is an alias. */
14840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14841 choke me
14842 #else
14843 char (*f) () = $ac_func;
14844 #endif
14845 #ifdef __cplusplus
14846 }
14847 #endif
14848
14849 int
14850 main ()
14851 {
14852 return f != $ac_func;
14853 ;
14854 return 0;
14855 }
14856 _ACEOF
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 eval "$as_ac_var=yes"
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 eval "$as_ac_var=no"
14884 fi
14885 rm -f conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14887 fi
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891
14892 cat >>confdefs.h <<_ACEOF
14893 #define CRAY_STACKSEG_END $ac_func
14894 _ACEOF
14895
14896 break
14897 fi
14898
14899 done
14900 fi
14901
14902 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14903 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14904 if test "${ac_cv_c_stack_direction+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907 if test "$cross_compiling" = yes; then
14908 ac_cv_c_stack_direction=0
14909 else
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h. */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 int
14917 find_stack_direction ()
14918 {
14919 static char *addr = 0;
14920 auto char dummy;
14921 if (addr == 0)
14922 {
14923 addr = &dummy;
14924 return find_stack_direction ();
14925 }
14926 else
14927 return (&dummy > addr) ? 1 : -1;
14928 }
14929
14930 int
14931 main ()
14932 {
14933 exit (find_stack_direction () < 0);
14934 }
14935 _ACEOF
14936 rm -f conftest$ac_exeext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14938 (eval $ac_link) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_c_stack_direction=1
14948 else
14949 echo "$as_me: program exited with status $ac_status" >&5
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14952
14953 ( exit $ac_status )
14954 ac_cv_c_stack_direction=-1
14955 fi
14956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14957 fi
14958 fi
14959 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14960 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14961
14962 cat >>confdefs.h <<_ACEOF
14963 #define STACK_DIRECTION $ac_cv_c_stack_direction
14964 _ACEOF
14965
14966
14967 fi
14968
14969 if test x$gcc_no_link = xyes; then
14970 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14971 ac_cv_func_mmap_fixed_mapped=no
14972 fi
14973 fi
14974 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14975
14976
14977 for ac_header in stdlib.h unistd.h
14978 do
14979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14981 echo "$as_me:$LINENO: checking for $ac_header" >&5
14982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 fi
14986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14988 else
14989 # Is the header compilable?
14990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14993 /* confdefs.h. */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 $ac_includes_default
14999 #include <$ac_header>
15000 _ACEOF
15001 rm -f conftest.$ac_objext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003 (eval $ac_compile) 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } &&
15010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_header_compiler=yes
15023 else
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ac_header_compiler=no
15028 fi
15029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15031 echo "${ECHO_T}$ac_header_compiler" >&6
15032
15033 # Is the header present?
15034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 #include <$ac_header>
15043 _ACEOF
15044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } >/dev/null; then
15052 if test -s conftest.err; then
15053 ac_cpp_err=$ac_c_preproc_warn_flag
15054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15055 else
15056 ac_cpp_err=
15057 fi
15058 else
15059 ac_cpp_err=yes
15060 fi
15061 if test -z "$ac_cpp_err"; then
15062 ac_header_preproc=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_header_preproc=no
15068 fi
15069 rm -f conftest.err conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15071 echo "${ECHO_T}$ac_header_preproc" >&6
15072
15073 # So? What about this header?
15074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15075 yes:no: )
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15080 ac_header_preproc=yes
15081 ;;
15082 no:yes:* )
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15095 (
15096 cat <<\_ASBOX
15097 ## ---------------------------------- ##
15098 ## Report this to the libjava lists. ##
15099 ## ---------------------------------- ##
15100 _ASBOX
15101 ) |
15102 sed "s/^/$as_me: WARNING: /" >&2
15103 ;;
15104 esac
15105 echo "$as_me:$LINENO: checking for $ac_header" >&5
15106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110 eval "$as_ac_Header=\$ac_header_preproc"
15111 fi
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15114
15115 fi
15116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15119 _ACEOF
15120
15121 fi
15122
15123 done
15124
15125
15126 for ac_func in getpagesize
15127 do
15128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129 echo "$as_me:$LINENO: checking for $ac_func" >&5
15130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15131 if eval "test \"\${$as_ac_var+set}\" = set"; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134 if test x$gcc_no_link = xyes; then
15135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15137 { (exit 1); exit 1; }; }
15138 fi
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15147 #define $ac_func innocuous_$ac_func
15148
15149 /* System header to define __stub macros and hopefully few prototypes,
15150 which can conflict with char $ac_func (); below.
15151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15152 <limits.h> exists even on freestanding compilers. */
15153
15154 #ifdef __STDC__
15155 # include <limits.h>
15156 #else
15157 # include <assert.h>
15158 #endif
15159
15160 #undef $ac_func
15161
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 #ifdef __cplusplus
15164 extern "C"
15165 {
15166 #endif
15167 /* We use char because int might match the return type of a gcc2
15168 builtin and then its argument prototype would still apply. */
15169 char $ac_func ();
15170 /* The GNU C library defines this for functions which it implements
15171 to always fail with ENOSYS. Some functions are actually named
15172 something starting with __ and the normal name is an alias. */
15173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15174 choke me
15175 #else
15176 char (*f) () = $ac_func;
15177 #endif
15178 #ifdef __cplusplus
15179 }
15180 #endif
15181
15182 int
15183 main ()
15184 {
15185 return f != $ac_func;
15186 ;
15187 return 0;
15188 }
15189 _ACEOF
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15192 (eval $ac_link) 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; } &&
15205 { ac_try='test -s conftest$ac_exeext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 eval "$as_ac_var=yes"
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216 eval "$as_ac_var=no"
15217 fi
15218 rm -f conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15220 fi
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15223 if test `eval echo '${'$as_ac_var'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15226 _ACEOF
15227
15228 fi
15229 done
15230
15231 echo "$as_me:$LINENO: checking for working mmap" >&5
15232 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15233 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 if test "$cross_compiling" = yes; then
15237 ac_cv_func_mmap_fixed_mapped=no
15238 else
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h. */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 $ac_includes_default
15246 /* malloc might have been renamed as rpl_malloc. */
15247 #undef malloc
15248
15249 /* Thanks to Mike Haertel and Jim Avera for this test.
15250 Here is a matrix of mmap possibilities:
15251 mmap private not fixed
15252 mmap private fixed at somewhere currently unmapped
15253 mmap private fixed at somewhere already mapped
15254 mmap shared not fixed
15255 mmap shared fixed at somewhere currently unmapped
15256 mmap shared fixed at somewhere already mapped
15257 For private mappings, we should verify that changes cannot be read()
15258 back from the file, nor mmap's back from the file at a different
15259 address. (There have been systems where private was not correctly
15260 implemented like the infamous i386 svr4.0, and systems where the
15261 VM page cache was not coherent with the file system buffer cache
15262 like early versions of FreeBSD and possibly contemporary NetBSD.)
15263 For shared mappings, we should conversely verify that changes get
15264 propagated back to all the places they're supposed to be.
15265
15266 Grep wants private fixed already mapped.
15267 The main things grep needs to know about mmap are:
15268 * does it exist and is it safe to write into the mmap'd area
15269 * how to use it (BSD variants) */
15270
15271 #include <fcntl.h>
15272 #include <sys/mman.h>
15273
15274 #if !STDC_HEADERS && !HAVE_STDLIB_H
15275 char *malloc ();
15276 #endif
15277
15278 /* This mess was copied from the GNU getpagesize.h. */
15279 #if !HAVE_GETPAGESIZE
15280 /* Assume that all systems that can run configure have sys/param.h. */
15281 # if !HAVE_SYS_PARAM_H
15282 # define HAVE_SYS_PARAM_H 1
15283 # endif
15284
15285 # ifdef _SC_PAGESIZE
15286 # define getpagesize() sysconf(_SC_PAGESIZE)
15287 # else /* no _SC_PAGESIZE */
15288 # if HAVE_SYS_PARAM_H
15289 # include <sys/param.h>
15290 # ifdef EXEC_PAGESIZE
15291 # define getpagesize() EXEC_PAGESIZE
15292 # else /* no EXEC_PAGESIZE */
15293 # ifdef NBPG
15294 # define getpagesize() NBPG * CLSIZE
15295 # ifndef CLSIZE
15296 # define CLSIZE 1
15297 # endif /* no CLSIZE */
15298 # else /* no NBPG */
15299 # ifdef NBPC
15300 # define getpagesize() NBPC
15301 # else /* no NBPC */
15302 # ifdef PAGESIZE
15303 # define getpagesize() PAGESIZE
15304 # endif /* PAGESIZE */
15305 # endif /* no NBPC */
15306 # endif /* no NBPG */
15307 # endif /* no EXEC_PAGESIZE */
15308 # else /* no HAVE_SYS_PARAM_H */
15309 # define getpagesize() 8192 /* punt totally */
15310 # endif /* no HAVE_SYS_PARAM_H */
15311 # endif /* no _SC_PAGESIZE */
15312
15313 #endif /* no HAVE_GETPAGESIZE */
15314
15315 int
15316 main ()
15317 {
15318 char *data, *data2, *data3;
15319 int i, pagesize;
15320 int fd;
15321
15322 pagesize = getpagesize ();
15323
15324 /* First, make a file with some known garbage in it. */
15325 data = (char *) malloc (pagesize);
15326 if (!data)
15327 exit (1);
15328 for (i = 0; i < pagesize; ++i)
15329 *(data + i) = rand ();
15330 umask (0);
15331 fd = creat ("conftest.mmap", 0600);
15332 if (fd < 0)
15333 exit (1);
15334 if (write (fd, data, pagesize) != pagesize)
15335 exit (1);
15336 close (fd);
15337
15338 /* Next, try to mmap the file at a fixed address which already has
15339 something else allocated at it. If we can, also make sure that
15340 we see the same garbage. */
15341 fd = open ("conftest.mmap", O_RDWR);
15342 if (fd < 0)
15343 exit (1);
15344 data2 = (char *) malloc (2 * pagesize);
15345 if (!data2)
15346 exit (1);
15347 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15348 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15349 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15350 exit (1);
15351 for (i = 0; i < pagesize; ++i)
15352 if (*(data + i) != *(data2 + i))
15353 exit (1);
15354
15355 /* Finally, make sure that changes to the mapped area do not
15356 percolate back to the file as seen by read(). (This is a bug on
15357 some variants of i386 svr4.0.) */
15358 for (i = 0; i < pagesize; ++i)
15359 *(data2 + i) = *(data2 + i) + 1;
15360 data3 = (char *) malloc (pagesize);
15361 if (!data3)
15362 exit (1);
15363 if (read (fd, data3, pagesize) != pagesize)
15364 exit (1);
15365 for (i = 0; i < pagesize; ++i)
15366 if (*(data + i) != *(data3 + i))
15367 exit (1);
15368 close (fd);
15369 exit (0);
15370 }
15371 _ACEOF
15372 rm -f conftest$ac_exeext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15374 (eval $ac_link) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_cv_func_mmap_fixed_mapped=yes
15384 else
15385 echo "$as_me: program exited with status $ac_status" >&5
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 ( exit $ac_status )
15390 ac_cv_func_mmap_fixed_mapped=no
15391 fi
15392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15393 fi
15394 fi
15395 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15396 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15397 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15398
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_MMAP 1
15401 _ACEOF
15402
15403 fi
15404 rm -f conftest.mmap
15405
15406 fi
15407
15408 for ac_prog in perl
15409 do
15410 # Extract the first word of "$ac_prog", so it can be a program name with args.
15411 set dummy $ac_prog; ac_word=$2
15412 echo "$as_me:$LINENO: checking for $ac_word" >&5
15413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15414 if test "${ac_cv_prog_PERL+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 if test -n "$PERL"; then
15418 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15419 else
15420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15421 for as_dir in $PATH
15422 do
15423 IFS=$as_save_IFS
15424 test -z "$as_dir" && as_dir=.
15425 for ac_exec_ext in '' $ac_executable_extensions; do
15426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15427 ac_cv_prog_PERL="$ac_prog"
15428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15429 break 2
15430 fi
15431 done
15432 done
15433
15434 fi
15435 fi
15436 PERL=$ac_cv_prog_PERL
15437 if test -n "$PERL"; then
15438 echo "$as_me:$LINENO: result: $PERL" >&5
15439 echo "${ECHO_T}$PERL" >&6
15440 else
15441 echo "$as_me:$LINENO: result: no" >&5
15442 echo "${ECHO_T}no" >&6
15443 fi
15444
15445 test -n "$PERL" && break
15446 done
15447 test -n "$PERL" || PERL="false"
15448
15449
15450 SYSDEP_SOURCES=
15451 SIGNAL_HANDLER_AUX=
15452
15453 case "${host}" in
15454 i?86-*-linux*)
15455 SIGNAL_HANDLER=include/i386-signal.h
15456 ;;
15457 sparc*-sun-solaris*)
15458 SIGNAL_HANDLER=include/sparc-signal.h
15459 ;;
15460 # ia64-*)
15461 # SYSDEP_SOURCES=sysdep/ia64.c
15462 # test -d sysdep || mkdir sysdep
15463 # ;;
15464 hppa*-*-linux*)
15465 SIGNAL_HANDLER=include/pa-signal.h
15466 ;;
15467 ia64-*-linux*)
15468 SIGNAL_HANDLER=include/dwarf2-signal.h
15469 ;;
15470 powerpc*-*-linux*)
15471 SIGNAL_HANDLER=include/powerpc-signal.h
15472 ;;
15473 alpha*-*-linux*)
15474 SIGNAL_HANDLER=include/dwarf2-signal.h
15475 ;;
15476 s390*-*-linux*)
15477 SIGNAL_HANDLER=include/s390-signal.h
15478 ;;
15479 x86_64*-*-linux*)
15480 SIGNAL_HANDLER=include/x86_64-signal.h
15481 SIGNAL_HANDLER_AUX=include/i386-signal.h
15482 ;;
15483 sparc*-*-linux*)
15484 SIGNAL_HANDLER=include/dwarf2-signal.h
15485 ;;
15486 sh-*-linux* | sh[34]*-*-linux*)
15487 SIGNAL_HANDLER=include/dwarf2-signal.h
15488 ;;
15489 *mingw*)
15490 SIGNAL_HANDLER=include/win32-signal.h
15491 ;;
15492 mips*-*-linux*)
15493 SIGNAL_HANDLER=include/mips-signal.h
15494 ;;
15495 *-*-darwin*)
15496 SIGNAL_HANDLER=include/darwin-signal.h
15497 ;;
15498 *)
15499 SIGNAL_HANDLER=include/default-signal.h
15500 ;;
15501 esac
15502
15503 # If we're using sjlj exceptions, forget what we just learned.
15504 if test "$enable_sjlj_exceptions" = yes; then
15505 SIGNAL_HANDLER=include/default-signal.h
15506 SIGNAL_HANDLER_AUX=
15507 fi
15508
15509 # Define here any compiler flags that you need in order to make backtrace() work.
15510 BACKTRACESPEC=
15511 case "${host}" in
15512 x86_64*-*-linux*|i?86-*)
15513 BACKTRACESPEC=-fno-omit-frame-pointer
15514 ;;
15515 esac
15516
15517
15518
15519
15520 if test -z "$SIGNAL_HANDLER_AUX"; then
15521 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15522 fi
15523
15524 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15525
15526
15527 if test "${multilib}" = "yes"; then
15528 multilib_arg="--enable-multilib"
15529 else
15530 multilib_arg=
15531 fi
15532
15533
15534
15535 here=`${PWDCMD-pwd}`
15536
15537
15538 # We get this from the environment.
15539
15540
15541 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15542
15543
15544 ac_config_commands="$ac_config_commands default"
15545
15546
15547 cat >confcache <<\_ACEOF
15548 # This file is a shell script that caches the results of configure
15549 # tests run on this system so they can be shared between configure
15550 # scripts and configure runs, see configure's option --config-cache.
15551 # It is not useful on other systems. If it contains results you don't
15552 # want to keep, you may remove or edit it.
15553 #
15554 # config.status only pays attention to the cache file if you give it
15555 # the --recheck option to rerun configure.
15556 #
15557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15559 # following values.
15560
15561 _ACEOF
15562
15563 # The following way of writing the cache mishandles newlines in values,
15564 # but we know of no workaround that is simple, portable, and efficient.
15565 # So, don't put newlines in cache variables' values.
15566 # Ultrix sh set writes to stderr and can't be redirected directly,
15567 # and sets the high bit in the cache file unless we assign to the vars.
15568 {
15569 (set) 2>&1 |
15570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15571 *ac_space=\ *)
15572 # `set' does not quote correctly, so add quotes (double-quote
15573 # substitution turns \\\\ into \\, and sed turns \\ into \).
15574 sed -n \
15575 "s/'/'\\\\''/g;
15576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15577 ;;
15578 *)
15579 # `set' quotes correctly as required by POSIX, so do not add quotes.
15580 sed -n \
15581 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15582 ;;
15583 esac;
15584 } |
15585 sed '
15586 t clear
15587 : clear
15588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15589 t end
15590 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15591 : end' >>confcache
15592 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15593 if test -w $cache_file; then
15594 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15595 cat confcache >$cache_file
15596 else
15597 echo "not updating unwritable cache $cache_file"
15598 fi
15599 fi
15600 rm -f confcache
15601
15602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15603 # Let make expand exec_prefix.
15604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15605
15606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15608 # trailing colons and then remove the whole line if VPATH becomes empty
15609 # (actually we leave an empty line to preserve line numbers).
15610 if test "x$srcdir" = x.; then
15611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15612 s/:*\$(srcdir):*/:/;
15613 s/:*\${srcdir}:*/:/;
15614 s/:*@srcdir@:*/:/;
15615 s/^\([^=]*=[ ]*\):*/\1/;
15616 s/:*$//;
15617 s/^[^=]*=[ ]*$//;
15618 }'
15619 fi
15620
15621 DEFS=-DHAVE_CONFIG_H
15622
15623 ac_libobjs=
15624 ac_ltlibobjs=
15625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15626 # 1. Remove the extension, and $U if already installed.
15627 ac_i=`echo "$ac_i" |
15628 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15629 # 2. Add them.
15630 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15631 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15632 done
15633 LIBOBJS=$ac_libobjs
15634
15635 LTLIBOBJS=$ac_ltlibobjs
15636
15637
15638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15639 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15640 Usually this means the macro was only invoked conditionally." >&5
15641 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15642 Usually this means the macro was only invoked conditionally." >&2;}
15643 { (exit 1); exit 1; }; }
15644 fi
15645 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15646 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15647 Usually this means the macro was only invoked conditionally." >&5
15648 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15649 Usually this means the macro was only invoked conditionally." >&2;}
15650 { (exit 1); exit 1; }; }
15651 fi
15652 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15654 Usually this means the macro was only invoked conditionally." >&5
15655 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15656 Usually this means the macro was only invoked conditionally." >&2;}
15657 { (exit 1); exit 1; }; }
15658 fi
15659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15661 Usually this means the macro was only invoked conditionally." >&5
15662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15663 Usually this means the macro was only invoked conditionally." >&2;}
15664 { (exit 1); exit 1; }; }
15665 fi
15666 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15667 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15668 Usually this means the macro was only invoked conditionally." >&5
15669 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15670 Usually this means the macro was only invoked conditionally." >&2;}
15671 { (exit 1); exit 1; }; }
15672 fi
15673 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15674 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15675 Usually this means the macro was only invoked conditionally." >&5
15676 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15677 Usually this means the macro was only invoked conditionally." >&2;}
15678 { (exit 1); exit 1; }; }
15679 fi
15680 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15681 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15682 Usually this means the macro was only invoked conditionally." >&5
15683 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15684 Usually this means the macro was only invoked conditionally." >&2;}
15685 { (exit 1); exit 1; }; }
15686 fi
15687 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15688 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15689 Usually this means the macro was only invoked conditionally." >&5
15690 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15691 Usually this means the macro was only invoked conditionally." >&2;}
15692 { (exit 1); exit 1; }; }
15693 fi
15694 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15695 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15696 Usually this means the macro was only invoked conditionally." >&5
15697 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15698 Usually this means the macro was only invoked conditionally." >&2;}
15699 { (exit 1); exit 1; }; }
15700 fi
15701 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15702 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15703 Usually this means the macro was only invoked conditionally." >&5
15704 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15705 Usually this means the macro was only invoked conditionally." >&2;}
15706 { (exit 1); exit 1; }; }
15707 fi
15708 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15709 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15710 Usually this means the macro was only invoked conditionally." >&5
15711 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15712 Usually this means the macro was only invoked conditionally." >&2;}
15713 { (exit 1); exit 1; }; }
15714 fi
15715 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15716 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15717 Usually this means the macro was only invoked conditionally." >&5
15718 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15719 Usually this means the macro was only invoked conditionally." >&2;}
15720 { (exit 1); exit 1; }; }
15721 fi
15722 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15723 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15724 Usually this means the macro was only invoked conditionally." >&5
15725 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15726 Usually this means the macro was only invoked conditionally." >&2;}
15727 { (exit 1); exit 1; }; }
15728 fi
15729 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15730 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15731 Usually this means the macro was only invoked conditionally." >&5
15732 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15733 Usually this means the macro was only invoked conditionally." >&2;}
15734 { (exit 1); exit 1; }; }
15735 fi
15736 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15737 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15738 Usually this means the macro was only invoked conditionally." >&5
15739 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15740 Usually this means the macro was only invoked conditionally." >&2;}
15741 { (exit 1); exit 1; }; }
15742 fi
15743 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15744 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15745 Usually this means the macro was only invoked conditionally." >&5
15746 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15747 Usually this means the macro was only invoked conditionally." >&2;}
15748 { (exit 1); exit 1; }; }
15749 fi
15750 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15751 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15752 Usually this means the macro was only invoked conditionally." >&5
15753 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15754 Usually this means the macro was only invoked conditionally." >&2;}
15755 { (exit 1); exit 1; }; }
15756 fi
15757 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15758 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15759 Usually this means the macro was only invoked conditionally." >&5
15760 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15761 Usually this means the macro was only invoked conditionally." >&2;}
15762 { (exit 1); exit 1; }; }
15763 fi
15764 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15765 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15766 Usually this means the macro was only invoked conditionally." >&5
15767 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15768 Usually this means the macro was only invoked conditionally." >&2;}
15769 { (exit 1); exit 1; }; }
15770 fi
15771 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15772 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15773 Usually this means the macro was only invoked conditionally." >&5
15774 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15775 Usually this means the macro was only invoked conditionally." >&2;}
15776 { (exit 1); exit 1; }; }
15777 fi
15778 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15779 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15780 Usually this means the macro was only invoked conditionally." >&5
15781 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15782 Usually this means the macro was only invoked conditionally." >&2;}
15783 { (exit 1); exit 1; }; }
15784 fi
15785 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15786 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15787 Usually this means the macro was only invoked conditionally." >&5
15788 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15789 Usually this means the macro was only invoked conditionally." >&2;}
15790 { (exit 1); exit 1; }; }
15791 fi
15792
15793 : ${CONFIG_STATUS=./config.status}
15794 ac_clean_files_save=$ac_clean_files
15795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15796 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15797 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15798 cat >$CONFIG_STATUS <<_ACEOF
15799 #! $SHELL
15800 # Generated by $as_me.
15801 # Run this file to recreate the current configuration.
15802 # Compiler output produced by configure, useful for debugging
15803 # configure, is in config.log if it exists.
15804
15805 debug=false
15806 ac_cs_recheck=false
15807 ac_cs_silent=false
15808 SHELL=\${CONFIG_SHELL-$SHELL}
15809 _ACEOF
15810
15811 cat >>$CONFIG_STATUS <<\_ACEOF
15812 ## --------------------- ##
15813 ## M4sh Initialization. ##
15814 ## --------------------- ##
15815
15816 # Be Bourne compatible
15817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15818 emulate sh
15819 NULLCMD=:
15820 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15821 # is contrary to our usage. Disable this feature.
15822 alias -g '${1+"$@"}'='"$@"'
15823 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15824 set -o posix
15825 fi
15826 DUALCASE=1; export DUALCASE # for MKS sh
15827
15828 # Support unset when possible.
15829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15830 as_unset=unset
15831 else
15832 as_unset=false
15833 fi
15834
15835
15836 # Work around bugs in pre-3.0 UWIN ksh.
15837 $as_unset ENV MAIL MAILPATH
15838 PS1='$ '
15839 PS2='> '
15840 PS4='+ '
15841
15842 # NLS nuisances.
15843 for as_var in \
15844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15846 LC_TELEPHONE LC_TIME
15847 do
15848 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15849 eval $as_var=C; export $as_var
15850 else
15851 $as_unset $as_var
15852 fi
15853 done
15854
15855 # Required to use basename.
15856 if expr a : '\(a\)' >/dev/null 2>&1; then
15857 as_expr=expr
15858 else
15859 as_expr=false
15860 fi
15861
15862 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15863 as_basename=basename
15864 else
15865 as_basename=false
15866 fi
15867
15868
15869 # Name of the executable.
15870 as_me=`$as_basename "$0" ||
15871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15872 X"$0" : 'X\(//\)$' \| \
15873 X"$0" : 'X\(/\)$' \| \
15874 . : '\(.\)' 2>/dev/null ||
15875 echo X/"$0" |
15876 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15877 /^X\/\(\/\/\)$/{ s//\1/; q; }
15878 /^X\/\(\/\).*/{ s//\1/; q; }
15879 s/.*/./; q'`
15880
15881
15882 # PATH needs CR, and LINENO needs CR and PATH.
15883 # Avoid depending upon Character Ranges.
15884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15887 as_cr_digits='0123456789'
15888 as_cr_alnum=$as_cr_Letters$as_cr_digits
15889
15890 # The user is always right.
15891 if test "${PATH_SEPARATOR+set}" != set; then
15892 echo "#! /bin/sh" >conf$$.sh
15893 echo "exit 0" >>conf$$.sh
15894 chmod +x conf$$.sh
15895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15896 PATH_SEPARATOR=';'
15897 else
15898 PATH_SEPARATOR=:
15899 fi
15900 rm -f conf$$.sh
15901 fi
15902
15903
15904 as_lineno_1=$LINENO
15905 as_lineno_2=$LINENO
15906 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15907 test "x$as_lineno_1" != "x$as_lineno_2" &&
15908 test "x$as_lineno_3" = "x$as_lineno_2" || {
15909 # Find who we are. Look in the path if we contain no path at all
15910 # relative or not.
15911 case $0 in
15912 *[\\/]* ) as_myself=$0 ;;
15913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916 IFS=$as_save_IFS
15917 test -z "$as_dir" && as_dir=.
15918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15919 done
15920
15921 ;;
15922 esac
15923 # We did not find ourselves, most probably we were run as `sh COMMAND'
15924 # in which case we are not to be found in the path.
15925 if test "x$as_myself" = x; then
15926 as_myself=$0
15927 fi
15928 if test ! -f "$as_myself"; then
15929 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15930 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15931 { (exit 1); exit 1; }; }
15932 fi
15933 case $CONFIG_SHELL in
15934 '')
15935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15936 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15937 do
15938 IFS=$as_save_IFS
15939 test -z "$as_dir" && as_dir=.
15940 for as_base in sh bash ksh sh5; do
15941 case $as_dir in
15942 /*)
15943 if ("$as_dir/$as_base" -c '
15944 as_lineno_1=$LINENO
15945 as_lineno_2=$LINENO
15946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15947 test "x$as_lineno_1" != "x$as_lineno_2" &&
15948 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15949 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15950 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15951 CONFIG_SHELL=$as_dir/$as_base
15952 export CONFIG_SHELL
15953 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15954 fi;;
15955 esac
15956 done
15957 done
15958 ;;
15959 esac
15960
15961 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15962 # uniformly replaced by the line number. The first 'sed' inserts a
15963 # line-number line before each line; the second 'sed' does the real
15964 # work. The second script uses 'N' to pair each line-number line
15965 # with the numbered line, and appends trailing '-' during
15966 # substitution so that $LINENO is not a special case at line end.
15967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15968 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15969 sed '=' <$as_myself |
15970 sed '
15971 N
15972 s,$,-,
15973 : loop
15974 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15975 t loop
15976 s,-$,,
15977 s,^['$as_cr_digits']*\n,,
15978 ' >$as_me.lineno &&
15979 chmod +x $as_me.lineno ||
15980 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15981 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15982 { (exit 1); exit 1; }; }
15983
15984 # Don't try to exec as it changes $[0], causing all sort of problems
15985 # (the dirname of $[0] is not the place where we might find the
15986 # original and so on. Autoconf is especially sensible to this).
15987 . ./$as_me.lineno
15988 # Exit status is that of the last command.
15989 exit
15990 }
15991
15992
15993 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15994 *c*,-n*) ECHO_N= ECHO_C='
15995 ' ECHO_T=' ' ;;
15996 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15997 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15998 esac
15999
16000 if expr a : '\(a\)' >/dev/null 2>&1; then
16001 as_expr=expr
16002 else
16003 as_expr=false
16004 fi
16005
16006 rm -f conf$$ conf$$.exe conf$$.file
16007 echo >conf$$.file
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009 # We could just check for DJGPP; but this test a) works b) is more generic
16010 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16011 if test -f conf$$.exe; then
16012 # Don't use ln at all; we don't have any links
16013 as_ln_s='cp -p'
16014 else
16015 as_ln_s='ln -s'
16016 fi
16017 elif ln conf$$.file conf$$ 2>/dev/null; then
16018 as_ln_s=ln
16019 else
16020 as_ln_s='cp -p'
16021 fi
16022 rm -f conf$$ conf$$.exe conf$$.file
16023
16024 if mkdir -p . 2>/dev/null; then
16025 as_mkdir_p=:
16026 else
16027 test -d ./-p && rmdir ./-p
16028 as_mkdir_p=false
16029 fi
16030
16031 as_executable_p="test -f"
16032
16033 # Sed expression to map a string onto a valid CPP name.
16034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16035
16036 # Sed expression to map a string onto a valid variable name.
16037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16038
16039
16040 # IFS
16041 # We need space, tab and new line, in precisely that order.
16042 as_nl='
16043 '
16044 IFS=" $as_nl"
16045
16046 # CDPATH.
16047 $as_unset CDPATH
16048
16049 exec 6>&1
16050
16051 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16052 # report actual input values of CONFIG_FILES etc. instead of their
16053 # values after options handling. Logging --version etc. is OK.
16054 exec 5>>config.log
16055 {
16056 echo
16057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16058 ## Running $as_me. ##
16059 _ASBOX
16060 } >&5
16061 cat >&5 <<_CSEOF
16062
16063 This file was extended by libjava $as_me version-unused, which was
16064 generated by GNU Autoconf 2.59. Invocation command line was
16065
16066 CONFIG_FILES = $CONFIG_FILES
16067 CONFIG_HEADERS = $CONFIG_HEADERS
16068 CONFIG_LINKS = $CONFIG_LINKS
16069 CONFIG_COMMANDS = $CONFIG_COMMANDS
16070 $ $0 $@
16071
16072 _CSEOF
16073 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16074 echo >&5
16075 _ACEOF
16076
16077 # Files that config.status was made for.
16078 if test -n "$ac_config_files"; then
16079 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16080 fi
16081
16082 if test -n "$ac_config_headers"; then
16083 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16084 fi
16085
16086 if test -n "$ac_config_links"; then
16087 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16088 fi
16089
16090 if test -n "$ac_config_commands"; then
16091 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16092 fi
16093
16094 cat >>$CONFIG_STATUS <<\_ACEOF
16095
16096 ac_cs_usage="\
16097 \`$as_me' instantiates files from templates according to the
16098 current configuration.
16099
16100 Usage: $0 [OPTIONS] [FILE]...
16101
16102 -h, --help print this help, then exit
16103 -V, --version print version number, then exit
16104 -q, --quiet do not print progress messages
16105 -d, --debug don't remove temporary files
16106 --recheck update $as_me by reconfiguring in the same conditions
16107 --file=FILE[:TEMPLATE]
16108 instantiate the configuration file FILE
16109 --header=FILE[:TEMPLATE]
16110 instantiate the configuration header FILE
16111
16112 Configuration files:
16113 $config_files
16114
16115 Configuration headers:
16116 $config_headers
16117
16118 Configuration links:
16119 $config_links
16120
16121 Configuration commands:
16122 $config_commands
16123
16124 Report bugs to <bug-autoconf@gnu.org>."
16125 _ACEOF
16126
16127 cat >>$CONFIG_STATUS <<_ACEOF
16128 ac_cs_version="\\
16129 libjava config.status version-unused
16130 configured by $0, generated by GNU Autoconf 2.59,
16131 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16132
16133 Copyright (C) 2003 Free Software Foundation, Inc.
16134 This config.status script is free software; the Free Software Foundation
16135 gives unlimited permission to copy, distribute and modify it."
16136 srcdir=$srcdir
16137 INSTALL="$INSTALL"
16138 _ACEOF
16139
16140 cat >>$CONFIG_STATUS <<\_ACEOF
16141 # If no file are specified by the user, then we need to provide default
16142 # value. By we need to know if files were specified by the user.
16143 ac_need_defaults=:
16144 while test $# != 0
16145 do
16146 case $1 in
16147 --*=*)
16148 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16149 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16150 ac_shift=:
16151 ;;
16152 -*)
16153 ac_option=$1
16154 ac_optarg=$2
16155 ac_shift=shift
16156 ;;
16157 *) # This is not an option, so the user has probably given explicit
16158 # arguments.
16159 ac_option=$1
16160 ac_need_defaults=false;;
16161 esac
16162
16163 case $ac_option in
16164 # Handling of the options.
16165 _ACEOF
16166 cat >>$CONFIG_STATUS <<\_ACEOF
16167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16168 ac_cs_recheck=: ;;
16169 --version | --vers* | -V )
16170 echo "$ac_cs_version"; exit 0 ;;
16171 --he | --h)
16172 # Conflict between --help and --header
16173 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16174 Try \`$0 --help' for more information." >&5
16175 echo "$as_me: error: ambiguous option: $1
16176 Try \`$0 --help' for more information." >&2;}
16177 { (exit 1); exit 1; }; };;
16178 --help | --hel | -h )
16179 echo "$ac_cs_usage"; exit 0 ;;
16180 --debug | --d* | -d )
16181 debug=: ;;
16182 --file | --fil | --fi | --f )
16183 $ac_shift
16184 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16185 ac_need_defaults=false;;
16186 --header | --heade | --head | --hea )
16187 $ac_shift
16188 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16189 ac_need_defaults=false;;
16190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16192 ac_cs_silent=: ;;
16193
16194 # This is an error.
16195 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16196 Try \`$0 --help' for more information." >&5
16197 echo "$as_me: error: unrecognized option: $1
16198 Try \`$0 --help' for more information." >&2;}
16199 { (exit 1); exit 1; }; } ;;
16200
16201 *) ac_config_targets="$ac_config_targets $1" ;;
16202
16203 esac
16204 shift
16205 done
16206
16207 ac_configure_extra_args=
16208
16209 if $ac_cs_silent; then
16210 exec 6>/dev/null
16211 ac_configure_extra_args="$ac_configure_extra_args --silent"
16212 fi
16213
16214 _ACEOF
16215 cat >>$CONFIG_STATUS <<_ACEOF
16216 if \$ac_cs_recheck; then
16217 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16218 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16219 fi
16220
16221 _ACEOF
16222
16223 cat >>$CONFIG_STATUS <<_ACEOF
16224 #
16225 # INIT-COMMANDS section.
16226 #
16227
16228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16229 srcdir=${srcdir}
16230 host=${host}
16231 target=${target}
16232 with_multisubdir=${with_multisubdir}
16233 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16234 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16235 libgcj_basedir=${libgcj_basedir}
16236 CC="${CC}"
16237 CXX="${CXX}"
16238 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16239
16240
16241 _ACEOF
16242
16243
16244
16245 cat >>$CONFIG_STATUS <<\_ACEOF
16246 for ac_config_target in $ac_config_targets
16247 do
16248 case "$ac_config_target" in
16249 # Handling of arguments.
16250 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16251 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16252 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16253 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16254 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16255 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16256 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16257 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16258 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16259 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16260 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16261 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16262 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16263 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16264 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16265 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16266 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16267 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16268 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16269 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16270 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16271 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16272 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16273 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16274 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16275 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16276 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16277 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16278 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16279 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16280 { (exit 1); exit 1; }; };;
16281 esac
16282 done
16283
16284 # If the user did not use the arguments to specify the items to instantiate,
16285 # then the envvar interface is used. Set only those that are not.
16286 # We use the long form for the default assignment because of an extremely
16287 # bizarre bug on SunOS 4.1.3.
16288 if $ac_need_defaults; then
16289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16291 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16293 fi
16294
16295 # Have a temporary directory for convenience. Make it in the build tree
16296 # simply because there is no reason to put it here, and in addition,
16297 # creating and moving files from /tmp can sometimes cause problems.
16298 # Create a temporary directory, and hook for its removal unless debugging.
16299 $debug ||
16300 {
16301 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16302 trap '{ (exit 1); exit 1; }' 1 2 13 15
16303 }
16304
16305 # Create a (secure) tmp directory for tmp files.
16306
16307 {
16308 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16309 test -n "$tmp" && test -d "$tmp"
16310 } ||
16311 {
16312 tmp=./confstat$$-$RANDOM
16313 (umask 077 && mkdir $tmp)
16314 } ||
16315 {
16316 echo "$me: cannot create a temporary directory in ." >&2
16317 { (exit 1); exit 1; }
16318 }
16319
16320 _ACEOF
16321
16322 cat >>$CONFIG_STATUS <<_ACEOF
16323
16324 #
16325 # CONFIG_FILES section.
16326 #
16327
16328 # No need to generate the scripts if there are no CONFIG_FILES.
16329 # This happens for instance when ./config.status config.h
16330 if test -n "\$CONFIG_FILES"; then
16331 # Protect against being on the right side of a sed subst in config.status.
16332 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16333 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16334 s,@SHELL@,$SHELL,;t t
16335 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16336 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16337 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16338 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16339 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16340 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16341 s,@exec_prefix@,$exec_prefix,;t t
16342 s,@prefix@,$prefix,;t t
16343 s,@program_transform_name@,$program_transform_name,;t t
16344 s,@bindir@,$bindir,;t t
16345 s,@sbindir@,$sbindir,;t t
16346 s,@libexecdir@,$libexecdir,;t t
16347 s,@datadir@,$datadir,;t t
16348 s,@sysconfdir@,$sysconfdir,;t t
16349 s,@sharedstatedir@,$sharedstatedir,;t t
16350 s,@localstatedir@,$localstatedir,;t t
16351 s,@libdir@,$libdir,;t t
16352 s,@includedir@,$includedir,;t t
16353 s,@oldincludedir@,$oldincludedir,;t t
16354 s,@infodir@,$infodir,;t t
16355 s,@mandir@,$mandir,;t t
16356 s,@build_alias@,$build_alias,;t t
16357 s,@host_alias@,$host_alias,;t t
16358 s,@target_alias@,$target_alias,;t t
16359 s,@DEFS@,$DEFS,;t t
16360 s,@ECHO_C@,$ECHO_C,;t t
16361 s,@ECHO_N@,$ECHO_N,;t t
16362 s,@ECHO_T@,$ECHO_T,;t t
16363 s,@LIBS@,$LIBS,;t t
16364 s,@libgcj_basedir@,$libgcj_basedir,;t t
16365 s,@build@,$build,;t t
16366 s,@build_cpu@,$build_cpu,;t t
16367 s,@build_vendor@,$build_vendor,;t t
16368 s,@build_os@,$build_os,;t t
16369 s,@host@,$host,;t t
16370 s,@host_cpu@,$host_cpu,;t t
16371 s,@host_vendor@,$host_vendor,;t t
16372 s,@host_os@,$host_os,;t t
16373 s,@target@,$target,;t t
16374 s,@target_cpu@,$target_cpu,;t t
16375 s,@target_vendor@,$target_vendor,;t t
16376 s,@target_os@,$target_os,;t t
16377 s,@target_noncanonical@,$target_noncanonical,;t t
16378 s,@LN_S@,$LN_S,;t t
16379 s,@mkinstalldirs@,$mkinstalldirs,;t t
16380 s,@CC@,$CC,;t t
16381 s,@ac_ct_CC@,$ac_ct_CC,;t t
16382 s,@EXEEXT@,$EXEEXT,;t t
16383 s,@OBJEXT@,$OBJEXT,;t t
16384 s,@CXX@,$CXX,;t t
16385 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16386 s,@CFLAGS@,$CFLAGS,;t t
16387 s,@CXXFLAGS@,$CXXFLAGS,;t t
16388 s,@LDFLAGS@,$LDFLAGS,;t t
16389 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16390 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16391 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16392 s,@CYGPATH_W@,$CYGPATH_W,;t t
16393 s,@PACKAGE@,$PACKAGE,;t t
16394 s,@VERSION@,$VERSION,;t t
16395 s,@ACLOCAL@,$ACLOCAL,;t t
16396 s,@AUTOCONF@,$AUTOCONF,;t t
16397 s,@AUTOMAKE@,$AUTOMAKE,;t t
16398 s,@AUTOHEADER@,$AUTOHEADER,;t t
16399 s,@MAKEINFO@,$MAKEINFO,;t t
16400 s,@install_sh@,$install_sh,;t t
16401 s,@STRIP@,$STRIP,;t t
16402 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16403 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16404 s,@mkdir_p@,$mkdir_p,;t t
16405 s,@AWK@,$AWK,;t t
16406 s,@SET_MAKE@,$SET_MAKE,;t t
16407 s,@am__leading_dot@,$am__leading_dot,;t t
16408 s,@AMTAR@,$AMTAR,;t t
16409 s,@am__tar@,$am__tar,;t t
16410 s,@am__untar@,$am__untar,;t t
16411 s,@DEPDIR@,$DEPDIR,;t t
16412 s,@am__include@,$am__include,;t t
16413 s,@am__quote@,$am__quote,;t t
16414 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16415 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16416 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16417 s,@CCDEPMODE@,$CCDEPMODE,;t t
16418 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16419 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16420 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16421 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16422 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16423 s,@AS@,$AS,;t t
16424 s,@ac_ct_AS@,$ac_ct_AS,;t t
16425 s,@AR@,$AR,;t t
16426 s,@ac_ct_AR@,$ac_ct_AR,;t t
16427 s,@RANLIB@,$RANLIB,;t t
16428 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16429 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16430 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16431 s,@MAINT@,$MAINT,;t t
16432 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16433 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16434 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16435 s,@INCLTDL@,$INCLTDL,;t t
16436 s,@LIBLTDL@,$LIBLTDL,;t t
16437 s,@DIRLTDL@,$DIRLTDL,;t t
16438 s,@LIBTOOL@,$LIBTOOL,;t t
16439 s,@CXXCPP@,$CXXCPP,;t t
16440 s,@CPPFLAGS@,$CPPFLAGS,;t t
16441 s,@GCJ@,$GCJ,;t t
16442 s,@GCJFLAGS@,$GCJFLAGS,;t t
16443 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16444 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16445 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16446 s,@subdirs@,$subdirs,;t t
16447 s,@COMPPATH@,$COMPPATH,;t t
16448 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16449 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16450 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16451 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16452 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16453 s,@INTERPRETER@,$INTERPRETER,;t t
16454 s,@LIBFFI@,$LIBFFI,;t t
16455 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16456 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16457 s,@CPP@,$CPP,;t t
16458 s,@EGREP@,$EGREP,;t t
16459 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16460 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16461 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16462 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16463 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16464 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16465 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16466 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16467 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16468 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16469 s,@X_CFLAGS@,$X_CFLAGS,;t t
16470 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16471 s,@X_LIBS@,$X_LIBS,;t t
16472 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16473 s,@TOOLKIT@,$TOOLKIT,;t t
16474 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16475 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16476 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16477 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16478 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16479 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16480 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16481 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16482 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16483 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16484 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16485 s,@GCLIBS@,$GCLIBS,;t t
16486 s,@GCINCS@,$GCINCS,;t t
16487 s,@GCDEPS@,$GCDEPS,;t t
16488 s,@GCSPEC@,$GCSPEC,;t t
16489 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16490 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16491 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16492 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16493 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16494 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16495 s,@THREADLIBS@,$THREADLIBS,;t t
16496 s,@THREADINCS@,$THREADINCS,;t t
16497 s,@THREADDEPS@,$THREADDEPS,;t t
16498 s,@THREADSPEC@,$THREADSPEC,;t t
16499 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16500 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16501 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16502 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16503 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16504 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16505 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16506 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16507 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16508 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16509 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16510 s,@tool_include_dir@,$tool_include_dir,;t t
16511 s,@gcc_version@,$gcc_version,;t t
16512 s,@LIBICONV@,$LIBICONV,;t t
16513 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16514 s,@GTK_LIBS@,$GTK_LIBS,;t t
16515 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16516 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16517 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16518 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16519 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16520 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16521 s,@GCJH@,$GCJH,;t t
16522 s,@ZIP@,$ZIP,;t t
16523 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16524 s,@ZLIBS@,$ZLIBS,;t t
16525 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16526 s,@ZINCS@,$ZINCS,;t t
16527 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16528 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16529 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16530 s,@IEEESPEC@,$IEEESPEC,;t t
16531 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16532 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16533 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16534 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16535 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16536 s,@toolexecdir@,$toolexecdir,;t t
16537 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16538 s,@toolexeclibdir@,$toolexeclibdir,;t t
16539 s,@GCJVERSION@,$GCJVERSION,;t t
16540 s,@ALLOCA@,$ALLOCA,;t t
16541 s,@PERL@,$PERL,;t t
16542 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16543 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16544 s,@here@,$here,;t t
16545 s,@LIBOBJS@,$LIBOBJS,;t t
16546 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16547 CEOF
16548
16549 _ACEOF
16550
16551 cat >>$CONFIG_STATUS <<\_ACEOF
16552 # Split the substitutions into bite-sized pieces for seds with
16553 # small command number limits, like on Digital OSF/1 and HP-UX.
16554 ac_max_sed_lines=48
16555 ac_sed_frag=1 # Number of current file.
16556 ac_beg=1 # First line for current file.
16557 ac_end=$ac_max_sed_lines # Line after last line for current file.
16558 ac_more_lines=:
16559 ac_sed_cmds=
16560 while $ac_more_lines; do
16561 if test $ac_beg -gt 1; then
16562 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16563 else
16564 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16565 fi
16566 if test ! -s $tmp/subs.frag; then
16567 ac_more_lines=false
16568 else
16569 # The purpose of the label and of the branching condition is to
16570 # speed up the sed processing (if there are no `@' at all, there
16571 # is no need to browse any of the substitutions).
16572 # These are the two extra sed commands mentioned above.
16573 (echo ':t
16574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16575 if test -z "$ac_sed_cmds"; then
16576 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16577 else
16578 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16579 fi
16580 ac_sed_frag=`expr $ac_sed_frag + 1`
16581 ac_beg=$ac_end
16582 ac_end=`expr $ac_end + $ac_max_sed_lines`
16583 fi
16584 done
16585 if test -z "$ac_sed_cmds"; then
16586 ac_sed_cmds=cat
16587 fi
16588 fi # test -n "$CONFIG_FILES"
16589
16590 _ACEOF
16591 cat >>$CONFIG_STATUS <<\_ACEOF
16592 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16594 case $ac_file in
16595 - | *:- | *:-:* ) # input from stdin
16596 cat >$tmp/stdin
16597 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16599 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16601 * ) ac_file_in=$ac_file.in ;;
16602 esac
16603
16604 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16607 X"$ac_file" : 'X\(//\)[^/]' \| \
16608 X"$ac_file" : 'X\(//\)$' \| \
16609 X"$ac_file" : 'X\(/\)' \| \
16610 . : '\(.\)' 2>/dev/null ||
16611 echo X"$ac_file" |
16612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16614 /^X\(\/\/\)$/{ s//\1/; q; }
16615 /^X\(\/\).*/{ s//\1/; q; }
16616 s/.*/./; q'`
16617 { if $as_mkdir_p; then
16618 mkdir -p "$ac_dir"
16619 else
16620 as_dir="$ac_dir"
16621 as_dirs=
16622 while test ! -d "$as_dir"; do
16623 as_dirs="$as_dir $as_dirs"
16624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16626 X"$as_dir" : 'X\(//\)[^/]' \| \
16627 X"$as_dir" : 'X\(//\)$' \| \
16628 X"$as_dir" : 'X\(/\)' \| \
16629 . : '\(.\)' 2>/dev/null ||
16630 echo X"$as_dir" |
16631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16633 /^X\(\/\/\)$/{ s//\1/; q; }
16634 /^X\(\/\).*/{ s//\1/; q; }
16635 s/.*/./; q'`
16636 done
16637 test ! -n "$as_dirs" || mkdir $as_dirs
16638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16640 { (exit 1); exit 1; }; }; }
16641
16642 ac_builddir=.
16643
16644 if test "$ac_dir" != .; then
16645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16646 # A "../" for each directory in $ac_dir_suffix.
16647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16648 else
16649 ac_dir_suffix= ac_top_builddir=
16650 fi
16651
16652 case $srcdir in
16653 .) # No --srcdir option. We are building in place.
16654 ac_srcdir=.
16655 if test -z "$ac_top_builddir"; then
16656 ac_top_srcdir=.
16657 else
16658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16659 fi ;;
16660 [\\/]* | ?:[\\/]* ) # Absolute path.
16661 ac_srcdir=$srcdir$ac_dir_suffix;
16662 ac_top_srcdir=$srcdir ;;
16663 *) # Relative path.
16664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16665 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16666 esac
16667
16668 # Do not use `cd foo && pwd` to compute absolute paths, because
16669 # the directories may not exist.
16670 case `pwd` in
16671 .) ac_abs_builddir="$ac_dir";;
16672 *)
16673 case "$ac_dir" in
16674 .) ac_abs_builddir=`pwd`;;
16675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16676 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16677 esac;;
16678 esac
16679 case $ac_abs_builddir in
16680 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16681 *)
16682 case ${ac_top_builddir}. in
16683 .) ac_abs_top_builddir=$ac_abs_builddir;;
16684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16686 esac;;
16687 esac
16688 case $ac_abs_builddir in
16689 .) ac_abs_srcdir=$ac_srcdir;;
16690 *)
16691 case $ac_srcdir in
16692 .) ac_abs_srcdir=$ac_abs_builddir;;
16693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16695 esac;;
16696 esac
16697 case $ac_abs_builddir in
16698 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16699 *)
16700 case $ac_top_srcdir in
16701 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16704 esac;;
16705 esac
16706
16707
16708 case $INSTALL in
16709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16710 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16711 esac
16712
16713 # Let's still pretend it is `configure' which instantiates (i.e., don't
16714 # use $as_me), people would be surprised to read:
16715 # /* config.h. Generated by config.status. */
16716 if test x"$ac_file" = x-; then
16717 configure_input=
16718 else
16719 configure_input="$ac_file. "
16720 fi
16721 configure_input=$configure_input"Generated from `echo $ac_file_in |
16722 sed 's,.*/,,'` by configure."
16723
16724 # First look for the input files in the build tree, otherwise in the
16725 # src tree.
16726 ac_file_inputs=`IFS=:
16727 for f in $ac_file_in; do
16728 case $f in
16729 -) echo $tmp/stdin ;;
16730 [\\/$]*)
16731 # Absolute (can't be DOS-style, as IFS=:)
16732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16733 echo "$as_me: error: cannot find input file: $f" >&2;}
16734 { (exit 1); exit 1; }; }
16735 echo "$f";;
16736 *) # Relative
16737 if test -f "$f"; then
16738 # Build tree
16739 echo "$f"
16740 elif test -f "$srcdir/$f"; then
16741 # Source tree
16742 echo "$srcdir/$f"
16743 else
16744 # /dev/null tree
16745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16746 echo "$as_me: error: cannot find input file: $f" >&2;}
16747 { (exit 1); exit 1; }; }
16748 fi;;
16749 esac
16750 done` || { (exit 1); exit 1; }
16751
16752 if test x"$ac_file" != x-; then
16753 { echo "$as_me:$LINENO: creating $ac_file" >&5
16754 echo "$as_me: creating $ac_file" >&6;}
16755 rm -f "$ac_file"
16756 fi
16757 _ACEOF
16758 cat >>$CONFIG_STATUS <<_ACEOF
16759 sed "$ac_vpsub
16760 $extrasub
16761 _ACEOF
16762 cat >>$CONFIG_STATUS <<\_ACEOF
16763 :t
16764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16765 s,@configure_input@,$configure_input,;t t
16766 s,@srcdir@,$ac_srcdir,;t t
16767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16768 s,@top_srcdir@,$ac_top_srcdir,;t t
16769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16770 s,@builddir@,$ac_builddir,;t t
16771 s,@abs_builddir@,$ac_abs_builddir,;t t
16772 s,@top_builddir@,$ac_top_builddir,;t t
16773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16774 s,@INSTALL@,$ac_INSTALL,;t t
16775 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16776 rm -f $tmp/stdin
16777 if test x"$ac_file" != x-; then
16778 mv $tmp/out $ac_file
16779 else
16780 cat $tmp/out
16781 rm -f $tmp/out
16782 fi
16783
16784 done
16785 _ACEOF
16786 cat >>$CONFIG_STATUS <<\_ACEOF
16787
16788 #
16789 # CONFIG_HEADER section.
16790 #
16791
16792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16794 #
16795 # ac_d sets the value in "#define NAME VALUE" lines.
16796 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16797 ac_dB='[ ].*$,\1#\2'
16798 ac_dC=' '
16799 ac_dD=',;t'
16800 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16801 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16802 ac_uB='$,\1#\2define\3'
16803 ac_uC=' '
16804 ac_uD=',;t'
16805
16806 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16808 case $ac_file in
16809 - | *:- | *:-:* ) # input from stdin
16810 cat >$tmp/stdin
16811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16815 * ) ac_file_in=$ac_file.in ;;
16816 esac
16817
16818 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16819 echo "$as_me: creating $ac_file" >&6;}
16820
16821 # First look for the input files in the build tree, otherwise in the
16822 # src tree.
16823 ac_file_inputs=`IFS=:
16824 for f in $ac_file_in; do
16825 case $f in
16826 -) echo $tmp/stdin ;;
16827 [\\/$]*)
16828 # Absolute (can't be DOS-style, as IFS=:)
16829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16830 echo "$as_me: error: cannot find input file: $f" >&2;}
16831 { (exit 1); exit 1; }; }
16832 # Do quote $f, to prevent DOS paths from being IFS'd.
16833 echo "$f";;
16834 *) # Relative
16835 if test -f "$f"; then
16836 # Build tree
16837 echo "$f"
16838 elif test -f "$srcdir/$f"; then
16839 # Source tree
16840 echo "$srcdir/$f"
16841 else
16842 # /dev/null tree
16843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16844 echo "$as_me: error: cannot find input file: $f" >&2;}
16845 { (exit 1); exit 1; }; }
16846 fi;;
16847 esac
16848 done` || { (exit 1); exit 1; }
16849 # Remove the trailing spaces.
16850 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16851
16852 _ACEOF
16853
16854 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16855 # `conftest.undefs', that substitutes the proper values into
16856 # config.h.in to produce config.h. The first handles `#define'
16857 # templates, and the second `#undef' templates.
16858 # And first: Protect against being on the right side of a sed subst in
16859 # config.status. Protect against being in an unquoted here document
16860 # in config.status.
16861 rm -f conftest.defines conftest.undefs
16862 # Using a here document instead of a string reduces the quoting nightmare.
16863 # Putting comments in sed scripts is not portable.
16864 #
16865 # `end' is used to avoid that the second main sed command (meant for
16866 # 0-ary CPP macros) applies to n-ary macro definitions.
16867 # See the Autoconf documentation for `clear'.
16868 cat >confdef2sed.sed <<\_ACEOF
16869 s/[\\&,]/\\&/g
16870 s,[\\$`],\\&,g
16871 t clear
16872 : clear
16873 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16874 t end
16875 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16876 : end
16877 _ACEOF
16878 # If some macros were called several times there might be several times
16879 # the same #defines, which is useless. Nevertheless, we may not want to
16880 # sort them, since we want the *last* AC-DEFINE to be honored.
16881 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16882 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16883 rm -f confdef2sed.sed
16884
16885 # This sed command replaces #undef with comments. This is necessary, for
16886 # example, in the case of _POSIX_SOURCE, which is predefined and required
16887 # on some systems where configure will not decide to define it.
16888 cat >>conftest.undefs <<\_ACEOF
16889 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16890 _ACEOF
16891
16892 # Break up conftest.defines because some shells have a limit on the size
16893 # of here documents, and old seds have small limits too (100 cmds).
16894 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16895 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16896 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16897 echo ' :' >>$CONFIG_STATUS
16898 rm -f conftest.tail
16899 while grep . conftest.defines >/dev/null
16900 do
16901 # Write a limited-size here document to $tmp/defines.sed.
16902 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16903 # Speed up: don't consider the non `#define' lines.
16904 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16905 # Work around the forget-to-reset-the-flag bug.
16906 echo 't clr' >>$CONFIG_STATUS
16907 echo ': clr' >>$CONFIG_STATUS
16908 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16909 echo 'CEOF
16910 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16911 rm -f $tmp/in
16912 mv $tmp/out $tmp/in
16913 ' >>$CONFIG_STATUS
16914 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16915 rm -f conftest.defines
16916 mv conftest.tail conftest.defines
16917 done
16918 rm -f conftest.defines
16919 echo ' fi # grep' >>$CONFIG_STATUS
16920 echo >>$CONFIG_STATUS
16921
16922 # Break up conftest.undefs because some shells have a limit on the size
16923 # of here documents, and old seds have small limits too (100 cmds).
16924 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16925 rm -f conftest.tail
16926 while grep . conftest.undefs >/dev/null
16927 do
16928 # Write a limited-size here document to $tmp/undefs.sed.
16929 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16930 # Speed up: don't consider the non `#undef'
16931 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16932 # Work around the forget-to-reset-the-flag bug.
16933 echo 't clr' >>$CONFIG_STATUS
16934 echo ': clr' >>$CONFIG_STATUS
16935 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16936 echo 'CEOF
16937 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16938 rm -f $tmp/in
16939 mv $tmp/out $tmp/in
16940 ' >>$CONFIG_STATUS
16941 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16942 rm -f conftest.undefs
16943 mv conftest.tail conftest.undefs
16944 done
16945 rm -f conftest.undefs
16946
16947 cat >>$CONFIG_STATUS <<\_ACEOF
16948 # Let's still pretend it is `configure' which instantiates (i.e., don't
16949 # use $as_me), people would be surprised to read:
16950 # /* config.h. Generated by config.status. */
16951 if test x"$ac_file" = x-; then
16952 echo "/* Generated by configure. */" >$tmp/config.h
16953 else
16954 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16955 fi
16956 cat $tmp/in >>$tmp/config.h
16957 rm -f $tmp/in
16958 if test x"$ac_file" != x-; then
16959 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16961 echo "$as_me: $ac_file is unchanged" >&6;}
16962 else
16963 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$ac_file" : 'X\(//\)[^/]' \| \
16966 X"$ac_file" : 'X\(//\)$' \| \
16967 X"$ac_file" : 'X\(/\)' \| \
16968 . : '\(.\)' 2>/dev/null ||
16969 echo X"$ac_file" |
16970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16972 /^X\(\/\/\)$/{ s//\1/; q; }
16973 /^X\(\/\).*/{ s//\1/; q; }
16974 s/.*/./; q'`
16975 { if $as_mkdir_p; then
16976 mkdir -p "$ac_dir"
16977 else
16978 as_dir="$ac_dir"
16979 as_dirs=
16980 while test ! -d "$as_dir"; do
16981 as_dirs="$as_dir $as_dirs"
16982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16984 X"$as_dir" : 'X\(//\)[^/]' \| \
16985 X"$as_dir" : 'X\(//\)$' \| \
16986 X"$as_dir" : 'X\(/\)' \| \
16987 . : '\(.\)' 2>/dev/null ||
16988 echo X"$as_dir" |
16989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16991 /^X\(\/\/\)$/{ s//\1/; q; }
16992 /^X\(\/\).*/{ s//\1/; q; }
16993 s/.*/./; q'`
16994 done
16995 test ! -n "$as_dirs" || mkdir $as_dirs
16996 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16997 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16998 { (exit 1); exit 1; }; }; }
16999
17000 rm -f $ac_file
17001 mv $tmp/config.h $ac_file
17002 fi
17003 else
17004 cat $tmp/config.h
17005 rm -f $tmp/config.h
17006 fi
17007 # Compute $ac_file's index in $config_headers.
17008 _am_stamp_count=1
17009 for _am_header in $config_headers :; do
17010 case $_am_header in
17011 $ac_file | $ac_file:* )
17012 break ;;
17013 * )
17014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17015 esac
17016 done
17017 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17018 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17019 X$ac_file : 'X\(//\)[^/]' \| \
17020 X$ac_file : 'X\(//\)$' \| \
17021 X$ac_file : 'X\(/\)' \| \
17022 . : '\(.\)' 2>/dev/null ||
17023 echo X$ac_file |
17024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17026 /^X\(\/\/\)$/{ s//\1/; q; }
17027 /^X\(\/\).*/{ s//\1/; q; }
17028 s/.*/./; q'`/stamp-h$_am_stamp_count
17029 done
17030 _ACEOF
17031 cat >>$CONFIG_STATUS <<\_ACEOF
17032
17033 #
17034 # CONFIG_LINKS section.
17035 #
17036
17037 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17040
17041 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17042 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17043
17044 if test ! -r $srcdir/$ac_source; then
17045 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17046 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17047 { (exit 1); exit 1; }; }
17048 fi
17049 rm -f $ac_dest
17050
17051 # Make relative symlinks.
17052 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17054 X"$ac_dest" : 'X\(//\)[^/]' \| \
17055 X"$ac_dest" : 'X\(//\)$' \| \
17056 X"$ac_dest" : 'X\(/\)' \| \
17057 . : '\(.\)' 2>/dev/null ||
17058 echo X"$ac_dest" |
17059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17061 /^X\(\/\/\)$/{ s//\1/; q; }
17062 /^X\(\/\).*/{ s//\1/; q; }
17063 s/.*/./; q'`
17064 { if $as_mkdir_p; then
17065 mkdir -p "$ac_dest_dir"
17066 else
17067 as_dir="$ac_dest_dir"
17068 as_dirs=
17069 while test ! -d "$as_dir"; do
17070 as_dirs="$as_dir $as_dirs"
17071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17073 X"$as_dir" : 'X\(//\)[^/]' \| \
17074 X"$as_dir" : 'X\(//\)$' \| \
17075 X"$as_dir" : 'X\(/\)' \| \
17076 . : '\(.\)' 2>/dev/null ||
17077 echo X"$as_dir" |
17078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17080 /^X\(\/\/\)$/{ s//\1/; q; }
17081 /^X\(\/\).*/{ s//\1/; q; }
17082 s/.*/./; q'`
17083 done
17084 test ! -n "$as_dirs" || mkdir $as_dirs
17085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17086 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17087 { (exit 1); exit 1; }; }; }
17088
17089 ac_builddir=.
17090
17091 if test "$ac_dest_dir" != .; then
17092 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17093 # A "../" for each directory in $ac_dir_suffix.
17094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17095 else
17096 ac_dir_suffix= ac_top_builddir=
17097 fi
17098
17099 case $srcdir in
17100 .) # No --srcdir option. We are building in place.
17101 ac_srcdir=.
17102 if test -z "$ac_top_builddir"; then
17103 ac_top_srcdir=.
17104 else
17105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17106 fi ;;
17107 [\\/]* | ?:[\\/]* ) # Absolute path.
17108 ac_srcdir=$srcdir$ac_dir_suffix;
17109 ac_top_srcdir=$srcdir ;;
17110 *) # Relative path.
17111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17113 esac
17114
17115 # Do not use `cd foo && pwd` to compute absolute paths, because
17116 # the directories may not exist.
17117 case `pwd` in
17118 .) ac_abs_builddir="$ac_dest_dir";;
17119 *)
17120 case "$ac_dest_dir" in
17121 .) ac_abs_builddir=`pwd`;;
17122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17123 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17124 esac;;
17125 esac
17126 case $ac_abs_builddir in
17127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17128 *)
17129 case ${ac_top_builddir}. in
17130 .) ac_abs_top_builddir=$ac_abs_builddir;;
17131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17133 esac;;
17134 esac
17135 case $ac_abs_builddir in
17136 .) ac_abs_srcdir=$ac_srcdir;;
17137 *)
17138 case $ac_srcdir in
17139 .) ac_abs_srcdir=$ac_abs_builddir;;
17140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17142 esac;;
17143 esac
17144 case $ac_abs_builddir in
17145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17146 *)
17147 case $ac_top_srcdir in
17148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17151 esac;;
17152 esac
17153
17154
17155 case $srcdir in
17156 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17157 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17158 esac
17159
17160 # Try a symlink, then a hard link, then a copy.
17161 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17162 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17163 cp -p $srcdir/$ac_source $ac_dest ||
17164 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17165 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17166 { (exit 1); exit 1; }; }
17167 done
17168 _ACEOF
17169 cat >>$CONFIG_STATUS <<\_ACEOF
17170
17171 #
17172 # CONFIG_COMMANDS section.
17173 #
17174 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17177 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17179 X"$ac_dest" : 'X\(//\)[^/]' \| \
17180 X"$ac_dest" : 'X\(//\)$' \| \
17181 X"$ac_dest" : 'X\(/\)' \| \
17182 . : '\(.\)' 2>/dev/null ||
17183 echo X"$ac_dest" |
17184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17186 /^X\(\/\/\)$/{ s//\1/; q; }
17187 /^X\(\/\).*/{ s//\1/; q; }
17188 s/.*/./; q'`
17189 { if $as_mkdir_p; then
17190 mkdir -p "$ac_dir"
17191 else
17192 as_dir="$ac_dir"
17193 as_dirs=
17194 while test ! -d "$as_dir"; do
17195 as_dirs="$as_dir $as_dirs"
17196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17198 X"$as_dir" : 'X\(//\)[^/]' \| \
17199 X"$as_dir" : 'X\(//\)$' \| \
17200 X"$as_dir" : 'X\(/\)' \| \
17201 . : '\(.\)' 2>/dev/null ||
17202 echo X"$as_dir" |
17203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17205 /^X\(\/\/\)$/{ s//\1/; q; }
17206 /^X\(\/\).*/{ s//\1/; q; }
17207 s/.*/./; q'`
17208 done
17209 test ! -n "$as_dirs" || mkdir $as_dirs
17210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17211 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17212 { (exit 1); exit 1; }; }; }
17213
17214 ac_builddir=.
17215
17216 if test "$ac_dir" != .; then
17217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17218 # A "../" for each directory in $ac_dir_suffix.
17219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17220 else
17221 ac_dir_suffix= ac_top_builddir=
17222 fi
17223
17224 case $srcdir in
17225 .) # No --srcdir option. We are building in place.
17226 ac_srcdir=.
17227 if test -z "$ac_top_builddir"; then
17228 ac_top_srcdir=.
17229 else
17230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17231 fi ;;
17232 [\\/]* | ?:[\\/]* ) # Absolute path.
17233 ac_srcdir=$srcdir$ac_dir_suffix;
17234 ac_top_srcdir=$srcdir ;;
17235 *) # Relative path.
17236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17238 esac
17239
17240 # Do not use `cd foo && pwd` to compute absolute paths, because
17241 # the directories may not exist.
17242 case `pwd` in
17243 .) ac_abs_builddir="$ac_dir";;
17244 *)
17245 case "$ac_dir" in
17246 .) ac_abs_builddir=`pwd`;;
17247 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17248 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17249 esac;;
17250 esac
17251 case $ac_abs_builddir in
17252 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17253 *)
17254 case ${ac_top_builddir}. in
17255 .) ac_abs_top_builddir=$ac_abs_builddir;;
17256 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17257 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17258 esac;;
17259 esac
17260 case $ac_abs_builddir in
17261 .) ac_abs_srcdir=$ac_srcdir;;
17262 *)
17263 case $ac_srcdir in
17264 .) ac_abs_srcdir=$ac_abs_builddir;;
17265 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17266 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17267 esac;;
17268 esac
17269 case $ac_abs_builddir in
17270 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17271 *)
17272 case $ac_top_srcdir in
17273 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17274 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17275 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17276 esac;;
17277 esac
17278
17279
17280 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17281 echo "$as_me: executing $ac_dest commands" >&6;}
17282 case $ac_dest in
17283 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17284 # Strip MF so we end up with the name of the file.
17285 mf=`echo "$mf" | sed -e 's/:.*$//'`
17286 # Check whether this is an Automake generated Makefile or not.
17287 # We used to match only the files named `Makefile.in', but
17288 # some people rename them; so instead we look at the file content.
17289 # Grep'ing the first line is not enough: some people post-process
17290 # each Makefile.in and add a new line on top of each file to say so.
17291 # So let's grep whole file.
17292 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17293 dirpart=`(dirname "$mf") 2>/dev/null ||
17294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17295 X"$mf" : 'X\(//\)[^/]' \| \
17296 X"$mf" : 'X\(//\)$' \| \
17297 X"$mf" : 'X\(/\)' \| \
17298 . : '\(.\)' 2>/dev/null ||
17299 echo X"$mf" |
17300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17302 /^X\(\/\/\)$/{ s//\1/; q; }
17303 /^X\(\/\).*/{ s//\1/; q; }
17304 s/.*/./; q'`
17305 else
17306 continue
17307 fi
17308 # Extract the definition of DEPDIR, am__include, and am__quote
17309 # from the Makefile without running `make'.
17310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17311 test -z "$DEPDIR" && continue
17312 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17313 test -z "am__include" && continue
17314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17315 # When using ansi2knr, U may be empty or an underscore; expand it
17316 U=`sed -n 's/^U = //p' < "$mf"`
17317 # Find all dependency output files, they are included files with
17318 # $(DEPDIR) in their names. We invoke sed twice because it is the
17319 # simplest approach to changing $(DEPDIR) to its actual value in the
17320 # expansion.
17321 for file in `sed -n "
17322 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17324 # Make sure the directory exists.
17325 test -f "$dirpart/$file" && continue
17326 fdir=`(dirname "$file") 2>/dev/null ||
17327 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17328 X"$file" : 'X\(//\)[^/]' \| \
17329 X"$file" : 'X\(//\)$' \| \
17330 X"$file" : 'X\(/\)' \| \
17331 . : '\(.\)' 2>/dev/null ||
17332 echo X"$file" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17335 /^X\(\/\/\)$/{ s//\1/; q; }
17336 /^X\(\/\).*/{ s//\1/; q; }
17337 s/.*/./; q'`
17338 { if $as_mkdir_p; then
17339 mkdir -p $dirpart/$fdir
17340 else
17341 as_dir=$dirpart/$fdir
17342 as_dirs=
17343 while test ! -d "$as_dir"; do
17344 as_dirs="$as_dir $as_dirs"
17345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17347 X"$as_dir" : 'X\(//\)[^/]' \| \
17348 X"$as_dir" : 'X\(//\)$' \| \
17349 X"$as_dir" : 'X\(/\)' \| \
17350 . : '\(.\)' 2>/dev/null ||
17351 echo X"$as_dir" |
17352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17354 /^X\(\/\/\)$/{ s//\1/; q; }
17355 /^X\(\/\).*/{ s//\1/; q; }
17356 s/.*/./; q'`
17357 done
17358 test ! -n "$as_dirs" || mkdir $as_dirs
17359 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17360 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17361 { (exit 1); exit 1; }; }; }
17362
17363 # echo "creating $dirpart/$file"
17364 echo '# dummy' > "$dirpart/$file"
17365 done
17366 done
17367 ;;
17368 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17369 case " $CONFIG_FILES " in
17370 *" Makefile "*)
17371 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17372 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17373 ;;
17374 esac
17375
17376 # Make subdirectories and `.d' files. Look in both srcdir and
17377 # builddir for the .java files.
17378 h=`${PWDCMD-pwd}`
17379 : > deps.mk
17380 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
17381 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
17382 fgrep -v testsuite | \
17383 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
17384 while read f; do
17385 echo "include $f" >> deps.mk
17386 test -f $f || {
17387 d=`echo $f | sed -e 's,/[^/]*$,,'`
17388 if test ! -d $d; then
17389 $libgcj_basedir/../mkinstalldirs $d
17390 fi;
17391 echo > $f
17392 }
17393 done
17394 ;;
17395 esac
17396 done
17397 _ACEOF
17398
17399 cat >>$CONFIG_STATUS <<\_ACEOF
17400
17401 { (exit 0); exit 0; }
17402 _ACEOF
17403 chmod +x $CONFIG_STATUS
17404 ac_clean_files=$ac_clean_files_save
17405
17406
17407 # configure is writing to config.log, and then calls config.status.
17408 # config.status does its own redirection, appending to config.log.
17409 # Unfortunately, on DOS this fails, as config.log is still kept open
17410 # by configure, so config.status won't be able to write to it; its
17411 # output is simply discarded. So we exec the FD to /dev/null,
17412 # effectively closing config.log, so it can be properly (re)opened and
17413 # appended to by config.status. When coming back to configure, we
17414 # need to make the FD available again.
17415 if test "$no_create" != yes; then
17416 ac_cs_success=:
17417 ac_config_status_args=
17418 test "$silent" = yes &&
17419 ac_config_status_args="$ac_config_status_args --quiet"
17420 exec 5>/dev/null
17421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17422 exec 5>>config.log
17423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17424 # would make configure fail if this is the last instruction.
17425 $ac_cs_success || { (exit 1); exit 1; }
17426 fi
17427
17428 #
17429 # CONFIG_SUBDIRS section.
17430 #
17431 if test "$no_recursion" != yes; then
17432
17433 # Remove --cache-file and --srcdir arguments so they do not pile up.
17434 ac_sub_configure_args=
17435 ac_prev=
17436 for ac_arg in $ac_configure_args; do
17437 if test -n "$ac_prev"; then
17438 ac_prev=
17439 continue
17440 fi
17441 case $ac_arg in
17442 -cache-file | --cache-file | --cache-fil | --cache-fi \
17443 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17444 ac_prev=cache_file ;;
17445 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17446 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17447 | --c=*)
17448 ;;
17449 --config-cache | -C)
17450 ;;
17451 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17452 ac_prev=srcdir ;;
17453 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17454 ;;
17455 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17456 ac_prev=prefix ;;
17457 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17458 ;;
17459 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17460 esac
17461 done
17462
17463 # Always prepend --prefix to ensure using the same prefix
17464 # in subdir configurations.
17465 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17466
17467 ac_popdir=`pwd`
17468 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17469
17470 # Do not complain, so a configure script can configure whichever
17471 # parts of a large source tree are present.
17472 test -d $srcdir/$ac_dir || continue
17473
17474 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17475 echo "$as_me: configuring in $ac_dir" >&6;}
17476 { if $as_mkdir_p; then
17477 mkdir -p "$ac_dir"
17478 else
17479 as_dir="$ac_dir"
17480 as_dirs=
17481 while test ! -d "$as_dir"; do
17482 as_dirs="$as_dir $as_dirs"
17483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17485 X"$as_dir" : 'X\(//\)[^/]' \| \
17486 X"$as_dir" : 'X\(//\)$' \| \
17487 X"$as_dir" : 'X\(/\)' \| \
17488 . : '\(.\)' 2>/dev/null ||
17489 echo X"$as_dir" |
17490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17492 /^X\(\/\/\)$/{ s//\1/; q; }
17493 /^X\(\/\).*/{ s//\1/; q; }
17494 s/.*/./; q'`
17495 done
17496 test ! -n "$as_dirs" || mkdir $as_dirs
17497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17499 { (exit 1); exit 1; }; }; }
17500
17501 ac_builddir=.
17502
17503 if test "$ac_dir" != .; then
17504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17505 # A "../" for each directory in $ac_dir_suffix.
17506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17507 else
17508 ac_dir_suffix= ac_top_builddir=
17509 fi
17510
17511 case $srcdir in
17512 .) # No --srcdir option. We are building in place.
17513 ac_srcdir=.
17514 if test -z "$ac_top_builddir"; then
17515 ac_top_srcdir=.
17516 else
17517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17518 fi ;;
17519 [\\/]* | ?:[\\/]* ) # Absolute path.
17520 ac_srcdir=$srcdir$ac_dir_suffix;
17521 ac_top_srcdir=$srcdir ;;
17522 *) # Relative path.
17523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17525 esac
17526
17527 # Do not use `cd foo && pwd` to compute absolute paths, because
17528 # the directories may not exist.
17529 case `pwd` in
17530 .) ac_abs_builddir="$ac_dir";;
17531 *)
17532 case "$ac_dir" in
17533 .) ac_abs_builddir=`pwd`;;
17534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17536 esac;;
17537 esac
17538 case $ac_abs_builddir in
17539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17540 *)
17541 case ${ac_top_builddir}. in
17542 .) ac_abs_top_builddir=$ac_abs_builddir;;
17543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17545 esac;;
17546 esac
17547 case $ac_abs_builddir in
17548 .) ac_abs_srcdir=$ac_srcdir;;
17549 *)
17550 case $ac_srcdir in
17551 .) ac_abs_srcdir=$ac_abs_builddir;;
17552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17554 esac;;
17555 esac
17556 case $ac_abs_builddir in
17557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17558 *)
17559 case $ac_top_srcdir in
17560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17563 esac;;
17564 esac
17565
17566
17567 cd $ac_dir
17568
17569 # Check for guested configure; otherwise get Cygnus style configure.
17570 if test -f $ac_srcdir/configure.gnu; then
17571 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17572 elif test -f $ac_srcdir/configure; then
17573 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17574 elif test -f $ac_srcdir/configure.in; then
17575 ac_sub_configure=$ac_configure
17576 else
17577 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17578 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17579 ac_sub_configure=
17580 fi
17581
17582 # The recursion is here.
17583 if test -n "$ac_sub_configure"; then
17584 # Make the cache file name correct relative to the subdirectory.
17585 case $cache_file in
17586 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17587 *) # Relative path.
17588 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17589 esac
17590
17591 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17592 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17593 # The eval makes quoting arguments work.
17594 eval $ac_sub_configure $ac_sub_configure_args \
17595 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17596 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17597 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17598 { (exit 1); exit 1; }; }
17599 fi
17600
17601 cd "$ac_popdir"
17602 done
17603 fi
17604
This page took 0.980618 seconds and 6 git commands to generate.