]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/configure
Introduce and use config/gcc-version.m4.
[thirdparty/gcc.git] / libjava / configure
CommitLineData
ee9dd372 1#! /bin/sh
ee9dd372 2# Guess values for system-dependent variables and create Makefiles.
e3f92d3b 3# Generated by GNU Autoconf 2.59 for libjava version-unused.
ee9dd372 4#
ed698112 5# Copyright (C) 2003 Free Software Foundation, Inc.
ee9dd372
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ed698112
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
ee9dd372 248
ed698112
NN
249exec 6>&1
250
251#
252# Initializations.
253#
ee9dd372 254ac_default_prefix=/usr/local
ed698112
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
e3f92d3b
MK
268PACKAGE_NAME='libjava'
269PACKAGE_TARNAME='libjava'
270PACKAGE_VERSION='version-unused'
271PACKAGE_STRING='libjava version-unused'
272PACKAGE_BUGREPORT=''
ed698112
NN
273
274ac_unique_file="java/lang/System.java"
7614fd28 275ac_subdirs_all="$ac_subdirs_all libltdl"
ed698112
NN
276# Factoring default headers for most tests.
277ac_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
afabd8e6 313ac_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 LIBGCJ_LD_SYMBOLIC 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 USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE gcc_version_trigger gcc_version_full gcc_version tool_include_dir LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
ed698112 314ac_subst_files=''
ee9dd372
TT
315
316# Initialize some variables set by options.
ed698112
NN
317ac_init_help=
318ac_init_version=false
ee9dd372
TT
319# The variables have the same names as the options, with
320# dashes changed to underlines.
ed698112 321cache_file=/dev/null
ee9dd372 322exec_prefix=NONE
ee9dd372 323no_create=
ee9dd372
TT
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
ee9dd372
TT
332verbose=
333x_includes=NONE
334x_libraries=NONE
ed698112
NN
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.
ee9dd372
TT
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
ee9dd372
TT
354ac_prev=
355for ac_option
356do
ee9dd372
TT
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
ed698112 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ee9dd372
TT
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
ed698112 368 case $ac_option in
ee9dd372
TT
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ed698112 373 bindir=$ac_optarg ;;
ee9dd372
TT
374
375 -build | --build | --buil | --bui | --bu)
ed698112 376 ac_prev=build_alias ;;
ee9dd372 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ed698112 378 build_alias=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112
NN
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
ee9dd372
TT
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
ed698112 394 datadir=$ac_optarg ;;
ee9dd372
TT
395
396 -disable-* | --disable-*)
ed698112 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ee9dd372 398 # Reject names that are not valid shell variable names.
ed698112
NN
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" ;;
ee9dd372
TT
404
405 -enable-* | --enable-*)
ed698112 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ee9dd372 407 # Reject names that are not valid shell variable names.
ed698112
NN
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"`;;
ee9dd372
TT
414 *) ac_optarg=yes ;;
415 esac
ed698112 416 eval "enable_$ac_feature='$ac_optarg'" ;;
ee9dd372
TT
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=*)
ed698112 425 exec_prefix=$ac_optarg ;;
ee9dd372
TT
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
ed698112
NN
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 ;;
ee9dd372
TT
437
438 -host | --host | --hos | --ho)
ed698112 439 ac_prev=host_alias ;;
ee9dd372 440 -host=* | --host=* | --hos=* | --ho=*)
ed698112 441 host_alias=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 448 includedir=$ac_optarg ;;
ee9dd372
TT
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ed698112 453 infodir=$ac_optarg ;;
ee9dd372
TT
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ed698112 458 libdir=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 465 libexecdir=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 474 localstatedir=$ac_optarg ;;
ee9dd372
TT
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ed698112 479 mandir=$ac_optarg ;;
ee9dd372
TT
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 \
ed698112 486 | --no-cr | --no-c | -n)
ee9dd372
TT
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=*)
ed698112 500 oldincludedir=$ac_optarg ;;
ee9dd372
TT
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ed698112 505 prefix=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 512 program_prefix=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 519 program_suffix=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 536 program_transform_name=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 546 sbindir=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 557 sharedstatedir=$ac_optarg ;;
ee9dd372
TT
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
ed698112 562 site=$ac_optarg ;;
ee9dd372
TT
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ed698112 567 srcdir=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 574 sysconfdir=$ac_optarg ;;
ee9dd372
TT
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
ed698112 577 ac_prev=target_alias ;;
ee9dd372 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ed698112 579 target_alias=$ac_optarg ;;
ee9dd372
TT
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
ed698112
NN
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
ee9dd372
TT
586
587 -with-* | --with-*)
ed698112 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ee9dd372 589 # Reject names that are not valid shell variable names.
ed698112
NN
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; }; }
ee9dd372 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
ed698112
NN
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ee9dd372
TT
596 *) ac_optarg=yes ;;
597 esac
ed698112 598 eval "with_$ac_package='$ac_optarg'" ;;
ee9dd372
TT
599
600 -without-* | --without-*)
ed698112 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ee9dd372 602 # Reject names that are not valid shell variable names.
ed698112
NN
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" ;;
ee9dd372
TT
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=*)
ed698112 618 x_includes=$ac_optarg ;;
ee9dd372
TT
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=*)
ed698112 625 x_libraries=$ac_optarg ;;
ee9dd372 626
ed698112
NN
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
ee9dd372
TT
630 ;;
631
ed698112
NN
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
ee9dd372 642 *)
ed698112
NN
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}
ee9dd372
TT
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
ed698112
NN
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; }; }
ee9dd372 657fi
ee9dd372 658
ed698112
NN
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
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
668done
ee9dd372 669
ed698112
NN
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
ee9dd372 673do
ed698112
NN
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; }; };;
ee9dd372
TT
679 esac
680done
681
ed698112
NN
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.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if 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
698fi
ee9dd372 699
ed698112
NN
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
ee9dd372 704
ee9dd372
TT
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
ed698112
NN
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 ||
716echo 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'`
ee9dd372
TT
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
ed698112
NN
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
ee9dd372 733 else
ed698112
NN
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
ee9dd372
TT
736 fi
737fi
ed698112
NN
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; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CXXCPP_set=${CXXCPP+set}
755ac_env_CXXCPP_value=$CXXCPP
756ac_cv_env_CXXCPP_set=${CXXCPP+set}
757ac_cv_env_CXXCPP_value=$CXXCPP
758ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759ac_env_CPPFLAGS_value=$CPPFLAGS
760ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762ac_env_CPP_set=${CPP+set}
763ac_env_CPP_value=$CPP
764ac_cv_env_CPP_set=${CPP+set}
765ac_cv_env_CPP_value=$CPP
766
767#
768# Report the --help message.
769#
770if 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
e3f92d3b 774\`configure' configures libjava version-unused to adapt to many kinds of systems.
ed698112
NN
775
776Usage: $0 [OPTION]... [VAR=VALUE]...
777
778To assign environment variables (e.g., CC, CFLAGS...), specify them as
779VAR=VALUE. See below for descriptions of some of the useful variables.
780
781Defaults for the options are specified in brackets.
782
783Configuration:
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
797Installation 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
803By default, \`make install' will install all the files in
804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806for instance \`--prefix=\$HOME'.
807
808For better control, use the options below.
809
810Fine 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
827Program 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
832X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
836System 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
841fi
842
843if test -n "$ac_init_help"; then
e3f92d3b
MK
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
ed698112
NN
847 cat <<\_ACEOF
848
849Optional 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
aed6152d
NN
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
ed698112 855 --enable-multilib build many library versions (default)
e3f92d3b
MK
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
ed698112
NN
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
aed6152d
NN
869 allow compilation of several files at once
870
ed698112 871 --enable-libgcj-debug enable runtime debugging code
48d0dd75 872 --enable-gc-debug include full support for pointer backtracing etc.
ed698112 873 --enable-interpreter enable interpreter
aed6152d
NN
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
ed698112
NN
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
aed6152d
NN
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
5b7a26f6 881 --disable-rpath do not hardcode runtime library paths
ed698112
NN
882
883Optional Packages:
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
aed6152d
NN
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
ed698112
NN
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
aed6152d
NN
892 --with-win32-nlsapi=ansi or unicows or unicode
893 native MinGW libgcj Win32 OS API (default is ansi)
ed698112
NN
894 --without-libffi don't use libffi
895 --with-ecos enable runtime eCos target support
896 --with-system-zlib use installed libz
897 --with-x use the X Window System
5b7a26f6
KC
898 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
899 --without-libiconv-prefix don't search for libiconv in includedir and libdir
ed698112
NN
900
901Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
908 CXX C++ compiler command
909 CXXFLAGS C++ compiler flags
910 CXXCPP C++ preprocessor
911 CPP C preprocessor
912
913Use these variables to override the choices made by `configure' or to help
914it to find libraries and programs with nonstandard names/locations.
915
916_ACEOF
917fi
918
919if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
925
926if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930else
931 ac_dir_suffix= ac_top_builddir=
932fi
933
934case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948esac
949
950# Do not use `cd foo && pwd` to compute absolute paths, because
951# the directories may not exist.
952case `pwd` in
953.) ac_abs_builddir="$ac_dir";;
954*)
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_builddir=${ac_top_builddir}.;;
963*)
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_srcdir=$ac_srcdir;;
972*)
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978esac
979case $ac_abs_builddir in
980.) ac_abs_top_srcdir=$ac_top_srcdir;;
981*)
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987esac
988
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 fi
2c92e90f 1004 cd $ac_popdir
ed698112
NN
1005 done
1006fi
1007
1008test -n "$ac_init_help" && exit 0
1009if $ac_init_version; then
1010 cat <<\_ACEOF
e3f92d3b
MK
1011libjava configure version-unused
1012generated by GNU Autoconf 2.59
ed698112
NN
1013
1014Copyright (C) 2003 Free Software Foundation, Inc.
1015This configure script is free software; the Free Software Foundation
1016gives unlimited permission to copy, distribute and modify it.
1017_ACEOF
1018 exit 0
1019fi
1020exec 5>config.log
1021cat >&5 <<_ACEOF
1022This file contains any messages produced by compilers while
1023running configure, to aid debugging if configure makes a mistake.
1024
e3f92d3b 1025It was created by libjava $as_me version-unused, which was
ed698112
NN
1026generated by GNU Autoconf 2.59. Invocation command line was
1027
1028 $ $0 $@
1029
1030_ACEOF
1031{
1032cat <<_ASUNAME
1033## --------- ##
1034## Platform. ##
1035## --------- ##
1036
1037hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054_ASUNAME
1055
1056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057for as_dir in $PATH
1058do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062done
1063
1064} >&5
1065
1066cat >&5 <<_ACEOF
1067
1068
1069## ----------- ##
1070## Core tests. ##
1071## ----------- ##
1072
1073_ACEOF
1074
1075
1076# Keep a trace of the command line.
1077# Strip out --no-create and --no-recursion so they do not pile up.
1078# Strip out --silent because we don't want to record it for future runs.
1079# Also quote any args containing shell meta-characters.
1080# Make two passes to allow for proper duplicate-argument suppression.
1081ac_configure_args=
1082ac_configure_args0=
1083ac_configure_args1=
1084ac_sep=
1085ac_must_keep_next=false
1086for ac_pass in 1 2
1087do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123done
1124$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127# When interrupted or exit'd, cleanup temporary files, and complete
1128# config.log. We remove comments because anyway the quotes in there
1129# would cause problems or look ugly.
1130# WARNING: Be sure not to use single quotes in there, as some shells,
1131# such as our DU 5.0 friend, will then `close' the trap.
1132trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138## ---------------- ##
1139## Cache variables. ##
1140## ---------------- ##
1141_ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1144{
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
1152 *)
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ;;
1156 esac;
1157}
1158 echo
1159
1160 cat <<\_ASBOX
1161## ----------------- ##
1162## Output variables. ##
1163## ----------------- ##
1164_ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175## ------------- ##
1176## Output files. ##
1177## ------------- ##
1178_ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190## ----------- ##
1191## confdefs.h. ##
1192## ----------- ##
1193_ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1197 fi
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1205 ' 0
1206for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208done
1209ac_signal=0
1210
1211# confdefs.h avoids OS command line length limits that DEFS can exceed.
1212rm -rf conftest* confdefs.h
1213# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214echo >confdefs.h
1215
1216# Predefined preprocessor variables.
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_NAME "$PACKAGE_NAME"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_VERSION "$PACKAGE_VERSION"
1230_ACEOF
1231
ee9dd372 1232
ed698112
NN
1233cat >>confdefs.h <<_ACEOF
1234#define PACKAGE_STRING "$PACKAGE_STRING"
1235_ACEOF
1236
1237
1238cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240_ACEOF
1241
1242
1243# Let the site file select an alternate cache file if it wants to.
ee9dd372 1244# Prefer explicitly selected file to automatically selected ones.
83c02e38
ME
1245if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
ee9dd372
TT
1250 fi
1251fi
1252for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
ed698112
NN
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
ee9dd372
TT
1257 . "$ac_site_file"
1258 fi
1259done
1260
1261if test -r "$cache_file"; then
ed698112
NN
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
ee9dd372 1272else
ed698112
NN
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276fi
1277
1278# Check that the precious variables saved in the cache have kept the same
1279# value.
1280ac_cache_corrupted=false
1281for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1306 fi;;
1307 esac
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1310 case $ac_new_val in
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1314 esac
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 esac
1319 fi
1320done
1321if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
ee9dd372
TT
1327fi
1328
1329ac_ext=c
ee9dd372 1330ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
1331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
e3f92d3b
MK
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
ed698112
NN
1354
1355
1356
1357
1358
1359
1360
1361
ee9dd372
TT
1362
1363
aed6152d 1364# We use these options to decide which functions to include.
ee9dd372 1365
ee9dd372
TT
1366# Check whether --with-target-subdir or --without-target-subdir was given.
1367if test "${with_target_subdir+set}" = set; then
1368 withval="$with_target_subdir"
ee9dd372 1369
ed698112 1370fi;
ee9dd372 1371
aed6152d
NN
1372# We may get other options which we don't document:
1373# --with-target-subdir, --with-multisrctop, --with-multisubdir
ee9dd372 1374
fe3dac3d
TT
1375# When building with srcdir == objdir, links to the source files will
1376# be created in directories within the target_subdir. We have to
1377# adjust toplevel_srcdir accordingly, so that configure finds
1378# install-sh and other auxiliary files that live in the top-level
1379# source directory.
ee9dd372 1380if test "${srcdir}" = "."; then
fe3dac3d
TT
1381 if test -z "${with_target_subdir}"; then
1382 toprel=".."
ee9dd372 1383 else
fe3dac3d
TT
1384 if test "${with_target_subdir}" != "."; then
1385 toprel="${with_multisrctop}../.."
1386 else
1387 toprel="${with_multisrctop}.."
1388 fi
ee9dd372
TT
1389 fi
1390else
fe3dac3d 1391 toprel=".."
ee9dd372
TT
1392fi
1393
fe3dac3d
TT
1394libgcj_basedir=$srcdir/$toprel/./libjava
1395
1396
7f7ba9bf 1397ac_aux_dir=
e3f92d3b 1398for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7f7ba9bf
TT
1399 if test -f $ac_dir/install-sh; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 break
1403 elif test -f $ac_dir/install.sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 break
ed698112
NN
1407 elif test -f $ac_dir/shtool; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/shtool install -c"
1410 break
7f7ba9bf
TT
1411 fi
1412done
1413if test -z "$ac_aux_dir"; then
e3f92d3b
MK
1414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ed698112 1416 { (exit 1); exit 1; }; }
7f7ba9bf 1417fi
ed698112
NN
1418ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1419ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1420ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7f7ba9bf 1421
ed698112
NN
1422# Make sure we can run config.sub.
1423$ac_config_sub sun4 >/dev/null 2>&1 ||
1424 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426 { (exit 1); exit 1; }; }
1427
1428echo "$as_me:$LINENO: checking build system type" >&5
1429echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430if test "${ac_cv_build+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433 ac_cv_build_alias=$build_alias
1434test -z "$ac_cv_build_alias" &&
1435 ac_cv_build_alias=`$ac_config_guess`
1436test -z "$ac_cv_build_alias" &&
1437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439 { (exit 1); exit 1; }; }
1440ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1444
1445fi
1446echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447echo "${ECHO_T}$ac_cv_build" >&6
1448build=$ac_cv_build
1449build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454echo "$as_me:$LINENO: checking host system type" >&5
1455echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456if test "${ac_cv_host+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458else
1459 ac_cv_host_alias=$host_alias
1460test -z "$ac_cv_host_alias" &&
1461 ac_cv_host_alias=$ac_cv_build_alias
1462ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1466
1467fi
1468echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469echo "${ECHO_T}$ac_cv_host" >&6
1470host=$ac_cv_host
1471host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476echo "$as_me:$LINENO: checking target system type" >&5
1477echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478if test "${ac_cv_target+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 ac_cv_target_alias=$target_alias
1482test "x$ac_cv_target_alias" = "x" &&
1483 ac_cv_target_alias=$ac_cv_host_alias
1484ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1488
1489fi
1490echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491echo "${ECHO_T}$ac_cv_target" >&6
1492target=$ac_cv_target
1493target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7f7ba9bf 1496
7f7ba9bf
TT
1497
1498# The aliases save the names the user supplied, while $host etc.
1499# will get canonicalized.
ed698112 1500test -n "$target_alias" &&
7f7ba9bf
TT
1501 test "$program_prefix$program_suffix$program_transform_name" = \
1502 NONENONEs,x,x, &&
1503 program_prefix=${target_alias}-
bc03b358
NN
1504 case ${build_alias} in
1505 "") build_noncanonical=${build} ;;
1506 *) build_noncanonical=${build_alias} ;;
1507esac
1508
1509 case ${host_alias} in
1510 "") host_noncanonical=${build_noncanonical} ;;
1511 *) host_noncanonical=${host_alias} ;;
1512esac
1513
1514 case ${target_alias} in
1515 "") target_noncanonical=${host_noncanonical} ;;
1516 *) target_noncanonical=${target_alias} ;;
1517esac
1518
1519
60557047
MK
1520
1521
bc03b358
NN
1522# This works around the fact that libtool configuration may change LD
1523# for this particular configuration, but some shells, instead of
1524# keeping the changes in LD private, export them just because LD is
1525# exported.
1526ORIGINAL_LD_FOR_MULTILIBS=$LD
1527
ed698112
NN
1528echo "$as_me:$LINENO: checking whether ln -s works" >&5
1529echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1530LN_S=$as_ln_s
1531if test "$LN_S" = "ln -s"; then
1532 echo "$as_me:$LINENO: result: yes" >&5
1533echo "${ECHO_T}yes" >&6
bc03b358 1534else
ed698112
NN
1535 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1536echo "${ECHO_T}no, using $LN_S" >&6
bc03b358
NN
1537fi
1538
1539
1540# This works around an automake problem.
1541mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1542
1543
ed698112 1544
bc03b358
NN
1545# Check whether --with-cross-host or --without-cross-host was given.
1546if test "${with_cross_host+set}" = set; then
1547 withval="$with_cross_host"
ed698112
NN
1548
1549fi;
bc03b358
NN
1550
1551
1552# Check whether --with-newlib or --without-newlib was given.
1553if test "${with_newlib+set}" = set; then
1554 withval="$with_newlib"
bc03b358 1555
ed698112 1556fi;
bc03b358
NN
1557
1558# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1559if test "${enable_version_specific_runtime_libs+set}" = set; then
1560 enableval="$enable_version_specific_runtime_libs"
1561 case "$enableval" in
1562 yes) version_specific_libs=yes ;;
1563 no) version_specific_libs=no ;;
ed698112
NN
1564 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1565echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1566 { (exit 1); exit 1; }; };;
bc03b358
NN
1567 esac
1568else
1569 version_specific_libs=no
1570
ed698112 1571fi;
bc03b358 1572
aed6152d 1573# Default to --enable-multilib
bc03b358
NN
1574# Check whether --enable-multilib or --disable-multilib was given.
1575if test "${enable_multilib+set}" = set; then
1576 enableval="$enable_multilib"
1577 case "${enableval}" in
1578 yes) multilib=yes ;;
1579 no) multilib=no ;;
ed698112
NN
1580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1581echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1582 { (exit 1); exit 1; }; } ;;
bc03b358
NN
1583 esac
1584else
1585 multilib=yes
ed698112 1586fi;
aed6152d 1587# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
bc03b358 1588
ee9dd372 1589
ed698112
NN
1590# (1) We use an abnormal CXX (without library references), so we
1591# must cache it under a different name.
1592# (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1593# the non-multilib-adjusted value will be used in multilibs.
1594# (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1595# (4) As another side effect, automake doesn't automatically include them
1596# in Makefile.in.
1597# (5) For libstdc++-v3, -fno-builtin must be present here so that a
1598# non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1599# used in later tests. This may not be necessary in libjava; I don't know.
1600
1601
1602
1603save_CXXFLAGS="$CXXFLAGS"
1604CXXFLAGS="$CXXFLAGS -fno-builtin"
1605ac_ext=c
1606ac_cpp='$CPP $CPPFLAGS'
1607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1612set dummy ${ac_tool_prefix}gcc; ac_word=$2
1613echo "$as_me:$LINENO: checking for $ac_word" >&5
1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620else
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1631 fi
1632done
1633done
ee9dd372 1634
ed698112
NN
1635fi
1636fi
1637CC=$ac_cv_prog_CC
1638if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640echo "${ECHO_T}$CC" >&6
1641else
1642 echo "$as_me:$LINENO: result: no" >&5
1643echo "${ECHO_T}no" >&6
1644fi
54ce7452 1645
ed698112
NN
1646fi
1647if test -z "$ac_cv_prog_CC"; then
1648 ac_ct_CC=$CC
1649 # Extract the first word of "gcc", so it can be a program name with args.
ee9dd372 1650set dummy gcc; ac_word=$2
ed698112
NN
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="gcc"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 break 2
1669 fi
1670done
1671done
1672
1673fi
1674fi
1675ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678echo "${ECHO_T}$ac_ct_CC" >&6
1679else
1680 echo "$as_me:$LINENO: result: no" >&5
1681echo "${ECHO_T}no" >&6
1682fi
1683
1684 CC=$ac_ct_CC
1685else
1686 CC="$ac_cv_prog_CC"
1687fi
1688
1689if test -z "$CC"; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1692set dummy ${ac_tool_prefix}cc; ac_word=$2
1693echo "$as_me:$LINENO: checking for $ac_word" >&5
1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
1697else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700else
ed698112
NN
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="${ac_tool_prefix}cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1711 fi
1712done
1713done
1714
ee9dd372
TT
1715fi
1716fi
ed698112 1717CC=$ac_cv_prog_CC
ee9dd372 1718if test -n "$CC"; then
ed698112
NN
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720echo "${ECHO_T}$CC" >&6
1721else
1722 echo "$as_me:$LINENO: result: no" >&5
1723echo "${ECHO_T}no" >&6
1724fi
1725
1726fi
1727if test -z "$ac_cv_prog_CC"; then
1728 ac_ct_CC=$CC
1729 # Extract the first word of "cc", so it can be a program name with args.
1730set dummy cc; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="cc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
1751done
1752
1753fi
1754fi
1755ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758echo "${ECHO_T}$ac_ct_CC" >&6
1759else
1760 echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764 CC=$ac_ct_CC
ee9dd372 1765else
ed698112 1766 CC="$ac_cv_prog_CC"
ee9dd372
TT
1767fi
1768
ed698112 1769fi
ee9dd372
TT
1770if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772set dummy cc; ac_word=$2
ed698112
NN
1773echo "$as_me:$LINENO: checking for $ac_word" >&5
1774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
1777else
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1780else
ee9dd372 1781 ac_prog_rejected=no
ed698112
NN
1782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783for as_dir in $PATH
1784do
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 ac_prog_rejected=yes
1791 continue
1792 fi
1793 ac_cv_prog_CC="cc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1796 fi
1797done
1798done
1799
ee9dd372
TT
1800if test $ac_prog_rejected = yes; then
1801 # We found a bogon in the path, so make sure we never use it.
1802 set dummy $ac_cv_prog_CC
1803 shift
ed698112 1804 if test $# != 0; then
ee9dd372
TT
1805 # We chose a different compiler from the bogus one.
1806 # However, it has the same basename, so the bogon will be chosen
1807 # first if we set CC to just the basename; use the full file name.
1808 shift
ed698112 1809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ee9dd372
TT
1810 fi
1811fi
1812fi
1813fi
ed698112 1814CC=$ac_cv_prog_CC
ee9dd372 1815if test -n "$CC"; then
ed698112
NN
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817echo "${ECHO_T}$CC" >&6
ee9dd372 1818else
ed698112
NN
1819 echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6
ee9dd372
TT
1821fi
1822
ed698112
NN
1823fi
1824if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1826 for ac_prog in cl
1827 do
1828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
158a8e6b
AO
1834else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837else
ed698112
NN
1838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1848 fi
1849done
1850done
1851
158a8e6b
AO
1852fi
1853fi
ed698112 1854CC=$ac_cv_prog_CC
158a8e6b 1855if test -n "$CC"; then
ed698112
NN
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857echo "${ECHO_T}$CC" >&6
158a8e6b 1858else
ed698112
NN
1859 echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6
158a8e6b 1861fi
ed698112
NN
1862
1863 test -n "$CC" && break
1864 done
1865fi
1866if test -z "$CC"; then
1867 ac_ct_CC=$CC
1868 for ac_prog in cl
1869do
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871set dummy $ac_prog; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879else
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="$ac_prog"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
158a8e6b 1890 fi
ed698112
NN
1891done
1892done
1893
1894fi
1895fi
1896ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899echo "${ECHO_T}$ac_ct_CC" >&6
1900else
1901 echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
ee9dd372
TT
1903fi
1904
ed698112
NN
1905 test -n "$ac_ct_CC" && break
1906done
1907
1908 CC=$ac_ct_CC
1909fi
1910
1911fi
1912
1913
1914test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1915See \`config.log' for more details." >&5
1916echo "$as_me: error: no acceptable C compiler found in \$PATH
1917See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1919
1920# Provide some information about the compiler.
1921echo "$as_me:$LINENO:" \
1922 "checking for C compiler version" >&5
1923ac_compiler=`set X $ac_compile; echo $2`
1924{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1925 (eval $ac_compiler --version </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1930 (eval $ac_compiler -v </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1935 (eval $ac_compiler -V </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939
1940cat >conftest.$ac_ext <<_ACEOF
1941/* confdefs.h. */
1942_ACEOF
1943cat confdefs.h >>conftest.$ac_ext
1944cat >>conftest.$ac_ext <<_ACEOF
1945/* end confdefs.h. */
1946
1947int
1948main ()
1949{
1950
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955# FIXME: Cleanup?
1956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957 (eval $ac_link) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1961 gcc_no_link=no
1962else
1963 gcc_no_link=yes
1964fi
1965
1966if test x$gcc_no_link = xyes; then
1967 # Setting cross_compile will disable run tests; it will
1968 # also disable AC_CHECK_FILE but that's generally
1969 # correct if we can't link.
1970 cross_compiling=yes
1971 EXEEXT=
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
158a8e6b 1983
ed698112
NN
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988ac_clean_files_save=$ac_clean_files
1989ac_clean_files="$ac_clean_files a.out a.exe b.out"
1990# Try to create an executable without -o first, disregard a.out.
1991# It will help us diagnose broken compilers, and finding out an intuition
1992# of exeext.
1993echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1994echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1995ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2003# resort.
2004
2005# Be careful to initialize this variable, since it used to be cached.
2006# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007ac_cv_exeext=
2008# b.out is created by i960 compilers.
2009for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2010do
2011 test -f "$ac_file" || continue
2012 case $ac_file in
2013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2014 ;;
2015 conftest.$ac_ext )
2016 # This is the source file.
2017 ;;
2018 [ab].out )
2019 # We found the default executable, but exeext='' is most
2020 # certainly right.
2021 break;;
2022 *.* )
2023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024 # FIXME: I believe we export ac_cv_exeext for Libtool,
2025 # but it would be cool to find out if it's true. Does anybody
2026 # maintain Libtool? --akim.
2027 export ac_cv_exeext
2028 break;;
2029 * )
2030 break;;
2031 esac
2032done
ee9dd372 2033else
ed698112
NN
2034 echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2038See \`config.log' for more details." >&5
2039echo "$as_me: error: C compiler cannot create executables
2040See \`config.log' for more details." >&2;}
2041 { (exit 77); exit 77; }; }
2042fi
2043
2044ac_exeext=$ac_cv_exeext
2045echo "$as_me:$LINENO: result: $ac_file" >&5
2046echo "${ECHO_T}$ac_file" >&6
2047
2048# Check the compiler produces executables we can run. If not, either
2049# the compiler is broken, or we cross compile.
2050echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2051echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2052# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2053# If not cross compiling, check that we can run a simple program.
2054if test "$cross_compiling" != yes; then
2055 if { ac_try='./$ac_file'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 cross_compiling=no
2062 else
2063 if test "$cross_compiling" = maybe; then
2064 cross_compiling=yes
2065 else
2066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2067If you meant to cross compile, use \`--host'.
2068See \`config.log' for more details." >&5
2069echo "$as_me: error: cannot run C compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074 fi
2075fi
2076echo "$as_me:$LINENO: result: yes" >&5
2077echo "${ECHO_T}yes" >&6
2078
2079rm -f a.out a.exe conftest$ac_cv_exeext b.out
2080ac_clean_files=$ac_clean_files_save
2081# Check the compiler produces executables we can run. If not, either
2082# the compiler is broken, or we cross compile.
2083echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086echo "${ECHO_T}$cross_compiling" >&6
2087
2088echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097# work properly (i.e., refer to `conftest.exe'), while it won't with
2098# `rm'.
2099for ac_file in conftest.exe conftest conftest.*; do
2100 test -f "$ac_file" || continue
2101 case $ac_file in
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104 export ac_cv_exeext
2105 break;;
2106 * ) break;;
2107 esac
2108done
ee9dd372 2109else
ed698112
NN
2110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2111See \`config.log' for more details." >&5
2112echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2113See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
ee9dd372 2115fi
ed698112
NN
2116
2117rm -f conftest$ac_cv_exeext
2118echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2119echo "${ECHO_T}$ac_cv_exeext" >&6
2120
2121rm -f conftest.$ac_ext
2122EXEEXT=$ac_cv_exeext
2123ac_exeext=$EXEEXT
ee9dd372 2124fi
ed698112
NN
2125echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127if test "${ac_cv_objext+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h. */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h. */
ee9dd372 2136
ed698112
NN
2137int
2138main ()
2139{
ee9dd372 2140
ed698112
NN
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145rm -f conftest.o conftest.obj
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155 break;;
2156 esac
2157done
158a8e6b 2158else
ed698112
NN
2159 echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
158a8e6b
AO
2167fi
2168
ed698112
NN
2169rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170fi
2171echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172echo "${ECHO_T}$ac_cv_objext" >&6
2173OBJEXT=$ac_cv_objext
2174ac_objext=$OBJEXT
2175echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
2186
2187int
2188main ()
2189{
2190#ifndef __GNUC__
2191 choke me
2192#endif
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2c92e90f
KC
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
ed698112
NN
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_compiler_gnu=yes
2221else
2222 echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225ac_compiler_gnu=no
2226fi
2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228ac_cv_c_compiler_gnu=$ac_compiler_gnu
2229
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233GCC=`test $ac_compiler_gnu = yes && echo yes`
2234ac_test_CFLAGS=${CFLAGS+set}
2235ac_save_CFLAGS=$CFLAGS
2236CFLAGS="-g"
2237echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239if test "${ac_cv_prog_cc_g+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h. */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h. */
2248
2249int
2250main ()
2251{
2252
2253 ;
2254 return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2c92e90f
KC
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
ed698112
NN
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
ee9dd372
TT
2279 ac_cv_prog_cc_g=yes
2280else
ed698112
NN
2281 echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 2283
ed698112 2284ac_cv_prog_cc_g=no
ee9dd372 2285fi
ed698112
NN
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
158a8e6b 2290if test "$ac_test_CFLAGS" = set; then
ed698112 2291 CFLAGS=$ac_save_CFLAGS
158a8e6b
AO
2292elif test $ac_cv_prog_cc_g = yes; then
2293 if test "$GCC" = yes; then
ee9dd372
TT
2294 CFLAGS="-g -O2"
2295 else
158a8e6b 2296 CFLAGS="-g"
ee9dd372
TT
2297 fi
2298else
158a8e6b
AO
2299 if test "$GCC" = yes; then
2300 CFLAGS="-O2"
2301 else
2302 CFLAGS=
2303 fi
ee9dd372 2304fi
ed698112
NN
2305echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 ac_cv_prog_cc_stdc=no
2311ac_save_CC=$CC
2312cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318#include <stdarg.h>
2319#include <stdio.h>
2320#include <sys/types.h>
2321#include <sys/stat.h>
2322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2323struct buf { int x; };
2324FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325static char *e (p, i)
2326 char **p;
2327 int i;
2328{
2329 return p[i];
2330}
2331static char *f (char * (*g) (char **, int), char **p, ...)
2332{
2333 char *s;
2334 va_list v;
2335 va_start (v,p);
2336 s = g (p, va_arg (v,int));
2337 va_end (v);
2338 return s;
2339}
ee9dd372 2340
ed698112
NN
2341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2342 function prototypes and stuff, but not '\xHH' hex character constants.
2343 These don't provoke an error unfortunately, instead are silently treated
2344 as 'x'. The following induces an error, until -std1 is added to get
2345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2346 array size at least. It's necessary to write '\x00'==0 to get something
2347 that's true only with -std1. */
2348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2349
2350int test (int i, double x);
2351struct s1 {int (*f) (int a);};
2352struct s2 {int (*f) (double a);};
2353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354int argc;
2355char **argv;
2356int
2357main ()
2358{
2359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2360 ;
2361 return 0;
2362}
2363_ACEOF
2364# Don't try gcc -ansi; that turns off useful extensions and
2365# breaks some systems' header files.
2366# AIX -qlanglvl=ansi
2367# Ultrix and OSF/1 -std1
2368# HP-UX 10.20 and later -Ae
2369# HP-UX older versions -Aa -D_HPUX_SOURCE
2370# SVR4 -Xc -D__EXTENSIONS__
2371for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372do
2373 CC="$ac_save_CC $ac_arg"
2374 rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2c92e90f
KC
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
ed698112
NN
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); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc=$ac_arg
2397break
2398else
2399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402fi
2403rm -f conftest.err conftest.$ac_objext
2404done
2405rm -f conftest.$ac_ext conftest.$ac_objext
2406CC=$ac_save_CC
e2ea015c 2407
ed698112 2408fi
e2ea015c 2409
ed698112
NN
2410case "x$ac_cv_prog_cc_stdc" in
2411 x|xno)
2412 echo "$as_me:$LINENO: result: none needed" >&5
2413echo "${ECHO_T}none needed" >&6 ;;
2414 *)
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417 CC="$CC $ac_cv_prog_cc_stdc" ;;
2418esac
e2ea015c 2419
ed698112
NN
2420# Some people use a C++ compiler to compile C. Since we use `exit',
2421# in C++ we need to declare it. In case someone uses the same compiler
2422# for both compiling C and C++ we need to have the C++ compiler decide
2423# the declaration of exit, since it's the most demanding environment.
2424cat >conftest.$ac_ext <<_ACEOF
2425#ifndef __cplusplus
2426 choke me
2427#endif
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2c92e90f
KC
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
ed698112
NN
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 for ac_declaration in \
2452 '' \
2453 'extern "C" void std::exit (int) throw (); using std::exit;' \
2454 'extern "C" void std::exit (int); using std::exit;' \
2455 'extern "C" void exit (int) throw ();' \
2456 'extern "C" void exit (int);' \
2457 'void exit (int);'
ee9dd372 2458do
ed698112
NN
2459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
2464/* end confdefs.h. */
2465$ac_declaration
2466#include <stdlib.h>
2467int
2468main ()
2469{
2470exit (42);
2471 ;
2472 return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2c92e90f
KC
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
ed698112
NN
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 :
ee9dd372 2498else
ed698112
NN
2499 echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502continue
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h. */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h. */
2511$ac_declaration
2512int
2513main ()
2514{
2515exit (42);
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2c92e90f
KC
2529 { ac_try='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
ed698112
NN
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543else
2544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
ee9dd372 2547fi
ed698112
NN
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549done
2550rm -f conftest*
2551if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
ee9dd372 2555fi
ed698112 2556
ee9dd372 2557else
ed698112
NN
2558 echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
ee9dd372 2561fi
ed698112
NN
2562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563ac_ext=c
2564ac_cpp='$CPP $CPPFLAGS'
2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567ac_compiler_gnu=$ac_cv_c_compiler_gnu
ee9dd372 2568
ed698112
NN
2569ac_ext=cc
2570ac_cpp='$CXXCPP $CPPFLAGS'
2571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574if test -n "$ac_tool_prefix"; then
2575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2576 do
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579echo "$as_me:$LINENO: checking for $ac_word" >&5
2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581if test "${glibcxx_cv_prog_CXX+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 if test -n "$CXX"; then
2585 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598done
ee9dd372 2599done
158a8e6b 2600
ed698112
NN
2601fi
2602fi
2603CXX=$glibcxx_cv_prog_CXX
2604if test -n "$CXX"; then
2605 echo "$as_me:$LINENO: result: $CXX" >&5
2606echo "${ECHO_T}$CXX" >&6
2607else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610fi
ee9dd372 2611
ed698112
NN
2612 test -n "$CXX" && break
2613 done
2614fi
2615if test -z "$CXX"; then
2616 ac_ct_CXX=$CXX
2617 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2618do
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620set dummy $ac_prog; ac_word=$2
2621echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 2625else
ed698112
NN
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
ee9dd372 2628else
ed698112
NN
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642
2643fi
ee9dd372 2644fi
ed698112
NN
2645ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646if test -n "$ac_ct_CXX"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648echo "${ECHO_T}$ac_ct_CXX" >&6
2649else
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
ee9dd372
TT
2652fi
2653
ed698112
NN
2654 test -n "$ac_ct_CXX" && break
2655done
2656test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657
2658 CXX=$ac_ct_CXX
2659fi
2660
2661
2662# Provide some information about the compiler.
2663echo "$as_me:$LINENO:" \
2664 "checking for C++ compiler version" >&5
2665ac_compiler=`set X $ac_compile; echo $2`
2666{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 (eval $ac_compiler --version </dev/null >&5) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 (eval $ac_compiler -v </dev/null >&5) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 (eval $ac_compiler -V </dev/null >&5) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681
2682echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
ee9dd372 2693
ed698112
NN
2694int
2695main ()
2696{
2697#ifndef __GNUC__
2698 choke me
2699#endif
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2c92e90f
KC
2714 { ac_try='test -z "$ac_cxx_werror_flag"
2715 || test ! -s conftest.err'
ed698112
NN
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_compiler_gnu=yes
2728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732ac_compiler_gnu=no
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2736
2737fi
2738echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740GXX=`test $ac_compiler_gnu = yes && echo yes`
2741ac_test_CXXFLAGS=${CXXFLAGS+set}
2742ac_save_CXXFLAGS=$CXXFLAGS
2743CXXFLAGS="-g"
2744echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746if test "${ac_cv_prog_cxx_g+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749 cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
2755
2756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2c92e90f
KC
2773 { ac_try='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
ed698112
NN
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
ee9dd372
TT
2786 ac_cv_prog_cxx_g=yes
2787else
ed698112
NN
2788 echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 2790
ed698112 2791ac_cv_prog_cxx_g=no
ee9dd372 2792fi
ed698112
NN
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794fi
2795echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797if test "$ac_test_CXXFLAGS" = set; then
2798 CXXFLAGS=$ac_save_CXXFLAGS
2799elif test $ac_cv_prog_cxx_g = yes; then
2800 if test "$GXX" = yes; then
ee9dd372
TT
2801 CXXFLAGS="-g -O2"
2802 else
ed698112
NN
2803 CXXFLAGS="-g"
2804 fi
2805else
2806 if test "$GXX" = yes; then
45597167 2807 CXXFLAGS="-O2"
ed698112
NN
2808 else
2809 CXXFLAGS=
45597167 2810 fi
ed698112
NN
2811fi
2812for ac_declaration in \
2813 '' \
2814 'extern "C" void std::exit (int) throw (); using std::exit;' \
2815 'extern "C" void std::exit (int); using std::exit;' \
2816 'extern "C" void exit (int) throw ();' \
2817 'extern "C" void exit (int);' \
2818 'void exit (int);'
2819do
2820 cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h. */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h. */
2826$ac_declaration
2827#include <stdlib.h>
2828int
2829main ()
2830{
2831exit (42);
2832 ;
2833 return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext
2837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2c92e90f
KC
2845 { ac_try='test -z "$ac_cxx_werror_flag"
2846 || test ! -s conftest.err'
ed698112
NN
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 :
2859else
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863continue
2864fi
2865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 cat >conftest.$ac_ext <<_ACEOF
2867/* confdefs.h. */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h. */
2872$ac_declaration
2873int
2874main ()
2875{
2876exit (42);
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881rm -f conftest.$ac_objext
2882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2c92e90f
KC
2890 { ac_try='test -z "$ac_cxx_werror_flag"
2891 || test ! -s conftest.err'
ed698112
NN
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 break
e2ea015c 2904else
ed698112
NN
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908fi
2909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910done
2911rm -f conftest*
2912if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
158a8e6b
AO
2916fi
2917
ed698112
NN
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924CXXFLAGS="$save_CXXFLAGS"
2925
2926
2927
2928
158a8e6b 2929
e3f92d3b 2930am__api_version="1.9"
36609570
NN
2931# Find a good install program. We prefer a C program (faster),
2932# so one script is as good as another. But avoid the broken or
2933# incompatible versions:
2934# SysV /etc/install, /usr/sbin/install
2935# SunOS /usr/etc/install
2936# IRIX /sbin/install
2937# AIX /bin/install
ed698112 2938# AmigaOS /C/install, which installs bootblocks on floppy discs
36609570
NN
2939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 2942# OS/2's system install, which has a completely different semantic
36609570 2943# ./install, which can be erroneously created by make from ./install.sh.
ed698112
NN
2944echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
36609570 2946if test -z "$INSTALL"; then
ed698112
NN
2947if test "${ac_cv_path_install+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
36609570 2949else
ed698112
NN
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2956case $as_dir/ in
2957 ./ | .// | /cC/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960 /usr/ucb/* ) ;;
2961 *)
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2964 # by default.
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36609570 2968 if test $ac_prog = install &&
ed698112 2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36609570
NN
2970 # AIX install. It has an incompatible calling convention.
2971 :
ed698112
NN
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2975 :
36609570 2976 else
ed698112
NN
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978 break 3
36609570
NN
2979 fi
2980 fi
2981 done
ed698112
NN
2982 done
2983 ;;
2984esac
2985done
2986
36609570
NN
2987
2988fi
2989 if test "${ac_cv_path_install+set}" = set; then
ed698112 2990 INSTALL=$ac_cv_path_install
36609570
NN
2991 else
2992 # As a last resort, use the slow shell script. We don't cache a
2993 # path for INSTALL within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the path is relative.
ed698112 2996 INSTALL=$ac_install_sh
36609570
NN
2997 fi
2998fi
ed698112
NN
2999echo "$as_me:$LINENO: result: $INSTALL" >&5
3000echo "${ECHO_T}$INSTALL" >&6
36609570
NN
3001
3002# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003# It thinks the first close brace ends the variable substitution.
3004test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3005
ed698112 3006test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36609570
NN
3007
3008test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3009
ed698112
NN
3010echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3011echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
36609570
NN
3012# Just in case
3013sleep 1
e3f92d3b 3014echo timestamp > conftest.file
36609570
NN
3015# Do `set' in a subshell so we don't clobber the current shell's
3016# arguments. Must try -L first in case configure is actually a
3017# symlink; some systems play weird games with the mod time of symlinks
3018# (eg FreeBSD returns the mod time of the symlink's containing
3019# directory).
3020if (
e3f92d3b 3021 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
36609570
NN
3022 if test "$*" = "X"; then
3023 # -L didn't work.
e3f92d3b 3024 set X `ls -t $srcdir/configure conftest.file`
36609570 3025 fi
e3f92d3b
MK
3026 rm -f conftest.file
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
36609570
NN
3029
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
ed698112
NN
3034 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3035alias in your environment" >&5
3036echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3037alias in your environment" >&2;}
3038 { (exit 1); exit 1; }; }
36609570
NN
3039 fi
3040
e3f92d3b 3041 test "$2" = conftest.file
36609570
NN
3042 )
3043then
3044 # Ok.
3045 :
3046else
ed698112
NN
3047 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048Check your system clock" >&5
3049echo "$as_me: error: newly created file is older than distributed files!
3050Check your system clock" >&2;}
3051 { (exit 1); exit 1; }; }
36609570 3052fi
ed698112
NN
3053echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
36609570 3055test "$program_prefix" != NONE &&
ed698112 3056 program_transform_name="s,^,$program_prefix,;$program_transform_name"
36609570
NN
3057# Use a double $ so make ignores it.
3058test "$program_suffix" != NONE &&
ed698112
NN
3059 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3060# Double any \ or $. echo might interpret backslashes.
3061# By default was `s,x,x', remove it if useless.
3062cat <<\_ACEOF >conftest.sed
3063s/[\\$]/&&/g;s/;s,x,x,$//
3064_ACEOF
3065program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3066rm conftest.sed
3067
e3f92d3b
MK
3068# expand $ac_aux_dir to an absolute path
3069am_aux_dir=`cd $ac_aux_dir && pwd`
3070
3071test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3072# Use eval to expand $SHELL
3073if eval "$MISSING --run true"; then
3074 am_missing_run="$MISSING --run "
3075else
3076 am_missing_run=
3077 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3078echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3079fi
3080
3081if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3082 # We used to keeping the `.' as first argument, in order to
3083 # allow $(mkdir_p) to be used without argument. As in
3084 # $(mkdir_p) $(somedir)
3085 # where $(somedir) is conditionally defined. However this is wrong
3086 # for two reasons:
3087 # 1. if the package is installed by a user who cannot write `.'
3088 # make install will fail,
3089 # 2. the above comment should most certainly read
3090 # $(mkdir_p) $(DESTDIR)$(somedir)
3091 # so it does not work when $(somedir) is undefined and
3092 # $(DESTDIR) is not.
3093 # To support the latter case, we have to write
3094 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3095 # so the `.' trick is pointless.
3096 mkdir_p='mkdir -p --'
3097else
3098 # On NextStep and OpenStep, the `mkdir' command does not
3099 # recognize any option. It will interpret all options as
3100 # directories to create, and then abort because `.' already
3101 # exists.
3102 for d in ./-p ./--version;
3103 do
3104 test -d $d && rmdir $d
3105 done
3106 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107 if test -f "$ac_aux_dir/mkinstalldirs"; then
3108 mkdir_p='$(mkinstalldirs)'
3109 else
3110 mkdir_p='$(install_sh) -d'
3111 fi
3112fi
3113
3114for ac_prog in gawk mawk nawk awk
3115do
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117set dummy $ac_prog; ac_word=$2
3118echo "$as_me:$LINENO: checking for $ac_word" >&5
3119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120if test "${ac_cv_prog_AWK+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_AWK="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137done
3138done
3139
3140fi
3141fi
3142AWK=$ac_cv_prog_AWK
3143if test -n "$AWK"; then
3144 echo "$as_me:$LINENO: result: $AWK" >&5
3145echo "${ECHO_T}$AWK" >&6
3146else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149fi
3150
3151 test -n "$AWK" && break
3152done
3153
ed698112
NN
3154echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3155echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3156set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3157if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 cat >conftest.make <<\_ACEOF
36609570 3161all:
ed698112
NN
3162 @echo 'ac_maketemp="$(MAKE)"'
3163_ACEOF
36609570 3164# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ed698112 3165eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36609570
NN
3166if test -n "$ac_maketemp"; then
3167 eval ac_cv_prog_make_${ac_make}_set=yes
3168else
3169 eval ac_cv_prog_make_${ac_make}_set=no
3170fi
ed698112 3171rm -f conftest.make
36609570
NN
3172fi
3173if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ed698112
NN
3174 echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
36609570
NN
3176 SET_MAKE=
3177else
ed698112
NN
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
36609570
NN
3180 SET_MAKE="MAKE=${MAKE-make}"
3181fi
3182
e3f92d3b
MK
3183rm -rf .tst 2>/dev/null
3184mkdir .tst 2>/dev/null
3185if test -d .tst; then
3186 am__leading_dot=.
3187else
3188 am__leading_dot=_
3189fi
3190rmdir .tst 2>/dev/null
3191
3192DEPDIR="${am__leading_dot}deps"
3193
3194 ac_config_commands="$ac_config_commands depfiles"
3195
3196
3197am_make=${MAKE-make}
3198cat > confinc << 'END'
3199am__doit:
3200 @echo done
3201.PHONY: am__doit
3202END
3203# If we don't find an include directive, just comment out the code.
3204echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3205echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3206am__include="#"
3207am__quote=
3208_am_result=none
3209# First try GNU make style include.
3210echo "include confinc" > confmf
3211# We grep out `Entering directory' and `Leaving directory'
3212# messages which can occur if `w' ends up in MAKEFLAGS.
3213# In particular we don't look at `^make:' because GNU make might
3214# be invoked under some other name (usually "gmake"), in which
3215# case it prints its new name instead of `make'.
3216if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3217 am__include=include
3218 am__quote=
3219 _am_result=GNU
3220fi
3221# Now try BSD make style include.
3222if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3225 am__include=.include
3226 am__quote="\""
3227 _am_result=BSD
3228 fi
3229fi
3230
3231
3232echo "$as_me:$LINENO: result: $_am_result" >&5
3233echo "${ECHO_T}$_am_result" >&6
3234rm -f confinc confmf
3235
3236# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3237if test "${enable_dependency_tracking+set}" = set; then
3238 enableval="$enable_dependency_tracking"
3239
3240fi;
3241if test "x$enable_dependency_tracking" != xno; then
3242 am_depcomp="$ac_aux_dir/depcomp"
3243 AMDEPBACKSLASH='\'
3244fi
3245
3246
3247if test "x$enable_dependency_tracking" != xno; then
3248 AMDEP_TRUE=
3249 AMDEP_FALSE='#'
3250else
3251 AMDEP_TRUE='#'
3252 AMDEP_FALSE=
3253fi
158a8e6b 3254
9d577a61 3255
9d577a61 3256
e3f92d3b
MK
3257# test to see if srcdir already configured
3258if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259 test -f $srcdir/config.status; then
ed698112
NN
3260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3261echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3262 { (exit 1); exit 1; }; }
9d577a61 3263fi
ed698112 3264
e3f92d3b
MK
3265# test whether we have cygpath
3266if test -z "$CYGPATH_W"; then
3267 if (cygpath --version) >/dev/null 2>/dev/null; then
3268 CYGPATH_W='cygpath -w'
3269 else
3270 CYGPATH_W=echo
3271 fi
3272fi
3273
3274
3275# Define the identity of the package.
3276 PACKAGE='libjava'
3277 VERSION='version-unused'
3278
3279
ed698112 3280cat >>confdefs.h <<_ACEOF
158a8e6b 3281#define PACKAGE "$PACKAGE"
ed698112 3282_ACEOF
158a8e6b 3283
ed698112
NN
3284
3285cat >>confdefs.h <<_ACEOF
158a8e6b 3286#define VERSION "$VERSION"
ed698112 3287_ACEOF
158a8e6b 3288
e3f92d3b
MK
3289# Some tools Automake needs.
3290
3291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3292
3293
3294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
158a8e6b 3295
8107bcf9 3296
e3f92d3b
MK
3297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3298
3299
3300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3301
3302
3303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3304
3305install_sh=${install_sh-"$am_aux_dir/install-sh"}
3306
3307# Installed binaries are usually stripped using `strip' when the user
3308# run `make install-strip'. However `strip' might not be the right
3309# tool to use in cross-compilation environments, therefore Automake
3310# will honor the `STRIP' environment variable to overrule this program.
3311if test "$cross_compiling" != no; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314set dummy ${ac_tool_prefix}strip; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_STRIP+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335done
3336
3337fi
3338fi
3339STRIP=$ac_cv_prog_STRIP
3340if test -n "$STRIP"; then
3341 echo "$as_me:$LINENO: result: $STRIP" >&5
3342echo "${ECHO_T}$STRIP" >&6
ee9dd372 3343else
e3f92d3b
MK
3344 echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
158a8e6b
AO
3346fi
3347
e3f92d3b
MK
3348fi
3349if test -z "$ac_cv_prog_STRIP"; then
3350 ac_ct_STRIP=$STRIP
3351 # Extract the first word of "strip", so it can be a program name with args.
3352set dummy strip; ac_word=$2
3353echo "$as_me:$LINENO: checking for $ac_word" >&5
3354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358 if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9d577a61 3360else
e3f92d3b
MK
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_STRIP="strip"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372done
3373done
3374
3375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3376fi
3377fi
3378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3379if test -n "$ac_ct_STRIP"; then
3380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3381echo "${ECHO_T}$ac_ct_STRIP" >&6
3382else
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
158a8e6b
AO
3385fi
3386
e3f92d3b 3387 STRIP=$ac_ct_STRIP
158a8e6b 3388else
e3f92d3b 3389 STRIP="$ac_cv_prog_STRIP"
9d577a61 3390fi
158a8e6b 3391
e3f92d3b
MK
3392fi
3393INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3394
3395# We need awk for the "check" target. The system "awk" is bad on
3396# some platforms.
3397# Always define AMTAR for backward compatibility.
3398
3399AMTAR=${AMTAR-"${am_missing_run}tar"}
3400
3401am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3402
3403
3404
3405
3406depcc="$CC" am_compiler_list=
3407
3408echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3418 # in D'.
3419 mkdir conftest.dir
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3423 cd conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3429 # directory.
3430 mkdir sub
3431
3432 am_cv_CC_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435 fi
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3440 #
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3444 : > sub/conftest.c
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3450 done
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452
3453 case $depmode in
3454 nosideeffect)
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3458 continue
3459 else
3460 break
3461 fi
3462 ;;
3463 none) break ;;
3464 esac
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3486 break
3487 fi
3488 fi
3489 done
3490
3491 cd ..
3492 rm -rf conftest.dir
3493else
3494 am_cv_CC_dependencies_compiler_type=none
3495fi
3496
3497fi
3498echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3500CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3501
3502
3503
3504if
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3507 am__fastdepCC_TRUE=
3508 am__fastdepCC_FALSE='#'
3509else
3510 am__fastdepCC_TRUE='#'
3511 am__fastdepCC_FALSE=
3512fi
3513
3514
3515depcc="$CXX" am_compiler_list=
3516
3517echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
158a8e6b 3521else
e3f92d3b
MK
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3527 # in D'.
3528 mkdir conftest.dir
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3532 cd conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3538 # directory.
3539 mkdir sub
3540
3541 am_cv_CXX_dependencies_compiler_type=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544 fi
3545 for depmode in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3549 #
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3553 : > sub/conftest.c
3554 for i in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub/conftst$i.h
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561
3562 case $depmode in
3563 nosideeffect)
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3567 continue
3568 else
3569 break
3570 fi
3571 ;;
3572 none) break ;;
3573 esac
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CXX_dependencies_compiler_type=$depmode
3595 break
3596 fi
3597 fi
3598 done
3599
3600 cd ..
3601 rm -rf conftest.dir
3602else
3603 am_cv_CXX_dependencies_compiler_type=none
8107bcf9
PB
3604fi
3605
e3f92d3b
MK
3606fi
3607echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3608echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3609CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3610
3611
3612
3613if
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3616 am__fastdepCXX_TRUE=
3617 am__fastdepCXX_FALSE='#'
9d577a61 3618else
e3f92d3b
MK
3619 am__fastdepCXX_TRUE='#'
3620 am__fastdepCXX_FALSE=
158a8e6b
AO
3621fi
3622
3623
ee9dd372 3624
e3f92d3b 3625
ed698112
NN
3626if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
ee9dd372 3628set dummy ${ac_tool_prefix}as; ac_word=$2
ed698112
NN
3629echo "$as_me:$LINENO: checking for $ac_word" >&5
3630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631if test "${ac_cv_prog_AS+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3633else
3634 if test -n "$AS"; then
3635 ac_cv_prog_AS="$AS" # Let the user override the test.
3636else
ed698112
NN
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_AS="${ac_tool_prefix}as"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648done
3649done
3650
ee9dd372
TT
3651fi
3652fi
ed698112 3653AS=$ac_cv_prog_AS
ee9dd372 3654if test -n "$AS"; then
ed698112
NN
3655 echo "$as_me:$LINENO: result: $AS" >&5
3656echo "${ECHO_T}$AS" >&6
ee9dd372 3657else
ed698112
NN
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
3660fi
3661
ee9dd372 3662fi
ed698112
NN
3663if test -z "$ac_cv_prog_AS"; then
3664 ac_ct_AS=$AS
3665 # Extract the first word of "as", so it can be a program name with args.
3666set dummy as; ac_word=$2
3667echo "$as_me:$LINENO: checking for $ac_word" >&5
3668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672 if test -n "$ac_ct_AS"; then
3673 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_AS="as"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687done
ee9dd372 3688
ed698112
NN
3689fi
3690fi
3691ac_ct_AS=$ac_cv_prog_ac_ct_AS
3692if test -n "$ac_ct_AS"; then
3693 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3694echo "${ECHO_T}$ac_ct_AS" >&6
3695else
3696 echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698fi
ee9dd372 3699
ed698112
NN
3700 AS=$ac_ct_AS
3701else
3702 AS="$ac_cv_prog_AS"
3703fi
ee9dd372 3704
ed698112
NN
3705if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
ee9dd372 3707set dummy ${ac_tool_prefix}ar; ac_word=$2
ed698112
NN
3708echo "$as_me:$LINENO: checking for $ac_word" >&5
3709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710if test "${ac_cv_prog_AR+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3712else
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3715else
ed698112
NN
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_AR="${ac_tool_prefix}ar"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727done
3728done
3729
ee9dd372
TT
3730fi
3731fi
ed698112 3732AR=$ac_cv_prog_AR
ee9dd372 3733if test -n "$AR"; then
ed698112
NN
3734 echo "$as_me:$LINENO: result: $AR" >&5
3735echo "${ECHO_T}$AR" >&6
ee9dd372 3736else
ed698112
NN
3737 echo "$as_me:$LINENO: result: no" >&5
3738echo "${ECHO_T}no" >&6
3739fi
3740
ee9dd372 3741fi
ed698112
NN
3742if test -z "$ac_cv_prog_AR"; then
3743 ac_ct_AR=$AR
3744 # Extract the first word of "ar", so it can be a program name with args.
3745set dummy ar; ac_word=$2
3746echo "$as_me:$LINENO: checking for $ac_word" >&5
3747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test -n "$ac_ct_AR"; then
3752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_AR="ar"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766done
ee9dd372 3767
ed698112
NN
3768fi
3769fi
3770ac_ct_AR=$ac_cv_prog_ac_ct_AR
3771if test -n "$ac_ct_AR"; then
3772 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3773echo "${ECHO_T}$ac_ct_AR" >&6
3774else
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777fi
ee9dd372 3778
ed698112
NN
3779 AR=$ac_ct_AR
3780else
3781 AR="$ac_cv_prog_AR"
3782fi
ee9dd372 3783
ed698112
NN
3784if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ee9dd372 3786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ed698112
NN
3787echo "$as_me:$LINENO: checking for $ac_word" >&5
3788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3791else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794else
ed698112
NN
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807done
3808
ee9dd372
TT
3809fi
3810fi
ed698112 3811RANLIB=$ac_cv_prog_RANLIB
ee9dd372 3812if test -n "$RANLIB"; then
ed698112
NN
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814echo "${ECHO_T}$RANLIB" >&6
ee9dd372 3815else
ed698112
NN
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
ee9dd372
TT
3818fi
3819
ed698112 3820fi
ee9dd372 3821if test -z "$ac_cv_prog_RANLIB"; then
ed698112 3822 ac_ct_RANLIB=$RANLIB
ee9dd372
TT
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824set dummy ranlib; ac_word=$2
ed698112
NN
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 3829else
ed698112
NN
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ee9dd372 3832else
ed698112
NN
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845done
3846
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ee9dd372
TT
3848fi
3849fi
ed698112
NN
3850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853echo "${ECHO_T}$ac_ct_RANLIB" >&6
ee9dd372 3854else
ed698112
NN
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
ee9dd372
TT
3857fi
3858
ed698112 3859 RANLIB=$ac_ct_RANLIB
ee9dd372 3860else
ed698112 3861 RANLIB="$ac_cv_prog_RANLIB"
ee9dd372
TT
3862fi
3863
3864
3865# Find a good install program. We prefer a C program (faster),
3866# so one script is as good as another. But avoid the broken or
3867# incompatible versions:
3868# SysV /etc/install, /usr/sbin/install
3869# SunOS /usr/etc/install
3870# IRIX /sbin/install
3871# AIX /bin/install
ed698112 3872# AmigaOS /C/install, which installs bootblocks on floppy discs
ee9dd372
TT
3873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 3876# OS/2's system install, which has a completely different semantic
ee9dd372 3877# ./install, which can be erroneously created by make from ./install.sh.
ed698112
NN
3878echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3879echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ee9dd372 3880if test -z "$INSTALL"; then
ed698112
NN
3881if test "${ac_cv_path_install+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 3883else
ed698112
NN
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 # Account for people who put trailing slashes in PATH elements.
3890case $as_dir/ in
3891 ./ | .// | /cC/* | \
3892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3894 /usr/ucb/* ) ;;
3895 *)
3896 # OSF1 and SCO ODT 3.0 have their own names for install.
3897 # Don't use installbsd from OSF since it installs stuff as root
3898 # by default.
3899 for ac_prog in ginstall scoinst install; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ee9dd372 3902 if test $ac_prog = install &&
ed698112 3903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
ee9dd372
TT
3904 # AIX install. It has an incompatible calling convention.
3905 :
ed698112
NN
3906 elif test $ac_prog = install &&
3907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3908 # program-specific install script used by HP pwplus--don't use.
3909 :
ee9dd372 3910 else
ed698112
NN
3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912 break 3
ee9dd372
TT
3913 fi
3914 fi
3915 done
ed698112
NN
3916 done
3917 ;;
3918esac
3919done
3920
ee9dd372
TT
3921
3922fi
3923 if test "${ac_cv_path_install+set}" = set; then
ed698112 3924 INSTALL=$ac_cv_path_install
ee9dd372
TT
3925 else
3926 # As a last resort, use the slow shell script. We don't cache a
3927 # path for INSTALL within a source directory, because that will
3928 # break other packages using the cache if that directory is
3929 # removed, or if the path is relative.
ed698112 3930 INSTALL=$ac_install_sh
ee9dd372
TT
3931 fi
3932fi
ed698112
NN
3933echo "$as_me:$LINENO: result: $INSTALL" >&5
3934echo "${ECHO_T}$INSTALL" >&6
ee9dd372
TT
3935
3936# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3937# It thinks the first close brace ends the variable substitution.
3938test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3939
ed698112 3940test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a3ffcff3 3941
ee9dd372
TT
3942test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3943
3944
ed698112
NN
3945echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3946echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee9dd372
TT
3947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3948if test "${enable_maintainer_mode+set}" = set; then
3949 enableval="$enable_maintainer_mode"
3950 USE_MAINTAINER_MODE=$enableval
3951else
3952 USE_MAINTAINER_MODE=no
ed698112
NN
3953fi;
3954 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3955echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee9dd372 3956
ee9dd372
TT
3957
3958if test $USE_MAINTAINER_MODE = yes; then
3959 MAINTAINER_MODE_TRUE=
3960 MAINTAINER_MODE_FALSE='#'
3961else
3962 MAINTAINER_MODE_TRUE='#'
3963 MAINTAINER_MODE_FALSE=
3964fi
e3f92d3b 3965
ee9dd372 3966 MAINT=$MAINTAINER_MODE_TRUE
36609570 3967
0659e0e3 3968
ee9dd372 3969
ee9dd372 3970
ee9dd372
TT
3971
3972# configure.host sets the following important variables
3973# libgcj_cflags - host specific C compiler flags
3974# libgcj_cxxflags - host specific C++ compiler flags
3975# libgcj_javaflags - host specific Java compiler flags
3976
3977libgcj_cflags=
3978libgcj_cxxflags=
3979libgcj_javaflags=
3980
2ee7cd3e 3981. ${srcdir}/configure.host
ee9dd372 3982
ee9dd372
TT
3983LIBGCJ_CFLAGS="${libgcj_cflags}"
3984LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3985LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
36739040
TT
3986LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
3987
ee9dd372
TT
3988
3989
3990
3991
ed698112 3992 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
ee9dd372 3993
ee9dd372 3994
d6f6aaf6 3995# Only use libltdl for non-newlib builds.
2d29f3a1 3996if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
52a11cbf 3997 case $enable_ltdl_convenience in
ed698112
NN
3998 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3999echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4000 { (exit 1); exit 1; }; } ;;
7af85558
TT
4001 "") enable_ltdl_convenience=yes
4002 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4003 esac
6d0860ee
AO
4004 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4005 INCLTDL='-I${top_srcdir}/''libltdl'
7af85558 4006
ed698112 4007
7af85558 4008 DIRLTDL=libltdl
ed698112
NN
4009
4010cat >>confdefs.h <<\_ACEOF
7af85558 4011#define USE_LTDL 1
ed698112 4012_ACEOF
7af85558
TT
4013
4014 # Sigh. Libtool's macro doesn't do the right thing.
4015 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
7f7ba9bf 4016 # FIXME: this is a hack.
1e6347d8 4017 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
f1eba847 4018 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
7af85558
TT
4019fi
4020
4021
4022
a3ffcff3
TT
4023# Check whether --enable-shared or --disable-shared was given.
4024if test "${enable_shared+set}" = set; then
4025 enableval="$enable_shared"
4026 p=${PACKAGE-default}
52a11cbf 4027case $enableval in
a3ffcff3
TT
4028yes) enable_shared=yes ;;
4029no) enable_shared=no ;;
4030*)
4031 enable_shared=no
4032 # Look at the argument we got. We use all the common list separators.
4033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4034 for pkg in $enableval; do
4035 if test "X$pkg" = "X$p"; then
4036 enable_shared=yes
4037 fi
4038 done
4039 IFS="$ac_save_ifs"
4040 ;;
4041esac
4042else
4043 enable_shared=yes
ed698112 4044fi;
a3ffcff3
TT
4045# Check whether --enable-static or --disable-static was given.
4046if test "${enable_static+set}" = set; then
4047 enableval="$enable_static"
4048 p=${PACKAGE-default}
52a11cbf 4049case $enableval in
a3ffcff3
TT
4050yes) enable_static=yes ;;
4051no) enable_static=no ;;
4052*)
4053 enable_static=no
4054 # Look at the argument we got. We use all the common list separators.
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056 for pkg in $enableval; do
4057 if test "X$pkg" = "X$p"; then
4058 enable_static=yes
4059 fi
4060 done
4061 IFS="$ac_save_ifs"
4062 ;;
4063esac
4064else
4065 enable_static=yes
ed698112 4066fi;
01b02b11
TT
4067# Check whether --enable-fast-install or --disable-fast-install was given.
4068if test "${enable_fast_install+set}" = set; then
4069 enableval="$enable_fast_install"
4070 p=${PACKAGE-default}
52a11cbf 4071case $enableval in
01b02b11
TT
4072yes) enable_fast_install=yes ;;
4073no) enable_fast_install=no ;;
4074*)
4075 enable_fast_install=no
4076 # Look at the argument we got. We use all the common list separators.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078 for pkg in $enableval; do
4079 if test "X$pkg" = "X$p"; then
4080 enable_fast_install=yes
4081 fi
4082 done
4083 IFS="$ac_save_ifs"
4084 ;;
4085esac
4086else
4087 enable_fast_install=yes
ed698112 4088fi;
01b02b11 4089
a3ffcff3
TT
4090# Check whether --with-gnu-ld or --without-gnu-ld was given.
4091if test "${with_gnu_ld+set}" = set; then
4092 withval="$with_gnu_ld"
4093 test "$withval" = no || with_gnu_ld=yes
4094else
4095 with_gnu_ld=no
ed698112 4096fi;
a3ffcff3 4097ac_prog=ld
52a11cbf 4098if test "$GCC" = yes; then
a3ffcff3 4099 # Check if gcc -print-prog-name=ld gives a path.
ed698112
NN
4100 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4101echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6d0860ee
AO
4102 case $host in
4103 *-*-mingw*)
4104 # gcc leaves a trailing carriage return which upsets mingw
4105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4106 *)
4107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4108 esac
52a11cbf 4109 case $ac_prog in
01b02b11 4110 # Accept absolute paths.
7af85558 4111 [\\/]* | [A-Za-z]:[\\/]*)
01b02b11
TT
4112 re_direlt='/[^/][^/]*/\.\./'
4113 # Canonicalize the path of ld
4114 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4116 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4117 done
4118 test -z "$LD" && LD="$ac_prog"
4119 ;;
a3ffcff3
TT
4120 "")
4121 # If it fails, then pretend we aren't using GCC.
4122 ac_prog=ld
4123 ;;
4124 *)
4125 # If it is relative, then search for the first ld in PATH.
4126 with_gnu_ld=unknown
4127 ;;
4128 esac
4129elif test "$with_gnu_ld" = yes; then
ed698112
NN
4130 echo "$as_me:$LINENO: checking for GNU ld" >&5
4131echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
a3ffcff3 4132else
ed698112
NN
4133 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4134echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a3ffcff3 4135fi
ed698112
NN
4136if test "${lt_cv_path_LD+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
4138else
4139 if test -z "$LD"; then
7af85558 4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
a3ffcff3
TT
4141 for ac_dir in $PATH; do
4142 test -z "$ac_dir" && ac_dir=.
7af85558 4143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
52a11cbf 4144 lt_cv_path_LD="$ac_dir/$ac_prog"
a3ffcff3
TT
4145 # Check to see if the program is GNU ld. I'd rather use --version,
4146 # but apparently some GNU ld's only accept -v.
4147 # Break only if it was the GNU/non-GNU ld that we prefer.
52a11cbf 4148 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
a3ffcff3
TT
4149 test "$with_gnu_ld" != no && break
4150 else
01b02b11 4151 test "$with_gnu_ld" != yes && break
a3ffcff3
TT
4152 fi
4153 fi
4154 done
4155 IFS="$ac_save_ifs"
4156else
52a11cbf 4157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
a3ffcff3
TT
4158fi
4159fi
4160
52a11cbf 4161LD="$lt_cv_path_LD"
a3ffcff3 4162if test -n "$LD"; then
ed698112
NN
4163 echo "$as_me:$LINENO: result: $LD" >&5
4164echo "${ECHO_T}$LD" >&6
a3ffcff3 4165else
ed698112
NN
4166 echo "$as_me:$LINENO: result: no" >&5
4167echo "${ECHO_T}no" >&6
a3ffcff3 4168fi
ed698112
NN
4169test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4171 { (exit 1); exit 1; }; }
4172echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4174if test "${lt_cv_prog_gnu_ld+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
4176else
4177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4178if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
52a11cbf 4179 lt_cv_prog_gnu_ld=yes
a3ffcff3 4180else
52a11cbf 4181 lt_cv_prog_gnu_ld=no
a3ffcff3
TT
4182fi
4183fi
ed698112
NN
4184echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
52a11cbf 4186with_gnu_ld=$lt_cv_prog_gnu_ld
6d0860ee
AO
4187
4188
ed698112
NN
4189echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4191if test "${lt_cv_ld_reload_flag+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
4193else
4194 lt_cv_ld_reload_flag='-r'
4195fi
ed698112
NN
4196echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6d0860ee
AO
4198reload_flag=$lt_cv_ld_reload_flag
4199test -n "$reload_flag" && reload_flag=" $reload_flag"
a3ffcff3 4200
ed698112
NN
4201echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4202echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4203if test "${lt_cv_path_NM+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
4205else
4206 if test -n "$NM"; then
4207 # Let the user override the test.
52a11cbf 4208 lt_cv_path_NM="$NM"
a3ffcff3 4209else
7af85558 4210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
01b02b11 4211 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a3ffcff3 4212 test -z "$ac_dir" && ac_dir=.
6d0860ee
AO
4213 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4214 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
a3ffcff3
TT
4215 # Check to see if the nm accepts a BSD-compat flag.
4216 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4217 # nm: unknown option "B" ignored
6d0860ee
AO
4218 # Tru64's nm complains that /dev/null is an invalid object file
4219 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
52a11cbf 4220 lt_cv_path_NM="$tmp_nm -B"
01b02b11 4221 break
6d0860ee 4222 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
52a11cbf 4223 lt_cv_path_NM="$tmp_nm -p"
01b02b11 4224 break
a3ffcff3 4225 else
52a11cbf 4226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
01b02b11 4227 continue # so that we can try to find one that supports BSD flags
a3ffcff3 4228 fi
a3ffcff3
TT
4229 fi
4230 done
4231 IFS="$ac_save_ifs"
52a11cbf 4232 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
a3ffcff3
TT
4233fi
4234fi
4235
52a11cbf 4236NM="$lt_cv_path_NM"
ed698112
NN
4237echo "$as_me:$LINENO: result: $NM" >&5
4238echo "${ECHO_T}$NM" >&6
a3ffcff3 4239
ed698112
NN
4240echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4241echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4242if test "${lt_cv_deplibs_check_method+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 4244else
5f527203 4245 lt_cv_file_magic_cmd='$MAGIC_CMD'
6d0860ee
AO
4246lt_cv_file_magic_test_file=
4247lt_cv_deplibs_check_method='unknown'
4248# Need to set the preceding variable on all platforms that support
4249# interlibrary dependencies.
4250# 'none' -- dependencies not supported.
4251# `unknown' -- same as none, but documents that we really don't know.
4252# 'pass_all' -- all dependencies passed with no checks.
4253# 'test_compile' -- check by making test program.
4254# 'file_magic [regex]' -- check by looking for files in library path
4255# which responds to the $file_magic_cmd with a given egrep regex.
4256# If you have `file' or equivalent on your system and you're not sure
4257# whether `pass_all' will *always* work, you probably want this one.
4258
52a11cbf
RH
4259case $host_os in
4260aix*)
6d0860ee
AO
4261 lt_cv_deplibs_check_method=pass_all
4262 ;;
4263
4264beos*)
4265 lt_cv_deplibs_check_method=pass_all
4266 ;;
a3ffcff3 4267
6d0860ee 4268bsdi4*)
52a11cbf
RH
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4270 lt_cv_file_magic_cmd='/usr/bin/file -L'
6d0860ee
AO
4271 lt_cv_file_magic_test_file=/shlib/libc.so
4272 ;;
4273
5f527203 4274cygwin* | mingw* |pw32*)
6d0860ee 4275 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5f527203 4276 lt_cv_file_magic_cmd='$OBJDUMP -f'
6d0860ee
AO
4277 ;;
4278
52a11cbf 4279darwin* | rhapsody*)
e44b879c 4280 # this will be overwritten by pass_all, but leave it in just in case
52a11cbf 4281 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5ec89e89
AO
4282 lt_cv_file_magic_cmd='/usr/bin/file -L'
4283 case "$host_os" in
4284 rhapsody* | darwin1.012)
4285 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4286 ;;
4287 *) # Darwin 1.3 on
4288 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4289 ;;
4290 esac
e44b879c 4291 lt_cv_deplibs_check_method=pass_all
52a11cbf
RH
4292 ;;
4293
f1c3e0a6 4294freebsd* | kfreebsd*-gnu)
6d0860ee 4295 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
52a11cbf 4296 case $host_cpu in
6d0860ee
AO
4297 i*86 )
4298 # Not sure whether the presence of OpenBSD here was a mistake.
4299 # Let's accept both of them until this is cleared up.
52a11cbf
RH
4300 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4301 lt_cv_file_magic_cmd=/usr/bin/file
6d0860ee
AO
4302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4303 ;;
4304 esac
4305 else
4306 lt_cv_deplibs_check_method=pass_all
4307 fi
4308 ;;
4309
4310gnu*)
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
52a11cbf 4314hpux10.20*|hpux11*)
f5cc59a7
AO
4315 case $host_cpu in
4316 hppa*)
4317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4320 ;;
4321 ia64*)
4322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4325 ;;
4326 esac
6d0860ee
AO
4327 ;;
4328
4329irix5* | irix6*)
52a11cbf 4330 case $host_os in
6d0860ee
AO
4331 irix5*)
4332 # this will be overridden with pass_all, but let us keep it just in case
4333 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4334 ;;
4335 *)
52a11cbf 4336 case $LD in
6d0860ee
AO
4337 *-32|*"-32 ") libmagic=32-bit;;
4338 *-n32|*"-n32 ") libmagic=N32;;
4339 *-64|*"-64 ") libmagic=64-bit;;
4340 *) libmagic=never-match;;
4341 esac
4342 # this will be overridden with pass_all, but let us keep it just in case
52a11cbf
RH
4343 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4344 ;;
6d0860ee
AO
4345 esac
4346 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
4350# This must be Linux ELF.
4351linux-gnu*)
2539bffe 4352 lt_cv_deplibs_check_method=pass_all
6d0860ee
AO
4353 ;;
4354
f1c3e0a6 4355netbsd* | knetbsd*-gnu)
52a11cbf 4356 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5ec89e89 4357 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6d0860ee 4358 else
5ec89e89 4359 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6d0860ee 4360 fi
52a11cbf
RH
4361 ;;
4362
4363newsos6)
4364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4365 lt_cv_file_magic_cmd=/usr/bin/file
4366 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6d0860ee
AO
4367 ;;
4368
4369osf3* | osf4* | osf5*)
4370 # this will be overridden with pass_all, but let us keep it just in case
4371 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4372 lt_cv_file_magic_test_file=/shlib/libc.so
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375
4376sco3.2v5*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379
4380solaris*)
4381 lt_cv_deplibs_check_method=pass_all
4382 lt_cv_file_magic_test_file=/lib/libc.so
4383 ;;
4384
3610e0d5
TT
4385sysv5uw[78]* | sysv4*uw2*)
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388
6d0860ee 4389sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
52a11cbf 4390 case $host_vendor in
6d0860ee
AO
4391 ncr)
4392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394 motorola)
52a11cbf
RH
4395 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]'
4396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6d0860ee
AO
4397 ;;
4398 esac
4399 ;;
7af85558
TT
4400esac
4401
6d0860ee 4402fi
ed698112
NN
4403echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4404echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6d0860ee
AO
4405file_magic_cmd=$lt_cv_file_magic_cmd
4406deplibs_check_method=$lt_cv_deplibs_check_method
4407
6d0860ee 4408
ed698112 4409
6d0860ee
AO
4410
4411# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4412
4413# Only perform the check for file, if the check method requires it
52a11cbf 4414case $deplibs_check_method in
6d0860ee 4415file_magic*)
5f527203 4416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ed698112
NN
4417 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4418echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4419if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 4421else
52a11cbf 4422 case $MAGIC_CMD in
6d0860ee 4423 /*)
5f527203 4424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6d0860ee
AO
4425 ;;
4426 ?:/*)
5f527203 4427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6d0860ee
AO
4428 ;;
4429 *)
5f527203 4430 ac_save_MAGIC_CMD="$MAGIC_CMD"
6d0860ee
AO
4431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4432 ac_dummy="/usr/bin:$PATH"
4433 for ac_dir in $ac_dummy; do
4434 test -z "$ac_dir" && ac_dir=.
4435 if test -f $ac_dir/${ac_tool_prefix}file; then
5f527203 4436 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6d0860ee 4437 if test -n "$file_magic_test_file"; then
52a11cbf 4438 case $deplibs_check_method in
6d0860ee
AO
4439 "file_magic "*)
4440 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 4441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6d0860ee
AO
4442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4443 egrep "$file_magic_regex" > /dev/null; then
4444 :
4445 else
4446 cat <<EOF 1>&2
4447
4448*** Warning: the command libtool uses to detect shared libraries,
4449*** $file_magic_cmd, produces output that libtool cannot recognize.
4450*** The result is that libtool may fail to recognize shared libraries
4451*** as such. This will affect the creation of libtool libraries that
4452*** depend on shared libraries, but programs linked with such libtool
4453*** libraries will work regardless of this problem. Nevertheless, you
4454*** may want to report the problem to your system manager and/or to
4455*** bug-libtool@gnu.org
4456
4457EOF
4458 fi ;;
4459 esac
4460 fi
4461 break
4462 fi
4463 done
4464 IFS="$ac_save_ifs"
5f527203 4465 MAGIC_CMD="$ac_save_MAGIC_CMD"
6d0860ee
AO
4466 ;;
4467esac
4468fi
4469
5f527203
AO
4470MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4471if test -n "$MAGIC_CMD"; then
ed698112
NN
4472 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4473echo "${ECHO_T}$MAGIC_CMD" >&6
6d0860ee 4474else
ed698112
NN
4475 echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6
6d0860ee
AO
4477fi
4478
5f527203 4479if test -z "$lt_cv_path_MAGIC_CMD"; then
6d0860ee 4480 if test -n "$ac_tool_prefix"; then
ed698112
NN
4481 echo "$as_me:$LINENO: checking for file" >&5
4482echo $ECHO_N "checking for file... $ECHO_C" >&6
4483if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 4485else
52a11cbf 4486 case $MAGIC_CMD in
6d0860ee 4487 /*)
5f527203 4488 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6d0860ee
AO
4489 ;;
4490 ?:/*)
5f527203 4491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6d0860ee
AO
4492 ;;
4493 *)
5f527203 4494 ac_save_MAGIC_CMD="$MAGIC_CMD"
6d0860ee
AO
4495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4496 ac_dummy="/usr/bin:$PATH"
4497 for ac_dir in $ac_dummy; do
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f $ac_dir/file; then
5f527203 4500 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6d0860ee 4501 if test -n "$file_magic_test_file"; then
52a11cbf 4502 case $deplibs_check_method in
6d0860ee
AO
4503 "file_magic "*)
4504 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 4505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6d0860ee
AO
4506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4507 egrep "$file_magic_regex" > /dev/null; then
4508 :
4509 else
4510 cat <<EOF 1>&2
4511
4512*** Warning: the command libtool uses to detect shared libraries,
4513*** $file_magic_cmd, produces output that libtool cannot recognize.
4514*** The result is that libtool may fail to recognize shared libraries
4515*** as such. This will affect the creation of libtool libraries that
4516*** depend on shared libraries, but programs linked with such libtool
4517*** libraries will work regardless of this problem. Nevertheless, you
4518*** may want to report the problem to your system manager and/or to
4519*** bug-libtool@gnu.org
4520
4521EOF
4522 fi ;;
4523 esac
4524 fi
4525 break
4526 fi
4527 done
4528 IFS="$ac_save_ifs"
5f527203 4529 MAGIC_CMD="$ac_save_MAGIC_CMD"
6d0860ee
AO
4530 ;;
4531esac
4532fi
4533
5f527203
AO
4534MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4535if test -n "$MAGIC_CMD"; then
ed698112
NN
4536 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4537echo "${ECHO_T}$MAGIC_CMD" >&6
6d0860ee 4538else
ed698112
NN
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
6d0860ee
AO
4541fi
4542
4543 else
5f527203 4544 MAGIC_CMD=:
6d0860ee
AO
4545 fi
4546fi
4547
4548 fi
4549 ;;
4550esac
4551
ed698112
NN
4552if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6d0860ee 4554set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ed698112
NN
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_prog_RANLIB+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
4559else
4560 if test -n "$RANLIB"; then
4561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562else
ed698112
NN
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575done
4576
6d0860ee
AO
4577fi
4578fi
ed698112 4579RANLIB=$ac_cv_prog_RANLIB
6d0860ee 4580if test -n "$RANLIB"; then
ed698112
NN
4581 echo "$as_me:$LINENO: result: $RANLIB" >&5
4582echo "${ECHO_T}$RANLIB" >&6
6d0860ee 4583else
ed698112
NN
4584 echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6
6d0860ee
AO
4586fi
4587
ed698112 4588fi
6d0860ee 4589if test -z "$ac_cv_prog_RANLIB"; then
ed698112 4590 ac_ct_RANLIB=$RANLIB
6d0860ee
AO
4591 # Extract the first word of "ranlib", so it can be a program name with args.
4592set dummy ranlib; ac_word=$2
ed698112
NN
4593echo "$as_me:$LINENO: checking for $ac_word" >&5
4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 4597else
ed698112
NN
4598 if test -n "$ac_ct_RANLIB"; then
4599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6d0860ee 4600else
ed698112
NN
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_RANLIB="ranlib"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612done
4613done
4614
4615 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6d0860ee
AO
4616fi
4617fi
ed698112
NN
4618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4619if test -n "$ac_ct_RANLIB"; then
4620 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4621echo "${ECHO_T}$ac_ct_RANLIB" >&6
6d0860ee 4622else
ed698112
NN
4623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
6d0860ee
AO
4625fi
4626
ed698112 4627 RANLIB=$ac_ct_RANLIB
6d0860ee 4628else
ed698112 4629 RANLIB="$ac_cv_prog_RANLIB"
6d0860ee
AO
4630fi
4631
ed698112
NN
4632if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6d0860ee 4634set dummy ${ac_tool_prefix}strip; ac_word=$2
ed698112
NN
4635echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637if test "${ac_cv_prog_STRIP+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
4639else
4640 if test -n "$STRIP"; then
4641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4642else
ed698112
NN
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656
6d0860ee
AO
4657fi
4658fi
ed698112 4659STRIP=$ac_cv_prog_STRIP
6d0860ee 4660if test -n "$STRIP"; then
ed698112
NN
4661 echo "$as_me:$LINENO: result: $STRIP" >&5
4662echo "${ECHO_T}$STRIP" >&6
6d0860ee 4663else
ed698112
NN
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
6d0860ee
AO
4666fi
4667
ed698112 4668fi
6d0860ee 4669if test -z "$ac_cv_prog_STRIP"; then
ed698112 4670 ac_ct_STRIP=$STRIP
6d0860ee
AO
4671 # Extract the first word of "strip", so it can be a program name with args.
4672set dummy strip; ac_word=$2
ed698112
NN
4673echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 4677else
ed698112
NN
4678 if test -n "$ac_ct_STRIP"; then
4679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6d0860ee 4680else
ed698112
NN
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_ac_ct_STRIP="strip"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692done
4693done
4694
4695 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6d0860ee
AO
4696fi
4697fi
ed698112
NN
4698ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4699if test -n "$ac_ct_STRIP"; then
4700 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4701echo "${ECHO_T}$ac_ct_STRIP" >&6
6d0860ee 4702else
ed698112
NN
4703 echo "$as_me:$LINENO: result: no" >&5
4704echo "${ECHO_T}no" >&6
6d0860ee
AO
4705fi
4706
ed698112 4707 STRIP=$ac_ct_STRIP
6d0860ee 4708else
ed698112 4709 STRIP="$ac_cv_prog_STRIP"
6d0860ee
AO
4710fi
4711
4712
a3ffcff3 4713# Check for any special flags to pass to ltconfig.
01b02b11 4714libtool_flags="--cache-file=$cache_file"
a3ffcff3
TT
4715test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4716test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
01b02b11 4717test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
52a11cbf
RH
4718test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4719test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ed698112 4720
7af85558
TT
4721
4722# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4723if test "${enable_libtool_lock+set}" = set; then
4724 enableval="$enable_libtool_lock"
7af85558 4725
ed698112 4726fi;
7af85558
TT
4727test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4728test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
a3ffcff3 4729
ed698112 4730
6d0860ee
AO
4731# Check whether --with-pic or --without-pic was given.
4732if test "${with_pic+set}" = set; then
4733 withval="$with_pic"
4734 pic_mode="$withval"
4735else
4736 pic_mode=default
ed698112 4737fi;
6d0860ee
AO
4738test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4739test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4740
a3ffcff3
TT
4741# Some flags need to be propagated to the compiler or linker for good
4742# libtool support.
52a11cbf 4743case $host in
a3ffcff3
TT
4744*-*-irix6*)
4745 # Find out which ABI we are using.
2539bffe 4746 echo '#line 4746 "configure"' > conftest.$ac_ext
ed698112
NN
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; then
3343fdd2
AO
4752 if test "$lt_cv_prog_gnu_ld" = yes; then
4753 case `/usr/bin/file conftest.$ac_objext` in
4754 *32-bit*)
4755 LD="${LD-ld} -melf32bsmip"
4756 ;;
4757 *N32*)
4758 LD="${LD-ld} -melf32bmipn32"
4759 ;;
4760 *64-bit*)
4761 LD="${LD-ld} -melf64bmip"
4762 ;;
4763 esac
4764 else
52a11cbf 4765 case `/usr/bin/file conftest.$ac_objext` in
a3ffcff3
TT
4766 *32-bit*)
4767 LD="${LD-ld} -32"
4768 ;;
4769 *N32*)
4770 LD="${LD-ld} -n32"
4771 ;;
4772 *64-bit*)
4773 LD="${LD-ld} -64"
4774 ;;
4775 esac
3343fdd2 4776 fi
a3ffcff3
TT
4777 fi
4778 rm -rf conftest*
4779 ;;
4780
f5cc59a7
AO
4781ia64-*-hpux*)
4782 # Find out which ABI we are using.
4783 echo 'int i;' > conftest.$ac_ext
ed698112
NN
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
f5cc59a7
AO
4789 case "`/usr/bin/file conftest.o`" in
4790 *ELF-32*)
4791 HPUX_IA64_MODE="32"
4792 ;;
4793 *ELF-64*)
4794 HPUX_IA64_MODE="64"
4795 ;;
4796 esac
4797 fi
4798 rm -rf conftest*
4799 ;;
4800
54d9d34a
AJ
4801x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4802 # Find out which ABI we are using.
4803 echo 'int i;' > conftest.$ac_ext
ed698112
NN
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
54d9d34a
AJ
4809 case "`/usr/bin/file conftest.o`" in
4810 *32-bit*)
4811 case $host in
4812 x86_64-*linux*)
4813 LD="${LD-ld} -m elf_i386"
4814 ;;
e517f636 4815 ppc64-*linux*|powerpc64-*linux*)
54d9d34a
AJ
4816 LD="${LD-ld} -m elf32ppclinux"
4817 ;;
4818 s390x-*linux*)
4819 LD="${LD-ld} -m elf_s390"
4820 ;;
4821 sparc64-*linux*)
4822 LD="${LD-ld} -m elf32_sparc"
4823 ;;
4824 esac
4825 ;;
4826 *64-bit*)
4827 case $host in
4828 x86_64-*linux*)
4829 LD="${LD-ld} -m elf_x86_64"
4830 ;;
4831 ppc*-*linux*|powerpc*-*linux*)
4832 LD="${LD-ld} -m elf64ppc"
4833 ;;
4834 s390*-*linux*)
4835 LD="${LD-ld} -m elf64_s390"
4836 ;;
4837 sparc*-*linux*)
4838 LD="${LD-ld} -m elf64_sparc"
4839 ;;
4840 esac
4841 ;;
4842 esac
4843 fi
4844 rm -rf conftest*
4845 ;;
4846
a3ffcff3
TT
4847*-*-sco3.2v5*)
4848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
01b02b11 4849 SAVE_CFLAGS="$CFLAGS"
a3ffcff3 4850 CFLAGS="$CFLAGS -belf"
ed698112
NN
4851 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4852echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4853if test "${lt_cv_cc_needs_belf+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
01b02b11 4855else
ed698112
NN
4856
4857
6d0860ee 4858 ac_ext=c
6d0860ee 4859ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
4860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
4864 if test x$gcc_no_link = xyes; then
4865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4866echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4867 { (exit 1); exit 1; }; }
4868fi
4869cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
01b02b11 4875
ed698112
NN
4876int
4877main ()
4878{
01b02b11 4879
ed698112
NN
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext conftest$ac_exeext
4885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
2c92e90f
KC
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
ed698112
NN
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
01b02b11
TT
4906 lt_cv_cc_needs_belf=yes
4907else
ed698112
NN
4908 echo "$as_me: failed program was:" >&5
4909sed 's/^/| /' conftest.$ac_ext >&5
4910
4911lt_cv_cc_needs_belf=no
01b02b11 4912fi
ed698112
NN
4913rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
6d0860ee 4915 ac_ext=c
6d0860ee 4916ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
6d0860ee 4920
01b02b11 4921fi
ed698112
NN
4922echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4923echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
01b02b11
TT
4924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4926 CFLAGS="$SAVE_CFLAGS"
4927 fi
a3ffcff3
TT
4928 ;;
4929
a3ffcff3
TT
4930
4931esac
4932
01b02b11
TT
4933
4934# Save cache, so that ltconfig can load it
ed698112 4935cat >confcache <<\_ACEOF
01b02b11
TT
4936# This file is a shell script that caches the results of configure
4937# tests run on this system so they can be shared between configure
ed698112
NN
4938# scripts and configure runs, see configure's option --config-cache.
4939# It is not useful on other systems. If it contains results you don't
4940# want to keep, you may remove or edit it.
01b02b11 4941#
ed698112
NN
4942# config.status only pays attention to the cache file if you give it
4943# the --recheck option to rerun configure.
01b02b11 4944#
ed698112
NN
4945# `ac_cv_env_foo' variables (set or unset) will be overridden when
4946# loading this file, other *unset* `ac_cv_foo' will be assigned the
4947# following values.
4948
4949_ACEOF
4950
01b02b11
TT
4951# The following way of writing the cache mishandles newlines in values,
4952# but we know of no workaround that is simple, portable, and efficient.
4953# So, don't put newlines in cache variables' values.
4954# Ultrix sh set writes to stderr and can't be redirected directly,
4955# and sets the high bit in the cache file unless we assign to the vars.
ed698112
NN
4956{
4957 (set) 2>&1 |
4958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4959 *ac_space=\ *)
4960 # `set' does not quote correctly, so add quotes (double-quote
4961 # substitution turns \\\\ into \\, and sed turns \\ into \).
4962 sed -n \
4963 "s/'/'\\\\''/g;
4964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4965 ;;
4966 *)
4967 # `set' quotes correctly as required by POSIX, so do not add quotes.
4968 sed -n \
4969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4970 ;;
4971 esac;
4972} |
4973 sed '
4974 t clear
4975 : clear
4976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4977 t end
4978 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4979 : end' >>confcache
4980if diff $cache_file confcache >/dev/null 2>&1; then :; else
01b02b11 4981 if test -w $cache_file; then
ed698112
NN
4982 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4983 cat confcache >$cache_file
01b02b11
TT
4984 else
4985 echo "not updating unwritable cache $cache_file"
4986 fi
4987fi
4988rm -f confcache
4989
a3ffcff3 4990# Actually configure libtool. ac_aux_dir is where install-sh is found.
6d0860ee 4991AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5f527203 4992MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6d0860ee
AO
4993LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4994AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4995objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4996deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
a3ffcff3 4997${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6d0860ee 4998$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ed698112
NN
4999|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5000echo "$as_me: error: libtool configure failed" >&2;}
5001 { (exit 1); exit 1; }; }
a3ffcff3 5002
01b02b11
TT
5003# Reload cache, that may have been modified by ltconfig
5004if test -r "$cache_file"; then
ed698112
NN
5005 # Some versions of bash will fail to source /dev/null (special
5006 # files actually), so we avoid doing that.
5007 if test -f "$cache_file"; then
5008 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5009echo "$as_me: loading cache $cache_file" >&6;}
5010 case $cache_file in
5011 [\\/]* | ?:[\\/]* ) . $cache_file;;
5012 *) . ./$cache_file;;
5013 esac
5014 fi
01b02b11 5015else
ed698112
NN
5016 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5017echo "$as_me: creating cache $cache_file" >&6;}
5018 >$cache_file
01b02b11
TT
5019fi
5020
5021
5022# This can be used to rebuild libtool when needed
6d0860ee 5023LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
01b02b11
TT
5024
5025# Always use our own libtool.
5026LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5027
a3ffcff3
TT
5028# Redirect the config.log output again, so that the ltconfig log is not
5029# clobbered by the next message.
5030exec 5>>./config.log
5031
ed698112
NN
5032ac_ext=cc
5033ac_cpp='$CXXCPP $CPPFLAGS'
5034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5038echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5039if test -z "$CXXCPP"; then
5040 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043 # Double quotes because CXXCPP needs to be expanded
5044 for CXXCPP in "$CXX -E" "/lib/cpp"
5045 do
5046 ac_preproc_ok=false
5047for ac_cxx_preproc_warn_flag in '' yes
5048do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h. */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h. */
5061#ifdef __STDC__
5062# include <limits.h>
5063#else
5064# include <assert.h>
5065#endif
5066 Syntax error
5067_ACEOF
5068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } >/dev/null; then
5076 if test -s conftest.err; then
5077 ac_cpp_err=$ac_cxx_preproc_warn_flag
5078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079 else
5080 ac_cpp_err=
5081 fi
5082else
5083 ac_cpp_err=yes
5084fi
5085if test -z "$ac_cpp_err"; then
5086 :
5087else
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 # Broken: fails on valid input.
5092continue
5093fi
5094rm -f conftest.err conftest.$ac_ext
5095
5096 # OK, works on sane cases. Now check whether non-existent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5099/* confdefs.h. */
5100_ACEOF
5101cat confdefs.h >>conftest.$ac_ext
5102cat >>conftest.$ac_ext <<_ACEOF
5103/* end confdefs.h. */
5104#include <ac_nonexistent.h>
5105_ACEOF
5106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_cxx_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117 else
5118 ac_cpp_err=
5119 fi
5120else
5121 ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
5124 # Broken: success on invalid input.
5125continue
5126else
5127 echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130 # Passes both tests.
5131ac_preproc_ok=:
5132break
5133fi
5134rm -f conftest.err conftest.$ac_ext
5135
5136done
5137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138rm -f conftest.err conftest.$ac_ext
5139if $ac_preproc_ok; then
5140 break
5141fi
5142
5143 done
5144 ac_cv_prog_CXXCPP=$CXXCPP
5145
5146fi
5147 CXXCPP=$ac_cv_prog_CXXCPP
5148else
5149 ac_cv_prog_CXXCPP=$CXXCPP
5150fi
5151echo "$as_me:$LINENO: result: $CXXCPP" >&5
5152echo "${ECHO_T}$CXXCPP" >&6
5153ac_preproc_ok=false
5154for ac_cxx_preproc_warn_flag in '' yes
5155do
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
5168#ifdef __STDC__
5169# include <limits.h>
5170#else
5171# include <assert.h>
5172#endif
5173 Syntax error
5174_ACEOF
5175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_cxx_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189else
5190 ac_cpp_err=yes
5191fi
5192if test -z "$ac_cpp_err"; then
5193 :
5194else
5195 echo "$as_me: failed program was:" >&5
5196sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 # Broken: fails on valid input.
5199continue
5200fi
5201rm -f conftest.err conftest.$ac_ext
5202
5203 # OK, works on sane cases. Now check whether non-existent headers
5204 # can be detected and how.
5205 cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
5211#include <ac_nonexistent.h>
5212_ACEOF
5213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215 ac_status=$?
5216 grep -v '^ *+' conftest.er1 >conftest.err
5217 rm -f conftest.er1
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } >/dev/null; then
5221 if test -s conftest.err; then
5222 ac_cpp_err=$ac_cxx_preproc_warn_flag
5223 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5224 else
5225 ac_cpp_err=
5226 fi
5227else
5228 ac_cpp_err=yes
5229fi
5230if test -z "$ac_cpp_err"; then
5231 # Broken: success on invalid input.
5232continue
5233else
5234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 # Passes both tests.
5238ac_preproc_ok=:
5239break
5240fi
5241rm -f conftest.err conftest.$ac_ext
5242
5243done
5244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245rm -f conftest.err conftest.$ac_ext
5246if $ac_preproc_ok; then
5247 :
5248else
5249 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5250See \`config.log' for more details." >&5
5251echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5252See \`config.log' for more details." >&2;}
5253 { (exit 1); exit 1; }; }
5254fi
5255
5256ac_ext=c
5257ac_cpp='$CPP $CPPFLAGS'
5258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
6d0860ee
AO
5262
5263
6d0860ee
AO
5264LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5265lt_save_CC="$CC"
5266lt_save_CFLAGS="$CFLAGS"
e3f92d3b
MK
5267AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5268MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5269LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5270AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5271objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5272deplibs_check_method="$deplibs_check_method" \
5273file_magic_cmd="$file_magic_cmd" \
5274${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5275--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5276|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5277echo "$as_me: error: libtool tag configuration failed" >&2;}
5278 { (exit 1); exit 1; }; }
5279CC="$lt_save_CC"
5280CFLAGS="$lt_save_CFLAGS"
5281
5282# Redirect the config.log output again, so that the ltconfig log is not
5283# clobbered by the next message.
5284exec 5>>./config.log
5285
5286
5287
5288
5289
5290
5291
2c92e90f 5292for ac_prog in gcj
e3f92d3b
MK
5293do
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295set dummy $ac_prog; ac_word=$2
5296echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298if test "${ac_cv_prog_GCJ+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301 if test -n "$GCJ"; then
5302 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_GCJ="$ac_prog"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316done
5317
5318fi
5319fi
5320GCJ=$ac_cv_prog_GCJ
5321if test -n "$GCJ"; then
5322 echo "$as_me:$LINENO: result: $GCJ" >&5
5323echo "${ECHO_T}$GCJ" >&6
5324else
5325 echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327fi
5328
5329 test -n "$GCJ" && break
5330done
5331test -n "$GCJ" || GCJ="gcj"
5332
5333test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5334echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5335 { (exit 1); exit 1; }; }
5336if test "x${GCJFLAGS-unset}" = xunset; then
5337 GCJFLAGS="-g -O2"
5338fi
5339
5340
5341depcc="$GCJ" am_compiler_list='gcc3 gcc'
5342
5343echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5344echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5345if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5349 # We make a subdir and do the tests there. Otherwise we can end up
5350 # making bogus files that we don't know about and never remove. For
5351 # instance it was reported that on HP-UX the gcc test will end up
5352 # making a dummy file named `D' -- because `-MD' means `put the output
5353 # in D'.
5354 mkdir conftest.dir
5355 # Copy depcomp to subdir because otherwise we won't find it if we're
5356 # using a relative directory.
5357 cp "$am_depcomp" conftest.dir
5358 cd conftest.dir
5359 # We will build objects and dependencies in a subdirectory because
5360 # it helps to detect inapplicable dependency modes. For instance
5361 # both Tru64's cc and ICC support -MD to output dependencies as a
5362 # side effect of compilation, but ICC will put the dependencies in
5363 # the current directory while Tru64 will put them in the object
5364 # directory.
5365 mkdir sub
5366
5367 am_cv_GCJ_dependencies_compiler_type=none
5368 if test "$am_compiler_list" = ""; then
5369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5370 fi
5371 for depmode in $am_compiler_list; do
5372 # Setup a source with many dependencies, because some compilers
5373 # like to wrap large dependency lists on column 80 (with \), and
5374 # we should not choose a depcomp mode which is confused by this.
5375 #
5376 # We need to recreate these files for each test, as the compiler may
5377 # overwrite some of them when testing with obscure command lines.
5378 # This happens at least with the AIX C compiler.
5379 : > sub/conftest.c
5380 for i in 1 2 3 4 5 6; do
5381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5382 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5383 # Solaris 8's {/usr,}/bin/sh.
5384 touch sub/conftst$i.h
5385 done
5386 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5387
5388 case $depmode in
5389 nosideeffect)
5390 # after this tag, mechanisms are not by side-effect, so they'll
5391 # only be used when explicitly requested
5392 if test "x$enable_dependency_tracking" = xyes; then
5393 continue
5394 else
5395 break
5396 fi
5397 ;;
5398 none) break ;;
5399 esac
5400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5401 # mode. It turns out that the SunPro C++ compiler does not properly
5402 # handle `-M -o', and we need to detect this.
5403 if depmode=$depmode \
5404 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5406 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5407 >/dev/null 2>conftest.err &&
5408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5409 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5411 # icc doesn't choke on unknown options, it will just issue warnings
5412 # or remarks (even with -Werror). So we grep stderr for any message
5413 # that says an option was ignored or not supported.
5414 # When given -MP, icc 7.0 and 7.1 complain thusly:
5415 # icc: Command line warning: ignoring option '-M'; no argument required
5416 # The diagnosis changed in icc 8.0:
5417 # icc: Command line remark: option '-MP' not supported
5418 if (grep 'ignoring option' conftest.err ||
5419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5420 am_cv_GCJ_dependencies_compiler_type=$depmode
5421 break
5422 fi
5423 fi
5424 done
5425
5426 cd ..
5427 rm -rf conftest.dir
5428else
5429 am_cv_GCJ_dependencies_compiler_type=none
5430fi
5431
5432fi
5433echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5434echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5435GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5436
5437
5438
5439if
5440 test "x$enable_dependency_tracking" != xno \
5441 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5442 am__fastdepGCJ_TRUE=
5443 am__fastdepGCJ_FALSE='#'
5444else
5445 am__fastdepGCJ_TRUE='#'
5446 am__fastdepGCJ_FALSE=
5447fi
5448
5449
5450
5451
5452LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5453lt_save_CC="$CC"
5454lt_save_CFLAGS="$CFLAGS"
5455AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
52a11cbf 5456MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6d0860ee
AO
5457LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5458AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5459objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5460deplibs_check_method="$deplibs_check_method" \
5461file_magic_cmd="$file_magic_cmd" \
5462${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
e3f92d3b 5463--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
ed698112
NN
5464|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5465echo "$as_me: error: libtool tag configuration failed" >&2;}
5466 { (exit 1); exit 1; }; }
6d0860ee
AO
5467CC="$lt_save_CC"
5468CFLAGS="$lt_save_CFLAGS"
5469
5470# Redirect the config.log output again, so that the ltconfig log is not
5471# clobbered by the next message.
5472exec 5>>./config.log
5473
6d0860ee 5474
ed698112 5475
e3f92d3b
MK
5476if test "x$CC" != xcc; then
5477 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5478echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5479else
5480 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5481echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5482fi
5483set dummy $CC; ac_cc=`echo $2 |
5484 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5485if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488 cat >conftest.$ac_ext <<_ACEOF
5489/* confdefs.h. */
5490_ACEOF
5491cat confdefs.h >>conftest.$ac_ext
5492cat >>conftest.$ac_ext <<_ACEOF
5493/* end confdefs.h. */
5494
5495int
5496main ()
5497{
5498
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503# Make sure it works both with $CC and with simple cc.
5504# We do the test twice because some compilers refuse to overwrite an
5505# existing .o file with -o, though they will create one.
5506ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5507if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); };
5517then
5518 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5519 if test "x$CC" != xcc; then
5520 # Test first that cc exists at all.
5521 if { ac_try='cc -c conftest.$ac_ext >&5'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5528 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); };
5538 then
5539 # cc works too.
5540 :
5541 else
5542 # cc exists but doesn't like -o.
5543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5544 fi
5545 fi
5546 fi
5547else
5548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5549fi
5550rm -f conftest*
5551
5552fi
5553if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559
5560cat >>confdefs.h <<\_ACEOF
5561#define NO_MINUS_C_MINUS_O 1
5562_ACEOF
ed698112 5563
e3f92d3b 5564fi
ed698112 5565
e3f92d3b
MK
5566# FIXME: we rely on the cache variable name because
5567# there is no other way.
5568set dummy $CC
5569ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5570if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5571 # Losing compiler, so override with the script.
5572 # FIXME: It is wrong to rewrite CC.
5573 # But if we don't then we get into trouble of one sort or another.
5574 # A longer-term fix would be to have automake use am__CC in this case,
5575 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5576 CC="$am_aux_dir/compile $CC"
5577fi
ed698112
NN
5578
5579
5580
7614fd28 5581subdirs="$subdirs libltdl"
7af85558 5582
a3ffcff3 5583
ee9dd372
TT
5584if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5585 COMPPATH=.
5586else
5587 COMPPATH=..
5588fi
5589
5590
aed6152d 5591# The -no-testsuite modules omit the test subdir.
ee9dd372
TT
5592
5593
5594if test -d $srcdir/testsuite; then
5595 TESTSUBDIR_TRUE=
5596 TESTSUBDIR_FALSE='#'
5597else
5598 TESTSUBDIR_TRUE='#'
5599 TESTSUBDIR_FALSE=
5600fi
5601
e3f92d3b 5602
aed6152d
NN
5603# Should the runtime set system properties by examining the
5604# environment variable GCJ_PROPERTIES?
ffccc6be
AG
5605# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5606if test "${enable_getenv_properties+set}" = set; then
5607 enableval="$enable_getenv_properties"
ffccc6be 5608
ed698112 5609fi;
ffccc6be 5610
aed6152d 5611# Whether GCJ_PROPERTIES is used depends on the target.
3610e0d5 5612if test -z "$enable_getenv_properties"; then
ffccc6be
AG
5613 enable_getenv_properties=${enable_getenv_properties_default-yes}
5614fi
5615if test "$enable_getenv_properties" = no; then
ed698112
NN
5616
5617cat >>confdefs.h <<\_ACEOF
ffccc6be 5618#define DISABLE_GETENV_PROPERTIES 1
ed698112 5619_ACEOF
ffccc6be
AG
5620
5621fi
5622
aed6152d 5623# Whether we should use arguments to main()
b5ee195f
AG
5624if test -z "$enable_main_args"; then
5625 enable_main_args=${enable_main_args_default-yes}
5626fi
5627if test "$enable_main_args" = no; then
ed698112
NN
5628
5629cat >>confdefs.h <<\_ACEOF
b5ee195f 5630#define DISABLE_MAIN_ARGS 1
ed698112 5631_ACEOF
b5ee195f
AG
5632
5633fi
5634
3610e0d5 5635
aed6152d
NN
5636# Should we use hashtable-based synchronization?
5637# Currently works only for Linux X86/ia64
5638# Typically faster and more space-efficient
3610e0d5
TT
5639# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5640if test "${enable_hash_synchronization+set}" = set; then
5641 enableval="$enable_hash_synchronization"
3610e0d5 5642
ed698112 5643fi;
3610e0d5
TT
5644
5645if test -z "$enable_hash_synchronization"; then
5646 enable_hash_synchronization=$enable_hash_synchronization_default
5647fi
3610e0d5 5648
a28400bb
ME
5649# Do we allow intermodule optimizations (i.e. compiling many files at once)?
5650# Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5651if test "${enable_libgcj_multifile+set}" = set; then
5652 enableval="$enable_libgcj_multifile"
5653 case "${enableval}" in
5654 yes) enable_libgcj_multifile=yes ;;
5655 no) enable_libgcj_multifile=no ;;
ed698112
NN
5656 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5657echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5658 { (exit 1); exit 1; }; } ;;
a28400bb
ME
5659esac
5660else
5661 enable_libgcj_multifile=no
ed698112 5662fi;
a28400bb
ME
5663
5664
5665if test "$enable_libgcj_multifile" = yes; then
5666 ONESTEP_TRUE=
5667 ONESTEP_FALSE='#'
5668else
5669 ONESTEP_TRUE='#'
5670 ONESTEP_FALSE=
5671fi
5672
e3f92d3b 5673
83c02e38 5674# What is the native OS API for MinGW?
ed698112 5675
83c02e38
ME
5676# Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5677if test "${with_win32_nlsapi+set}" = set; then
5678 withval="$with_win32_nlsapi"
aed6152d 5679 case "${withval}" in
83c02e38
ME
5680 ansi) with_win32_nlsapi=ansi ;;
5681 unicows) with_win32_nlsapi=unicows ;;
5682 unicode) with_win32_nlsapi=unicode ;;
ed698112
NN
5683 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5684echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5685 { (exit 1); exit 1; }; } ;;
83c02e38
ME
5686esac
5687else
5688 with_win32_nlsapi=ansi
ed698112 5689fi;
83c02e38
ME
5690
5691case "${with_win32_nlsapi}" in
ed698112
NN
5692 unicows | unicode)
5693
5694cat >>confdefs.h <<\_ACEOF
83c02e38 5695#define MINGW_LIBGCJ_UNICODE 1
ed698112 5696_ACEOF
83c02e38
ME
5697
5698 ;;
5699esac
5700
aed6152d
NN
5701# configure.host sets slow_pthread_self if the synchronization code should
5702# try to avoid pthread_self calls by caching thread IDs in a hashtable.
45597167 5703if test "${slow_pthread_self}" = "yes"; then
ed698112
NN
5704
5705cat >>confdefs.h <<\_ACEOF
45597167 5706#define SLOW_PTHREAD_SELF 1
ed698112 5707_ACEOF
45597167
BM
5708
5709fi
5710
3610e0d5 5711
aed6152d 5712# See if the user has requested runtime debugging.
213858c0
BM
5713LIBGCJDEBUG="false"
5714
ee9dd372
TT
5715# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5716if test "${enable_libgcj_debug+set}" = set; then
5717 enableval="$enable_libgcj_debug"
5718 if test "$enable_libgcj_debug" = yes; then
ed698112
NN
5719
5720cat >>confdefs.h <<\_ACEOF
ee9dd372 5721#define DEBUG 1
ed698112 5722_ACEOF
ee9dd372 5723
213858c0 5724 LIBGCJDEBUG="true"
ee9dd372 5725 fi
ed698112 5726fi;
ee9dd372 5727
ed347998
HB
5728# Check for gc debugging. This option is handled both here and in the GC.
5729# Check whether --enable-gc-debug or --disable-gc-debug was given.
5730if test "${enable_gc_debug+set}" = set; then
5731 enableval="$enable_gc_debug"
5732 if test "$enable_gc_debug" = "yes"; then
48d0dd75
KC
5733
5734cat >>confdefs.h <<\_ACEOF
ed347998
HB
5735#define LIBGCJ_GC_DEBUG 1
5736_ACEOF
5737
5738 fi
5739fi;
5740
aed6152d 5741# See if the user has the interpreter included.
58eb6e7c
AG
5742# Check whether --enable-interpreter or --disable-interpreter was given.
5743if test "${enable_interpreter+set}" = set; then
5744 enableval="$enable_interpreter"
5745 if test "$enable_interpreter" = yes; then
b11f6430
AG
5746 # This can also be set in configure.host.
5747 libgcj_interpreter=yes
f7ccaa38
BM
5748 elif test "$enable_interpreter" = no; then
5749 libgcj_interpreter=no
b11f6430 5750 fi
ed698112 5751fi;
b11f6430
AG
5752
5753if test "$libgcj_interpreter" = yes; then
ed698112
NN
5754
5755cat >>confdefs.h <<\_ACEOF
58eb6e7c 5756#define INTERPRETER 1
ed698112 5757_ACEOF
58eb6e7c 5758
58eb6e7c 5759fi
b2ae5f70
TT
5760INTERPRETER="$libgcj_interpreter"
5761
58eb6e7c 5762
ed698112
NN
5763echo "$as_me:$LINENO: checking for exception model to use" >&5
5764echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
ed698112 5765ac_ext=cc
52a11cbf 5766ac_cpp='$CXXCPP $CPPFLAGS'
ed698112
NN
5767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52a11cbf 5770
3cf88fb4
TT
5771# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5772if test "${enable_sjlj_exceptions+set}" = set; then
5773 enableval="$enable_sjlj_exceptions"
52a11cbf
RH
5774 :
5775else
5776 cat > conftest.$ac_ext << EOF
2539bffe 5777#line 5777 "configure"
52a11cbf
RH
5778struct S { ~S(); };
5779void bar();
5780void foo()
5781{
5782 S s;
5783 bar();
5784}
5785EOF
ed698112 5786old_CXXFLAGS="$CXXFLAGS"
52a11cbf 5787CXXFLAGS=-S
ed698112
NN
5788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; then
52a11cbf
RH
5793 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5794 enable_sjlj_exceptions=yes
5795 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5796 enable_sjlj_exceptions=no
3cf88fb4
TT
5797 fi
5798fi
52a11cbf
RH
5799CXXFLAGS="$old_CXXFLAGS"
5800rm -f conftest*
ed698112 5801fi;
52a11cbf 5802if test x$enable_sjlj_exceptions = xyes; then
ed698112
NN
5803
5804cat >>confdefs.h <<\_ACEOF
3cf88fb4 5805#define SJLJ_EXCEPTIONS 1
ed698112 5806_ACEOF
3cf88fb4 5807
52a11cbf
RH
5808 ac_exception_model_name=sjlj
5809elif test x$enable_sjlj_exceptions = xno; then
5810 ac_exception_model_name="call frame"
5811else
ed698112
NN
5812 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5813echo "$as_me: error: unable to detect exception model" >&2;}
5814 { (exit 1); exit 1; }; }
3cf88fb4 5815fi
52a11cbf 5816ac_ext=c
52a11cbf 5817ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
5818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820ac_compiler_gnu=$ac_cv_c_compiler_gnu
52a11cbf 5821
ed698112
NN
5822echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5823echo "${ECHO_T}$ac_exception_model_name" >&6
3cf88fb4 5824
ed698112 5825# If we are non using SJLJ exceptions, and this host does not have support
605dc89b
BM
5826# for unwinding from a signal handler, enable checked dereferences and divides.
5827if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5828 CHECKREFSPEC=-fcheck-references
5829 DIVIDESPEC=-fuse-divide-subroutine
5830 EXCEPTIONSPEC=
5831fi
5832
aed6152d
NN
5833# See if the user wants to disable java.net. This is the mildly
5834# ugly way that we admit that target-side configuration sucks.
4b68fe8a
TT
5835# Check whether --enable-java-net or --disable-java-net was given.
5836if test "${enable_java_net+set}" = set; then
5837 enableval="$enable_java_net"
4b68fe8a 5838
ed698112 5839fi;
4b68fe8a 5840
aed6152d 5841# Whether java.net is built by default can depend on the target.
3610e0d5 5842if test -z "$enable_java_net"; then
4b68fe8a
TT
5843 enable_java_net=${enable_java_net_default-yes}
5844fi
006d4a9b 5845if test "$enable_java_net" = no; then
ed698112
NN
5846
5847cat >>confdefs.h <<\_ACEOF
4b68fe8a 5848#define DISABLE_JAVA_NET 1
ed698112 5849_ACEOF
4b68fe8a
TT
5850
5851fi
5852
aed6152d
NN
5853# See if the user wants to configure without libffi. Some
5854# architectures don't support it, and default values are set in
5855# configure.host.
ed698112 5856
c8fb9813
AG
5857# Check whether --with-libffi or --without-libffi was given.
5858if test "${with_libffi+set}" = set; then
5859 withval="$with_libffi"
aed6152d 5860 :
c8fb9813
AG
5861else
5862 with_libffi=${with_libffi_default-yes}
ed698112 5863fi;
c8fb9813
AG
5864
5865LIBFFI=
5866LIBFFIINCS=
5867if test "$with_libffi" != no; then
ed698112
NN
5868
5869cat >>confdefs.h <<\_ACEOF
c8fb9813 5870#define USE_LIBFFI 1
ed698112 5871_ACEOF
c8fb9813 5872
ce3b24a7 5873 LIBFFI=../libffi/libffi_convenience.la
a15e868a 5874 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
c8fb9813
AG
5875fi
5876
5877
5878
aed6152d 5879# See if the user wants to disable JVMPI support.
54c2f04b
AG
5880# Check whether --enable-jvmpi or --disable-jvmpi was given.
5881if test "${enable_jvmpi+set}" = set; then
5882 enableval="$enable_jvmpi"
54c2f04b 5883
ed698112 5884fi;
54c2f04b
AG
5885
5886if test "$enable_jvmpi" != no; then
ed698112
NN
5887
5888cat >>confdefs.h <<\_ACEOF
54c2f04b 5889#define ENABLE_JVMPI 1
ed698112 5890_ACEOF
54c2f04b
AG
5891
5892fi
5893
aed6152d
NN
5894# If the target is an eCos system, use the appropriate eCos
5895# I/O routines.
5896# FIXME: this should not be a local option but a global target
5897# system; at present there is no eCos target.
b5ee195f 5898TARGET_ECOS=${PROCESS-"no"}
ed698112 5899
ee9dd372
TT
5900# Check whether --with-ecos or --without-ecos was given.
5901if test "${with_ecos+set}" = set; then
5902 withval="$with_ecos"
5903 TARGET_ECOS="$with_ecos"
5904
ed698112 5905fi;
ee9dd372 5906
e3f92d3b 5907supply_backtrace=no
13229468 5908
c58f2900 5909PLATFORM_INNER_NAT_HDRS=
ee9dd372 5910case "$TARGET_ECOS" in
54a190dd 5911 no) case "$host" in
b8fe3c1e 5912 *mingw*)
54a190dd 5913 PLATFORM=Win32
9b5f18b1 5914 PLATFORMNET=Win32
65c9eafb 5915 PLATFORMH=win32.h
ed698112
NN
5916
5917echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5918echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
60c7f4ef
TT
5919LD_PROG=`$CC --print-prog-name=ld`
5920LD_VERSION=`$LD_PROG --version`
5921LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5922LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5923if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5924 LD_OK="ok"
5925else
5926 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5927 LD_OK="ok"
5928 fi
5929fi
5930if test "x$LD_OK" != x; then
ed698112
NN
5931 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5932echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
60c7f4ef 5933else
ed698112
NN
5934 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5936 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5937echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5938
5939cat >>confdefs.h <<\_ACEOF
60c7f4ef 5940#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
ed698112 5941_ACEOF
60c7f4ef
TT
5942
5943fi
54a190dd
AM
5944 ;;
5945 *)
5946 PLATFORM=Posix
9b5f18b1 5947 PLATFORMNET=Posix
65c9eafb 5948 PLATFORMH=posix.h
c58f2900 5949 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
54a190dd
AM
5950 ;;
5951 esac
ee9dd372
TT
5952 ;;
5953 *)
54a190dd 5954 PLATFORM=Ecos
9b5f18b1 5955 PLATFORMNET=NoNet
ed698112
NN
5956
5957cat >>confdefs.h <<\_ACEOF
ee9dd372 5958#define ECOS 1
ed698112 5959_ACEOF
ee9dd372 5960
65c9eafb 5961 PLATFORMH=posix.h
ee9dd372
TT
5962 ;;
5963esac
5964
614c0fc2 5965 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
d7799ba1
AM
5966
5967
ed698112
NN
5968ac_ext=c
5969ac_cpp='$CPP $CPPFLAGS'
5970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5974echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ee9dd372
TT
5975# On Suns, sometimes $CPP names a directory.
5976if test -n "$CPP" && test -d "$CPP"; then
5977 CPP=
5978fi
5979if test -z "$CPP"; then
ed698112
NN
5980 if test "${ac_cv_prog_CPP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 # Double quotes because CPP needs to be expanded
5984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5985 do
5986 ac_preproc_ok=false
5987for ac_c_preproc_warn_flag in '' yes
5988do
5989 # Use a header file that comes with gcc, so configuring glibc
5990 # with a fresh cross-compiler works.
5991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 # <limits.h> exists even on freestanding compilers.
ee9dd372 5993 # On the NeXT, cc -E runs the code through the compiler's parser,
ed698112
NN
5994 # not just through cpp. "Syntax error" is here to catch this case.
5995 cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
6001#ifdef __STDC__
6002# include <limits.h>
6003#else
6004# include <assert.h>
6005#endif
6006 Syntax error
6007_ACEOF
6008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null; then
6016 if test -s conftest.err; then
6017 ac_cpp_err=$ac_c_preproc_warn_flag
6018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6019 else
6020 ac_cpp_err=
6021 fi
ee9dd372 6022else
ed698112
NN
6023 ac_cpp_err=yes
6024fi
6025if test -z "$ac_cpp_err"; then
ee9dd372
TT
6026 :
6027else
ed698112
NN
6028 echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 # Broken: fails on valid input.
6032continue
6033fi
6034rm -f conftest.err conftest.$ac_ext
6035
6036 # OK, works on sane cases. Now check whether non-existent headers
6037 # can be detected and how.
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044#include <ac_nonexistent.h>
6045_ACEOF
6046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null; then
6054 if test -s conftest.err; then
6055 ac_cpp_err=$ac_c_preproc_warn_flag
6056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057 else
6058 ac_cpp_err=
6059 fi
ee9dd372 6060else
ed698112 6061 ac_cpp_err=yes
ee9dd372 6062fi
ed698112
NN
6063if test -z "$ac_cpp_err"; then
6064 # Broken: success on invalid input.
6065continue
6066else
6067 echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 # Passes both tests.
6071ac_preproc_ok=:
6072break
ee9dd372 6073fi
ed698112
NN
6074rm -f conftest.err conftest.$ac_ext
6075
6076done
6077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6078rm -f conftest.err conftest.$ac_ext
6079if $ac_preproc_ok; then
6080 break
ee9dd372 6081fi
ed698112
NN
6082
6083 done
6084 ac_cv_prog_CPP=$CPP
6085
6086fi
6087 CPP=$ac_cv_prog_CPP
6088else
6089 ac_cv_prog_CPP=$CPP
6090fi
6091echo "$as_me:$LINENO: result: $CPP" >&5
6092echo "${ECHO_T}$CPP" >&6
6093ac_preproc_ok=false
6094for ac_c_preproc_warn_flag in '' yes
6095do
6096 # Use a header file that comes with gcc, so configuring glibc
6097 # with a fresh cross-compiler works.
6098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6099 # <limits.h> exists even on freestanding compilers.
6100 # On the NeXT, cc -E runs the code through the compiler's parser,
6101 # not just through cpp. "Syntax error" is here to catch this case.
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#ifdef __STDC__
6109# include <limits.h>
6110#else
6111# include <assert.h>
6112#endif
6113 Syntax error
6114_ACEOF
6115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } >/dev/null; then
6123 if test -s conftest.err; then
6124 ac_cpp_err=$ac_c_preproc_warn_flag
6125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6126 else
6127 ac_cpp_err=
6128 fi
6129else
6130 ac_cpp_err=yes
ee9dd372 6131fi
ed698112
NN
6132if test -z "$ac_cpp_err"; then
6133 :
6134else
6135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 # Broken: fails on valid input.
6139continue
6140fi
6141rm -f conftest.err conftest.$ac_ext
6142
6143 # OK, works on sane cases. Now check whether non-existent headers
6144 # can be detected and how.
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151#include <ac_nonexistent.h>
6152_ACEOF
6153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164 else
6165 ac_cpp_err=
6166 fi
ee9dd372 6167else
ed698112 6168 ac_cpp_err=yes
ee9dd372 6169fi
ed698112
NN
6170if test -z "$ac_cpp_err"; then
6171 # Broken: success on invalid input.
6172continue
6173else
6174 echo "$as_me: failed program was:" >&5
6175sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 6176
ed698112
NN
6177 # Passes both tests.
6178ac_preproc_ok=:
6179break
6180fi
6181rm -f conftest.err conftest.$ac_ext
6182
6183done
6184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185rm -f conftest.err conftest.$ac_ext
6186if $ac_preproc_ok; then
6187 :
6188else
6189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6190See \`config.log' for more details." >&5
6191echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6192See \`config.log' for more details." >&2;}
6193 { (exit 1); exit 1; }; }
6194fi
6195
6196ac_ext=c
6197ac_cpp='$CPP $CPPFLAGS'
6198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202
6203echo "$as_me:$LINENO: checking for egrep" >&5
6204echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6205if test "${ac_cv_prog_egrep+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207else
6208 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6209 then ac_cv_prog_egrep='grep -E'
6210 else ac_cv_prog_egrep='egrep'
6211 fi
6212fi
6213echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6214echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6215 EGREP=$ac_cv_prog_egrep
6216
6217
6218cat >conftest.$ac_ext <<_ACEOF
6219/* confdefs.h. */
6220_ACEOF
6221cat confdefs.h >>conftest.$ac_ext
6222cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h. */
0d16618c 6224#include <stdint.h>
ed698112
NN
6225
6226_ACEOF
ee9dd372 6227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6228 $EGREP "uint32_t" >/dev/null 2>&1; then
6229
6230cat >>confdefs.h <<\_ACEOF
ee9dd372 6231#define HAVE_INT32_DEFINED 1
ed698112 6232_ACEOF
ee9dd372
TT
6233
6234fi
6235rm -f conftest*
6236
ed698112
NN
6237cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
0d16618c 6243#include <inttypes.h>
ed698112
NN
6244
6245_ACEOF
ee9dd372 6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6247 $EGREP "uint32_t" >/dev/null 2>&1; then
6248
6249cat >>confdefs.h <<\_ACEOF
ee9dd372 6250#define HAVE_INT32_DEFINED 1
ed698112 6251_ACEOF
ee9dd372
TT
6252
6253fi
6254rm -f conftest*
6255
ed698112
NN
6256cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
0d16618c 6262#include <sys/types.h>
ed698112
NN
6263
6264_ACEOF
0d16618c 6265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6266 $EGREP "u_int32_t" >/dev/null 2>&1; then
6267
6268cat >>confdefs.h <<\_ACEOF
0d16618c 6269#define HAVE_BSD_INT32_DEFINED 1
ed698112 6270_ACEOF
0d16618c
TT
6271
6272fi
6273rm -f conftest*
6274
ed698112
NN
6275cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
0d16618c 6281#include <sys/config.h>
ed698112
NN
6282
6283_ACEOF
0d16618c 6284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6285 $EGREP "u_int32_t" >/dev/null 2>&1; then
6286
6287cat >>confdefs.h <<\_ACEOF
0d16618c 6288#define HAVE_BSD_INT32_DEFINED 1
ed698112 6289_ACEOF
0d16618c
TT
6290
6291fi
6292rm -f conftest*
6293
6294
ee9dd372 6295
e3f92d3b
MK
6296
6297if test "$PLATFORM" = Win32; then
6298 USING_WIN32_PLATFORM_TRUE=
6299 USING_WIN32_PLATFORM_FALSE='#'
6300else
6301 USING_WIN32_PLATFORM_TRUE='#'
6302 USING_WIN32_PLATFORM_FALSE=
6303fi
6304
6305
6306
6307if test "$PLATFORM" = Posix; then
6308 USING_POSIX_PLATFORM_TRUE=
6309 USING_POSIX_PLATFORM_FALSE='#'
6310else
6311 USING_POSIX_PLATFORM_TRUE='#'
6312 USING_POSIX_PLATFORM_FALSE=
6313fi
6314
6315
6316
6317if test "$PLATFORM" = Ecos; then
6318 USING_ECOS_PLATFORM_TRUE=
6319 USING_ECOS_PLATFORM_FALSE='#'
6320else
6321 USING_ECOS_PLATFORM_TRUE='#'
6322 USING_ECOS_PLATFORM_FALSE=
6323fi
6324
6325
f1a66265
GK
6326case "$host" in
6327 *-darwin*) DARWIN_CRT=true ;;
6328 *) DARWIN_CRT=false ;;
6329esac
6330
6331
6332if $DARWIN_CRT; then
6333 USING_DARWIN_CRT_TRUE=
6334 USING_DARWIN_CRT_FALSE='#'
6335else
6336 USING_DARWIN_CRT_TRUE='#'
6337 USING_DARWIN_CRT_FALSE=
6338fi
6339
6340
aed6152d
NN
6341# These may not be defined in a non-ANS conformant embedded system.
6342# FIXME: Should these case a runtime exception in that case?
ed698112
NN
6343cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
ee9dd372 6349#include <time.h>
ed698112
NN
6350
6351_ACEOF
ee9dd372 6352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6353 $EGREP "mktime" >/dev/null 2>&1; then
6354
6355cat >>confdefs.h <<\_ACEOF
ee9dd372 6356#define HAVE_MKTIME 1
ed698112 6357_ACEOF
ee9dd372
TT
6358
6359fi
6360rm -f conftest*
6361
ed698112
NN
6362cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
ee9dd372 6368#include <time.h>
ed698112
NN
6369
6370_ACEOF
ee9dd372 6371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
6372 $EGREP "localtime" >/dev/null 2>&1; then
6373
6374cat >>confdefs.h <<\_ACEOF
ee9dd372 6375#define HAVE_LOCALTIME 1
ed698112 6376_ACEOF
ee9dd372
TT
6377
6378fi
6379rm -f conftest*
6380
6381
aed6152d
NN
6382# Create the subdirectory for natFile.cc, or the attempt
6383# to create the link will fail.
ee9dd372
TT
6384test -d java || mkdir java
6385test -d java/io || mkdir java/io
213858c0 6386test -d gnu || mkdir gnu
614c0fc2 6387 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
ee9dd372
TT
6388
6389
aed6152d 6390# Likewise for ConcreteProcess.java and natConcreteProcess.cc.
42962a48 6391test -d java/lang || mkdir java/lang
614c0fc2
TF
6392 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6393
6394 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
42962a48
TT
6395
6396
aed6152d 6397# Likewise for natInetAddress.cc and natNetworkInterface.cc.
9b5f18b1 6398test -d java/net || mkdir java/net
614c0fc2
TF
6399 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6400
6401 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
9b5f18b1
MK
6402
6403
aed6152d 6404# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
4a503716
MK
6405test -d gnu/java || mkdir gnu/java
6406test -d gnu/java/net || mkdir gnu/java/net
614c0fc2
TF
6407 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6408
6409 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
9b5f18b1
MK
6410
6411
aed6152d 6412# Likewise for natPipeImpl.cc and natSelectorImpl.cc.
4ba6d1c3 6413test -d gnu/java/nio || mkdir gnu/java/nio
614c0fc2
TF
6414 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6415
6416 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
4ba6d1c3 6417
76c88fd9 6418test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
614c0fc2 6419 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
76c88fd9 6420
4ba6d1c3 6421
4a8e624f 6422case "${host}" in
b8fe3c1e 6423 *mingw*)
5b5662ee 6424 SYSTEMSPEC="-lgdi32 -lws2_32"
83c02e38
ME
6425 if test "${with_win32_nlsapi}" = "unicows"; then
6426 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6427 fi
4a8e624f
AM
6428 ;;
6429 *)
6430 SYSTEMSPEC=
6431 ;;
6432esac
f994389b
TT
6433
6434
1e6347d8 6435LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
0f9c645e
AG
6436
6437
ed698112 6438
f994389b
TT
6439# Check whether --with-system-zlib or --without-system-zlib was given.
6440if test "${with_system_zlib+set}" = set; then
6441 withval="$with_system_zlib"
f994389b 6442
ed698112 6443fi;
f994389b
TT
6444ZLIBSPEC=
6445
0f9c645e
AG
6446ZLIBTESTSPEC=
6447
f994389b 6448
2c92e90f 6449echo "$as_me:$LINENO: checking for X" >&5
ed698112
NN
6450echo $ECHO_N "checking for X... $ECHO_C" >&6
6451
f994389b 6452
5aac1dac
TT
6453# Check whether --with-x or --without-x was given.
6454if test "${with_x+set}" = set; then
6455 withval="$with_x"
ee9dd372 6456
ed698112 6457fi;
5aac1dac
TT
6458# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6459if test "x$with_x" = xno; then
6460 # The user explicitly disabled X.
6461 have_x=disabled
6462else
6463 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6464 # Both variables are already set.
6465 have_x=yes
6466 else
ed698112
NN
6467 if test "${ac_cv_have_x+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
6469else
6470 # One or both of the vars are not set, and there is no cached value.
ed698112
NN
6471ac_x_includes=no ac_x_libraries=no
6472rm -fr conftest.dir
6473if mkdir conftest.dir; then
6474 cd conftest.dir
5aac1dac 6475 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
ed698112 6476 cat >Imakefile <<'_ACEOF'
5aac1dac
TT
6477acfindx:
6478 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
ed698112 6479_ACEOF
5aac1dac
TT
6480 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6482 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6484 for ac_extension in a so sl; do
6485 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ed698112
NN
6486 test -f $ac_im_libdir/libX11.$ac_extension; then
6487 ac_im_usrlibdir=$ac_im_libdir; break
5aac1dac
TT
6488 fi
6489 done
6490 # Screen out bogus values from the imake configuration. They are
6491 # bogus both because they are the default anyway, and because
6492 # using them would break gcc on systems where it needs fixed includes.
ed698112 6493 case $ac_im_incroot in
5aac1dac 6494 /usr/include) ;;
ed698112 6495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5aac1dac 6496 esac
ed698112 6497 case $ac_im_usrlibdir in
5aac1dac 6498 /usr/lib | /lib) ;;
ed698112 6499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5aac1dac
TT
6500 esac
6501 fi
6502 cd ..
ed698112 6503 rm -fr conftest.dir
5aac1dac 6504fi
ee9dd372 6505
ed698112
NN
6506# Standard set of common directories for X headers.
6507# Check X11 before X11Rn because it is often a symlink to the current release.
6508ac_x_header_dirs='
6509/usr/X11/include
6510/usr/X11R6/include
6511/usr/X11R5/include
6512/usr/X11R4/include
6513
6514/usr/include/X11
6515/usr/include/X11R6
6516/usr/include/X11R5
6517/usr/include/X11R4
6518
6519/usr/local/X11/include
6520/usr/local/X11R6/include
6521/usr/local/X11R5/include
6522/usr/local/X11R4/include
6523
6524/usr/local/include/X11
6525/usr/local/include/X11R6
6526/usr/local/include/X11R5
6527/usr/local/include/X11R4
6528
6529/usr/X386/include
6530/usr/x386/include
6531/usr/XFree86/include/X11
6532
6533/usr/include
6534/usr/local/include
6535/usr/unsupported/include
6536/usr/athena/include
6537/usr/local/x11r5/include
6538/usr/lpp/Xamples/include
6539
6540/usr/openwin/include
6541/usr/openwin/share/include'
6542
6543if test "$ac_x_includes" = no; then
2c92e90f 6544 # Guess where to find include files, by looking for Intrinsic.h.
5aac1dac 6545 # First, try using that file with no special directory specified.
ed698112
NN
6546 cat >conftest.$ac_ext <<_ACEOF
6547/* confdefs.h. */
6548_ACEOF
6549cat confdefs.h >>conftest.$ac_ext
6550cat >>conftest.$ac_ext <<_ACEOF
6551/* end confdefs.h. */
6552#include <X11/Intrinsic.h>
6553_ACEOF
6554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } >/dev/null; then
6562 if test -s conftest.err; then
6563 ac_cpp_err=$ac_c_preproc_warn_flag
6564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6565 else
6566 ac_cpp_err=
6567 fi
6568else
6569 ac_cpp_err=yes
6570fi
6571if test -z "$ac_cpp_err"; then
5aac1dac
TT
6572 # We can compile using X headers with no special include directory.
6573ac_x_includes=
6574else
ed698112
NN
6575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 for ac_dir in $ac_x_header_dirs; do
6579 if test -r "$ac_dir/X11/Intrinsic.h"; then
6580 ac_x_includes=$ac_dir
6581 break
6582 fi
6583done
5aac1dac 6584fi
ed698112
NN
6585rm -f conftest.err conftest.$ac_ext
6586fi # $ac_x_includes = no
ee9dd372 6587
ed698112 6588if test "$ac_x_libraries" = no; then
5aac1dac 6589 # Check for the libraries.
5aac1dac
TT
6590 # See if we find them without any special options.
6591 # Don't add to $LIBS permanently.
ed698112
NN
6592 ac_save_LIBS=$LIBS
6593 LIBS="-lXt $LIBS"
6594 if test x$gcc_no_link = xyes; then
6595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6596echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6597 { (exit 1); exit 1; }; }
6598fi
6599cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605#include <X11/Intrinsic.h>
6606int
6607main ()
6608{
6609XtMalloc (0)
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614rm -f conftest.$ac_objext conftest$ac_exeext
6615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
2c92e90f
KC
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
ed698112
NN
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 LIBS=$ac_save_LIBS
5aac1dac
TT
6637# We can link X programs with no special library path.
6638ac_x_libraries=
6639else
ed698112
NN
6640 echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643LIBS=$ac_save_LIBS
6644for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5aac1dac 6645do
ed698112 6646 # Don't even attempt the hair of trying to link an X program!
5aac1dac 6647 for ac_extension in a so sl; do
ed698112 6648 if test -r $ac_dir/libXt.$ac_extension; then
5aac1dac
TT
6649 ac_x_libraries=$ac_dir
6650 break 2
6651 fi
6652 done
6653done
6654fi
ed698112
NN
6655rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657fi # $ac_x_libraries = no
ee9dd372 6658
ed698112 6659if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5aac1dac
TT
6660 # Didn't find X anywhere. Cache the known absence of X.
6661 ac_cv_have_x="have_x=no"
6662else
6663 # Record where we found X for the cache.
6664 ac_cv_have_x="have_x=yes \
ed698112 6665 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5aac1dac
TT
6666fi
6667fi
ed698112 6668
5aac1dac
TT
6669 fi
6670 eval "$ac_cv_have_x"
6671fi # $with_x != no
ee9dd372 6672
5aac1dac 6673if test "$have_x" != yes; then
ed698112
NN
6674 echo "$as_me:$LINENO: result: $have_x" >&5
6675echo "${ECHO_T}$have_x" >&6
5aac1dac
TT
6676 no_x=yes
6677else
6678 # If each of the values was on the command line, it overrides each guess.
6679 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6680 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6681 # Update the cache value to reflect the command line values.
6682 ac_cv_have_x="have_x=yes \
6683 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2c92e90f
KC
6684 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6685echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5aac1dac 6686fi
f994389b 6687
5aac1dac
TT
6688if test "$no_x" = yes; then
6689 # Not all programs may use this symbol, but it does not hurt to define it.
ed698112
NN
6690
6691cat >>confdefs.h <<\_ACEOF
5aac1dac 6692#define X_DISPLAY_MISSING 1
ed698112 6693_ACEOF
ee9dd372 6694
5aac1dac
TT
6695 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6696else
6697 if test -n "$x_includes"; then
6698 X_CFLAGS="$X_CFLAGS -I$x_includes"
6699 fi
ee9dd372 6700
5aac1dac
TT
6701 # It would also be nice to do this for all -L options, not just this one.
6702 if test -n "$x_libraries"; then
6703 X_LIBS="$X_LIBS -L$x_libraries"
6704 # For Solaris; some versions of Sun CC require a space after -R and
6705 # others require no space. Words are not sufficient . . . .
ed698112 6706 case `(uname -sr) 2>/dev/null` in
5aac1dac 6707 "SunOS 5"*)
ed698112
NN
6708 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6709echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6710 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6711 if test x$gcc_no_link = xyes; then
6712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6713echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6714 { (exit 1); exit 1; }; }
6715fi
6716cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
7f6e0fe6 6722
ed698112
NN
6723int
6724main ()
6725{
7f6e0fe6 6726
ed698112
NN
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext
6732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
2c92e90f
KC
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
ed698112
NN
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
5aac1dac
TT
6753 ac_R_nospace=yes
6754else
ed698112
NN
6755 echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758ac_R_nospace=no
5aac1dac 6759fi
ed698112
NN
6760rm -f conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
5aac1dac 6762 if test $ac_R_nospace = yes; then
ed698112
NN
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
5aac1dac
TT
6765 X_LIBS="$X_LIBS -R$x_libraries"
6766 else
6767 LIBS="$ac_xsave_LIBS -R $x_libraries"
ed698112
NN
6768 if test x$gcc_no_link = xyes; then
6769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6770echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6771 { (exit 1); exit 1; }; }
6772fi
6773cat >conftest.$ac_ext <<_ACEOF
6774/* confdefs.h. */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h. */
7f6e0fe6 6779
ed698112
NN
6780int
6781main ()
6782{
ee9dd372 6783
ed698112
NN
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788rm -f conftest.$ac_objext conftest$ac_exeext
6789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
2c92e90f
KC
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
ed698112
NN
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
5aac1dac
TT
6810 ac_R_space=yes
6811else
ed698112
NN
6812 echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
6814
6815ac_R_space=no
5aac1dac 6816fi
ed698112
NN
6817rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
5aac1dac 6819 if test $ac_R_space = yes; then
ed698112
NN
6820 echo "$as_me:$LINENO: result: yes" >&5
6821echo "${ECHO_T}yes" >&6
5aac1dac
TT
6822 X_LIBS="$X_LIBS -R $x_libraries"
6823 else
ed698112
NN
6824 echo "$as_me:$LINENO: result: neither works" >&5
6825echo "${ECHO_T}neither works" >&6
5aac1dac
TT
6826 fi
6827 fi
ed698112 6828 LIBS=$ac_xsave_LIBS
5aac1dac
TT
6829 esac
6830 fi
ee9dd372 6831
5aac1dac
TT
6832 # Check for system-dependent libraries X programs must link with.
6833 # Do this before checking for the system-independent R6 libraries
6834 # (-lICE), since we may need -lsocket or whatever for X linking.
ee9dd372 6835
5aac1dac
TT
6836 if test "$ISC" = yes; then
6837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6838 else
ed698112
NN
6839 # Martyn Johnson says this is needed for Ultrix, if the X
6840 # libraries were built with DECnet support. And Karl Berry says
5aac1dac 6841 # the Alpha needs dnet_stub (dnet does not exist).
ed698112
NN
6842 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6843 if test x$gcc_no_link = xyes; then
6844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6845echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6846 { (exit 1); exit 1; }; }
6847fi
6848cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854
5aac1dac 6855/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
6856#ifdef __cplusplus
6857extern "C"
6858#endif
5aac1dac 6859/* We use char because int might match the return type of a gcc2
ed698112
NN
6860 builtin and then its argument prototype would still apply. */
6861char XOpenDisplay ();
6862int
6863main ()
6864{
6865XOpenDisplay ();
6866 ;
6867 return 0;
6868}
6869_ACEOF
6870rm -f conftest.$ac_objext conftest$ac_exeext
6871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
2c92e90f
KC
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
ed698112
NN
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 :
6893else
6894 echo "$as_me: failed program was:" >&5
6895sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 6896
ed698112
NN
6897echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6898echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6899if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 6901else
ed698112
NN
6902 ac_check_lib_save_LIBS=$LIBS
6903LIBS="-ldnet $LIBS"
6904if test x$gcc_no_link = xyes; then
6905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6906echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6907 { (exit 1); exit 1; }; }
6908fi
6909cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h. */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h. */
45597167 6915
ed698112
NN
6916/* Override any gcc2 internal prototype to avoid an error. */
6917#ifdef __cplusplus
6918extern "C"
6919#endif
6920/* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6922char dnet_ntoa ();
6923int
6924main ()
6925{
6926dnet_ntoa ();
6927 ;
6928 return 0;
6929}
6930_ACEOF
6931rm -f conftest.$ac_objext conftest$ac_exeext
6932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
2c92e90f
KC
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
ed698112
NN
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_lib_dnet_dnet_ntoa=yes
6954else
6955 echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958ac_cv_lib_dnet_dnet_ntoa=no
6959fi
6960rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962LIBS=$ac_check_lib_save_LIBS
6963fi
6964echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6965echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6966if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5aac1dac 6967 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5aac1dac 6968fi
45597167 6969
5aac1dac 6970 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
ed698112
NN
6971 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6972echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6973if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 6975else
ed698112 6976 ac_check_lib_save_LIBS=$LIBS
5aac1dac 6977LIBS="-ldnet_stub $LIBS"
ed698112
NN
6978if test x$gcc_no_link = xyes; then
6979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6980echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6981 { (exit 1); exit 1; }; }
6982fi
6983cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h. */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h. */
6989
5aac1dac 6990/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
6991#ifdef __cplusplus
6992extern "C"
6993#endif
5aac1dac 6994/* We use char because int might match the return type of a gcc2
ed698112
NN
6995 builtin and then its argument prototype would still apply. */
6996char dnet_ntoa ();
6997int
6998main ()
6999{
7000dnet_ntoa ();
7001 ;
7002 return 0;
7003}
7004_ACEOF
7005rm -f conftest.$ac_objext conftest$ac_exeext
7006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
2c92e90f
KC
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
ed698112
NN
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7028else
7029 echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032ac_cv_lib_dnet_stub_dnet_ntoa=no
7033fi
7034rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036LIBS=$ac_check_lib_save_LIBS
7037fi
7038echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7039echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7040if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5aac1dac 7041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
cf6b8de4
TT
7042fi
7043
5aac1dac 7044 fi
ed698112
NN
7045fi
7046rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 LIBS="$ac_xsave_LIBS"
cf6b8de4 7049
5aac1dac
TT
7050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7051 # to get the SysV transport functions.
ed698112 7052 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5aac1dac
TT
7053 # needs -lnsl.
7054 # The nsl library prevents programs from opening the X display
ed698112
NN
7055 # on Irix 5.2, according to T.E. Dickey.
7056 # The functions gethostbyname, getservbyname, and inet_addr are
7057 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7058 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7059echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7060if test "${ac_cv_func_gethostbyname+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 if test x$gcc_no_link = xyes; then
7064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7065echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7066 { (exit 1); exit 1; }; }
7067fi
7068cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076#define gethostbyname innocuous_gethostbyname
7077
ee9dd372 7078/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
7079 which can conflict with char gethostbyname (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7082
7083#ifdef __STDC__
7084# include <limits.h>
7085#else
7086# include <assert.h>
7087#endif
ee9dd372 7088
ed698112 7089#undef gethostbyname
ee9dd372 7090
ed698112
NN
7091/* Override any gcc2 internal prototype to avoid an error. */
7092#ifdef __cplusplus
7093extern "C"
7094{
7095#endif
7096/* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098char gethostbyname ();
ee9dd372
TT
7099/* The GNU C library defines this for functions which it implements
7100 to always fail with ENOSYS. Some functions are actually named
7101 something starting with __ and the normal name is an alias. */
5aac1dac 7102#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
ee9dd372
TT
7103choke me
7104#else
ed698112
NN
7105char (*f) () = gethostbyname;
7106#endif
7107#ifdef __cplusplus
7108}
ee9dd372
TT
7109#endif
7110
ed698112
NN
7111int
7112main ()
7113{
7114return f != gethostbyname;
7115 ;
7116 return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
7120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
2c92e90f
KC
7128 { ac_try='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
ed698112
NN
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest$ac_exeext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_func_gethostbyname=yes
7142else
7143 echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7146ac_cv_func_gethostbyname=no
7147fi
7148rm -f conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150fi
7151echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7152echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
ee9dd372 7153
5aac1dac 7154 if test $ac_cv_func_gethostbyname = no; then
ed698112
NN
7155 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7156echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7157if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
fe5e3b97 7159else
ed698112 7160 ac_check_lib_save_LIBS=$LIBS
5aac1dac 7161LIBS="-lnsl $LIBS"
ed698112
NN
7162if test x$gcc_no_link = xyes; then
7163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7164echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7165 { (exit 1); exit 1; }; }
7166fi
7167cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173
fe5e3b97 7174/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
7175#ifdef __cplusplus
7176extern "C"
7177#endif
fe5e3b97 7178/* We use char because int might match the return type of a gcc2
ed698112
NN
7179 builtin and then its argument prototype would still apply. */
7180char gethostbyname ();
7181int
7182main ()
7183{
7184gethostbyname ();
7185 ;
7186 return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext conftest$ac_exeext
7190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
2c92e90f
KC
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
ed698112
NN
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_nsl_gethostbyname=yes
7212else
7213 echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216ac_cv_lib_nsl_gethostbyname=no
7217fi
7218rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220LIBS=$ac_check_lib_save_LIBS
7221fi
7222echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7223echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7224if test $ac_cv_lib_nsl_gethostbyname = yes; then
7225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7226fi
fe5e3b97 7227
ed698112
NN
7228 if test $ac_cv_lib_nsl_gethostbyname = no; then
7229 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7230echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7231if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
fe5e3b97 7233else
ed698112
NN
7234 ac_check_lib_save_LIBS=$LIBS
7235LIBS="-lbsd $LIBS"
7236if test x$gcc_no_link = xyes; then
7237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7238echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7239 { (exit 1); exit 1; }; }
fe5e3b97 7240fi
ed698112
NN
7241cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
fe5e3b97 7247
ed698112
NN
7248/* Override any gcc2 internal prototype to avoid an error. */
7249#ifdef __cplusplus
7250extern "C"
7251#endif
7252/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254char gethostbyname ();
7255int
7256main ()
7257{
7258gethostbyname ();
7259 ;
7260 return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
2c92e90f
KC
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
ed698112
NN
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_bsd_gethostbyname=yes
7286else
7287 echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290ac_cv_lib_bsd_gethostbyname=no
7291fi
7292rm -f conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294LIBS=$ac_check_lib_save_LIBS
7295fi
7296echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7297echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7298if test $ac_cv_lib_bsd_gethostbyname = yes; then
7299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fe5e3b97 7300fi
fe5e3b97 7301
ed698112 7302 fi
5aac1dac
TT
7303 fi
7304
7305 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7306 # socket/setsockopt and other routines are undefined under SCO ODT
7307 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
ed698112
NN
7308 # on later versions), says Simon Leinen: it contains gethostby*
7309 # variants that don't use the name server (or something). -lsocket
7310 # must be given before -lnsl if both are needed. We assume that
7311 # if connect needs -lnsl, so does gethostbyname.
7312 echo "$as_me:$LINENO: checking for connect" >&5
7313echo $ECHO_N "checking for connect... $ECHO_C" >&6
7314if test "${ac_cv_func_connect+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316else
7317 if test x$gcc_no_link = xyes; then
7318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7319echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7320 { (exit 1); exit 1; }; }
7321fi
7322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7330#define connect innocuous_connect
7331
ee9dd372 7332/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
7333 which can conflict with char connect (); below.
7334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 <limits.h> exists even on freestanding compilers. */
7336
7337#ifdef __STDC__
7338# include <limits.h>
7339#else
7340# include <assert.h>
7341#endif
ee9dd372 7342
ed698112 7343#undef connect
ee9dd372 7344
ed698112
NN
7345/* Override any gcc2 internal prototype to avoid an error. */
7346#ifdef __cplusplus
7347extern "C"
7348{
7349#endif
7350/* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352char connect ();
ee9dd372
TT
7353/* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
5aac1dac 7356#if defined (__stub_connect) || defined (__stub___connect)
ee9dd372
TT
7357choke me
7358#else
ed698112
NN
7359char (*f) () = connect;
7360#endif
7361#ifdef __cplusplus
7362}
ee9dd372
TT
7363#endif
7364
ed698112
NN
7365int
7366main ()
7367{
7368return f != connect;
7369 ;
7370 return 0;
7371}
7372_ACEOF
7373rm -f conftest.$ac_objext conftest$ac_exeext
7374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
2c92e90f
KC
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
ed698112
NN
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_cv_func_connect=yes
7396else
7397 echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400ac_cv_func_connect=no
7401fi
7402rm -f conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7404fi
7405echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7406echo "${ECHO_T}$ac_cv_func_connect" >&6
ee9dd372 7407
5aac1dac 7408 if test $ac_cv_func_connect = no; then
ed698112
NN
7409 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7410echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7411if test "${ac_cv_lib_socket_connect+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 7413else
ed698112 7414 ac_check_lib_save_LIBS=$LIBS
5aac1dac 7415LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
ed698112
NN
7416if test x$gcc_no_link = xyes; then
7417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7418echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7419 { (exit 1); exit 1; }; }
7420fi
7421cat >conftest.$ac_ext <<_ACEOF
7422/* confdefs.h. */
7423_ACEOF
7424cat confdefs.h >>conftest.$ac_ext
7425cat >>conftest.$ac_ext <<_ACEOF
7426/* end confdefs.h. */
7427
ee9dd372 7428/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
7429#ifdef __cplusplus
7430extern "C"
7431#endif
ee9dd372 7432/* We use char because int might match the return type of a gcc2
ed698112
NN
7433 builtin and then its argument prototype would still apply. */
7434char connect ();
7435int
7436main ()
7437{
7438connect ();
7439 ;
7440 return 0;
7441}
7442_ACEOF
7443rm -f conftest.$ac_objext conftest$ac_exeext
7444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445 (eval $ac_link) 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
2c92e90f
KC
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
ed698112
NN
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_lib_socket_connect=yes
7466else
7467 echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470ac_cv_lib_socket_connect=no
7471fi
7472rm -f conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474LIBS=$ac_check_lib_save_LIBS
7475fi
7476echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7477echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7478if test $ac_cv_lib_socket_connect = yes; then
5aac1dac 7479 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ee9dd372 7480fi
ee9dd372 7481
5aac1dac
TT
7482 fi
7483
ed698112
NN
7484 # Guillermo Gomez says -lposix is necessary on A/UX.
7485 echo "$as_me:$LINENO: checking for remove" >&5
7486echo $ECHO_N "checking for remove... $ECHO_C" >&6
7487if test "${ac_cv_func_remove+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490 if test x$gcc_no_link = xyes; then
7491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7492echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7493 { (exit 1); exit 1; }; }
7494fi
7495cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7503#define remove innocuous_remove
7504
ee9dd372 7505/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
7506 which can conflict with char remove (); below.
7507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508 <limits.h> exists even on freestanding compilers. */
7509
7510#ifdef __STDC__
7511# include <limits.h>
7512#else
7513# include <assert.h>
7514#endif
ee9dd372 7515
ed698112 7516#undef remove
ee9dd372 7517
ed698112
NN
7518/* Override any gcc2 internal prototype to avoid an error. */
7519#ifdef __cplusplus
7520extern "C"
7521{
7522#endif
7523/* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525char remove ();
ee9dd372
TT
7526/* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
5aac1dac 7529#if defined (__stub_remove) || defined (__stub___remove)
ee9dd372
TT
7530choke me
7531#else
ed698112
NN
7532char (*f) () = remove;
7533#endif
7534#ifdef __cplusplus
7535}
ee9dd372
TT
7536#endif
7537
ed698112
NN
7538int
7539main ()
7540{
7541return f != remove;
7542 ;
7543 return 0;
7544}
7545_ACEOF
7546rm -f conftest.$ac_objext conftest$ac_exeext
7547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
2c92e90f
KC
7555 { ac_try='test -z "$ac_c_werror_flag"
7556 || test ! -s conftest.err'
ed698112
NN
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_func_remove=yes
7569else
7570 echo "$as_me: failed program was:" >&5
7571sed 's/^/| /' conftest.$ac_ext >&5
7572
7573ac_cv_func_remove=no
7574fi
7575rm -f conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7577fi
7578echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7579echo "${ECHO_T}$ac_cv_func_remove" >&6
ee9dd372 7580
5aac1dac 7581 if test $ac_cv_func_remove = no; then
ed698112
NN
7582 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7583echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7584if test "${ac_cv_lib_posix_remove+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 7586else
ed698112 7587 ac_check_lib_save_LIBS=$LIBS
5aac1dac 7588LIBS="-lposix $LIBS"
ed698112
NN
7589if test x$gcc_no_link = xyes; then
7590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7591echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7592 { (exit 1); exit 1; }; }
7593fi
7594cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600
ee9dd372 7601/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
7602#ifdef __cplusplus
7603extern "C"
7604#endif
ee9dd372 7605/* We use char because int might match the return type of a gcc2
ed698112
NN
7606 builtin and then its argument prototype would still apply. */
7607char remove ();
7608int
7609main ()
7610{
7611remove ();
7612 ;
7613 return 0;
7614}
7615_ACEOF
7616rm -f conftest.$ac_objext conftest$ac_exeext
7617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
2c92e90f
KC
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
ed698112
NN
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_lib_posix_remove=yes
7639else
7640 echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643ac_cv_lib_posix_remove=no
7644fi
7645rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647LIBS=$ac_check_lib_save_LIBS
7648fi
7649echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7650echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7651if test $ac_cv_lib_posix_remove = yes; then
5aac1dac 7652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
ee9dd372 7653fi
ee9dd372 7654
5aac1dac
TT
7655 fi
7656
7657 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
ed698112
NN
7658 echo "$as_me:$LINENO: checking for shmat" >&5
7659echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7660if test "${ac_cv_func_shmat+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 if test x$gcc_no_link = xyes; then
7664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7665echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7666 { (exit 1); exit 1; }; }
7667fi
7668cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h. */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h. */
7674/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7676#define shmat innocuous_shmat
7677
283a159f 7678/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
7679 which can conflict with char shmat (); below.
7680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681 <limits.h> exists even on freestanding compilers. */
283a159f 7682
ed698112
NN
7683#ifdef __STDC__
7684# include <limits.h>
7685#else
7686# include <assert.h>
7687#endif
283a159f 7688
ed698112
NN
7689#undef shmat
7690
7691/* Override any gcc2 internal prototype to avoid an error. */
7692#ifdef __cplusplus
7693extern "C"
7694{
7695#endif
7696/* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698char shmat ();
283a159f
AH
7699/* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
5aac1dac 7702#if defined (__stub_shmat) || defined (__stub___shmat)
283a159f
AH
7703choke me
7704#else
ed698112
NN
7705char (*f) () = shmat;
7706#endif
7707#ifdef __cplusplus
7708}
283a159f
AH
7709#endif
7710
ed698112
NN
7711int
7712main ()
7713{
7714return f != shmat;
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext conftest$ac_exeext
7720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721 (eval $ac_link) 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
2c92e90f
KC
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
ed698112
NN
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_func_shmat=yes
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746ac_cv_func_shmat=no
7747fi
7748rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750fi
7751echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7752echo "${ECHO_T}$ac_cv_func_shmat" >&6
283a159f 7753
5aac1dac 7754 if test $ac_cv_func_shmat = no; then
ed698112
NN
7755 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7756echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7757if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
283a159f 7759else
ed698112 7760 ac_check_lib_save_LIBS=$LIBS
5aac1dac 7761LIBS="-lipc $LIBS"
ed698112
NN
7762if test x$gcc_no_link = xyes; then
7763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7764echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7765 { (exit 1); exit 1; }; }
7766fi
7767cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
7773
5aac1dac 7774/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
7775#ifdef __cplusplus
7776extern "C"
7777#endif
5aac1dac 7778/* We use char because int might match the return type of a gcc2
ed698112
NN
7779 builtin and then its argument prototype would still apply. */
7780char shmat ();
7781int
7782main ()
7783{
7784shmat ();
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext conftest$ac_exeext
7790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
2c92e90f
KC
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
ed698112
NN
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_ipc_shmat=yes
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816ac_cv_lib_ipc_shmat=no
7817fi
7818rm -f conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820LIBS=$ac_check_lib_save_LIBS
7821fi
7822echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7823echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7824if test $ac_cv_lib_ipc_shmat = yes; then
5aac1dac 7825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
283a159f 7826fi
5aac1dac
TT
7827
7828 fi
7829 fi
7830
7831 # Check for libraries that X11R6 Xt/Xaw programs need.
ed698112 7832 ac_save_LDFLAGS=$LDFLAGS
5aac1dac
TT
7833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7835 # check for ICE first), but we must link in the order -lSM -lICE or
7836 # we get undefined symbols. So assume we have SM if we have ICE.
7837 # These have to be linked with before -lX11, unlike the other
7838 # libraries we check for below, so use a different variable.
ed698112
NN
7839 # John Interrante, Karl Berry
7840 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7841echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7842if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 ac_check_lib_save_LIBS=$LIBS
5aac1dac 7846LIBS="-lICE $X_EXTRA_LIBS $LIBS"
ed698112
NN
7847if test x$gcc_no_link = xyes; then
7848 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7849echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7850 { (exit 1); exit 1; }; }
7851fi
7852cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858
19367215 7859/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
7860#ifdef __cplusplus
7861extern "C"
7862#endif
19367215 7863/* We use char because int might match the return type of a gcc2
ed698112
NN
7864 builtin and then its argument prototype would still apply. */
7865char IceConnectionNumber ();
7866int
7867main ()
7868{
7869IceConnectionNumber ();
7870 ;
7871 return 0;
7872}
7873_ACEOF
7874rm -f conftest.$ac_objext conftest$ac_exeext
7875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
2c92e90f
KC
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
ed698112
NN
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_ICE_IceConnectionNumber=yes
7897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901ac_cv_lib_ICE_IceConnectionNumber=no
7902fi
7903rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS
7906fi
7907echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7908echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7909if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5aac1dac 7910 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5aac1dac
TT
7911fi
7912
ed698112 7913 LDFLAGS=$ac_save_LDFLAGS
5aac1dac
TT
7914
7915fi
7916
7917
aed6152d 7918# Determine which AWT peer libraries to build
5aac1dac
TT
7919# Check whether --enable-java-awt or --disable-java-awt was given.
7920if test "${enable_java_awt+set}" = set; then
7921 enableval="$enable_java_awt"
5aac1dac 7922
ed698112 7923fi;
5aac1dac
TT
7924
7925peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7926use_xlib_awt=""
7927use_gtk_awt=""
7928# The default toolkit to use is the first one specified.
7929TOOLKIT=
7930
7931
7932for peer in $peerlibs ; do
7933 case $peer in
7934 xlib)
7935 if test "$no_x" = yes; then
7936 echo "*** xlib peers requested but no X library available" 1>&2
7937 exit 1
7938 else
7939 use_xlib_awt="yes"
7940 if test -z "$TOOLKIT"; then
9e8e1bec 7941 TOOLKIT=gnu.awt.xlib.XToolkit
5aac1dac
TT
7942 fi
7943 fi
7944 ;;
7945 gtk)
7946 if test "$no_x" = yes; then
7947 echo "*** xlib peers requested but no X library available" 1>&2
7948 exit 1
7949 else
7950 use_gtk_awt=yes
7951 if test -z "$TOOLKIT"; then
7952 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7953 fi
7954 test -d jniinclude || mkdir jniinclude
7955 fi
7956 ;;
7957 no)
7958 use_xlib_awt=
7959 use_gtk_awt=
7960 break
7961 ;;
7962 *)
7963 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7964 exit 1
7965 esac
7966done
7967
7968
7969
7970if test "$use_xlib_awt" = yes; then
7971 XLIB_AWT_TRUE=
7972 XLIB_AWT_FALSE='#'
7973else
7974 XLIB_AWT_TRUE='#'
7975 XLIB_AWT_FALSE=
7976fi
7977
7978
e3f92d3b 7979
5aac1dac
TT
7980if test "$use_gtk_awt" = yes; then
7981 GTK_AWT_TRUE=
7982 GTK_AWT_FALSE='#'
7983else
7984 GTK_AWT_TRUE='#'
7985 GTK_AWT_FALSE=
7986fi
7987
e3f92d3b 7988
aed6152d 7989# determine whether to enable the cairo GTK Graphics2D backend
8fe7789e
GH
7990# Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7991if test "${enable_gtk_cairo+set}" = set; then
7992 enableval="$enable_gtk_cairo"
8fe7789e 7993
ed698112 7994fi;
8fe7789e
GH
7995
7996
7997if test "x${enable_gtk_cairo}" = xyes; then
7998 GTK_CAIRO_TRUE=
7999 GTK_CAIRO_FALSE='#'
8000else
8001 GTK_CAIRO_TRUE='#'
8002 GTK_CAIRO_FALSE=
8003fi
e3f92d3b 8004
8fe7789e
GH
8005if test "x${enable_gtk_cairo}" = xyes
8006then
ed698112 8007
8fe7789e
GH
8008 succeeded=no
8009
8010 if test -z "$PKG_CONFIG"; then
8011 # Extract the first word of "pkg-config", so it can be a program name with args.
8012set dummy pkg-config; ac_word=$2
ed698112
NN
8013echo "$as_me:$LINENO: checking for $ac_word" >&5
8014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8fe7789e 8017else
ed698112
NN
8018 case $PKG_CONFIG in
8019 [\\/]* | ?:[\\/]*)
8fe7789e
GH
8020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8021 ;;
8fe7789e 8022 *)
ed698112
NN
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035done
8036
8fe7789e
GH
8037 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8038 ;;
8039esac
8040fi
ed698112
NN
8041PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8042
8fe7789e 8043if test -n "$PKG_CONFIG"; then
ed698112
NN
8044 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8045echo "${ECHO_T}$PKG_CONFIG" >&6
8fe7789e 8046else
ed698112
NN
8047 echo "$as_me:$LINENO: result: no" >&5
8048echo "${ECHO_T}no" >&6
8fe7789e
GH
8049fi
8050
8051 fi
8052
8053 if test "$PKG_CONFIG" = "no" ; then
8054 echo "*** The pkg-config script could not be found. Make sure it is"
8055 echo "*** in your path, or set the PKG_CONFIG environment variable"
8056 echo "*** to the full path to pkg-config."
8057 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8058 else
8059 PKG_CONFIG_MIN_VERSION=0.9.0
8060 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ed698112
NN
8061 echo "$as_me:$LINENO: checking for cairo" >&5
8062echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8fe7789e
GH
8063
8064 if $PKG_CONFIG --exists "cairo" ; then
ed698112
NN
8065 echo "$as_me:$LINENO: result: yes" >&5
8066echo "${ECHO_T}yes" >&6
8fe7789e
GH
8067 succeeded=yes
8068
ed698112
NN
8069 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8070echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8fe7789e 8071 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
ed698112
NN
8072 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8073echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8fe7789e 8074
ed698112
NN
8075 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8076echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8fe7789e 8077 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
ed698112
NN
8078 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8079echo "${ECHO_T}$CAIRO_LIBS" >&6
8fe7789e
GH
8080 else
8081 CAIRO_CFLAGS=""
8082 CAIRO_LIBS=""
ed698112 8083 ## If we have a custom action on failure, don't print errors, but
8fe7789e
GH
8084 ## do set a variable so people can do so.
8085 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8086 echo $CAIRO_PKG_ERRORS
8087 fi
8088
ed698112
NN
8089
8090
8fe7789e
GH
8091 else
8092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8094 fi
8095 fi
8096
8097 if test $succeeded = yes; then
8098 :
8099 else
ed698112
NN
8100 { { 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
8101echo "$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;}
8102 { (exit 1); exit 1; }; }
8fe7789e
GH
8103 fi
8104
ed698112 8105
8fe7789e
GH
8106 succeeded=no
8107
8108 if test -z "$PKG_CONFIG"; then
8109 # Extract the first word of "pkg-config", so it can be a program name with args.
8110set dummy pkg-config; ac_word=$2
ed698112
NN
8111echo "$as_me:$LINENO: checking for $ac_word" >&5
8112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8fe7789e 8115else
ed698112
NN
8116 case $PKG_CONFIG in
8117 [\\/]* | ?:[\\/]*)
8fe7789e
GH
8118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8119 ;;
8fe7789e 8120 *)
ed698112
NN
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132done
8133done
8134
8fe7789e
GH
8135 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8136 ;;
8137esac
8138fi
ed698112
NN
8139PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8140
8fe7789e 8141if test -n "$PKG_CONFIG"; then
ed698112
NN
8142 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8143echo "${ECHO_T}$PKG_CONFIG" >&6
8fe7789e 8144else
ed698112
NN
8145 echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
8fe7789e
GH
8147fi
8148
8149 fi
8150
8151 if test "$PKG_CONFIG" = "no" ; then
8152 echo "*** The pkg-config script could not be found. Make sure it is"
8153 echo "*** in your path, or set the PKG_CONFIG environment variable"
8154 echo "*** to the full path to pkg-config."
8155 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8156 else
8157 PKG_CONFIG_MIN_VERSION=0.9.0
8158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ed698112
NN
8159 echo "$as_me:$LINENO: checking for pangoft2" >&5
8160echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8fe7789e
GH
8161
8162 if $PKG_CONFIG --exists "pangoft2" ; then
ed698112
NN
8163 echo "$as_me:$LINENO: result: yes" >&5
8164echo "${ECHO_T}yes" >&6
8fe7789e
GH
8165 succeeded=yes
8166
ed698112
NN
8167 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8168echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8fe7789e 8169 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
ed698112
NN
8170 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8171echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8fe7789e 8172
ed698112
NN
8173 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8174echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8fe7789e 8175 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
ed698112
NN
8176 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8177echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8fe7789e
GH
8178 else
8179 PANGOFT2_CFLAGS=""
8180 PANGOFT2_LIBS=""
ed698112 8181 ## If we have a custom action on failure, don't print errors, but
8fe7789e
GH
8182 ## do set a variable so people can do so.
8183 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8184 echo $PANGOFT2_PKG_ERRORS
8185 fi
8186
ed698112
NN
8187
8188
8fe7789e
GH
8189 else
8190 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8191 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8192 fi
8193 fi
8194
8195 if test $succeeded = yes; then
8196 :
8197 else
ed698112
NN
8198 { { 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
8199echo "$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;}
8200 { (exit 1); exit 1; }; }
8fe7789e
GH
8201 fi
8202
8203fi
8204
8205
8206
8207
5aac1dac 8208
aed6152d 8209# FIXME: this should be _libs on some hosts.
5aac1dac
TT
8210libsubdir=.libs
8211
aed6152d 8212# Allow the GC to be disabled. Can be useful when debugging.
ed698112
NN
8213echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8214echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
5aac1dac
TT
8215# Check whether --enable-java-gc or --disable-java-gc was given.
8216if test "${enable_java_gc+set}" = set; then
8217 enableval="$enable_java_gc"
5aac1dac
TT
8218 GC=$enableval
8219else
8220 GC=boehm
ed698112 8221fi;
5aac1dac
TT
8222GCLIBS=
8223GCINCS=
8224GCDEPS=
5aac1dac
TT
8225GCSPEC=
8226JC1GCSPEC=
8227GCTESTSPEC=
8228case "$GC" in
8229 boehm)
ed698112
NN
8230 echo "$as_me:$LINENO: result: boehm" >&5
8231echo "${ECHO_T}boehm" >&6
5aac1dac 8232 GCLIBS=../boehm-gc/libgcjgc_convenience.la
5aac1dac
TT
8233 JC1GCSPEC='-fuse-boehm-gc'
8234 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4109fe85 8235 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
5aac1dac
TT
8236 GCOBJS=boehm.lo
8237 GCHDR=boehm-gc.h
aed6152d 8238 # The POSIX thread support needs to know this.
ed698112
NN
8239
8240cat >>confdefs.h <<\_ACEOF
5aac1dac 8241#define HAVE_BOEHM_GC 1
ed698112 8242_ACEOF
5aac1dac
TT
8243
8244 ;;
8245 no)
ed698112
NN
8246 echo "$as_me:$LINENO: result: none" >&5
8247echo "${ECHO_T}none" >&6
5aac1dac
TT
8248 GCHDR=no-gc.h
8249 ;;
8250 *)
ed698112
NN
8251 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8252echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8253 { (exit 1); exit 1; }; }
5aac1dac
TT
8254 ;;
8255esac
8256
8257
8258
8259
8260
8261
614c0fc2 8262 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
5aac1dac
TT
8263
8264
8265
e3f92d3b
MK
8266if test "$GC" = boehm; then
8267 USING_BOEHMGC_TRUE=
8268 USING_BOEHMGC_FALSE='#'
8269else
8270 USING_BOEHMGC_TRUE='#'
8271 USING_BOEHMGC_FALSE=
8272fi
8273
8274
8275
8276if test "$GC" = no; then
8277 USING_NOGC_TRUE=
8278 USING_NOGC_FALSE='#'
8279else
8280 USING_NOGC_TRUE='#'
8281 USING_NOGC_FALSE=
8282fi
8283
8284
8285
ed698112
NN
8286echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8287echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5aac1dac 8288THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
ed698112
NN
8289echo "$as_me:$LINENO: result: $THREADS" >&5
8290echo "${ECHO_T}$THREADS" >&6
5aac1dac
TT
8291
8292case "$THREADS" in
8293 no | none | single)
8294 THREADS=none
8295 ;;
f3968b05 8296 posix | posix95 | pthreads)
5aac1dac
TT
8297 THREADS=posix
8298 case "$host" in
8299 *-*-linux*)
ed698112
NN
8300
8301cat >>confdefs.h <<\_ACEOF
5aac1dac 8302#define LINUX_THREADS 1
ed698112 8303_ACEOF
5aac1dac
TT
8304
8305 ;;
8306 esac
8307 ;;
8308 win32)
8309 ;;
8310 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
ed698112
NN
8311 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8312echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8313 { (exit 1); exit 1; }; }
5aac1dac
TT
8314 ;;
8315 *)
ed698112
NN
8316 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8317echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8318 { (exit 1); exit 1; }; }
5aac1dac
TT
8319 ;;
8320esac
8321
620a329b 8322THREADCXXFLAGS=
5aac1dac
TT
8323THREADLDFLAGS=
8324THREADLIBS=
8325THREADINCS=
8326THREADDEPS=
5aac1dac
TT
8327THREADH=
8328THREADSPEC=
8329case "$THREADS" in
8330 posix)
8331 case "$host" in
8332 *-*-cygwin*)
8333 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8334 ;;
5aac1dac 8335 *-*-freebsd[1234]*)
5aac1dac
TT
8336 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8337 # merely adds pthread_* functions) but it does have a -pthread switch
8338 # which is required at link-time to select -lc_r *instead* of -lc.
8339 THREADLDFLAGS=-pthread
8340 # Don't set THREADSPEC here as might be expected since -pthread is
8341 # not processed when found within a spec file, it must come from
8342 # the command line. For now, the user must provide the -pthread
8343 # switch to link code compiled with gcj. In future, consider adding
8344 # support for weak references to pthread_* functions ala gthr.h API.
56d6e6b1 8345 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
5aac1dac
TT
8346 ;;
8347 *-*-freebsd*)
8348 # FreeBSD 5 implements a model much closer to other modern UNIX
8349 # which support threads. However, it still does not support
8350 # -lpthread.
8351 THREADLDFLAGS=-pthread
8352 THREADSPEC=-lc_r
8353 ;;
620a329b
RS
8354 alpha*-dec-osf*)
8355 THREADCXXFLAGS=-pthread
8356 # boehm-gc needs some functions from librt, so link that too.
8357 THREADLIBS='-lpthread -lrt'
8358 THREADSPEC='-lpthread -lrt'
8359 ;;
5aac1dac
TT
8360 *)
8361 THREADLIBS=-lpthread
8362 THREADSPEC=-lpthread
8363 ;;
8364 esac
5aac1dac
TT
8365 THREADH=posix-threads.h
8366 # MIT pthreads doesn't seem to have the mutexattr functions.
8367 # But for now we don't check for it. We just assume you aren't
8368 # using MIT pthreads.
ed698112
NN
8369
8370cat >>confdefs.h <<\_ACEOF
5aac1dac 8371#define HAVE_PTHREAD_MUTEXATTR_INIT 1
ed698112 8372_ACEOF
5aac1dac
TT
8373
8374
8375 # If we're using the Boehm GC, then we happen to know that it
8376 # defines _REENTRANT, so we don't bother. Eww.
8377 if test "$GC" != boehm; then
ed698112
NN
8378
8379cat >>confdefs.h <<\_ACEOF
5aac1dac 8380#define _REENTRANT 1
ed698112 8381_ACEOF
5aac1dac
TT
8382
8383 fi
ed698112
NN
8384
8385cat >>confdefs.h <<\_ACEOF
5aac1dac 8386#define _POSIX_PTHREAD_SEMANTICS 1
ed698112 8387_ACEOF
5aac1dac
TT
8388
8389 ;;
8390
8391 win32)
5aac1dac
TT
8392 THREADH=win32-threads.h
8393 ;;
19367215 8394
5aac1dac 8395 none)
5aac1dac
TT
8396 THREADH=no-threads.h
8397 ;;
8398esac
614c0fc2 8399 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
19367215 8400
19367215 8401
19367215 8402
19367215 8403
e4261ef7 8404
e4261ef7 8405
19367215
HB
8406
8407
620a329b 8408
e3f92d3b
MK
8409if test "$THREADS" = posix; then
8410 USING_POSIX_THREADS_TRUE=
8411 USING_POSIX_THREADS_FALSE='#'
8412else
8413 USING_POSIX_THREADS_TRUE='#'
8414 USING_POSIX_THREADS_FALSE=
8415fi
8416
8417
8418
8419if test "$THREADS" = win32; then
8420 USING_WIN32_THREADS_TRUE=
8421 USING_WIN32_THREADS_FALSE='#'
8422else
8423 USING_WIN32_THREADS_TRUE='#'
8424 USING_WIN32_THREADS_FALSE=
8425fi
8426
8427
8428
8429if test "$THREADS" = none; then
8430 USING_NO_THREADS_TRUE=
8431 USING_NO_THREADS_FALSE='#'
8432else
8433 USING_NO_THREADS_TRUE='#'
8434 USING_NO_THREADS_FALSE=
8435fi
8436
8437
5aac1dac 8438if test -d sysdep; then true; else mkdir sysdep; fi
614c0fc2 8439 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
b9f243c2 8440
b9f243c2 8441
5aac1dac
TT
8442HASH_SYNC_SPEC=
8443# Hash synchronization is only useful with posix threads right now.
8444if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8445 HASH_SYNC_SPEC=-fhash-synchronization
ed698112
NN
8446
8447cat >>confdefs.h <<\_ACEOF
5aac1dac 8448#define JV_HASH_SYNCHRONIZATION 1
ed698112 8449_ACEOF
b9f243c2 8450
b9f243c2
AH
8451fi
8452
283a159f 8453
5aac1dac
TT
8454
8455
8456
8457if test "$GCC" = yes; then
8458 USING_GCC_TRUE=
8459 USING_GCC_FALSE='#'
283a159f 8460else
5aac1dac
TT
8461 USING_GCC_TRUE='#'
8462 USING_GCC_FALSE=
283a159f 8463fi
283a159f 8464
e3f92d3b 8465
5aac1dac
TT
8466# We're in the tree with gcc, and need to include some of its headers.
8467GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
283a159f 8468
afabd8e6
RS
8469
8470if test "${with_gcc_version_trigger+set}" = set; then
8471 gcc_version_trigger=$with_gcc_version_trigger
8472else
8473 gcc_version_trigger=$srcdir/../gcc/version.c
8474fi
8475if test -f "${gcc_version_trigger}"; then
8476 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
8477else
8478 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
8479fi
5aac1dac 8480gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5aac1dac
TT
8481
8482
8483
afabd8e6
RS
8484
8485
8486# Figure out where generated headers like libgcj-config.h get installed.
8487tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8488
8489
5aac1dac
TT
8490if test "x${with_newlib}" = "xyes"; then
8491 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8492 # may not work correctly, because the compiler may not be able to
8493 # link executables.
8494
8495 # We assume newlib. This lets us hard-code the functions we know
8496 # we'll have.
ed698112
NN
8497
8498cat >>confdefs.h <<\_ACEOF
5aac1dac 8499#define HAVE_MEMMOVE 1
ed698112 8500_ACEOF
9e7823cc 8501
ed698112
NN
8502
8503cat >>confdefs.h <<\_ACEOF
5aac1dac 8504#define HAVE_MEMCPY 1
ed698112 8505_ACEOF
ee9dd372 8506
ed698112
NN
8507
8508cat >>confdefs.h <<\_ACEOF
5aac1dac 8509#define HAVE_STRERROR 1
ed698112 8510_ACEOF
860a1536 8511
ed698112
NN
8512
8513cat >>confdefs.h <<\_ACEOF
5aac1dac 8514#define HAVE_TIME 1
ed698112 8515_ACEOF
860a1536 8516
ed698112
NN
8517
8518cat >>confdefs.h <<\_ACEOF
5aac1dac 8519#define HAVE_GMTIME_R 1
ed698112 8520_ACEOF
5aac1dac 8521
ed698112
NN
8522
8523cat >>confdefs.h <<\_ACEOF
5aac1dac 8524#define HAVE_LOCALTIME_R 1
ed698112 8525_ACEOF
5463a4f3 8526
ed698112
NN
8527
8528cat >>confdefs.h <<\_ACEOF
5463a4f3 8529#define HAVE_USLEEP_DECL 1
ed698112 8530_ACEOF
860a1536 8531
aed6152d 8532 # This is only for POSIX threads.
ed698112
NN
8533
8534cat >>confdefs.h <<\_ACEOF
5aac1dac 8535#define HAVE_PTHREAD_MUTEXATTR_INIT 1
ed698112 8536_ACEOF
860a1536 8537
aed6152d
NN
8538 # We also assume we are using gcc, which provides alloca.
8539 cat >>confdefs.h <<\_ACEOF
5aac1dac 8540#define HAVE_ALLOCA 1
ed698112
NN
8541_ACEOF
8542
5aac1dac 8543
aed6152d 8544 # Assume we do not have getuid and friends.
5aac1dac 8545
ed698112 8546cat >>confdefs.h <<\_ACEOF
5aac1dac 8547#define NO_GETUID 1
ed698112 8548_ACEOF
5aac1dac 8549
9b5f18b1 8550 PLATFORMNET=NoNet
5aac1dac 8551else
ed698112
NN
8552
8553
8554
8555
8556
8557
8558
8559
8560for ac_func in strerror ioctl select fstat open fsync sleep opendir
5aac1dac 8561do
ed698112
NN
8562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8563echo "$as_me:$LINENO: checking for $ac_func" >&5
8564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8565if eval "test \"\${$as_ac_var+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568 if test x$gcc_no_link = xyes; then
8569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8570echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8571 { (exit 1); exit 1; }; }
8572fi
8573cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h. */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h. */
8579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8581#define $ac_func innocuous_$ac_func
8582
5aac1dac 8583/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8584 which can conflict with char $ac_func (); below.
8585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8586 <limits.h> exists even on freestanding compilers. */
860a1536 8587
ed698112
NN
8588#ifdef __STDC__
8589# include <limits.h>
8590#else
8591# include <assert.h>
8592#endif
5aac1dac 8593
ed698112
NN
8594#undef $ac_func
8595
8596/* Override any gcc2 internal prototype to avoid an error. */
8597#ifdef __cplusplus
8598extern "C"
8599{
8600#endif
8601/* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8603char $ac_func ();
5aac1dac
TT
8604/* The GNU C library defines this for functions which it implements
8605 to always fail with ENOSYS. Some functions are actually named
8606 something starting with __ and the normal name is an alias. */
8607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8608choke me
860a1536 8609#else
ed698112
NN
8610char (*f) () = $ac_func;
8611#endif
8612#ifdef __cplusplus
8613}
860a1536
TT
8614#endif
8615
ed698112
NN
8616int
8617main ()
8618{
8619return f != $ac_func;
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624rm -f conftest.$ac_objext conftest$ac_exeext
8625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626 (eval $ac_link) 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
2c92e90f
KC
8633 { ac_try='test -z "$ac_c_werror_flag"
8634 || test ! -s conftest.err'
ed698112
NN
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 (eval $ac_try) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 eval "$as_ac_var=yes"
8647else
8648 echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651eval "$as_ac_var=no"
8652fi
8653rm -f conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655fi
8656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8658if test `eval echo '${'$as_ac_var'}'` = yes; then
8659 cat >>confdefs.h <<_ACEOF
8660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8661_ACEOF
860a1536 8662
5aac1dac
TT
8663fi
8664done
860a1536 8665
ed698112
NN
8666
8667
8668
8669
8670
8671for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
5aac1dac 8672do
ed698112
NN
8673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8674echo "$as_me:$LINENO: checking for $ac_func" >&5
8675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8676if eval "test \"\${$as_ac_var+set}\" = set"; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 if test x$gcc_no_link = xyes; then
8680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8681echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8682 { (exit 1); exit 1; }; }
8683fi
8684cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h. */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h. */
8690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8692#define $ac_func innocuous_$ac_func
8693
5aac1dac 8694/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8695 which can conflict with char $ac_func (); below.
8696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8697 <limits.h> exists even on freestanding compilers. */
8698
8699#ifdef __STDC__
8700# include <limits.h>
8701#else
8702# include <assert.h>
8703#endif
5aac1dac 8704
ed698112 8705#undef $ac_func
5aac1dac 8706
ed698112
NN
8707/* Override any gcc2 internal prototype to avoid an error. */
8708#ifdef __cplusplus
8709extern "C"
8710{
8711#endif
8712/* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714char $ac_func ();
5aac1dac
TT
8715/* The GNU C library defines this for functions which it implements
8716 to always fail with ENOSYS. Some functions are actually named
8717 something starting with __ and the normal name is an alias. */
8718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8719choke me
8720#else
ed698112
NN
8721char (*f) () = $ac_func;
8722#endif
8723#ifdef __cplusplus
8724}
5aac1dac
TT
8725#endif
8726
ed698112
NN
8727int
8728main ()
8729{
8730return f != $ac_func;
8731 ;
8732 return 0;
8733}
8734_ACEOF
8735rm -f conftest.$ac_objext conftest$ac_exeext
8736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>conftest.er1
8738 ac_status=$?
8739 grep -v '^ *+' conftest.er1 >conftest.err
8740 rm -f conftest.er1
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
2c92e90f
KC
8744 { ac_try='test -z "$ac_c_werror_flag"
8745 || test ! -s conftest.err'
ed698112
NN
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 eval "$as_ac_var=yes"
8758else
8759 echo "$as_me: failed program was:" >&5
8760sed 's/^/| /' conftest.$ac_ext >&5
8761
8762eval "$as_ac_var=no"
8763fi
8764rm -f conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766fi
8767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8769if test `eval echo '${'$as_ac_var'}'` = yes; then
8770 cat >>confdefs.h <<_ACEOF
8771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8772_ACEOF
999825b0 8773
5aac1dac
TT
8774fi
8775done
999825b0 8776
ed698112
NN
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
5aac1dac 8787do
ed698112
NN
8788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8789echo "$as_me:$LINENO: checking for $ac_func" >&5
8790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8791if eval "test \"\${$as_ac_var+set}\" = set"; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 if test x$gcc_no_link = xyes; then
8795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8796echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8797 { (exit 1); exit 1; }; }
8798fi
8799cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8807#define $ac_func innocuous_$ac_func
8808
5aac1dac 8809/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8810 which can conflict with char $ac_func (); below.
8811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8812 <limits.h> exists even on freestanding compilers. */
5aac1dac 8813
ed698112
NN
8814#ifdef __STDC__
8815# include <limits.h>
8816#else
8817# include <assert.h>
8818#endif
5aac1dac 8819
ed698112
NN
8820#undef $ac_func
8821
8822/* Override any gcc2 internal prototype to avoid an error. */
8823#ifdef __cplusplus
8824extern "C"
8825{
8826#endif
8827/* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
8829char $ac_func ();
5aac1dac
TT
8830/* The GNU C library defines this for functions which it implements
8831 to always fail with ENOSYS. Some functions are actually named
8832 something starting with __ and the normal name is an alias. */
8833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8834choke me
8835#else
ed698112
NN
8836char (*f) () = $ac_func;
8837#endif
8838#ifdef __cplusplus
8839}
5aac1dac
TT
8840#endif
8841
ed698112
NN
8842int
8843main ()
8844{
8845return f != $ac_func;
8846 ;
8847 return 0;
8848}
8849_ACEOF
8850rm -f conftest.$ac_objext conftest$ac_exeext
8851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
2c92e90f
KC
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
ed698112
NN
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 eval "$as_ac_var=yes"
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877eval "$as_ac_var=no"
8878fi
8879rm -f conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881fi
8882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8884if test `eval echo '${'$as_ac_var'}'` = yes; then
8885 cat >>confdefs.h <<_ACEOF
8886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8887_ACEOF
ebecd56d 8888
ebecd56d 8889fi
5aac1dac 8890done
ebecd56d 8891
ed698112
NN
8892
8893
8894for ac_func in nl_langinfo setlocale
5aac1dac 8895do
ed698112
NN
8896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8897echo "$as_me:$LINENO: checking for $ac_func" >&5
8898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8899if eval "test \"\${$as_ac_var+set}\" = set"; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902 if test x$gcc_no_link = xyes; then
8903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8904echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8905 { (exit 1); exit 1; }; }
8906fi
8907cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
8913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8915#define $ac_func innocuous_$ac_func
8916
5aac1dac 8917/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8918 which can conflict with char $ac_func (); below.
8919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8920 <limits.h> exists even on freestanding compilers. */
8921
8922#ifdef __STDC__
8923# include <limits.h>
8924#else
8925# include <assert.h>
8926#endif
5aac1dac 8927
ed698112 8928#undef $ac_func
5aac1dac 8929
ed698112
NN
8930/* Override any gcc2 internal prototype to avoid an error. */
8931#ifdef __cplusplus
8932extern "C"
8933{
8934#endif
8935/* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8937char $ac_func ();
5aac1dac
TT
8938/* The GNU C library defines this for functions which it implements
8939 to always fail with ENOSYS. Some functions are actually named
8940 something starting with __ and the normal name is an alias. */
8941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8942choke me
8943#else
ed698112
NN
8944char (*f) () = $ac_func;
8945#endif
8946#ifdef __cplusplus
8947}
5aac1dac
TT
8948#endif
8949
ed698112
NN
8950int
8951main ()
8952{
8953return f != $ac_func;
8954 ;
8955 return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960 (eval $ac_link) 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
2c92e90f
KC
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
ed698112
NN
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest$ac_exeext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 eval "$as_ac_var=yes"
8981else
8982 echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985eval "$as_ac_var=no"
8986fi
8987rm -f conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
8989fi
8990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8992if test `eval echo '${'$as_ac_var'}'` = yes; then
8993 cat >>confdefs.h <<_ACEOF
8994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8995_ACEOF
ebecd56d 8996
5aac1dac
TT
8997fi
8998done
8999
ed698112
NN
9000
9001
9002for ac_func in inet_aton inet_addr
5aac1dac 9003do
ed698112
NN
9004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9005echo "$as_me:$LINENO: checking for $ac_func" >&5
9006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9007if eval "test \"\${$as_ac_var+set}\" = set"; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009else
9010 if test x$gcc_no_link = xyes; then
9011 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9012echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9013 { (exit 1); exit 1; }; }
9014fi
9015cat >conftest.$ac_ext <<_ACEOF
9016/* confdefs.h. */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h. */
9021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023#define $ac_func innocuous_$ac_func
9024
5aac1dac 9025/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
9026 which can conflict with char $ac_func (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9029
9030#ifdef __STDC__
9031# include <limits.h>
9032#else
9033# include <assert.h>
9034#endif
5aac1dac 9035
ed698112 9036#undef $ac_func
5aac1dac 9037
ed698112
NN
9038/* Override any gcc2 internal prototype to avoid an error. */
9039#ifdef __cplusplus
9040extern "C"
9041{
9042#endif
9043/* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045char $ac_func ();
5aac1dac
TT
9046/* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050choke me
9051#else
ed698112
NN
9052char (*f) () = $ac_func;
9053#endif
9054#ifdef __cplusplus
9055}
5aac1dac
TT
9056#endif
9057
ed698112
NN
9058int
9059main ()
9060{
9061return f != $ac_func;
9062 ;
9063 return 0;
9064}
9065_ACEOF
9066rm -f conftest.$ac_objext conftest$ac_exeext
9067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>conftest.er1
9069 ac_status=$?
9070 grep -v '^ *+' conftest.er1 >conftest.err
9071 rm -f conftest.er1
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
2c92e90f
KC
9075 { ac_try='test -z "$ac_c_werror_flag"
9076 || test ! -s conftest.err'
ed698112
NN
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try='test -s conftest$ac_exeext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 eval "$as_ac_var=yes"
9089else
9090 echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093eval "$as_ac_var=no"
9094fi
9095rm -f conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
9097fi
9098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9099echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9100if test `eval echo '${'$as_ac_var'}'` = yes; then
9101 cat >>confdefs.h <<_ACEOF
9102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9103_ACEOF
5aac1dac 9104 break
ebecd56d 9105fi
5aac1dac 9106done
ebecd56d 9107
ed698112
NN
9108
9109
9110
9111for ac_func in inet_pton uname inet_ntoa
ee9dd372 9112do
ed698112
NN
9113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114echo "$as_me:$LINENO: checking for $ac_func" >&5
9115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 if test x$gcc_no_link = xyes; then
9120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9121echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9122 { (exit 1); exit 1; }; }
9123fi
9124cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9132#define $ac_func innocuous_$ac_func
9133
ee9dd372 9134/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
9135 which can conflict with char $ac_func (); below.
9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9137 <limits.h> exists even on freestanding compilers. */
9138
9139#ifdef __STDC__
9140# include <limits.h>
9141#else
9142# include <assert.h>
9143#endif
ee9dd372 9144
ed698112 9145#undef $ac_func
ee9dd372 9146
ed698112
NN
9147/* Override any gcc2 internal prototype to avoid an error. */
9148#ifdef __cplusplus
9149extern "C"
9150{
9151#endif
9152/* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9154char $ac_func ();
ee9dd372
TT
9155/* The GNU C library defines this for functions which it implements
9156 to always fail with ENOSYS. Some functions are actually named
9157 something starting with __ and the normal name is an alias. */
9158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9159choke me
9160#else
ed698112
NN
9161char (*f) () = $ac_func;
9162#endif
9163#ifdef __cplusplus
9164}
ee9dd372
TT
9165#endif
9166
ed698112
NN
9167int
9168main ()
9169{
9170return f != $ac_func;
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175rm -f conftest.$ac_objext conftest$ac_exeext
9176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
2c92e90f
KC
9184 { ac_try='test -z "$ac_c_werror_flag"
9185 || test ! -s conftest.err'
ed698112
NN
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 eval "$as_ac_var=yes"
9198else
9199 echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
9201
9202eval "$as_ac_var=no"
9203fi
9204rm -f conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206fi
9207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9209if test `eval echo '${'$as_ac_var'}'` = yes; then
9210 cat >>confdefs.h <<_ACEOF
9211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9212_ACEOF
ee9dd372 9213
ee9dd372 9214fi
5aac1dac 9215done
34c5c0e1 9216
ed698112
NN
9217
9218
9219
9220
9221
9222for ac_func in fork execvp pipe sigaction ftruncate
5aac1dac 9223do
ed698112
NN
9224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9225echo "$as_me:$LINENO: checking for $ac_func" >&5
9226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9227if eval "test \"\${$as_ac_var+set}\" = set"; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230 if test x$gcc_no_link = xyes; then
9231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9232echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9233 { (exit 1); exit 1; }; }
9234fi
9235cat >conftest.$ac_ext <<_ACEOF
9236/* confdefs.h. */
9237_ACEOF
9238cat confdefs.h >>conftest.$ac_ext
9239cat >>conftest.$ac_ext <<_ACEOF
9240/* end confdefs.h. */
9241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9243#define $ac_func innocuous_$ac_func
5aac1dac 9244
ed698112
NN
9245/* System header to define __stub macros and hopefully few prototypes,
9246 which can conflict with char $ac_func (); below.
9247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9248 <limits.h> exists even on freestanding compilers. */
5aac1dac 9249
ed698112
NN
9250#ifdef __STDC__
9251# include <limits.h>
5aac1dac 9252#else
ed698112 9253# include <assert.h>
5aac1dac
TT
9254#endif
9255
ed698112
NN
9256#undef $ac_func
9257
9258/* Override any gcc2 internal prototype to avoid an error. */
9259#ifdef __cplusplus
9260extern "C"
9261{
9262#endif
9263/* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9265char $ac_func ();
9266/* The GNU C library defines this for functions which it implements
9267 to always fail with ENOSYS. Some functions are actually named
9268 something starting with __ and the normal name is an alias. */
9269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9270choke me
9271#else
9272char (*f) () = $ac_func;
9273#endif
9274#ifdef __cplusplus
9275}
9276#endif
9277
9278int
9279main ()
9280{
9281return f != $ac_func;
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext conftest$ac_exeext
9287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>conftest.er1
9289 ac_status=$?
9290 grep -v '^ *+' conftest.er1 >conftest.err
9291 rm -f conftest.er1
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
2c92e90f
KC
9295 { ac_try='test -z "$ac_c_werror_flag"
9296 || test ! -s conftest.err'
ed698112
NN
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_exeext'
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 eval "$as_ac_var=yes"
9309else
9310 echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313eval "$as_ac_var=no"
9314fi
9315rm -f conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317fi
9318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9320if test `eval echo '${'$as_ac_var'}'` = yes; then
9321 cat >>confdefs.h <<_ACEOF
9322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9323_ACEOF
9324
9325fi
9326done
9327
9328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9329echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9330if test "${ac_cv_header_stdc+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333 cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
9339#include <stdlib.h>
9340#include <stdarg.h>
9341#include <string.h>
9342#include <float.h>
9343
9344int
9345main ()
9346{
9347
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352rm -f conftest.$ac_objext
9353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9354 (eval $ac_compile) 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
2c92e90f
KC
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
ed698112
NN
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_header_stdc=yes
34c5c0e1 9375else
ed698112
NN
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379ac_cv_header_stdc=no
9380fi
9381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9382
9383if test $ac_cv_header_stdc = yes; then
9384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9385 cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391#include <string.h>
9392
9393_ACEOF
9394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395 $EGREP "memchr" >/dev/null 2>&1; then
9396 :
9397else
9398 ac_cv_header_stdc=no
34c5c0e1
AO
9399fi
9400rm -f conftest*
ed698112 9401
34c5c0e1
AO
9402fi
9403
ed698112
NN
9404if test $ac_cv_header_stdc = yes; then
9405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9406 cat >conftest.$ac_ext <<_ACEOF
9407/* confdefs.h. */
9408_ACEOF
9409cat confdefs.h >>conftest.$ac_ext
9410cat >>conftest.$ac_ext <<_ACEOF
9411/* end confdefs.h. */
9412#include <stdlib.h>
9413
9414_ACEOF
9415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416 $EGREP "free" >/dev/null 2>&1; then
9417 :
9418else
9419 ac_cv_header_stdc=no
9420fi
9421rm -f conftest*
9422
9423fi
9424
9425if test $ac_cv_header_stdc = yes; then
9426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9427 if test "$cross_compiling" = yes; then
9428 :
9429else
9430 cat >conftest.$ac_ext <<_ACEOF
9431/* confdefs.h. */
9432_ACEOF
9433cat confdefs.h >>conftest.$ac_ext
9434cat >>conftest.$ac_ext <<_ACEOF
9435/* end confdefs.h. */
9436#include <ctype.h>
9437#if ((' ' & 0x0FF) == 0x020)
9438# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9439# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9440#else
9441# define ISLOWER(c) \
9442 (('a' <= (c) && (c) <= 'i') \
9443 || ('j' <= (c) && (c) <= 'r') \
9444 || ('s' <= (c) && (c) <= 'z'))
9445# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9446#endif
9447
9448#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9449int
9450main ()
9451{
9452 int i;
9453 for (i = 0; i < 256; i++)
9454 if (XOR (islower (i), ISLOWER (i))
9455 || toupper (i) != TOUPPER (i))
9456 exit(2);
9457 exit (0);
9458}
9459_ACEOF
9460rm -f conftest$ac_exeext
9461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 :
5aac1dac 9472else
ed698112
NN
9473 echo "$as_me: program exited with status $ac_status" >&5
9474echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477( exit $ac_status )
9478ac_cv_header_stdc=no
9479fi
9480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9481fi
9482fi
9483fi
9484echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9485echo "${ECHO_T}$ac_cv_header_stdc" >&6
9486if test $ac_cv_header_stdc = yes; then
9487
9488cat >>confdefs.h <<\_ACEOF
9489#define STDC_HEADERS 1
9490_ACEOF
9491
9492fi
9493
9494# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9505 inttypes.h stdint.h unistd.h
9506do
9507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508echo "$as_me:$LINENO: checking for $ac_header" >&5
9509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9510if eval "test \"\${$as_ac_Header+set}\" = set"; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
9519$ac_includes_default
9520
9521#include <$ac_header>
9522_ACEOF
9523rm -f conftest.$ac_objext
9524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
2c92e90f
KC
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
ed698112
NN
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 eval "$as_ac_Header=yes"
9546else
9547 echo "$as_me: failed program was:" >&5
9548sed 's/^/| /' conftest.$ac_ext >&5
9549
9550eval "$as_ac_Header=no"
9551fi
9552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9553fi
9554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9556if test `eval echo '${'$as_ac_Header'}'` = yes; then
9557 cat >>confdefs.h <<_ACEOF
9558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9559_ACEOF
9560
5aac1dac 9561fi
ed698112 9562
5aac1dac 9563done
34c5c0e1 9564
ed698112
NN
9565
9566
9567
9568
9569for ac_header in execinfo.h unistd.h dlfcn.h
5aac1dac 9570do
ed698112
NN
9571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9572if eval "test \"\${$as_ac_Header+set}\" = set"; then
9573 echo "$as_me:$LINENO: checking for $ac_header" >&5
9574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9575if eval "test \"\${$as_ac_Header+set}\" = set"; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577fi
9578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580else
9581 # Is the header compilable?
9582echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590$ac_includes_default
9591#include <$ac_header>
9592_ACEOF
9593rm -f conftest.$ac_objext
9594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595 (eval $ac_compile) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
2c92e90f
KC
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
ed698112
NN
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_header_compiler=yes
9616else
9617 echo "$as_me: failed program was:" >&5
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
9620ac_header_compiler=no
9621fi
9622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624echo "${ECHO_T}$ac_header_compiler" >&6
9625
9626# Is the header present?
9627echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635#include <$ac_header>
9636_ACEOF
9637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } >/dev/null; then
9645 if test -s conftest.err; then
9646 ac_cpp_err=$ac_c_preproc_warn_flag
9647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9648 else
9649 ac_cpp_err=
9650 fi
34c5c0e1 9651else
ed698112 9652 ac_cpp_err=yes
34c5c0e1 9653fi
ed698112
NN
9654if test -z "$ac_cpp_err"; then
9655 ac_header_preproc=yes
9656else
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_header_preproc=no
34c5c0e1 9661fi
ed698112
NN
9662rm -f conftest.err conftest.$ac_ext
9663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664echo "${ECHO_T}$ac_header_preproc" >&6
9665
9666# So? What about this header?
9667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673 ac_header_preproc=yes
9674 ;;
9675 no:yes:* )
9676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 (
9689 cat <<\_ASBOX
e3f92d3b
MK
9690## ---------------------------------- ##
9691## Report this to the libjava lists. ##
9692## ---------------------------------- ##
ed698112
NN
9693_ASBOX
9694 ) |
9695 sed "s/^/$as_me: WARNING: /" >&2
9696 ;;
9697esac
9698echo "$as_me:$LINENO: checking for $ac_header" >&5
9699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9700if eval "test \"\${$as_ac_Header+set}\" = set"; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 9702else
ed698112 9703 eval "$as_ac_Header=\$ac_header_preproc"
ee9dd372 9704fi
ed698112
NN
9705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9707
9708fi
9709if test `eval echo '${'$as_ac_Header'}'` = yes; then
9710 cat >>confdefs.h <<_ACEOF
9711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712_ACEOF
9713
9714fi
9715
ee9dd372 9716done
ed698112
NN
9717
9718 echo "$as_me:$LINENO: checking for backtrace" >&5
9719echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9720if test "${ac_cv_func_backtrace+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 if test x$gcc_no_link = xyes; then
9724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9725echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9726 { (exit 1); exit 1; }; }
9727fi
9728cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9736#define backtrace innocuous_backtrace
9737
ee9dd372 9738/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
9739 which can conflict with char backtrace (); below.
9740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9741 <limits.h> exists even on freestanding compilers. */
9742
9743#ifdef __STDC__
9744# include <limits.h>
9745#else
9746# include <assert.h>
9747#endif
ee9dd372 9748
ed698112 9749#undef backtrace
ee9dd372 9750
ed698112
NN
9751/* Override any gcc2 internal prototype to avoid an error. */
9752#ifdef __cplusplus
9753extern "C"
9754{
9755#endif
9756/* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758char backtrace ();
ee9dd372
TT
9759/* The GNU C library defines this for functions which it implements
9760 to always fail with ENOSYS. Some functions are actually named
9761 something starting with __ and the normal name is an alias. */
5aac1dac 9762#if defined (__stub_backtrace) || defined (__stub___backtrace)
ee9dd372
TT
9763choke me
9764#else
ed698112
NN
9765char (*f) () = backtrace;
9766#endif
9767#ifdef __cplusplus
9768}
ee9dd372
TT
9769#endif
9770
ed698112
NN
9771int
9772main ()
9773{
9774return f != backtrace;
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
2c92e90f
KC
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
ed698112
NN
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 ac_cv_func_backtrace=yes
9802else
9803 echo "$as_me: failed program was:" >&5
9804sed 's/^/| /' conftest.$ac_ext >&5
9805
9806ac_cv_func_backtrace=no
9807fi
9808rm -f conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810fi
9811echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9812echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9813if test $ac_cv_func_backtrace = yes; then
ee9dd372 9814
5aac1dac
TT
9815 case "$host" in
9816 ia64-*-linux*)
9817 # Has broken backtrace()
9818 ;;
13229468
DD
9819 mips*-*-linux*)
9820 # Has broken backtrace(), but we supply our own.
9821 if test -d sysdep; then true; else mkdir -p sysdep; fi
e3f92d3b 9822 supply_backtrace=yes
ed698112
NN
9823
9824cat >>confdefs.h <<\_ACEOF
13229468 9825#define HAVE_BACKTRACE 1
ed698112 9826_ACEOF
13229468
DD
9827
9828 ;;
5aac1dac 9829 *)
ed698112
NN
9830
9831cat >>confdefs.h <<\_ACEOF
5aac1dac 9832#define HAVE_BACKTRACE 1
ed698112 9833_ACEOF
ee9dd372 9834
5aac1dac
TT
9835 ;;
9836 esac
ed698112 9837
ee9dd372 9838else
ee9dd372 9839
5aac1dac
TT
9840 case "$host" in
9841 *mingw*)
9842 # Has backtrace() defined in libgcj itself
ed698112
NN
9843
9844cat >>confdefs.h <<\_ACEOF
5aac1dac 9845#define HAVE_BACKTRACE 1
ed698112 9846_ACEOF
5aac1dac
TT
9847
9848 ;;
9849 esac
ed698112 9850
da979152 9851fi
da979152 9852
ee9dd372 9853
ed698112
NN
9854 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9855echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9856if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 9858else
ed698112 9859 ac_check_lib_save_LIBS=$LIBS
5aac1dac 9860LIBS="-ldl $LIBS"
ed698112
NN
9861if test x$gcc_no_link = xyes; then
9862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9863echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9864 { (exit 1); exit 1; }; }
9865fi
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
ee9dd372 9873/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
9874#ifdef __cplusplus
9875extern "C"
9876#endif
ee9dd372 9877/* We use char because int might match the return type of a gcc2
ed698112
NN
9878 builtin and then its argument prototype would still apply. */
9879char dladdr ();
9880int
9881main ()
9882{
9883dladdr ();
9884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
9889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>conftest.er1
9891 ac_status=$?
9892 grep -v '^ *+' conftest.er1 >conftest.err
9893 rm -f conftest.er1
9894 cat conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } &&
2c92e90f
KC
9897 { ac_try='test -z "$ac_c_werror_flag"
9898 || test ! -s conftest.err'
ed698112
NN
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; } &&
9904 { ac_try='test -s conftest$ac_exeext'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_lib_dl_dladdr=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915ac_cv_lib_dl_dladdr=no
9916fi
9917rm -f conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919LIBS=$ac_check_lib_save_LIBS
9920fi
9921echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9922echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9923if test $ac_cv_lib_dl_dladdr = yes; then
ee9dd372 9924
13229468
DD
9925 if test "x${disable_dladdr}" = "xyes"; then
9926 #Broken dladdr().
9927 true
9928 else
ed698112
NN
9929
9930cat >>confdefs.h <<\_ACEOF
5aac1dac 9931#define HAVE_DLADDR 1
ed698112 9932_ACEOF
ee9dd372 9933
13229468 9934 fi
ed698112 9935
5aac1dac
TT
9936fi
9937
9938 if test x"$build" = x"$host"; then
ed698112
NN
9939 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9940echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9941if test "${ac_cv_file__proc_self_exe+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 9943else
ed698112
NN
9944 test "$cross_compiling" = yes &&
9945 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9946echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9947 { (exit 1); exit 1; }; }
9948if test -r "/proc/self/exe"; then
9949 ac_cv_file__proc_self_exe=yes
5aac1dac 9950else
ed698112 9951 ac_cv_file__proc_self_exe=no
5aac1dac
TT
9952fi
9953fi
ed698112
NN
9954echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9955echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9956if test $ac_cv_file__proc_self_exe = yes; then
9957
9958cat >>confdefs.h <<_ACEOF
9959#define HAVE__PROC_SELF_EXE 1
9960_ACEOF
9961
ee9dd372 9962
ed698112
NN
9963
9964cat >>confdefs.h <<\_ACEOF
9965#define HAVE_PROC_SELF_EXE 1
9966_ACEOF
5aac1dac 9967
ee9dd372 9968fi
ee9dd372 9969
5aac1dac
TT
9970 else
9971 case $host in
9972 *-linux*)
ed698112
NN
9973
9974cat >>confdefs.h <<\_ACEOF
5aac1dac 9975#define HAVE_PROC_SELF_EXE 1
ed698112 9976_ACEOF
5aac1dac
TT
9977
9978 ;;
9979 esac
9980 fi
ee9dd372 9981
ed698112 9982
5b7a26f6
KC
9983 if test "X$prefix" = "XNONE"; then
9984 acl_final_prefix="$ac_default_prefix"
9985 else
9986 acl_final_prefix="$prefix"
9987 fi
9988 if test "X$exec_prefix" = "XNONE"; then
9989 acl_final_exec_prefix='${prefix}'
9990 else
9991 acl_final_exec_prefix="$exec_prefix"
9992 fi
9993 acl_save_prefix="$prefix"
9994 prefix="$acl_final_prefix"
9995 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9996 prefix="$acl_save_prefix"
9997
9998
9999# Check whether --with-gnu-ld or --without-gnu-ld was given.
10000if test "${with_gnu_ld+set}" = set; then
10001 withval="$with_gnu_ld"
10002 test "$withval" = no || with_gnu_ld=yes
10003else
10004 with_gnu_ld=no
10005fi;
10006# Prepare PATH_SEPARATOR.
10007# The user is always right.
10008if test "${PATH_SEPARATOR+set}" != set; then
10009 echo "#! /bin/sh" >conf$$.sh
10010 echo "exit 0" >>conf$$.sh
10011 chmod +x conf$$.sh
10012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10013 PATH_SEPARATOR=';'
10014 else
10015 PATH_SEPARATOR=:
10016 fi
10017 rm -f conf$$.sh
10018fi
10019ac_prog=ld
10020if test "$GCC" = yes; then
10021 # Check if gcc -print-prog-name=ld gives a path.
10022 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10023echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10024 case $host in
10025 *-*-mingw*)
10026 # gcc leaves a trailing carriage return which upsets mingw
10027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10028 *)
10029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10030 esac
10031 case $ac_prog in
10032 # Accept absolute paths.
10033 [\\/]* | [A-Za-z]:[\\/]*)
10034 re_direlt='/[^/][^/]*/\.\./'
10035 # Canonicalize the path of ld
10036 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10037 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10038 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10039 done
10040 test -z "$LD" && LD="$ac_prog"
10041 ;;
10042 "")
10043 # If it fails, then pretend we aren't using GCC.
10044 ac_prog=ld
10045 ;;
10046 *)
10047 # If it is relative, then search for the first ld in PATH.
10048 with_gnu_ld=unknown
10049 ;;
10050 esac
10051elif test "$with_gnu_ld" = yes; then
10052 echo "$as_me:$LINENO: checking for GNU ld" >&5
10053echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10054else
10055 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10056echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10057fi
10058if test "${acl_cv_path_LD+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 if test -z "$LD"; then
10062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10063 for ac_dir in $PATH; do
10064 test -z "$ac_dir" && ac_dir=.
10065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10066 acl_cv_path_LD="$ac_dir/$ac_prog"
10067 # Check to see if the program is GNU ld. I'd rather use --version,
10068 # but apparently some GNU ld's only accept -v.
10069 # Break only if it was the GNU/non-GNU ld that we prefer.
10070 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10071 test "$with_gnu_ld" != no && break
10072 else
10073 test "$with_gnu_ld" != yes && break
10074 fi
10075 fi
10076 done
10077 IFS="$ac_save_ifs"
10078else
10079 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10080fi
10081fi
10082
10083LD="$acl_cv_path_LD"
10084if test -n "$LD"; then
10085 echo "$as_me:$LINENO: result: $LD" >&5
10086echo "${ECHO_T}$LD" >&6
10087else
10088 echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
10090fi
10091test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10092echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10093 { (exit 1); exit 1; }; }
10094echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10095echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10096if test "${acl_cv_prog_gnu_ld+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10100if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10101 acl_cv_prog_gnu_ld=yes
10102else
10103 acl_cv_prog_gnu_ld=no
10104fi
10105fi
10106echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10107echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10108with_gnu_ld=$acl_cv_prog_gnu_ld
10109
10110
10111
10112 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10113echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10114if test "${acl_cv_rpath+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116else
10117
10118 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10120 . ./conftest.sh
10121 rm -f ./conftest.sh
10122 acl_cv_rpath=done
10123
10124fi
10125echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10126echo "${ECHO_T}$acl_cv_rpath" >&6
10127 wl="$acl_cv_wl"
10128 libext="$acl_cv_libext"
10129 shlibext="$acl_cv_shlibext"
10130 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10131 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10132 hardcode_direct="$acl_cv_hardcode_direct"
10133 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10134 # Check whether --enable-rpath or --disable-rpath was given.
10135if test "${enable_rpath+set}" = set; then
10136 enableval="$enable_rpath"
10137 :
10138else
10139 enable_rpath=yes
10140fi;
10141
10142
10143
10144
10145
10146
10147
10148 use_additional=yes
10149
10150 acl_save_prefix="$prefix"
10151 prefix="$acl_final_prefix"
10152 acl_save_exec_prefix="$exec_prefix"
10153 exec_prefix="$acl_final_exec_prefix"
10154
10155 eval additional_includedir=\"$includedir\"
10156 eval additional_libdir=\"$libdir\"
10157
10158 exec_prefix="$acl_save_exec_prefix"
10159 prefix="$acl_save_prefix"
ed698112 10160
ed698112
NN
10161
10162# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5aac1dac
TT
10163if test "${with_libiconv_prefix+set}" = set; then
10164 withval="$with_libiconv_prefix"
ed698112 10165
5b7a26f6
KC
10166 if test "X$withval" = "Xno"; then
10167 use_additional=no
10168 else
10169 if test "X$withval" = "X"; then
10170
10171 acl_save_prefix="$prefix"
10172 prefix="$acl_final_prefix"
10173 acl_save_exec_prefix="$exec_prefix"
10174 exec_prefix="$acl_final_exec_prefix"
10175
10176 eval additional_includedir=\"$includedir\"
10177 eval additional_libdir=\"$libdir\"
10178
10179 exec_prefix="$acl_save_exec_prefix"
10180 prefix="$acl_save_prefix"
10181
10182 else
10183 additional_includedir="$withval/include"
10184 additional_libdir="$withval/lib"
10185 fi
10186 fi
5aac1dac 10187
ed698112 10188fi;
5b7a26f6
KC
10189 LIBICONV=
10190 LTLIBICONV=
10191 INCICONV=
10192 rpathdirs=
10193 ltrpathdirs=
10194 names_already_handled=
10195 names_next_round='iconv '
10196 while test -n "$names_next_round"; do
10197 names_this_round="$names_next_round"
10198 names_next_round=
10199 for name in $names_this_round; do
10200 already_handled=
10201 for n in $names_already_handled; do
10202 if test "$n" = "$name"; then
10203 already_handled=yes
10204 break
10205 fi
10206 done
10207 if test -z "$already_handled"; then
10208 names_already_handled="$names_already_handled $name"
10209 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10210 eval value=\"\$HAVE_LIB$uppername\"
10211 if test -n "$value"; then
10212 if test "$value" = yes; then
10213 eval value=\"\$LIB$uppername\"
10214 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10215 eval value=\"\$LTLIB$uppername\"
10216 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10217 else
10218 :
10219 fi
10220 else
10221 found_dir=
10222 found_la=
10223 found_so=
10224 found_a=
10225 if test $use_additional = yes; then
10226 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10227 found_dir="$additional_libdir"
10228 found_so="$additional_libdir/lib$name.$shlibext"
10229 if test -f "$additional_libdir/lib$name.la"; then
10230 found_la="$additional_libdir/lib$name.la"
10231 fi
10232 else
10233 if test -f "$additional_libdir/lib$name.$libext"; then
10234 found_dir="$additional_libdir"
10235 found_a="$additional_libdir/lib$name.$libext"
10236 if test -f "$additional_libdir/lib$name.la"; then
10237 found_la="$additional_libdir/lib$name.la"
10238 fi
10239 fi
10240 fi
10241 fi
10242 if test "X$found_dir" = "X"; then
10243 for x in $LDFLAGS $LTLIBICONV; do
10244
10245 acl_save_prefix="$prefix"
10246 prefix="$acl_final_prefix"
10247 acl_save_exec_prefix="$exec_prefix"
10248 exec_prefix="$acl_final_exec_prefix"
10249 eval x=\"$x\"
10250 exec_prefix="$acl_save_exec_prefix"
10251 prefix="$acl_save_prefix"
10252
10253 case "$x" in
10254 -L*)
10255 dir=`echo "X$x" | sed -e 's/^X-L//'`
10256 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10257 found_dir="$dir"
10258 found_so="$dir/lib$name.$shlibext"
10259 if test -f "$dir/lib$name.la"; then
10260 found_la="$dir/lib$name.la"
10261 fi
10262 else
10263 if test -f "$dir/lib$name.$libext"; then
10264 found_dir="$dir"
10265 found_a="$dir/lib$name.$libext"
10266 if test -f "$dir/lib$name.la"; then
10267 found_la="$dir/lib$name.la"
10268 fi
10269 fi
10270 fi
10271 ;;
10272 esac
10273 if test "X$found_dir" != "X"; then
10274 break
10275 fi
10276 done
10277 fi
10278 if test "X$found_dir" != "X"; then
10279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10280 if test "X$found_so" != "X"; then
10281 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10283 else
10284 haveit=
10285 for x in $ltrpathdirs; do
10286 if test "X$x" = "X$found_dir"; then
10287 haveit=yes
10288 break
10289 fi
10290 done
10291 if test -z "$haveit"; then
10292 ltrpathdirs="$ltrpathdirs $found_dir"
10293 fi
10294 if test "$hardcode_direct" = yes; then
10295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10296 else
10297 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10299 haveit=
10300 for x in $rpathdirs; do
10301 if test "X$x" = "X$found_dir"; then
10302 haveit=yes
10303 break
10304 fi
10305 done
10306 if test -z "$haveit"; then
10307 rpathdirs="$rpathdirs $found_dir"
10308 fi
10309 else
10310 haveit=
10311 for x in $LDFLAGS $LIBICONV; do
10312
10313 acl_save_prefix="$prefix"
10314 prefix="$acl_final_prefix"
10315 acl_save_exec_prefix="$exec_prefix"
10316 exec_prefix="$acl_final_exec_prefix"
10317 eval x=\"$x\"
10318 exec_prefix="$acl_save_exec_prefix"
10319 prefix="$acl_save_prefix"
10320
10321 if test "X$x" = "X-L$found_dir"; then
10322 haveit=yes
10323 break
10324 fi
10325 done
10326 if test -z "$haveit"; then
10327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10328 fi
10329 if test "$hardcode_minus_L" != no; then
10330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10331 else
10332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10333 fi
10334 fi
10335 fi
10336 fi
10337 else
10338 if test "X$found_a" != "X"; then
10339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10340 else
10341 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10342 fi
10343 fi
10344 additional_includedir=
10345 case "$found_dir" in
10346 */lib | */lib/)
10347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10348 additional_includedir="$basedir/include"
10349 ;;
10350 esac
10351 if test "X$additional_includedir" != "X"; then
10352 if test "X$additional_includedir" != "X/usr/include"; then
10353 haveit=
10354 if test "X$additional_includedir" = "X/usr/local/include"; then
10355 if test -n "$GCC"; then
10356 case $host_os in
10357 linux*) haveit=yes;;
10358 esac
10359 fi
10360 fi
10361 if test -z "$haveit"; then
10362 for x in $CPPFLAGS $INCICONV; do
10363
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10368 eval x=\"$x\"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 if test "X$x" = "X-I$additional_includedir"; then
10373 haveit=yes
10374 break
10375 fi
10376 done
10377 if test -z "$haveit"; then
10378 if test -d "$additional_includedir"; then
10379 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10380 fi
10381 fi
10382 fi
10383 fi
10384 fi
10385 if test -n "$found_la"; then
10386 save_libdir="$libdir"
10387 case "$found_la" in
10388 */* | *\\*) . "$found_la" ;;
10389 *) . "./$found_la" ;;
10390 esac
10391 libdir="$save_libdir"
10392 for dep in $dependency_libs; do
10393 case "$dep" in
10394 -L*)
10395 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10396 if test "X$additional_libdir" != "X/usr/lib"; then
10397 haveit=
10398 if test "X$additional_libdir" = "X/usr/local/lib"; then
10399 if test -n "$GCC"; then
10400 case $host_os in
10401 linux*) haveit=yes;;
10402 esac
10403 fi
10404 fi
10405 if test -z "$haveit"; then
10406 haveit=
10407 for x in $LDFLAGS $LIBICONV; do
10408
10409 acl_save_prefix="$prefix"
10410 prefix="$acl_final_prefix"
10411 acl_save_exec_prefix="$exec_prefix"
10412 exec_prefix="$acl_final_exec_prefix"
10413 eval x=\"$x\"
10414 exec_prefix="$acl_save_exec_prefix"
10415 prefix="$acl_save_prefix"
10416
10417 if test "X$x" = "X-L$additional_libdir"; then
10418 haveit=yes
10419 break
10420 fi
10421 done
10422 if test -z "$haveit"; then
10423 if test -d "$additional_libdir"; then
10424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10425 fi
10426 fi
10427 haveit=
10428 for x in $LDFLAGS $LTLIBICONV; do
10429
10430 acl_save_prefix="$prefix"
10431 prefix="$acl_final_prefix"
10432 acl_save_exec_prefix="$exec_prefix"
10433 exec_prefix="$acl_final_exec_prefix"
10434 eval x=\"$x\"
10435 exec_prefix="$acl_save_exec_prefix"
10436 prefix="$acl_save_prefix"
10437
10438 if test "X$x" = "X-L$additional_libdir"; then
10439 haveit=yes
10440 break
10441 fi
10442 done
10443 if test -z "$haveit"; then
10444 if test -d "$additional_libdir"; then
10445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10446 fi
10447 fi
10448 fi
10449 fi
10450 ;;
10451 -R*)
10452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10453 if test "$enable_rpath" != no; then
10454 haveit=
10455 for x in $rpathdirs; do
10456 if test "X$x" = "X$dir"; then
10457 haveit=yes
10458 break
10459 fi
10460 done
10461 if test -z "$haveit"; then
10462 rpathdirs="$rpathdirs $dir"
10463 fi
10464 haveit=
10465 for x in $ltrpathdirs; do
10466 if test "X$x" = "X$dir"; then
10467 haveit=yes
10468 break
10469 fi
10470 done
10471 if test -z "$haveit"; then
10472 ltrpathdirs="$ltrpathdirs $dir"
10473 fi
10474 fi
10475 ;;
10476 -l*)
10477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10478 ;;
10479 *.la)
10480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10481 ;;
10482 *)
10483 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10485 ;;
10486 esac
10487 done
10488 fi
10489 else
10490 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10491 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10492 fi
10493 fi
10494 fi
10495 done
10496 done
10497 if test "X$rpathdirs" != "X"; then
10498 if test -n "$hardcode_libdir_separator"; then
10499 alldirs=
10500 for found_dir in $rpathdirs; do
10501 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10502 done
10503 acl_save_libdir="$libdir"
10504 libdir="$alldirs"
10505 eval flag=\"$hardcode_libdir_flag_spec\"
10506 libdir="$acl_save_libdir"
10507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10508 else
10509 for found_dir in $rpathdirs; do
10510 acl_save_libdir="$libdir"
10511 libdir="$found_dir"
10512 eval flag=\"$hardcode_libdir_flag_spec\"
10513 libdir="$acl_save_libdir"
10514 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10515 done
10516 fi
10517 fi
10518 if test "X$ltrpathdirs" != "X"; then
10519 for found_dir in $ltrpathdirs; do
10520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10521 done
10522 fi
10523
10524
10525
10526
10527
10528
10529
10530 am_save_CPPFLAGS="$CPPFLAGS"
10531
10532 for element in $INCICONV; do
10533 haveit=
10534 for x in $CPPFLAGS; do
10535
10536 acl_save_prefix="$prefix"
10537 prefix="$acl_final_prefix"
10538 acl_save_exec_prefix="$exec_prefix"
10539 exec_prefix="$acl_final_exec_prefix"
10540 eval x=\"$x\"
10541 exec_prefix="$acl_save_exec_prefix"
10542 prefix="$acl_save_prefix"
10543
10544 if test "X$x" = "X$element"; then
10545 haveit=yes
10546 break
10547 fi
10548 done
10549 if test -z "$haveit"; then
10550 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10551 fi
10552 done
10553
5aac1dac 10554
ed698112
NN
10555 echo "$as_me:$LINENO: checking for iconv" >&5
10556echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10557if test "${am_cv_func_iconv+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 10559else
ed698112 10560
5aac1dac
TT
10561 am_cv_func_iconv="no, consider installing GNU libiconv"
10562 am_cv_lib_iconv=no
ed698112
NN
10563 if test x$gcc_no_link = xyes; then
10564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10565echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10566 { (exit 1); exit 1; }; }
10567fi
10568cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
5aac1dac
TT
10574#include <stdlib.h>
10575#include <iconv.h>
ed698112
NN
10576int
10577main ()
10578{
5aac1dac
TT
10579iconv_t cd = iconv_open("","");
10580 iconv(cd,NULL,NULL,NULL,NULL);
10581 iconv_close(cd);
ed698112
NN
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 (eval $ac_link) 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
2c92e90f
KC
10595 { ac_try='test -z "$ac_c_werror_flag"
10596 || test ! -s conftest.err'
ed698112
NN
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
5aac1dac 10608 am_cv_func_iconv=yes
ee9dd372 10609else
ed698112
NN
10610 echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
ee9dd372 10613fi
ed698112
NN
10614rm -f conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
5aac1dac
TT
10616 if test "$am_cv_func_iconv" != yes; then
10617 am_save_LIBS="$LIBS"
5b7a26f6 10618 LIBS="$LIBS $LIBICONV"
ed698112
NN
10619 if test x$gcc_no_link = xyes; then
10620 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10621echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10622 { (exit 1); exit 1; }; }
10623fi
10624cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */
5aac1dac
TT
10630#include <stdlib.h>
10631#include <iconv.h>
ed698112
NN
10632int
10633main ()
10634{
5aac1dac
TT
10635iconv_t cd = iconv_open("","");
10636 iconv(cd,NULL,NULL,NULL,NULL);
10637 iconv_close(cd);
ed698112
NN
10638 ;
10639 return 0;
10640}
10641_ACEOF
10642rm -f conftest.$ac_objext conftest$ac_exeext
10643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
2c92e90f
KC
10651 { ac_try='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
ed698112
NN
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
5aac1dac
TT
10664 am_cv_lib_iconv=yes
10665 am_cv_func_iconv=yes
ee9dd372 10666else
ed698112
NN
10667 echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
5aac1dac 10670fi
ed698112
NN
10671rm -f conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
5aac1dac
TT
10673 LIBS="$am_save_LIBS"
10674 fi
4b7f154f 10675
ed698112
NN
10676fi
10677echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10678echo "${ECHO_T}$am_cv_func_iconv" >&6
5aac1dac 10679 if test "$am_cv_func_iconv" = yes; then
ed698112
NN
10680
10681cat >>confdefs.h <<\_ACEOF
5aac1dac 10682#define HAVE_ICONV 1
ed698112 10683_ACEOF
7339705d 10684
5b7a26f6
KC
10685 fi
10686 if test "$am_cv_lib_iconv" = yes; then
10687 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10688echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10689 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10690echo "${ECHO_T}$LIBICONV" >&6
10691 else
10692 CPPFLAGS="$am_save_CPPFLAGS"
10693 LIBICONV=
10694 LTLIBICONV=
10695 fi
10696
10697
10698
10699 if test "$am_cv_func_iconv" = yes; then
ed698112
NN
10700 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10701echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10702 if test "${am_cv_proto_iconv+set}" = set; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
4b7f154f 10704else
ed698112
NN
10705
10706 cat >conftest.$ac_ext <<_ACEOF
10707/* confdefs.h. */
10708_ACEOF
10709cat confdefs.h >>conftest.$ac_ext
10710cat >>conftest.$ac_ext <<_ACEOF
10711/* end confdefs.h. */
4b7f154f 10712
5aac1dac
TT
10713#include <stdlib.h>
10714#include <iconv.h>
10715extern
10716#ifdef __cplusplus
10717"C"
10718#endif
10719#if defined(__STDC__) || defined(__cplusplus)
10720size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4b7f154f 10721#else
5aac1dac 10722size_t iconv();
4b7f154f
TT
10723#endif
10724
ed698112
NN
10725int
10726main ()
10727{
5aac1dac 10728
ed698112
NN
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext
10734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10735 (eval $ac_compile) 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
2c92e90f
KC
10742 { ac_try='test -z "$ac_c_werror_flag"
10743 || test ! -s conftest.err'
ed698112
NN
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
5aac1dac 10755 am_cv_proto_iconv_arg1=""
4b7f154f 10756else
ed698112
NN
10757 echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760am_cv_proto_iconv_arg1="const"
4b7f154f 10761fi
ed698112 10762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 10763 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);"
4b7f154f
TT
10764fi
10765
5aac1dac 10766 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
ed698112
NN
10767 echo "$as_me:$LINENO: result: ${ac_t:-
10768 }$am_cv_proto_iconv" >&5
10769echo "${ECHO_T}${ac_t:-
10770 }$am_cv_proto_iconv" >&6
10771
10772cat >>confdefs.h <<_ACEOF
5aac1dac 10773#define ICONV_CONST $am_cv_proto_iconv_arg1
ed698112 10774_ACEOF
4b7f154f 10775
5aac1dac 10776 fi
ed698112
NN
10777
10778
5b7a26f6 10779 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
ed698112
NN
10780echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10781if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 if test x$gcc_no_link = xyes; then
10785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10786echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10787 { (exit 1); exit 1; }; }
10788fi
10789cat >conftest.$ac_ext <<_ACEOF
10790/* confdefs.h. */
10791_ACEOF
10792cat confdefs.h >>conftest.$ac_ext
10793cat >>conftest.$ac_ext <<_ACEOF
10794/* end confdefs.h. */
5aac1dac 10795#include <locale.h>
ed698112
NN
10796int
10797main ()
10798{
5aac1dac 10799return LC_MESSAGES
ed698112
NN
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804rm -f conftest.$ac_objext conftest$ac_exeext
10805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
2c92e90f
KC
10813 { ac_try='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
ed698112
NN
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
5aac1dac 10826 am_cv_val_LC_MESSAGES=yes
4b7f154f 10827else
ed698112
NN
10828 echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
10831am_cv_val_LC_MESSAGES=no
4b7f154f 10832fi
ed698112
NN
10833rm -f conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
4b7f154f 10835fi
ed698112
NN
10836echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10837echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5b7a26f6 10838 if test $am_cv_val_LC_MESSAGES = yes; then
ed698112
NN
10839
10840cat >>confdefs.h <<\_ACEOF
5aac1dac 10841#define HAVE_LC_MESSAGES 1
ed698112 10842_ACEOF
7339705d 10843
5aac1dac 10844 fi
5b7a26f6 10845
ed698112
NN
10846 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10847echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10848if test "${ac_cv_struct_tm+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851 cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
5aac1dac
TT
10857#include <sys/types.h>
10858#include <time.h>
ed698112
NN
10859
10860int
10861main ()
10862{
5aac1dac 10863struct tm *tp; tp->tm_sec;
ed698112
NN
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext
10869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870 (eval $ac_compile) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
2c92e90f
KC
10877 { ac_try='test -z "$ac_c_werror_flag"
10878 || test ! -s conftest.err'
ed698112
NN
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest.$ac_objext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
5aac1dac 10890 ac_cv_struct_tm=time.h
7339705d 10891else
ed698112
NN
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895ac_cv_struct_tm=sys/time.h
7339705d 10896fi
ed698112 10897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339705d 10898fi
ed698112
NN
10899echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10900echo "${ECHO_T}$ac_cv_struct_tm" >&6
5aac1dac 10901if test $ac_cv_struct_tm = sys/time.h; then
ed698112
NN
10902
10903cat >>confdefs.h <<\_ACEOF
5aac1dac 10904#define TM_IN_SYS_TIME 1
ed698112 10905_ACEOF
4b7f154f 10906
ee9dd372 10907fi
ee9dd372 10908
ed698112
NN
10909echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10910echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10911if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 10913else
ed698112
NN
10914 cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
5aac1dac
TT
10920#include <sys/types.h>
10921#include <$ac_cv_struct_tm>
ed698112
NN
10922
10923
10924int
10925main ()
10926{
10927static struct tm ac_aggr;
10928if (ac_aggr.tm_zone)
10929return 0;
10930 ;
10931 return 0;
10932}
10933_ACEOF
10934rm -f conftest.$ac_objext
10935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10936 (eval $ac_compile) 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
2c92e90f
KC
10943 { ac_try='test -z "$ac_c_werror_flag"
10944 || test ! -s conftest.err'
ed698112
NN
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_member_struct_tm_tm_zone=yes
10957else
10958 echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961cat >conftest.$ac_ext <<_ACEOF
10962/* confdefs.h. */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h. */
10967#include <sys/types.h>
10968#include <$ac_cv_struct_tm>
10969
10970
10971int
10972main ()
10973{
10974static struct tm ac_aggr;
10975if (sizeof ac_aggr.tm_zone)
10976return 0;
10977 ;
10978 return 0;
10979}
10980_ACEOF
10981rm -f conftest.$ac_objext
10982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
2c92e90f
KC
10990 { ac_try='test -z "$ac_c_werror_flag"
10991 || test ! -s conftest.err'
ed698112
NN
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_member_struct_tm_tm_zone=yes
bc5afba4 11004else
ed698112
NN
11005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008ac_cv_member_struct_tm_tm_zone=no
5aac1dac 11009fi
ed698112 11010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11011fi
ed698112
NN
11012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11013fi
11014echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11015echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11016if test $ac_cv_member_struct_tm_tm_zone = yes; then
11017
11018cat >>confdefs.h <<_ACEOF
11019#define HAVE_STRUCT_TM_TM_ZONE 1
11020_ACEOF
11021
11022
11023fi
11024
11025if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5aac1dac 11026
ed698112 11027cat >>confdefs.h <<\_ACEOF
5aac1dac 11028#define HAVE_TM_ZONE 1
ed698112 11029_ACEOF
5aac1dac
TT
11030
11031else
ed698112
NN
11032 echo "$as_me:$LINENO: checking for tzname" >&5
11033echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11034if test "${ac_cv_var_tzname+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 11036else
ed698112
NN
11037 if test x$gcc_no_link = xyes; then
11038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11039echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11040 { (exit 1); exit 1; }; }
11041fi
11042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
5aac1dac
TT
11048#include <time.h>
11049#ifndef tzname /* For SGI. */
11050extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11051#endif
ed698112
NN
11052
11053int
11054main ()
11055{
5aac1dac 11056atoi(*tzname);
ed698112
NN
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext conftest$ac_exeext
11062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
2c92e90f
KC
11070 { ac_try='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
ed698112
NN
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
5aac1dac 11083 ac_cv_var_tzname=yes
bc5afba4 11084else
ed698112
NN
11085 echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088ac_cv_var_tzname=no
bc5afba4 11089fi
ed698112
NN
11090rm -f conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
bc5afba4 11092fi
ed698112
NN
11093echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11094echo "${ECHO_T}$ac_cv_var_tzname" >&6
5aac1dac 11095 if test $ac_cv_var_tzname = yes; then
ed698112
NN
11096
11097cat >>confdefs.h <<\_ACEOF
5aac1dac 11098#define HAVE_TZNAME 1
ed698112 11099_ACEOF
5aac1dac
TT
11100
11101 fi
11102fi
11103
11104
ed698112
NN
11105
11106
11107for ac_func in gethostbyname_r
ee9dd372 11108do
ed698112
NN
11109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11110echo "$as_me:$LINENO: checking for $ac_func" >&5
11111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11112if eval "test \"\${$as_ac_var+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 if test x$gcc_no_link = xyes; then
11116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11117echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11118 { (exit 1); exit 1; }; }
11119fi
11120cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
11126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11128#define $ac_func innocuous_$ac_func
11129
ee9dd372 11130/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11131 which can conflict with char $ac_func (); below.
11132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133 <limits.h> exists even on freestanding compilers. */
11134
11135#ifdef __STDC__
11136# include <limits.h>
11137#else
11138# include <assert.h>
11139#endif
ee9dd372 11140
ed698112 11141#undef $ac_func
ee9dd372 11142
ed698112
NN
11143/* Override any gcc2 internal prototype to avoid an error. */
11144#ifdef __cplusplus
11145extern "C"
11146{
11147#endif
11148/* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150char $ac_func ();
ee9dd372
TT
11151/* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11155choke me
11156#else
ed698112
NN
11157char (*f) () = $ac_func;
11158#endif
11159#ifdef __cplusplus
11160}
ee9dd372
TT
11161#endif
11162
ed698112
NN
11163int
11164main ()
11165{
11166return f != $ac_func;
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171rm -f conftest.$ac_objext conftest$ac_exeext
11172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
2c92e90f
KC
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
ed698112
NN
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 eval "$as_ac_var=yes"
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198eval "$as_ac_var=no"
11199fi
11200rm -f conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11202fi
11203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11205if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208_ACEOF
11209
11210
11211cat >>confdefs.h <<\_ACEOF
5aac1dac 11212#define HAVE_GETHOSTBYNAME_R 1
ed698112 11213_ACEOF
5aac1dac
TT
11214
11215 # There are two different kinds of gethostbyname_r.
11216 # We look for the one that returns `int'.
11217 # Hopefully this check is robust enough.
ed698112
NN
11218 cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
5aac1dac 11224#include <netdb.h>
ed698112
NN
11225
11226_ACEOF
5aac1dac 11227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11228 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11229
11230
11231cat >>confdefs.h <<\_ACEOF
5aac1dac 11232#define GETHOSTBYNAME_R_RETURNS_INT 1
ed698112 11233_ACEOF
5aac1dac 11234
ee9dd372 11235fi
5aac1dac 11236rm -f conftest*
ee9dd372 11237
ee9dd372 11238
5aac1dac
TT
11239 case " $GCINCS " in
11240 *" -D_REENTRANT "*) ;;
11241 *)
ed698112
NN
11242 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11243echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11244if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
cad90591 11247 ac_ext=cc
ed698112
NN
11248ac_cpp='$CXXCPP $CPPFLAGS'
11249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11252
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
5aac1dac 11259#include <netdb.h>
ed698112
NN
11260int
11261main ()
11262{
5aac1dac 11263gethostbyname_r("", 0, 0);
ed698112
NN
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268rm -f conftest.$ac_objext
11269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
2c92e90f
KC
11277 { ac_try='test -z "$ac_cxx_werror_flag"
11278 || test ! -s conftest.err'
ed698112
NN
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
5aac1dac
TT
11290 libjava_cv_gethostbyname_r_needs_reentrant=no
11291else
ed698112
NN
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 CPPFLAGS_SAVE="$CPPFLAGS"
5aac1dac 11296 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
ed698112
NN
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
5aac1dac 11303#include <netdb.h>
ed698112
NN
11304int
11305main ()
11306{
5aac1dac 11307gethostbyname_r("", 0, 0);
ed698112
NN
11308 ;
11309 return 0;
11310}
11311_ACEOF
11312rm -f conftest.$ac_objext
11313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11314 (eval $ac_compile) 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
2c92e90f
KC
11321 { ac_try='test -z "$ac_cxx_werror_flag"
11322 || test ! -s conftest.err'
ed698112
NN
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
5aac1dac
TT
11334 libjava_cv_gethostbyname_r_needs_reentrant=yes
11335else
ed698112
NN
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339libjava_cv_gethostbyname_r_needs_reentrant=fail
5aac1dac 11340fi
ed698112 11341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11342 CPPFLAGS="$CPPFLAGS_SAVE"
ed698112 11343
5aac1dac 11344fi
ed698112 11345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11346 ac_ext=c
5aac1dac 11347ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
11348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11350ac_compiler_gnu=$ac_cv_c_compiler_gnu
5aac1dac 11351
5aac1dac 11352
ed698112
NN
11353fi
11354echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11355echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
5aac1dac 11356 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
ed698112
NN
11357
11358cat >>confdefs.h <<\_ACEOF
5aac1dac 11359#define _REENTRANT 1
ed698112 11360_ACEOF
5aac1dac
TT
11361
11362 fi
11363 ;;
11364 esac
ee9dd372 11365
ed698112
NN
11366 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11367echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11368if test "${libjava_cv_struct_hostent_data+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 11370else
ed698112
NN
11371 cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
ee9dd372 11377
5aac1dac
TT
11378#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11379# define _REENTRANT 1
ee9dd372 11380#endif
5aac1dac 11381#include <netdb.h>
ed698112
NN
11382int
11383main ()
11384{
5aac1dac 11385struct hostent_data data;
ed698112
NN
11386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
2c92e90f
KC
11399 { ac_try='test -z "$ac_c_werror_flag"
11400 || test ! -s conftest.err'
ed698112
NN
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
5aac1dac 11412 libjava_cv_struct_hostent_data=yes
ee9dd372 11413else
ed698112
NN
11414 echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
11417libjava_cv_struct_hostent_data=no
ee9dd372 11418fi
ed698112 11419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee9dd372 11420fi
ed698112
NN
11421echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11422echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
5aac1dac 11423 if test "x$libjava_cv_struct_hostent_data" = xyes; then
ed698112
NN
11424
11425cat >>confdefs.h <<\_ACEOF
5aac1dac 11426#define HAVE_STRUCT_HOSTENT_DATA 1
ed698112 11427_ACEOF
5aac1dac
TT
11428
11429 fi
ed698112 11430
ee9dd372
TT
11431fi
11432done
11433
ee9dd372 11434
5aac1dac
TT
11435 # FIXME: libjava source code expects to find a prototype for
11436 # gethostbyaddr_r in netdb.h. The outer check ensures that
11437 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11438 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11439 # linkage check is enough, yet C++ code requires proper prototypes.)
ed698112
NN
11440 cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
5aac1dac 11446#include <netdb.h>
ed698112
NN
11447
11448_ACEOF
5aac1dac 11449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11450 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11451
11452
11453for ac_func in gethostbyaddr_r
ee9dd372 11454do
ed698112
NN
11455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456echo "$as_me:$LINENO: checking for $ac_func" >&5
11457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11458if eval "test \"\${$as_ac_var+set}\" = set"; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 if test x$gcc_no_link = xyes; then
11462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11463echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11464 { (exit 1); exit 1; }; }
11465fi
11466cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h. */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h. */
11472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11474#define $ac_func innocuous_$ac_func
11475
ee9dd372 11476/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11477 which can conflict with char $ac_func (); below.
11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11479 <limits.h> exists even on freestanding compilers. */
ee9dd372 11480
ed698112
NN
11481#ifdef __STDC__
11482# include <limits.h>
11483#else
11484# include <assert.h>
11485#endif
ee9dd372 11486
ed698112
NN
11487#undef $ac_func
11488
11489/* Override any gcc2 internal prototype to avoid an error. */
11490#ifdef __cplusplus
11491extern "C"
11492{
11493#endif
11494/* We use char because int might match the return type of a gcc2
11495 builtin and then its argument prototype would still apply. */
11496char $ac_func ();
ee9dd372
TT
11497/* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11501choke me
11502#else
ed698112
NN
11503char (*f) () = $ac_func;
11504#endif
11505#ifdef __cplusplus
11506}
ee9dd372
TT
11507#endif
11508
ed698112
NN
11509int
11510main ()
11511{
11512return f != $ac_func;
11513 ;
11514 return 0;
11515}
11516_ACEOF
11517rm -f conftest.$ac_objext conftest$ac_exeext
11518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11519 (eval $ac_link) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
2c92e90f
KC
11526 { ac_try='test -z "$ac_c_werror_flag"
11527 || test ! -s conftest.err'
ed698112
NN
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 eval "$as_ac_var=yes"
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544eval "$as_ac_var=no"
11545fi
11546rm -f conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548fi
11549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11551if test `eval echo '${'$as_ac_var'}'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11554_ACEOF
11555
11556
11557cat >>confdefs.h <<\_ACEOF
5aac1dac 11558#define HAVE_GETHOSTBYADDR_R 1
ed698112 11559_ACEOF
ee9dd372 11560
5aac1dac
TT
11561 # There are two different kinds of gethostbyaddr_r.
11562 # We look for the one that returns `int'.
11563 # Hopefully this check is robust enough.
ed698112
NN
11564 cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h. */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h. */
5aac1dac 11570#include <netdb.h>
ed698112
NN
11571
11572_ACEOF
5aac1dac 11573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11574 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11575
11576
11577cat >>confdefs.h <<\_ACEOF
5aac1dac 11578#define GETHOSTBYADDR_R_RETURNS_INT 1
ed698112 11579_ACEOF
8107bcf9 11580
5aac1dac
TT
11581fi
11582rm -f conftest*
11583
8107bcf9 11584fi
5aac1dac 11585done
8107bcf9 11586
5aac1dac
TT
11587fi
11588rm -f conftest*
8107bcf9 11589
f994389b 11590
ed698112
NN
11591
11592for ac_func in gethostname
5aac1dac 11593do
ed698112
NN
11594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595echo "$as_me:$LINENO: checking for $ac_func" >&5
11596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11597if eval "test \"\${$as_ac_var+set}\" = set"; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 if test x$gcc_no_link = xyes; then
11601 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11602echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11603 { (exit 1); exit 1; }; }
11604fi
11605cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11613#define $ac_func innocuous_$ac_func
11614
f994389b 11615/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11616 which can conflict with char $ac_func (); below.
11617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618 <limits.h> exists even on freestanding compilers. */
11619
11620#ifdef __STDC__
11621# include <limits.h>
11622#else
11623# include <assert.h>
11624#endif
f994389b 11625
ed698112 11626#undef $ac_func
f994389b 11627
ed698112
NN
11628/* Override any gcc2 internal prototype to avoid an error. */
11629#ifdef __cplusplus
11630extern "C"
11631{
11632#endif
11633/* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635char $ac_func ();
f994389b
TT
11636/* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
5aac1dac 11639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b
TT
11640choke me
11641#else
ed698112
NN
11642char (*f) () = $ac_func;
11643#endif
11644#ifdef __cplusplus
11645}
f994389b
TT
11646#endif
11647
ed698112
NN
11648int
11649main ()
11650{
11651return f != $ac_func;
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
11657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
2c92e90f
KC
11665 { ac_try='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
ed698112
NN
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 eval "$as_ac_var=yes"
11679else
11680 echo "$as_me: failed program was:" >&5
11681sed 's/^/| /' conftest.$ac_ext >&5
11682
11683eval "$as_ac_var=no"
11684fi
11685rm -f conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687fi
11688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11690if test `eval echo '${'$as_ac_var'}'` = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11693_ACEOF
11694
11695
11696cat >>confdefs.h <<\_ACEOF
5aac1dac 11697#define HAVE_GETHOSTNAME 1
ed698112
NN
11698_ACEOF
11699
11700 cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
5aac1dac 11706#include <unistd.h>
ed698112
NN
11707
11708_ACEOF
5aac1dac 11709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11710 $EGREP "gethostname" >/dev/null 2>&1; then
11711
11712
11713cat >>confdefs.h <<\_ACEOF
5aac1dac 11714#define HAVE_GETHOSTNAME_DECL 1
ed698112 11715_ACEOF
5aac1dac 11716
f994389b
TT
11717fi
11718rm -f conftest*
f994389b 11719
6b3517ea
RO
11720fi
11721done
11722
11723
ed698112
NN
11724
11725for ac_func in usleep
6b3517ea 11726do
ed698112
NN
11727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11728echo "$as_me:$LINENO: checking for $ac_func" >&5
11729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11730if eval "test \"\${$as_ac_var+set}\" = set"; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 if test x$gcc_no_link = xyes; then
11734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11735echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11736 { (exit 1); exit 1; }; }
11737fi
11738cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h. */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h. */
11744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11746#define $ac_func innocuous_$ac_func
11747
6b3517ea 11748/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11749 which can conflict with char $ac_func (); below.
11750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11751 <limits.h> exists even on freestanding compilers. */
6b3517ea 11752
ed698112
NN
11753#ifdef __STDC__
11754# include <limits.h>
11755#else
11756# include <assert.h>
11757#endif
6b3517ea 11758
ed698112
NN
11759#undef $ac_func
11760
11761/* Override any gcc2 internal prototype to avoid an error. */
11762#ifdef __cplusplus
11763extern "C"
11764{
11765#endif
11766/* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11768char $ac_func ();
11769/* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
6b3517ea
RO
11772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11773choke me
11774#else
ed698112
NN
11775char (*f) () = $ac_func;
11776#endif
11777#ifdef __cplusplus
11778}
6b3517ea
RO
11779#endif
11780
ed698112
NN
11781int
11782main ()
11783{
11784return f != $ac_func;
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
11790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791 (eval $ac_link) 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
2c92e90f
KC
11798 { ac_try='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
ed698112
NN
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest$ac_exeext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "$as_ac_var=yes"
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816eval "$as_ac_var=no"
11817fi
11818rm -f conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820fi
11821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11823if test `eval echo '${'$as_ac_var'}'` = yes; then
11824 cat >>confdefs.h <<_ACEOF
11825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826_ACEOF
11827
11828 cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
6b3517ea 11834#include <unistd.h>
ed698112
NN
11835
11836_ACEOF
6b3517ea 11837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11838 $EGREP "usleep" >/dev/null 2>&1; then
11839
11840
11841cat >>confdefs.h <<\_ACEOF
6b3517ea 11842#define HAVE_USLEEP_DECL 1
ed698112 11843_ACEOF
6b3517ea
RO
11844
11845fi
11846rm -f conftest*
11847
f994389b 11848fi
5aac1dac 11849done
f994389b 11850
5aac1dac
TT
11851
11852 # Look for these functions in the thread library, but only bother
11853 # if using POSIX threads.
11854 if test "$THREADS" = posix; then
11855 save_LIBS="$LIBS"
11856 LIBS="$LIBS $THREADLIBS"
11857 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11858 # E.g., Solaris.
ed698112
NN
11859
11860
11861for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5aac1dac 11862do
ed698112
NN
11863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11864echo "$as_me:$LINENO: checking for $ac_func" >&5
11865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11866if eval "test \"\${$as_ac_var+set}\" = set"; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 if test x$gcc_no_link = xyes; then
11870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11871echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11872 { (exit 1); exit 1; }; }
11873fi
11874cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11882#define $ac_func innocuous_$ac_func
11883
f994389b 11884/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11885 which can conflict with char $ac_func (); below.
11886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887 <limits.h> exists even on freestanding compilers. */
f994389b 11888
ed698112
NN
11889#ifdef __STDC__
11890# include <limits.h>
11891#else
11892# include <assert.h>
11893#endif
f994389b 11894
ed698112
NN
11895#undef $ac_func
11896
11897/* Override any gcc2 internal prototype to avoid an error. */
11898#ifdef __cplusplus
11899extern "C"
11900{
11901#endif
11902/* We use char because int might match the return type of a gcc2
11903 builtin and then its argument prototype would still apply. */
11904char $ac_func ();
f994389b
TT
11905/* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
5aac1dac 11908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b
TT
11909choke me
11910#else
ed698112
NN
11911char (*f) () = $ac_func;
11912#endif
11913#ifdef __cplusplus
11914}
f994389b
TT
11915#endif
11916
ed698112
NN
11917int
11918main ()
11919{
11920return f != $ac_func;
11921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext conftest$ac_exeext
11926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11927 (eval $ac_link) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
2c92e90f
KC
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
ed698112
NN
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 eval "$as_ac_var=yes"
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952eval "$as_ac_var=no"
11953fi
11954rm -f conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11956fi
11957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11959if test `eval echo '${'$as_ac_var'}'` = yes; then
11960 cat >>confdefs.h <<_ACEOF
11961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962_ACEOF
f994389b 11963
5aac1dac
TT
11964fi
11965done
11966
11967
11968 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11969 # Solaris 7 the name librt is preferred.
ed698112
NN
11970
11971for ac_func in sched_yield
5aac1dac 11972do
ed698112
NN
11973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974echo "$as_me:$LINENO: checking for $ac_func" >&5
11975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11976if eval "test \"\${$as_ac_var+set}\" = set"; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978else
11979 if test x$gcc_no_link = xyes; then
11980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11981echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11982 { (exit 1); exit 1; }; }
11983fi
11984cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11992#define $ac_func innocuous_$ac_func
11993
f994389b 11994/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11995 which can conflict with char $ac_func (); below.
11996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 <limits.h> exists even on freestanding compilers. */
11998
11999#ifdef __STDC__
12000# include <limits.h>
12001#else
12002# include <assert.h>
12003#endif
f994389b 12004
ed698112 12005#undef $ac_func
f994389b 12006
ed698112
NN
12007/* Override any gcc2 internal prototype to avoid an error. */
12008#ifdef __cplusplus
12009extern "C"
12010{
12011#endif
12012/* We use char because int might match the return type of a gcc2
12013 builtin and then its argument prototype would still apply. */
12014char $ac_func ();
f994389b
TT
12015/* The GNU C library defines this for functions which it implements
12016 to always fail with ENOSYS. Some functions are actually named
12017 something starting with __ and the normal name is an alias. */
5aac1dac 12018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b
TT
12019choke me
12020#else
ed698112
NN
12021char (*f) () = $ac_func;
12022#endif
12023#ifdef __cplusplus
12024}
f994389b
TT
12025#endif
12026
ed698112
NN
12027int
12028main ()
12029{
12030return f != $ac_func;
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
2c92e90f
KC
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
ed698112
NN
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 eval "$as_ac_var=yes"
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062eval "$as_ac_var=no"
12063fi
12064rm -f conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066fi
12067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12069if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072_ACEOF
12073
12074else
12075
12076 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12077echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12078if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12082LIBS="-lrt $LIBS"
ed698112
NN
12083if test x$gcc_no_link = xyes; then
12084 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12085echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12086 { (exit 1); exit 1; }; }
12087fi
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094
f994389b 12095/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12096#ifdef __cplusplus
12097extern "C"
12098#endif
f994389b 12099/* We use char because int might match the return type of a gcc2
ed698112
NN
12100 builtin and then its argument prototype would still apply. */
12101char sched_yield ();
12102int
12103main ()
12104{
12105sched_yield ();
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext conftest$ac_exeext
12111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
2c92e90f
KC
12119 { ac_try='test -z "$ac_c_werror_flag"
12120 || test ! -s conftest.err'
ed698112
NN
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_lib_rt_sched_yield=yes
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137ac_cv_lib_rt_sched_yield=no
12138fi
12139rm -f conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
12141LIBS=$ac_check_lib_save_LIBS
12142fi
12143echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12144echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12145if test $ac_cv_lib_rt_sched_yield = yes; then
12146
12147 cat >>confdefs.h <<\_ACEOF
5aac1dac 12148#define HAVE_SCHED_YIELD 1
ed698112 12149_ACEOF
5aac1dac
TT
12150
12151 THREADLIBS="$THREADLIBS -lrt"
12152 THREADSPEC="$THREADSPEC -lrt"
f994389b 12153else
f994389b 12154
ed698112
NN
12155 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12156echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12157if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
4b7f154f 12159else
ed698112 12160 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12161LIBS="-lposix4 $LIBS"
ed698112
NN
12162if test x$gcc_no_link = xyes; then
12163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12164echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12165 { (exit 1); exit 1; }; }
12166fi
12167cat >conftest.$ac_ext <<_ACEOF
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173
5aac1dac 12174/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12175#ifdef __cplusplus
12176extern "C"
12177#endif
5aac1dac 12178/* We use char because int might match the return type of a gcc2
ed698112
NN
12179 builtin and then its argument prototype would still apply. */
12180char sched_yield ();
12181int
12182main ()
12183{
12184sched_yield ();
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext conftest$ac_exeext
12190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
2c92e90f
KC
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
ed698112
NN
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest$ac_exeext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_lib_posix4_sched_yield=yes
12212else
12213 echo "$as_me: failed program was:" >&5
12214sed 's/^/| /' conftest.$ac_ext >&5
12215
12216ac_cv_lib_posix4_sched_yield=no
12217fi
12218rm -f conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220LIBS=$ac_check_lib_save_LIBS
12221fi
12222echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12223echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12224if test $ac_cv_lib_posix4_sched_yield = yes; then
12225
12226 cat >>confdefs.h <<\_ACEOF
5aac1dac 12227#define HAVE_SCHED_YIELD 1
ed698112 12228_ACEOF
5ec89e89 12229
5aac1dac
TT
12230 THREADLIBS="$THREADLIBS -lposix4"
12231 THREADSPEC="$THREADSPEC -lposix4"
58d2986d
AO
12232fi
12233
58d2986d
AO
12234fi
12235
58d2986d 12236fi
5aac1dac 12237done
58d2986d 12238
5aac1dac 12239 LIBS="$save_LIBS"
58d2986d 12240
5aac1dac
TT
12241 # We can save a little space at runtime if the mutex has m_count
12242 # or __m_count. This is a nice hack for Linux.
ed698112
NN
12243 cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
5aac1dac 12249#include <pthread.h>
ed698112
NN
12250int
12251main ()
12252{
58d2986d 12253
5aac1dac 12254 extern pthread_mutex_t *mutex; int q = mutex->m_count;
ed698112
NN
12255
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260rm -f conftest.$ac_objext
12261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12262 (eval $ac_compile) 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
2c92e90f
KC
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
ed698112
NN
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12282
12283cat >>confdefs.h <<\_ACEOF
5aac1dac 12284#define PTHREAD_MUTEX_HAVE_M_COUNT 1
ed698112 12285_ACEOF
58d2986d 12286
5aac1dac 12287else
ed698112
NN
12288 echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
12290
12291
12292 cat >conftest.$ac_ext <<_ACEOF
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
5aac1dac 12298#include <pthread.h>
ed698112
NN
12299int
12300main ()
12301{
58d2986d 12302
5aac1dac 12303 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
ed698112
NN
12304
12305 ;
12306 return 0;
12307}
12308_ACEOF
12309rm -f conftest.$ac_objext
12310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>conftest.er1
12312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
2c92e90f
KC
12318 { ac_try='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
ed698112
NN
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331
12332cat >>confdefs.h <<\_ACEOF
5aac1dac 12333#define PTHREAD_MUTEX_HAVE___M_COUNT 1
ed698112 12334_ACEOF
58d2986d 12335
5aac1dac 12336else
ed698112
NN
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
5aac1dac 12340fi
ed698112 12341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 12342fi
ed698112 12343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 12344 fi
5ec89e89 12345
5aac1dac
TT
12346 # We require a way to get the time.
12347 time_found=no
ed698112
NN
12348
12349
12350
12351for ac_func in gettimeofday time ftime
5aac1dac 12352do
ed698112
NN
12353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354echo "$as_me:$LINENO: checking for $ac_func" >&5
12355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12356if eval "test \"\${$as_ac_var+set}\" = set"; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359 if test x$gcc_no_link = xyes; then
12360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12361echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12362 { (exit 1); exit 1; }; }
12363fi
12364cat >conftest.$ac_ext <<_ACEOF
12365/* confdefs.h. */
12366_ACEOF
12367cat confdefs.h >>conftest.$ac_ext
12368cat >>conftest.$ac_ext <<_ACEOF
12369/* end confdefs.h. */
12370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12372#define $ac_func innocuous_$ac_func
12373
5aac1dac 12374/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12375 which can conflict with char $ac_func (); below.
12376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377 <limits.h> exists even on freestanding compilers. */
12378
12379#ifdef __STDC__
12380# include <limits.h>
12381#else
12382# include <assert.h>
12383#endif
b5ee195f 12384
ed698112 12385#undef $ac_func
5aac1dac 12386
ed698112
NN
12387/* Override any gcc2 internal prototype to avoid an error. */
12388#ifdef __cplusplus
12389extern "C"
12390{
12391#endif
12392/* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394char $ac_func ();
5aac1dac
TT
12395/* The GNU C library defines this for functions which it implements
12396 to always fail with ENOSYS. Some functions are actually named
12397 something starting with __ and the normal name is an alias. */
12398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12399choke me
12400#else
ed698112
NN
12401char (*f) () = $ac_func;
12402#endif
12403#ifdef __cplusplus
12404}
5aac1dac
TT
12405#endif
12406
ed698112
NN
12407int
12408main ()
12409{
12410return f != $ac_func;
12411 ;
12412 return 0;
12413}
12414_ACEOF
12415rm -f conftest.$ac_objext conftest$ac_exeext
12416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
2c92e90f
KC
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
ed698112
NN
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 eval "$as_ac_var=yes"
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442eval "$as_ac_var=no"
12443fi
12444rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446fi
12447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12449if test `eval echo '${'$as_ac_var'}'` = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12452_ACEOF
5aac1dac 12453 time_found=yes
f994389b 12454fi
5aac1dac 12455done
f994389b 12456
5aac1dac 12457 if test "$time_found" = no; then
ed698112
NN
12458 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12459echo "$as_me: error: no function found to get the time" >&2;}
12460 { (exit 1); exit 1; }; }
5aac1dac 12461 fi
f994389b 12462
ed698112
NN
12463
12464for ac_func in memmove
5aac1dac 12465do
ed698112
NN
12466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467echo "$as_me:$LINENO: checking for $ac_func" >&5
12468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12469if eval "test \"\${$as_ac_var+set}\" = set"; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472 if test x$gcc_no_link = xyes; then
12473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12474echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12475 { (exit 1); exit 1; }; }
12476fi
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12485#define $ac_func innocuous_$ac_func
12486
5aac1dac 12487/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12488 which can conflict with char $ac_func (); below.
12489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12490 <limits.h> exists even on freestanding compilers. */
f994389b 12491
ed698112
NN
12492#ifdef __STDC__
12493# include <limits.h>
12494#else
12495# include <assert.h>
12496#endif
ee9dd372 12497
ed698112
NN
12498#undef $ac_func
12499
12500/* Override any gcc2 internal prototype to avoid an error. */
12501#ifdef __cplusplus
12502extern "C"
12503{
12504#endif
12505/* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12507char $ac_func ();
5aac1dac
TT
12508/* The GNU C library defines this for functions which it implements
12509 to always fail with ENOSYS. Some functions are actually named
12510 something starting with __ and the normal name is an alias. */
12511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12512choke me
12513#else
ed698112
NN
12514char (*f) () = $ac_func;
12515#endif
12516#ifdef __cplusplus
12517}
5aac1dac 12518#endif
ee9dd372 12519
ed698112
NN
12520int
12521main ()
12522{
12523return f != $ac_func;
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528rm -f conftest.$ac_objext conftest$ac_exeext
12529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
2c92e90f
KC
12537 { ac_try='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
ed698112
NN
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 eval "$as_ac_var=yes"
12551else
12552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555eval "$as_ac_var=no"
12556fi
12557rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559fi
12560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12562if test `eval echo '${'$as_ac_var'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12565_ACEOF
ee9dd372 12566
ee9dd372 12567fi
5aac1dac 12568done
ee9dd372
TT
12569
12570
5aac1dac
TT
12571 # We require memcpy.
12572 memcpy_found=no
ed698112
NN
12573
12574for ac_func in memcpy
5aac1dac 12575do
ed698112
NN
12576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12577echo "$as_me:$LINENO: checking for $ac_func" >&5
12578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12579if eval "test \"\${$as_ac_var+set}\" = set"; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581else
12582 if test x$gcc_no_link = xyes; then
12583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12584echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12585 { (exit 1); exit 1; }; }
12586fi
12587cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12595#define $ac_func innocuous_$ac_func
12596
5aac1dac 12597/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12598 which can conflict with char $ac_func (); below.
12599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12600 <limits.h> exists even on freestanding compilers. */
12601
12602#ifdef __STDC__
12603# include <limits.h>
12604#else
12605# include <assert.h>
12606#endif
5aac1dac 12607
ed698112 12608#undef $ac_func
ee9dd372 12609
ed698112
NN
12610/* Override any gcc2 internal prototype to avoid an error. */
12611#ifdef __cplusplus
12612extern "C"
12613{
12614#endif
12615/* We use char because int might match the return type of a gcc2
12616 builtin and then its argument prototype would still apply. */
12617char $ac_func ();
5aac1dac
TT
12618/* The GNU C library defines this for functions which it implements
12619 to always fail with ENOSYS. Some functions are actually named
12620 something starting with __ and the normal name is an alias. */
12621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12622choke me
12623#else
ed698112
NN
12624char (*f) () = $ac_func;
12625#endif
12626#ifdef __cplusplus
12627}
5aac1dac 12628#endif
ee9dd372 12629
ed698112
NN
12630int
12631main ()
12632{
12633return f != $ac_func;
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext conftest$ac_exeext
12639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640 (eval $ac_link) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
2c92e90f
KC
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
ed698112
NN
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 eval "$as_ac_var=yes"
12661else
12662 echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665eval "$as_ac_var=no"
12666fi
12667rm -f conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669fi
12670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12672if test `eval echo '${'$as_ac_var'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675_ACEOF
5aac1dac 12676 memcpy_found=yes
dbf45a01 12677fi
5aac1dac 12678done
dbf45a01 12679
5aac1dac 12680 if test "$memcpy_found" = no; then
ed698112
NN
12681 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12682echo "$as_me: error: memcpy is required" >&2;}
12683 { (exit 1); exit 1; }; }
5aac1dac 12684 fi
dbf45a01 12685
ed698112
NN
12686 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 12690else
ed698112 12691 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12692LIBS="-ldl $LIBS"
ed698112
NN
12693if test x$gcc_no_link = xyes; then
12694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12695echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12696 { (exit 1); exit 1; }; }
12697fi
12698cat >conftest.$ac_ext <<_ACEOF
12699/* confdefs.h. */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h. */
12704
5aac1dac 12705/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12706#ifdef __cplusplus
12707extern "C"
12708#endif
5aac1dac 12709/* We use char because int might match the return type of a gcc2
ed698112
NN
12710 builtin and then its argument prototype would still apply. */
12711char dlopen ();
12712int
12713main ()
12714{
12715dlopen ();
12716 ;
12717 return 0;
12718}
12719_ACEOF
12720rm -f conftest.$ac_objext conftest$ac_exeext
12721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722 (eval $ac_link) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
2c92e90f
KC
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
ed698112
NN
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_lib_dl_dlopen=yes
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747ac_cv_lib_dl_dlopen=no
12748fi
12749rm -f conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751LIBS=$ac_check_lib_save_LIBS
12752fi
12753echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12754echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12755if test $ac_cv_lib_dl_dlopen = yes; then
12756
12757
12758cat >>confdefs.h <<\_ACEOF
5aac1dac 12759#define HAVE_DLOPEN 1
ed698112 12760_ACEOF
1b5a2139 12761
5aac1dac 12762fi
1b5a2139 12763
1b5a2139 12764
5aac1dac
TT
12765 # Some library-finding code we stole from Tcl.
12766 #--------------------------------------------------------------------
12767 # Check for the existence of the -lsocket and -lnsl libraries.
12768 # The order here is important, so that they end up in the right
12769 # order in the command line generated by make. Here are some
12770 # special considerations:
12771 # 1. Use "connect" and "accept" to check for -lsocket, and
12772 # "gethostbyname" to check for -lnsl.
12773 # 2. Use each function name only once: can't redo a check because
12774 # autoconf caches the results of the last check and won't redo it.
12775 # 3. Use -lnsl and -lsocket only if they supply procedures that
12776 # aren't already present in the normal libraries. This is because
12777 # IRIX 5.2 has libraries, but they aren't needed and they're
12778 # bogus: they goof up name resolution if used.
12779 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12780 # To get around this problem, check for both libraries together
12781 # if -lsocket doesn't work by itself.
12782 #--------------------------------------------------------------------
1b5a2139 12783
ed698112
NN
12784 echo "$as_me:$LINENO: checking for socket libraries" >&5
12785echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12786if test "${gcj_cv_lib_sockets+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
12788else
12789 gcj_cv_lib_sockets=
12790 gcj_checkBoth=0
12791 unset ac_cv_func_connect
ed698112
NN
12792 echo "$as_me:$LINENO: checking for connect" >&5
12793echo $ECHO_N "checking for connect... $ECHO_C" >&6
12794if test "${ac_cv_func_connect+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 if test x$gcc_no_link = xyes; then
12798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12799echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12800 { (exit 1); exit 1; }; }
12801fi
12802cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808/* Define connect to an innocuous variant, in case <limits.h> declares connect.
12809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12810#define connect innocuous_connect
12811
5aac1dac 12812/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12813 which can conflict with char connect (); below.
12814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 <limits.h> exists even on freestanding compilers. */
12816
12817#ifdef __STDC__
12818# include <limits.h>
12819#else
12820# include <assert.h>
12821#endif
5aac1dac 12822
ed698112 12823#undef connect
7bee4c4c 12824
ed698112
NN
12825/* Override any gcc2 internal prototype to avoid an error. */
12826#ifdef __cplusplus
12827extern "C"
12828{
12829#endif
12830/* We use char because int might match the return type of a gcc2
12831 builtin and then its argument prototype would still apply. */
12832char connect ();
5aac1dac
TT
12833/* The GNU C library defines this for functions which it implements
12834 to always fail with ENOSYS. Some functions are actually named
12835 something starting with __ and the normal name is an alias. */
12836#if defined (__stub_connect) || defined (__stub___connect)
12837choke me
12838#else
ed698112
NN
12839char (*f) () = connect;
12840#endif
12841#ifdef __cplusplus
12842}
5aac1dac
TT
12843#endif
12844
ed698112
NN
12845int
12846main ()
12847{
12848return f != connect;
12849 ;
12850 return 0;
12851}
12852_ACEOF
12853rm -f conftest.$ac_objext conftest$ac_exeext
12854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
2c92e90f
KC
12862 { ac_try='test -z "$ac_c_werror_flag"
12863 || test ! -s conftest.err'
ed698112
NN
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_func_connect=yes
12876else
12877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880ac_cv_func_connect=no
12881fi
12882rm -f conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884fi
12885echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12886echo "${ECHO_T}$ac_cv_func_connect" >&6
12887if test $ac_cv_func_connect = yes; then
5aac1dac
TT
12888 gcj_checkSocket=0
12889else
ed698112 12890 gcj_checkSocket=1
5aac1dac
TT
12891fi
12892
12893 if test "$gcj_checkSocket" = 1; then
12894 unset ac_cv_func_connect
ed698112
NN
12895 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12896echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12897if test "${ac_cv_lib_socket_main+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 12899else
ed698112 12900 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12901LIBS="-lsocket $LIBS"
ed698112
NN
12902if test x$gcc_no_link = xyes; then
12903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12904echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12905 { (exit 1); exit 1; }; }
ee9dd372 12906fi
ed698112
NN
12907cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
5aac1dac 12913
ed698112
NN
12914
12915int
12916main ()
12917{
12918main ();
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext conftest$ac_exeext
12924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925 (eval $ac_link) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
2c92e90f
KC
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
ed698112
NN
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_lib_socket_main=yes
12946else
12947 echo "$as_me: failed program was:" >&5
12948sed 's/^/| /' conftest.$ac_ext >&5
12949
12950ac_cv_lib_socket_main=no
12951fi
12952rm -f conftest.err conftest.$ac_objext \
12953 conftest$ac_exeext conftest.$ac_ext
12954LIBS=$ac_check_lib_save_LIBS
12955fi
12956echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12957echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12958if test $ac_cv_lib_socket_main = yes; then
5aac1dac 12959 gcj_cv_lib_sockets="-lsocket"
ee9dd372 12960else
ed698112 12961 gcj_checkBoth=1
ee9dd372 12962fi
ee9dd372 12963
5aac1dac
TT
12964 fi
12965 if test "$gcj_checkBoth" = 1; then
12966 gcj_oldLibs=$LIBS
12967 LIBS="$LIBS -lsocket -lnsl"
12968 unset ac_cv_func_accept
ed698112
NN
12969 echo "$as_me:$LINENO: checking for accept" >&5
12970echo $ECHO_N "checking for accept... $ECHO_C" >&6
12971if test "${ac_cv_func_accept+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973else
12974 if test x$gcc_no_link = xyes; then
12975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12976echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12977 { (exit 1); exit 1; }; }
12978fi
12979cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985/* Define accept to an innocuous variant, in case <limits.h> declares accept.
12986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12987#define accept innocuous_accept
12988
5aac1dac 12989/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12990 which can conflict with char accept (); below.
12991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992 <limits.h> exists even on freestanding compilers. */
5aac1dac 12993
ed698112
NN
12994#ifdef __STDC__
12995# include <limits.h>
12996#else
12997# include <assert.h>
12998#endif
5aac1dac 12999
ed698112
NN
13000#undef accept
13001
13002/* Override any gcc2 internal prototype to avoid an error. */
13003#ifdef __cplusplus
13004extern "C"
13005{
13006#endif
13007/* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */
13009char accept ();
5aac1dac
TT
13010/* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013#if defined (__stub_accept) || defined (__stub___accept)
13014choke me
13015#else
ed698112
NN
13016char (*f) () = accept;
13017#endif
13018#ifdef __cplusplus
13019}
5aac1dac
TT
13020#endif
13021
ed698112
NN
13022int
13023main ()
13024{
13025return f != accept;
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030rm -f conftest.$ac_objext conftest$ac_exeext
13031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032 (eval $ac_link) 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
2c92e90f
KC
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
ed698112
NN
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_func_accept=yes
13053else
13054 echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057ac_cv_func_accept=no
13058fi
13059rm -f conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061fi
13062echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13063echo "${ECHO_T}$ac_cv_func_accept" >&6
13064if test $ac_cv_func_accept = yes; then
5aac1dac
TT
13065 gcj_checkNsl=0
13066 gcj_cv_lib_sockets="-lsocket -lnsl"
04942eac 13067fi
04942eac 13068
5aac1dac
TT
13069 unset ac_cv_func_accept
13070 LIBS=$gcj_oldLibs
13071 fi
13072 unset ac_cv_func_gethostbyname
13073 gcj_oldLibs=$LIBS
13074 LIBS="$LIBS $gcj_cv_lib_sockets"
ed698112
NN
13075 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13076echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13077if test "${ac_cv_func_gethostbyname+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080 if test x$gcc_no_link = xyes; then
13081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13082echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13083 { (exit 1); exit 1; }; }
13084fi
13085cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
13091/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13093#define gethostbyname innocuous_gethostbyname
13094
5aac1dac 13095/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
13096 which can conflict with char gethostbyname (); below.
13097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098 <limits.h> exists even on freestanding compilers. */
13099
13100#ifdef __STDC__
13101# include <limits.h>
13102#else
13103# include <assert.h>
13104#endif
5aac1dac 13105
ed698112 13106#undef gethostbyname
5aac1dac 13107
ed698112
NN
13108/* Override any gcc2 internal prototype to avoid an error. */
13109#ifdef __cplusplus
13110extern "C"
13111{
13112#endif
13113/* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115char gethostbyname ();
5aac1dac
TT
13116/* The GNU C library defines this for functions which it implements
13117 to always fail with ENOSYS. Some functions are actually named
13118 something starting with __ and the normal name is an alias. */
13119#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13120choke me
13121#else
ed698112
NN
13122char (*f) () = gethostbyname;
13123#endif
13124#ifdef __cplusplus
13125}
5aac1dac
TT
13126#endif
13127
ed698112
NN
13128int
13129main ()
13130{
13131return f != gethostbyname;
13132 ;
13133 return 0;
13134}
13135_ACEOF
13136rm -f conftest.$ac_objext conftest$ac_exeext
13137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
2c92e90f
KC
13145 { ac_try='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
ed698112
NN
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_func_gethostbyname=yes
13159else
13160 echo "$as_me: failed program was:" >&5
13161sed 's/^/| /' conftest.$ac_ext >&5
13162
13163ac_cv_func_gethostbyname=no
13164fi
13165rm -f conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167fi
13168echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13169echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13170if test $ac_cv_func_gethostbyname = yes; then
5aac1dac 13171 :
ee9dd372 13172else
ed698112
NN
13173 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13174echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13175if test "${ac_cv_lib_nsl_main+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
4048d336 13177else
ed698112 13178 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13179LIBS="-lnsl $LIBS"
ed698112
NN
13180if test x$gcc_no_link = xyes; then
13181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13182echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13183 { (exit 1); exit 1; }; }
4048d336 13184fi
ed698112
NN
13185cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
5aac1dac 13191
ed698112
NN
13192
13193int
13194main ()
13195{
13196main ();
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext conftest$ac_exeext
13202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
2c92e90f
KC
13210 { ac_try='test -z "$ac_c_werror_flag"
13211 || test ! -s conftest.err'
ed698112
NN
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_lib_nsl_main=yes
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
13228ac_cv_lib_nsl_main=no
13229fi
13230rm -f conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232LIBS=$ac_check_lib_save_LIBS
13233fi
13234echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13235echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13236if test $ac_cv_lib_nsl_main = yes; then
5aac1dac 13237 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4048d336
AM
13238fi
13239
5aac1dac 13240fi
4048d336 13241
5aac1dac
TT
13242 unset ac_cv_func_gethostbyname
13243 LIBS=$gcj_oldLIBS
4048d336 13244
ed698112
NN
13245fi
13246echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13247echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
5aac1dac 13248 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
ee9dd372 13249
5aac1dac 13250 if test "$with_system_zlib" = yes; then
ed698112
NN
13251 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13252echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13253if test "${ac_cv_lib_z_deflate+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
a3e174ea 13255else
ed698112 13256 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13257LIBS="-lz $LIBS"
ed698112
NN
13258if test x$gcc_no_link = xyes; then
13259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13260echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13261 { (exit 1); exit 1; }; }
13262fi
13263cat >conftest.$ac_ext <<_ACEOF
13264/* confdefs.h. */
13265_ACEOF
13266cat confdefs.h >>conftest.$ac_ext
13267cat >>conftest.$ac_ext <<_ACEOF
13268/* end confdefs.h. */
13269
5aac1dac 13270/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13271#ifdef __cplusplus
13272extern "C"
13273#endif
5aac1dac 13274/* We use char because int might match the return type of a gcc2
ed698112
NN
13275 builtin and then its argument prototype would still apply. */
13276char deflate ();
13277int
13278main ()
13279{
13280deflate ();
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext conftest$ac_exeext
13286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
2c92e90f
KC
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
ed698112
NN
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_lib_z_deflate=yes
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312ac_cv_lib_z_deflate=no
13313fi
13314rm -f conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316LIBS=$ac_check_lib_save_LIBS
13317fi
13318echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13319echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13320if test $ac_cv_lib_z_deflate = yes; then
5aac1dac 13321 ZLIBSPEC=-lz
a3e174ea 13322else
ed698112 13323 ZLIBSPEC=
a3e174ea 13324fi
a3e174ea 13325
5aac1dac
TT
13326 fi
13327
13328 # Test for Gtk stuff, if asked for.
13329 if test "$use_gtk_awt" = yes; then
ed698112 13330
a1ddb355 13331 succeeded=no
5aac1dac 13332
a1ddb355
MK
13333 if test -z "$PKG_CONFIG"; then
13334 # Extract the first word of "pkg-config", so it can be a program name with args.
29e531ff 13335set dummy pkg-config; ac_word=$2
ed698112
NN
13336echo "$as_me:$LINENO: checking for $ac_word" >&5
13337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13338if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13340else
ed698112
NN
13341 case $PKG_CONFIG in
13342 [\\/]* | ?:[\\/]*)
29e531ff 13343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5aac1dac 13344 ;;
5aac1dac 13345 *)
ed698112
NN
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357done
13358done
13359
29e531ff 13360 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5aac1dac
TT
13361 ;;
13362esac
13363fi
ed698112
NN
13364PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13365
29e531ff 13366if test -n "$PKG_CONFIG"; then
ed698112
NN
13367 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13368echo "${ECHO_T}$PKG_CONFIG" >&6
5aac1dac 13369else
ed698112
NN
13370 echo "$as_me:$LINENO: result: no" >&5
13371echo "${ECHO_T}no" >&6
a3e174ea
AO
13372fi
13373
29e531ff
TF
13374 fi
13375
a1ddb355
MK
13376 if test "$PKG_CONFIG" = "no" ; then
13377 echo "*** The pkg-config script could not be found. Make sure it is"
13378 echo "*** in your path, or set the PKG_CONFIG environment variable"
13379 echo "*** to the full path to pkg-config."
13380 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13381 else
13382 PKG_CONFIG_MIN_VERSION=0.9.0
13383 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ed698112
NN
13384 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13385echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
5aac1dac 13386
f0faf24b 13387 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
ed698112
NN
13388 echo "$as_me:$LINENO: result: yes" >&5
13389echo "${ECHO_T}yes" >&6
a1ddb355 13390 succeeded=yes
5aac1dac 13391
ed698112
NN
13392 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13393echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
f0faf24b 13394 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
ed698112
NN
13395 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13396echo "${ECHO_T}$GTK_CFLAGS" >&6
5aac1dac 13397
ed698112
NN
13398 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13399echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
f0faf24b 13400 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
ed698112
NN
13401 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13402echo "${ECHO_T}$GTK_LIBS" >&6
a1ddb355
MK
13403 else
13404 GTK_CFLAGS=""
13405 GTK_LIBS=""
ed698112 13406 ## If we have a custom action on failure, don't print errors, but
a1ddb355 13407 ## do set a variable so people can do so.
f0faf24b 13408 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
a1ddb355
MK
13409 echo $GTK_PKG_ERRORS
13410 fi
5aac1dac 13411
ed698112
NN
13412
13413
5aac1dac 13414 else
a1ddb355
MK
13415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5aac1dac
TT
13417 fi
13418 fi
a3e174ea 13419
a1ddb355
MK
13420 if test $succeeded = yes; then
13421 :
13422 else
ed698112
NN
13423 { { 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
13424echo "$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;}
13425 { (exit 1); exit 1; }; }
5aac1dac 13426 fi
a3e174ea 13427
a3e174ea 13428
ed698112
NN
13429
13430
13431
a1ddb355 13432 succeeded=no
ccfe7e46 13433
a1ddb355
MK
13434 if test -z "$PKG_CONFIG"; then
13435 # Extract the first word of "pkg-config", so it can be a program name with args.
29e531ff 13436set dummy pkg-config; ac_word=$2
ed698112
NN
13437echo "$as_me:$LINENO: checking for $ac_word" >&5
13438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13439if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13441else
ed698112
NN
13442 case $PKG_CONFIG in
13443 [\\/]* | ?:[\\/]*)
29e531ff 13444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5aac1dac 13445 ;;
5aac1dac 13446 *)
ed698112
NN
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448for as_dir in $PATH
13449do
13450 IFS=$as_save_IFS
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 break 2
13457 fi
13458done
13459done
13460
29e531ff 13461 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5aac1dac
TT
13462 ;;
13463esac
13464fi
ed698112
NN
13465PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13466
29e531ff 13467if test -n "$PKG_CONFIG"; then
ed698112
NN
13468 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13469echo "${ECHO_T}$PKG_CONFIG" >&6
5aac1dac 13470else
ed698112
NN
13471 echo "$as_me:$LINENO: result: no" >&5
13472echo "${ECHO_T}no" >&6
5aac1dac
TT
13473fi
13474
29e531ff
TF
13475 fi
13476
1e567c43
TF
13477 if test "$PKG_CONFIG" = "no" ; then
13478 echo "*** The pkg-config script could not be found. Make sure it is"
13479 echo "*** in your path, or set the PKG_CONFIG environment variable"
13480 echo "*** to the full path to pkg-config."
13481 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13482 else
13483 PKG_CONFIG_MIN_VERSION=0.9.0
13484 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ed698112
NN
13485 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13486echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
1e567c43 13487
f0faf24b 13488 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
ed698112
NN
13489 echo "$as_me:$LINENO: result: yes" >&5
13490echo "${ECHO_T}yes" >&6
1e567c43
TF
13491 succeeded=yes
13492
ed698112
NN
13493 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13494echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
f0faf24b 13495 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
ed698112
NN
13496 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13497echo "${ECHO_T}$GLIB_CFLAGS" >&6
1e567c43 13498
ed698112
NN
13499 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13500echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
f0faf24b 13501 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
ed698112
NN
13502 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13503echo "${ECHO_T}$GLIB_LIBS" >&6
1e567c43
TF
13504 else
13505 GLIB_CFLAGS=""
13506 GLIB_LIBS=""
ed698112 13507 ## If we have a custom action on failure, don't print errors, but
1e567c43 13508 ## do set a variable so people can do so.
f0faf24b 13509 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
1e567c43
TF
13510 echo $GLIB_PKG_ERRORS
13511 fi
13512
ed698112
NN
13513
13514
1e567c43
TF
13515 else
13516 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13517 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13518 fi
13519 fi
13520
13521 if test $succeeded = yes; then
13522 :
13523 else
ed698112
NN
13524 { { 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
13525echo "$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;}
13526 { (exit 1); exit 1; }; }
1e567c43
TF
13527 fi
13528
1e567c43 13529
ed698112
NN
13530
13531
13532
1e567c43
TF
13533 succeeded=no
13534
13535 if test -z "$PKG_CONFIG"; then
13536 # Extract the first word of "pkg-config", so it can be a program name with args.
13537set dummy pkg-config; ac_word=$2
ed698112
NN
13538echo "$as_me:$LINENO: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13540if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
1e567c43 13542else
ed698112
NN
13543 case $PKG_CONFIG in
13544 [\\/]* | ?:[\\/]*)
1e567c43
TF
13545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13546 ;;
1e567c43 13547 *)
ed698112
NN
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH
13550do
13551 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2
13558 fi
13559done
13560done
13561
1e567c43
TF
13562 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13563 ;;
13564esac
13565fi
ed698112
NN
13566PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13567
1e567c43 13568if test -n "$PKG_CONFIG"; then
ed698112
NN
13569 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13570echo "${ECHO_T}$PKG_CONFIG" >&6
1e567c43 13571else
ed698112
NN
13572 echo "$as_me:$LINENO: result: no" >&5
13573echo "${ECHO_T}no" >&6
1e567c43
TF
13574fi
13575
13576 fi
13577
a1ddb355
MK
13578 if test "$PKG_CONFIG" = "no" ; then
13579 echo "*** The pkg-config script could not be found. Make sure it is"
13580 echo "*** in your path, or set the PKG_CONFIG environment variable"
13581 echo "*** to the full path to pkg-config."
13582 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5aac1dac 13583 else
a1ddb355
MK
13584 PKG_CONFIG_MIN_VERSION=0.9.0
13585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ed698112
NN
13586 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13587echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
a3e174ea 13588
a1ddb355 13589 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
ed698112
NN
13590 echo "$as_me:$LINENO: result: yes" >&5
13591echo "${ECHO_T}yes" >&6
a1ddb355 13592 succeeded=yes
60a78ccf 13593
ed698112
NN
13594 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13595echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
a1ddb355 13596 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
ed698112
NN
13597 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13598echo "${ECHO_T}$LIBART_CFLAGS" >&6
5aac1dac 13599
ed698112
NN
13600 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13601echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
a1ddb355 13602 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
ed698112
NN
13603 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13604echo "${ECHO_T}$LIBART_LIBS" >&6
a1ddb355
MK
13605 else
13606 LIBART_CFLAGS=""
13607 LIBART_LIBS=""
ed698112 13608 ## If we have a custom action on failure, don't print errors, but
a1ddb355
MK
13609 ## do set a variable so people can do so.
13610 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13611 echo $LIBART_PKG_ERRORS
13612 fi
5aac1dac 13613
ed698112
NN
13614
13615
a1ddb355
MK
13616 else
13617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5aac1dac
TT
13619 fi
13620 fi
13621
a1ddb355
MK
13622 if test $succeeded = yes; then
13623 :
5aac1dac 13624 else
ed698112
NN
13625 { { 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
13626echo "$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;}
13627 { (exit 1); exit 1; }; }
5aac1dac 13628 fi
ee9dd372 13629
ed698112
NN
13630
13631
5aac1dac
TT
13632 fi
13633
13634 # On Solaris, and maybe other architectures, the Boehm collector
13635 # requires -ldl.
13636 if test "$GC" = boehm; then
ed698112
NN
13637 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13638echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13639if test "${ac_cv_lib_dl_main+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13641else
ed698112 13642 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13643LIBS="-ldl $LIBS"
ed698112
NN
13644if test x$gcc_no_link = xyes; then
13645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13646echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13647 { (exit 1); exit 1; }; }
5aac1dac 13648fi
ed698112
NN
13649cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
5aac1dac 13655
ed698112
NN
13656
13657int
13658main ()
13659{
13660main ();
13661 ;
13662 return 0;
13663}
13664_ACEOF
13665rm -f conftest.$ac_objext conftest$ac_exeext
13666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
2c92e90f
KC
13674 { ac_try='test -z "$ac_c_werror_flag"
13675 || test ! -s conftest.err'
ed698112
NN
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_lib_dl_main=yes
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692ac_cv_lib_dl_main=no
13693fi
13694rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696LIBS=$ac_check_lib_save_LIBS
13697fi
13698echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13699echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13700if test $ac_cv_lib_dl_main = yes; then
5aac1dac 13701 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5aac1dac 13702fi
ee9dd372 13703
5aac1dac 13704 fi
17fdfd9f 13705fi
5aac1dac 13706
e3f92d3b
MK
13707
13708if test "$supply_backtrace" = yes; then
13709 SUPPLY_BACKTRACE_TRUE=
13710 SUPPLY_BACKTRACE_FALSE='#'
13711else
13712 SUPPLY_BACKTRACE_TRUE='#'
13713 SUPPLY_BACKTRACE_FALSE=
13714fi
13715
13716
17fdfd9f
RE
13717if test -z "${with_multisubdir}"; then
13718 builddotdot=.
13719else
17fdfd9f 13720 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
d6f6aaf6
ME
13721fi
13722
f11d297f
NN
13723NATIVE=yes
13724
d6f6aaf6
ME
13725# Which gcj do we use?
13726which_gcj=default
13727built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13728if test -n "${with_cross_host}"; then
13729 # We are being configured with a cross compiler. We can't
13730 # use ac_exeext, because that is for the target platform.
13731 NATIVE=no
13732 cross_host_exeext=
13733 case "${with_cross_host}" in
13734 *mingw* | *cygwin*)
13735 cross_host_exeext=.exe
13736 ;;
13737 esac
13738 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
b764adea 13739 if test x"$build_noncanonical" = x"$with_cross_host"; then
d6f6aaf6
ME
13740 # Ordinary cross (host!=target and host=build)
13741 which_gcj=built
13742 else
13743 # Canadian cross (host!=target and host!=build)
13744 which_gcj=cross
13745 fi
13746 else
13747 which_gcj=cross
13748 fi
13749else
13750 # We are being configured with a native or crossed-native compiler
13751 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13752 if test x"$build" = x"$host"; then
13753 # True native build (host=target and host=build)
13754 which_gcj=built
13755 else
13756 # Crossed-native build (host=target and host!=build)
13757 which_gcj=cross
13758 fi
13759 else
13760 which_gcj=path
13761 fi
13762fi
13763case "${which_gcj}" in
13764 built)
13765 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
c0f43fa7 13766 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
ef05818b 13767 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
d6f6aaf6
ME
13768 ;;
13769 cross)
d6f6aaf6
ME
13770 if test "x${with_newlib}" = "xyes"; then
13771 # FIXME (comment): Why is this needed?
13772 GCC_UNWIND_INCLUDE=
ed2e3d33 13773 GCJ="${target_noncanonical}-gcj"
d6f6aaf6 13774 else
ed2e3d33 13775 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
d6f6aaf6 13776 fi
c0f43fa7
RE
13777 ZIP=jar
13778 GCJH='$(target_noncanonical)-gcjh'
d6f6aaf6
ME
13779 ;;
13780 path)
5aac1dac 13781 GCJ="gcj -B`${PWDCMD-pwd}`/"
f11d297f
NN
13782 ## In this case, gcj is found outside the build tree. However, zip is
13783 ## found in the build tree.
ef05818b 13784 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
c0f43fa7 13785 GCJH=gcjh
d6f6aaf6
ME
13786 ;;
13787esac
5aac1dac 13788
4c86f325
NN
13789
13790
13791
5aac1dac
TT
13792# Create it, so that compile/link tests don't fail
13793test -f libgcj.spec || touch libgcj.spec
13794
349e19d4
AL
13795# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13796case $build in
13797 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13798 *) CLASSPATH_SEPARATOR=':' ;;
13799esac
13800
13801
5aac1dac
TT
13802# We must search the source tree for java.lang, since we still don't
13803# have libgcj.jar nor java/lang/*.class
13804GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13805CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13806
13807# Since some classes depend on this one, we need its source available
13808# before we can do any GCJ compilation test :-(
13809if test ! -f gnu/classpath/Configuration.java; then
13810 test -d gnu || mkdir gnu
13811 test -d gnu/classpath || mkdir gnu/classpath
13812 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13813 -e 's,@TOOLKIT@,$TOOLKIT,' \
13814 < $srcdir/gnu/classpath/Configuration.java.in \
13815 > gnu/classpath/Configuration.java
13816 # We do not want to redirect the output of the grep below to /dev/null,
13817 # but we add /dev/null to the input list so that grep will print the
13818 # filename of Configuration.java in case it finds any matches.
13819 if grep @ gnu/classpath/Configuration.java /dev/null; then
80d8905c
MK
13820 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13821echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
ed698112 13822 { (exit 1); exit 1; }; }
5aac1dac
TT
13823 fi
13824fi
13825
ed698112
NN
13826if test -n "$ac_tool_prefix"; then
13827 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5aac1dac 13828set dummy ${ac_tool_prefix}gcj; ac_word=$2
ed698112
NN
13829echo "$as_me:$LINENO: checking for $ac_word" >&5
13830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13831if test "${ac_cv_prog_GCJ+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
13833else
13834 if test -n "$GCJ"; then
13835 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13836else
ed698112
NN
13837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838for as_dir in $PATH
13839do
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848done
13849done
13850
5aac1dac
TT
13851fi
13852fi
ed698112 13853GCJ=$ac_cv_prog_GCJ
5aac1dac 13854if test -n "$GCJ"; then
ed698112
NN
13855 echo "$as_me:$LINENO: result: $GCJ" >&5
13856echo "${ECHO_T}$GCJ" >&6
ee9dd372 13857else
ed698112
NN
13858 echo "$as_me:$LINENO: result: no" >&5
13859echo "${ECHO_T}no" >&6
5aac1dac 13860fi
0659e0e3 13861
ed698112 13862fi
5aac1dac 13863if test -z "$ac_cv_prog_GCJ"; then
ed698112 13864 ac_ct_GCJ=$GCJ
5aac1dac
TT
13865 # Extract the first word of "gcj", so it can be a program name with args.
13866set dummy gcj; ac_word=$2
ed698112
NN
13867echo "$as_me:$LINENO: checking for $ac_word" >&5
13868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13869if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13871else
ed698112
NN
13872 if test -n "$ac_ct_GCJ"; then
13873 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5aac1dac 13874else
ed698112
NN
13875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876for as_dir in $PATH
13877do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882 ac_cv_prog_ac_ct_GCJ="gcj"
13883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13885 fi
13886done
13887done
13888
13889 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
5aac1dac
TT
13890fi
13891fi
ed698112
NN
13892ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13893if test -n "$ac_ct_GCJ"; then
13894 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13895echo "${ECHO_T}$ac_ct_GCJ" >&6
0659e0e3 13896else
ed698112
NN
13897 echo "$as_me:$LINENO: result: no" >&5
13898echo "${ECHO_T}no" >&6
0659e0e3 13899fi
5aac1dac 13900
ed698112 13901 GCJ=$ac_ct_GCJ
5aac1dac 13902else
ed698112 13903 GCJ="$ac_cv_prog_GCJ"
ee9dd372 13904fi
ee9dd372 13905
5aac1dac 13906 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
ed698112 13907
5aac1dac
TT
13908
13909
5aac1dac
TT
13910
13911CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13912
ed698112
NN
13913echo "$as_me:$LINENO: checking size of void *" >&5
13914echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13915if test "${ac_cv_sizeof_void_p+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 13917else
5aac1dac 13918 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
ed698112
NN
13919 cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
5aac1dac
TT
13925#include "confdefs.h"
13926#include <sys/types.h>
13927
13928
ed698112
NN
13929int
13930main ()
13931{
5aac1dac 13932switch (0) case 0: case (sizeof (void *) == $ac_size):;
ed698112
NN
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext
13938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
2c92e90f
KC
13946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
ed698112
NN
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
5aac1dac 13959 ac_cv_sizeof_void_p=$ac_size
ee9dd372 13960else
ed698112
NN
13961 echo "$as_me: failed program was:" >&5
13962sed 's/^/| /' conftest.$ac_ext >&5
13963
ee9dd372 13964fi
ed698112 13965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac
TT
13966 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13967done
13968
ee9dd372
TT
13969fi
13970
5aac1dac 13971if test x$ac_cv_sizeof_void_p = x ; then
ed698112
NN
13972 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13973echo "$as_me: error: cannot determine a size for void *" >&2;}
13974 { (exit 1); exit 1; }; }
5aac1dac 13975fi
ed698112
NN
13976echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13977echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13978
13979cat >>confdefs.h <<_ACEOF
5aac1dac 13980#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ed698112 13981_ACEOF
ee9dd372 13982
5aac1dac
TT
13983
13984
44bffd9f
AT
13985echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13986echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13987if test "${ac_cv_c_bigendian+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 ac_cv_c_bigendian=unknown
13991# See if sys/param.h defines the BYTE_ORDER macro.
13992cat >conftest.$ac_ext <<_ACEOF
13993/* confdefs.h. */
13994_ACEOF
13995cat confdefs.h >>conftest.$ac_ext
13996cat >>conftest.$ac_ext <<_ACEOF
13997/* end confdefs.h. */
13998#include <sys/types.h>
13999#include <sys/param.h>
14000int
14001main ()
14002{
14003
14004#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14005 bogus endian macros
14006#endif
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
2c92e90f
KC
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
44bffd9f
AT
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 # It does; now see whether it defined to BIG_ENDIAN or not.
14034cat >conftest.$ac_ext <<_ACEOF
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040#include <sys/types.h>
14041#include <sys/param.h>
14042int
14043main ()
14044{
14045
14046#if BYTE_ORDER != BIG_ENDIAN
14047 not big endian
14048#endif
14049 ;
14050 return 0;
14051}
14052_ACEOF
14053rm -f conftest.$ac_objext
14054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
2c92e90f
KC
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
44bffd9f
AT
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_cv_c_bigendian=yes
14076else
14077 echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080ac_cv_c_bigendian=no
14081fi
14082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14083else
14084 echo "$as_me: failed program was:" >&5
14085sed 's/^/| /' conftest.$ac_ext >&5
14086
14087fi
14088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14089if test $ac_cv_c_bigendian = unknown; then
14090if test "$cross_compiling" = yes; then
14091 echo $ac_n "cross-compiling... " 2>&6
14092else
14093 cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099main () {
14100 /* Are we little or big endian? From Harbison&Steele. */
14101 union
14102 {
14103 long l;
14104 char c[sizeof (long)];
14105 } u;
14106 u.l = 1;
14107 exit (u.c[sizeof (long) - 1] == 1);
14108}
14109_ACEOF
14110rm -f conftest$ac_exeext
14111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_c_bigendian=no
14122else
14123 echo "$as_me: program exited with status $ac_status" >&5
14124echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127( exit $ac_status )
14128ac_cv_c_bigendian=yes
14129fi
14130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14131fi
14132fi
14133fi
14134echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14135echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14136if test $ac_cv_c_bigendian = unknown; then
14137echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14138echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14139
14140cat >conftest.c <<EOF
14141short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14142short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14143void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14144short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14145short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14146void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14147int main() { _ascii (); _ebcdic (); return 0; }
14148EOF
14149 if test -f conftest.c ; then
14150 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14151 if test `grep -l BIGenDianSyS conftest.o` ; then
14152 echo $ac_n ' big endian probe OK, ' 1>&6
14153 ac_cv_c_bigendian=yes
14154 fi
14155 if test `grep -l LiTTleEnDian conftest.o` ; then
14156 echo $ac_n ' little endian probe OK, ' 1>&6
14157 if test $ac_cv_c_bigendian = yes ; then
14158 ac_cv_c_bigendian=unknown;
14159 else
14160 ac_cv_c_bigendian=no
14161 fi
14162 fi
14163 echo $ac_n 'guessing bigendian ... ' >&6
14164 fi
14165 fi
14166echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14167echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14168fi
14169if test $ac_cv_c_bigendian = yes; then
14170
14171cat >>confdefs.h <<\_ACEOF
14172#define WORDS_BIGENDIAN 1
14173_ACEOF
14174
14175
14176cat >>confdefs.h <<\_ACEOF
14177#define HOST_WORDS_BIG_ENDIAN 1
14178_ACEOF
14179
14180 BYTEORDER=4321
14181else
14182 BYTEORDER=1234
14183fi
14184
14185cat >>confdefs.h <<_ACEOF
14186#define BYTEORDER $BYTEORDER
14187_ACEOF
14188
14189if test $ac_cv_c_bigendian = unknown; then
14190 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14191echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14192 { (exit 1); exit 1; }; }
14193fi
14194
14195
5aac1dac
TT
14196ZLIBS=
14197SYS_ZLIBS=
14198ZINCS=
14199
14200if test -z "$ZLIBSPEC"; then
14201 # Use zlib from the GCC tree.
14202 ZINCS='-I$(top_srcdir)/../zlib'
14203 ZLIBS=../zlib/libzgcj_convenience.la
14204else
14205 # System's zlib.
14206 SYS_ZLIBS="$ZLIBSPEC"
ee9dd372
TT
14207fi
14208
5aac1dac
TT
14209
14210
14211
14212
14213
14214
14215
14216
c4ebd83d 14217
4c86f325 14218if test "$NATIVE" = yes; then
5aac1dac
TT
14219 NATIVE_TRUE=
14220 NATIVE_FALSE='#'
14221else
14222 NATIVE_TRUE='#'
14223 NATIVE_FALSE=
ee9dd372
TT
14224fi
14225
ee9dd372 14226
e3f92d3b 14227
5aac1dac
TT
14228if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14229 NEEDS_DATA_START_TRUE=
14230 NEEDS_DATA_START_FALSE='#'
14231else
14232 NEEDS_DATA_START_TRUE='#'
14233 NEEDS_DATA_START_FALSE=
ee9dd372
TT
14234fi
14235
5aac1dac 14236
e3f92d3b 14237
f1c3e0a6
AJ
14238# Process the option "--enable-version-specific-runtime-libs"
14239# Calculate toolexeclibdir
14240case ${version_specific_libs} in
14241 yes)
14242 # Need the gcc compiler version to know where to install libraries
14243 # and header files if --enable-version-specific-runtime-libs option
14244 # is selected.
ed2e3d33
NN
14245 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14246 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
f1c3e0a6
AJ
14247 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14248 toolexeclibdir=$toolexecmainlibdir
14249 ;;
14250 no)
14251 if test -n "$with_cross_host" &&
14252 test x"$with_cross_host" != x"no"; then
14253 # Install a library built with a cross compiler in tooldir, not libdir.
ed2e3d33 14254 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
f1c3e0a6
AJ
14255 toolexecmainlibdir='$(toolexecdir)/lib'
14256 else
ed2e3d33 14257 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
f1c3e0a6
AJ
14258 toolexecmainlibdir='$(libdir)'
14259 fi
14260 multi_os_directory=`$CC -print-multi-os-directory`
14261 case $multi_os_directory in
14262 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14263 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14264 esac
14265 ;;
ff8b9ca8 14266esac
5aac1dac
TT
14267
14268
14269
14270
14271# Determine gcj version number.
5aac1dac 14272gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5aac1dac
TT
14273GCJVERSION=$gcjversion
14274
ed698112
NN
14275
14276cat >>confdefs.h <<_ACEOF
5aac1dac 14277#define GCJVERSION "$GCJVERSION"
ed698112
NN
14278_ACEOF
14279
14280
aed6152d
NN
14281# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14282# On that system, sys/ioctl.h will not include sys/filio.h unless
14283# BSD_COMP is defined; just including sys/filio.h is simpler.
ed698112
NN
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
ee9dd372
TT
14301
14302
ed698112 14303for 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
5aac1dac 14304do
ed698112
NN
14305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311fi
14312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14314else
14315 # Is the header compilable?
14316echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14318cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h. */
14324$ac_includes_default
14325#include <$ac_header>
14326_ACEOF
14327rm -f conftest.$ac_objext
14328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>conftest.er1
14330 ac_status=$?
14331 grep -v '^ *+' conftest.er1 >conftest.err
14332 rm -f conftest.er1
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
2c92e90f
KC
14336 { ac_try='test -z "$ac_c_werror_flag"
14337 || test ! -s conftest.err'
ed698112
NN
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest.$ac_objext'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 ac_header_compiler=yes
14350else
14351 echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354ac_header_compiler=no
14355fi
14356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14358echo "${ECHO_T}$ac_header_compiler" >&6
14359
14360# Is the header present?
14361echo "$as_me:$LINENO: checking $ac_header presence" >&5
14362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369#include <$ac_header>
14370_ACEOF
14371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null; then
14379 if test -s conftest.err; then
14380 ac_cpp_err=$ac_c_preproc_warn_flag
14381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14382 else
14383 ac_cpp_err=
14384 fi
ee9dd372 14385else
ed698112 14386 ac_cpp_err=yes
ee9dd372 14387fi
ed698112
NN
14388if test -z "$ac_cpp_err"; then
14389 ac_header_preproc=yes
14390else
14391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_header_preproc=no
ee9dd372 14395fi
ed698112
NN
14396rm -f conftest.err conftest.$ac_ext
14397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398echo "${ECHO_T}$ac_header_preproc" >&6
14399
14400# So? What about this header?
14401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14402 yes:no: )
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14407 ac_header_preproc=yes
14408 ;;
14409 no:yes:* )
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14413echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14417echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14422 (
14423 cat <<\_ASBOX
e3f92d3b
MK
14424## ---------------------------------- ##
14425## Report this to the libjava lists. ##
14426## ---------------------------------- ##
ed698112
NN
14427_ASBOX
14428 ) |
14429 sed "s/^/$as_me: WARNING: /" >&2
14430 ;;
14431esac
14432echo "$as_me:$LINENO: checking for $ac_header" >&5
14433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 14436else
ed698112
NN
14437 eval "$as_ac_Header=\$ac_header_preproc"
14438fi
14439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14441
14442fi
14443if test `eval echo '${'$as_ac_Header'}'` = yes; then
14444 cat >>confdefs.h <<_ACEOF
14445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14446_ACEOF
14447
ee9dd372 14448fi
ed698112 14449
ee9dd372 14450done
ee9dd372 14451
aed6152d
NN
14452# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14453# for now. If you change this, you also must update natFile.cc.
ed698112
NN
14454
14455for ac_header in dirent.h
5aac1dac 14456do
ed698112
NN
14457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14458if eval "test \"\${$as_ac_Header+set}\" = set"; then
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463fi
14464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14466else
14467 # Is the header compilable?
14468echo "$as_me:$LINENO: checking $ac_header usability" >&5
14469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14470cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
14475/* end confdefs.h. */
14476$ac_includes_default
14477#include <$ac_header>
14478_ACEOF
14479rm -f conftest.$ac_objext
14480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>conftest.er1
14482 ac_status=$?
14483 grep -v '^ *+' conftest.er1 >conftest.err
14484 rm -f conftest.er1
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
2c92e90f
KC
14488 { ac_try='test -z "$ac_c_werror_flag"
14489 || test ! -s conftest.err'
ed698112
NN
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_header_compiler=yes
14502else
14503 echo "$as_me: failed program was:" >&5
14504sed 's/^/| /' conftest.$ac_ext >&5
14505
14506ac_header_compiler=no
14507fi
14508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510echo "${ECHO_T}$ac_header_compiler" >&6
14511
14512# Is the header present?
14513echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14515cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h. */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
14520/* end confdefs.h. */
14521#include <$ac_header>
14522_ACEOF
14523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev/null; then
14531 if test -s conftest.err; then
14532 ac_cpp_err=$ac_c_preproc_warn_flag
14533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14534 else
14535 ac_cpp_err=
14536 fi
ee9dd372 14537else
ed698112 14538 ac_cpp_err=yes
ee9dd372 14539fi
ed698112
NN
14540if test -z "$ac_cpp_err"; then
14541 ac_header_preproc=yes
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ac_header_preproc=no
ee9dd372 14547fi
ed698112
NN
14548rm -f conftest.err conftest.$ac_ext
14549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14550echo "${ECHO_T}$ac_header_preproc" >&6
14551
14552# So? What about this header?
14553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14554 yes:no: )
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14559 ac_header_preproc=yes
14560 ;;
14561 no:yes:* )
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14574 (
14575 cat <<\_ASBOX
e3f92d3b
MK
14576## ---------------------------------- ##
14577## Report this to the libjava lists. ##
14578## ---------------------------------- ##
ed698112
NN
14579_ASBOX
14580 ) |
14581 sed "s/^/$as_me: WARNING: /" >&2
14582 ;;
14583esac
14584echo "$as_me:$LINENO: checking for $ac_header" >&5
14585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14586if eval "test \"\${$as_ac_Header+set}\" = set"; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 14588else
ed698112
NN
14589 eval "$as_ac_Header=\$ac_header_preproc"
14590fi
14591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593
14594fi
14595if test `eval echo '${'$as_ac_Header'}'` = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598_ACEOF
14599
ee9dd372 14600fi
ed698112 14601
5aac1dac 14602done
ee9dd372 14603
ed698112
NN
14604
14605for ac_header in inttypes.h
ee9dd372 14606do
ed698112
NN
14607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14608if eval "test \"\${$as_ac_Header+set}\" = set"; then
14609 echo "$as_me:$LINENO: checking for $ac_header" >&5
14610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14611if eval "test \"\${$as_ac_Header+set}\" = set"; then
14612 echo $ECHO_N "(cached) $ECHO_C" >&6
14613fi
14614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14616else
14617 # Is the header compilable?
14618echo "$as_me:$LINENO: checking $ac_header usability" >&5
14619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14620cat >conftest.$ac_ext <<_ACEOF
14621/* confdefs.h. */
14622_ACEOF
14623cat confdefs.h >>conftest.$ac_ext
14624cat >>conftest.$ac_ext <<_ACEOF
14625/* end confdefs.h. */
14626$ac_includes_default
14627#include <$ac_header>
14628_ACEOF
14629rm -f conftest.$ac_objext
14630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
2c92e90f
KC
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
ed698112
NN
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_header_compiler=yes
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656ac_header_compiler=no
14657fi
14658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14660echo "${ECHO_T}$ac_header_compiler" >&6
14661
14662# Is the header present?
14663echo "$as_me:$LINENO: checking $ac_header presence" >&5
14664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14665cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671#include <$ac_header>
14672_ACEOF
14673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } >/dev/null; then
14681 if test -s conftest.err; then
14682 ac_cpp_err=$ac_c_preproc_warn_flag
14683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14684 else
14685 ac_cpp_err=
14686 fi
ee9dd372 14687else
ed698112 14688 ac_cpp_err=yes
3cf88fb4 14689fi
ed698112
NN
14690if test -z "$ac_cpp_err"; then
14691 ac_header_preproc=yes
14692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 ac_header_preproc=no
ee9dd372 14697fi
ed698112
NN
14698rm -f conftest.err conftest.$ac_ext
14699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14700echo "${ECHO_T}$ac_header_preproc" >&6
14701
14702# So? What about this header?
14703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704 yes:no: )
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14709 ac_header_preproc=yes
14710 ;;
14711 no:yes:* )
14712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14724 (
14725 cat <<\_ASBOX
e3f92d3b
MK
14726## ---------------------------------- ##
14727## Report this to the libjava lists. ##
14728## ---------------------------------- ##
ed698112
NN
14729_ASBOX
14730 ) |
14731 sed "s/^/$as_me: WARNING: /" >&2
14732 ;;
14733esac
14734echo "$as_me:$LINENO: checking for $ac_header" >&5
14735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14736if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738else
14739 eval "$as_ac_Header=\$ac_header_preproc"
14740fi
14741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14743
14744fi
14745if test `eval echo '${'$as_ac_Header'}'` = yes; then
14746 cat >>confdefs.h <<_ACEOF
14747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14748_ACEOF
14749
14750
14751cat >>confdefs.h <<\_ACEOF
5aac1dac 14752#define HAVE_INTTYPES_H 1
ed698112
NN
14753_ACEOF
14754
5aac1dac 14755
ed698112 14756cat >>confdefs.h <<\_ACEOF
5aac1dac 14757#define JV_HAVE_INTTYPES_H 1
ed698112 14758_ACEOF
ee9dd372 14759
2622c79d 14760
5aac1dac 14761fi
ed698112 14762
5aac1dac
TT
14763done
14764
ed698112
NN
14765echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14766echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14767if test "${ac_cv_header_sys_wait_h+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14769else
14770 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
5aac1dac
TT
14776#include <sys/types.h>
14777#include <sys/wait.h>
14778#ifndef WEXITSTATUS
ed698112 14779# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5aac1dac
TT
14780#endif
14781#ifndef WIFEXITED
ed698112 14782# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5aac1dac 14783#endif
ed698112
NN
14784
14785int
14786main ()
14787{
14788 int s;
14789 wait (&s);
14790 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14791 ;
14792 return 0;
14793}
14794_ACEOF
14795rm -f conftest.$ac_objext
14796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
2c92e90f
KC
14804 { ac_try='test -z "$ac_c_werror_flag"
14805 || test ! -s conftest.err'
ed698112
NN
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
5aac1dac
TT
14817 ac_cv_header_sys_wait_h=yes
14818else
ed698112
NN
14819 echo "$as_me: failed program was:" >&5
14820sed 's/^/| /' conftest.$ac_ext >&5
14821
14822ac_cv_header_sys_wait_h=no
5aac1dac 14823fi
ed698112 14824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 14825fi
ed698112
NN
14826echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14827echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5aac1dac 14828if test $ac_cv_header_sys_wait_h = yes; then
ed698112
NN
14829
14830cat >>confdefs.h <<\_ACEOF
5aac1dac 14831#define HAVE_SYS_WAIT_H 1
ed698112 14832_ACEOF
2622c79d 14833
5aac1dac
TT
14834fi
14835
14836
ed698112
NN
14837echo "$as_me:$LINENO: checking for ssize_t" >&5
14838echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14839if test "${ac_cv_type_ssize_t+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 14841else
ed698112
NN
14842 cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
14849int
14850main ()
14851{
14852if ((ssize_t *) 0)
14853 return 0;
14854if (sizeof (ssize_t))
14855 return 0;
14856 ;
14857 return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
2c92e90f
KC
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
ed698112
NN
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_type_ssize_t=yes
5aac1dac 14883else
ed698112
NN
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
2622c79d 14886
ed698112 14887ac_cv_type_ssize_t=no
5aac1dac 14888fi
ed698112 14889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 14890fi
ed698112
NN
14891echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14892echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14893if test $ac_cv_type_ssize_t = yes; then
5aac1dac 14894 :
2622c79d 14895else
2622c79d 14896
ed698112 14897cat >>confdefs.h <<_ACEOF
5aac1dac 14898#define ssize_t int
ed698112 14899_ACEOF
5aac1dac
TT
14900
14901fi
14902
2622c79d 14903
ed698112
NN
14904echo "$as_me:$LINENO: checking for in_addr_t" >&5
14905echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14906cat >conftest.$ac_ext <<_ACEOF
14907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h. */
5aac1dac
TT
14912#include <sys/types.h>
14913#if STDC_HEADERS
14914#include <stdlib.h>
14915#include <stddef.h>
14916#endif
14917#if HAVE_NETINET_IN_H
14918#include <netinet/in.h>
14919#endif
ed698112
NN
14920int
14921main ()
14922{
5aac1dac 14923in_addr_t foo;
ed698112
NN
14924 ;
14925 return 0;
14926}
14927_ACEOF
14928rm -f conftest.$ac_objext
14929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
2c92e90f
KC
14937 { ac_try='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
ed698112
NN
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950
14951cat >>confdefs.h <<\_ACEOF
5aac1dac 14952#define HAVE_IN_ADDR_T 1
ed698112 14953_ACEOF
5aac1dac 14954
ed698112
NN
14955 echo "$as_me:$LINENO: result: yes" >&5
14956echo "${ECHO_T}yes" >&6
2622c79d 14957else
ed698112
NN
14958 echo "$as_me: failed program was:" >&5
14959sed 's/^/| /' conftest.$ac_ext >&5
14960
14961echo "$as_me:$LINENO: result: no" >&5
14962echo "${ECHO_T}no" >&6
2622c79d 14963fi
ed698112 14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 14965
ed698112
NN
14966echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14967echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14968cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
5aac1dac 14974#include <netinet/in.h>
ed698112
NN
14975int
14976main ()
14977{
5aac1dac 14978struct ip_mreq mreq;
ed698112
NN
14979 ;
14980 return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
2c92e90f
KC
14992 { ac_try='test -z "$ac_c_werror_flag"
14993 || test ! -s conftest.err'
ed698112
NN
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005
15006cat >>confdefs.h <<\_ACEOF
5aac1dac 15007#define HAVE_STRUCT_IP_MREQ 1
ed698112 15008_ACEOF
5aac1dac 15009
ed698112
NN
15010 echo "$as_me:$LINENO: result: yes" >&5
15011echo "${ECHO_T}yes" >&6
2622c79d 15012else
ed698112
NN
15013 echo "$as_me: failed program was:" >&5
15014sed 's/^/| /' conftest.$ac_ext >&5
15015
15016echo "$as_me:$LINENO: result: no" >&5
15017echo "${ECHO_T}no" >&6
2622c79d 15018fi
ed698112 15019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15020
ed698112
NN
15021echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15022echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
5aac1dac 15029#include <netinet/in.h>
ed698112
NN
15030int
15031main ()
15032{
5aac1dac 15033struct ipv6_mreq mreq6;
ed698112
NN
15034 ;
15035 return 0;
15036}
15037_ACEOF
15038rm -f conftest.$ac_objext
15039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040 (eval $ac_compile) 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
2c92e90f
KC
15047 { ac_try='test -z "$ac_c_werror_flag"
15048 || test ! -s conftest.err'
ed698112
NN
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060
15061cat >>confdefs.h <<\_ACEOF
5aac1dac 15062#define HAVE_STRUCT_IPV6_MREQ 1
ed698112 15063_ACEOF
5aac1dac 15064
ed698112
NN
15065 echo "$as_me:$LINENO: result: yes" >&5
15066echo "${ECHO_T}yes" >&6
2622c79d 15067else
ed698112
NN
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071echo "$as_me:$LINENO: result: no" >&5
15072echo "${ECHO_T}no" >&6
2622c79d 15073fi
ed698112 15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15075
ed698112
NN
15076echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15077echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15078cat >conftest.$ac_ext <<_ACEOF
15079/* confdefs.h. */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h. */
5aac1dac 15084#include <netinet/in.h>
ed698112
NN
15085int
15086main ()
15087{
5aac1dac 15088struct sockaddr_in6 addr6;
ed698112
NN
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext
15094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095 (eval $ac_compile) 2>conftest.er1
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
2c92e90f
KC
15102 { ac_try='test -z "$ac_c_werror_flag"
15103 || test ! -s conftest.err'
ed698112
NN
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } &&
15109 { ac_try='test -s conftest.$ac_objext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115
15116cat >>confdefs.h <<\_ACEOF
5aac1dac 15117#define HAVE_INET6 1
ed698112 15118_ACEOF
5aac1dac 15119
ed698112
NN
15120 echo "$as_me:$LINENO: result: yes" >&5
15121echo "${ECHO_T}yes" >&6
2622c79d 15122else
ed698112
NN
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126echo "$as_me:$LINENO: result: no" >&5
15127echo "${ECHO_T}no" >&6
2622c79d 15128fi
ed698112 15129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15130
ed698112
NN
15131echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15132echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15133cat >conftest.$ac_ext <<_ACEOF
15134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
5aac1dac
TT
15139#define _POSIX_PII_SOCKET
15140#include <sys/types.h>
15141#include <sys/socket.h>
ed698112
NN
15142int
15143main ()
15144{
5aac1dac 15145socklen_t x = 5;
ed698112
NN
15146 ;
15147 return 0;
15148}
15149_ACEOF
15150rm -f conftest.$ac_objext
15151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152 (eval $ac_compile) 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
2c92e90f
KC
15159 { ac_try='test -z "$ac_c_werror_flag"
15160 || test ! -s conftest.err'
ed698112
NN
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172
15173cat >>confdefs.h <<\_ACEOF
5aac1dac 15174#define HAVE_SOCKLEN_T 1
ed698112 15175_ACEOF
5aac1dac 15176
ed698112
NN
15177 echo "$as_me:$LINENO: result: yes" >&5
15178echo "${ECHO_T}yes" >&6
2622c79d 15179else
ed698112
NN
15180 echo "$as_me: failed program was:" >&5
15181sed 's/^/| /' conftest.$ac_ext >&5
15182
15183echo "$as_me:$LINENO: result: no" >&5
15184echo "${ECHO_T}no" >&6
2622c79d 15185fi
ed698112 15186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15187
ed698112
NN
15188echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15189echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15190cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
5aac1dac 15196#include <time.h>
ed698112
NN
15197int
15198main ()
15199{
5aac1dac 15200struct tm tim; tim.tm_gmtoff = 0;
ed698112
NN
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext
15206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
2c92e90f
KC
15214 { ac_try='test -z "$ac_c_werror_flag"
15215 || test ! -s conftest.err'
ed698112
NN
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227
15228cat >>confdefs.h <<\_ACEOF
5aac1dac 15229#define STRUCT_TM_HAS_GMTOFF 1
ed698112
NN
15230_ACEOF
15231
15232 echo "$as_me:$LINENO: result: yes" >&5
15233echo "${ECHO_T}yes" >&6
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238echo "$as_me:$LINENO: result: no" >&5
15239echo "${ECHO_T}no" >&6
15240 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15241echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */
5aac1dac 15248#include <time.h>
ed698112
NN
15249int
15250main ()
15251{
5aac1dac 15252void i(){long z2 = 2*timezone;}
ed698112
NN
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257rm -f conftest.$ac_objext
15258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
2c92e90f
KC
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
ed698112
NN
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279
15280cat >>confdefs.h <<\_ACEOF
5aac1dac 15281#define HAVE_TIMEZONE 1
ed698112
NN
15282_ACEOF
15283
15284 echo "$as_me:$LINENO: result: yes" >&5
15285echo "${ECHO_T}yes" >&6
15286else
15287 echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5
15289
15290echo "$as_me:$LINENO: result: no" >&5
15291echo "${ECHO_T}no" >&6
15292 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15293echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
5aac1dac 15300#include <time.h>
ed698112
NN
15301int
15302main ()
15303{
5aac1dac 15304long z2 = _timezone;
ed698112
NN
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311 (eval $ac_compile) 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
2c92e90f
KC
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
ed698112
NN
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331
15332cat >>confdefs.h <<\_ACEOF
5aac1dac 15333#define HAVE_UNDERSCORE_TIMEZONE 1
ed698112 15334_ACEOF
5aac1dac 15335
ed698112
NN
15336 echo "$as_me:$LINENO: result: yes" >&5
15337echo "${ECHO_T}yes" >&6
2622c79d 15338else
ed698112
NN
15339 echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342echo "$as_me:$LINENO: result: no" >&5
15343echo "${ECHO_T}no" >&6
2622c79d 15344fi
ed698112 15345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15346fi
ed698112 15347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15348fi
ed698112 15349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15350
5aac1dac
TT
15351# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15352# for constant arguments. Useless!
ed698112
NN
15353echo "$as_me:$LINENO: checking for working alloca.h" >&5
15354echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15355if test "${ac_cv_working_alloca_h+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357else
15358 if test x$gcc_no_link = xyes; then
15359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15360echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15361 { (exit 1); exit 1; }; }
15362fi
15363cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h. */
5aac1dac 15369#include <alloca.h>
ed698112
NN
15370int
15371main ()
15372{
15373char *p = (char *) alloca (2 * sizeof (int));
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext conftest$ac_exeext
15379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15380 (eval $ac_link) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
2c92e90f
KC
15387 { ac_try='test -z "$ac_c_werror_flag"
15388 || test ! -s conftest.err'
ed698112
NN
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest$ac_exeext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_cv_working_alloca_h=yes
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405ac_cv_working_alloca_h=no
15406fi
15407rm -f conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
15409fi
15410echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15411echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15412if test $ac_cv_working_alloca_h = yes; then
15413
15414cat >>confdefs.h <<\_ACEOF
5aac1dac 15415#define HAVE_ALLOCA_H 1
ed698112 15416_ACEOF
2622c79d 15417
5aac1dac
TT
15418fi
15419
ed698112
NN
15420echo "$as_me:$LINENO: checking for alloca" >&5
15421echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15422if test "${ac_cv_func_alloca_works+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 15424else
ed698112
NN
15425 if test x$gcc_no_link = xyes; then
15426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15427echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15428 { (exit 1); exit 1; }; }
15429fi
15430cat >conftest.$ac_ext <<_ACEOF
15431/* confdefs.h. */
15432_ACEOF
15433cat confdefs.h >>conftest.$ac_ext
15434cat >>conftest.$ac_ext <<_ACEOF
15435/* end confdefs.h. */
5aac1dac
TT
15436#ifdef __GNUC__
15437# define alloca __builtin_alloca
2622c79d 15438#else
5aac1dac
TT
15439# ifdef _MSC_VER
15440# include <malloc.h>
15441# define alloca _alloca
15442# else
15443# if HAVE_ALLOCA_H
15444# include <alloca.h>
15445# else
15446# ifdef _AIX
15447 #pragma alloca
15448# else
15449# ifndef alloca /* predefined by HP cc +Olibcalls */
15450char *alloca ();
15451# endif
15452# endif
15453# endif
15454# endif
2622c79d
RR
15455#endif
15456
ed698112
NN
15457int
15458main ()
15459{
15460char *p = (char *) alloca (1);
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext conftest$ac_exeext
15466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
2c92e90f
KC
15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
ed698112
NN
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest$ac_exeext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
5aac1dac 15487 ac_cv_func_alloca_works=yes
2622c79d 15488else
ed698112
NN
15489 echo "$as_me: failed program was:" >&5
15490sed 's/^/| /' conftest.$ac_ext >&5
15491
15492ac_cv_func_alloca_works=no
2622c79d 15493fi
ed698112
NN
15494rm -f conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
2622c79d 15496fi
ed698112
NN
15497echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15498echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2622c79d 15499
5aac1dac 15500if test $ac_cv_func_alloca_works = yes; then
5aac1dac 15501
ed698112
NN
15502cat >>confdefs.h <<\_ACEOF
15503#define HAVE_ALLOCA 1
15504_ACEOF
2622c79d 15505
ed698112 15506else
5aac1dac 15507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
ed698112
NN
15508# that cause trouble. Some versions do not even contain alloca or
15509# contain a buggy version. If you still want to use their alloca,
15510# use ar to extract alloca.o from them instead of compiling alloca.c.
15511
15512ALLOCA=alloca.$ac_objext
15513
15514cat >>confdefs.h <<\_ACEOF
5aac1dac 15515#define C_ALLOCA 1
ed698112 15516_ACEOF
5aac1dac
TT
15517
15518
ed698112
NN
15519echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15520echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15521if test "${ac_cv_os_cray+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 15523else
ed698112
NN
15524 cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */
15526_ACEOF
15527cat confdefs.h >>conftest.$ac_ext
15528cat >>conftest.$ac_ext <<_ACEOF
15529/* end confdefs.h. */
5aac1dac
TT
15530#if defined(CRAY) && ! defined(CRAY2)
15531webecray
15532#else
15533wenotbecray
15534#endif
2622c79d 15535
ed698112 15536_ACEOF
5aac1dac 15537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112 15538 $EGREP "webecray" >/dev/null 2>&1; then
5aac1dac 15539 ac_cv_os_cray=yes
2622c79d 15540else
5aac1dac 15541 ac_cv_os_cray=no
2622c79d
RR
15542fi
15543rm -f conftest*
2622c79d 15544
2622c79d 15545fi
ed698112
NN
15546echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15547echo "${ECHO_T}$ac_cv_os_cray" >&6
5aac1dac 15548if test $ac_cv_os_cray = yes; then
ed698112
NN
15549 for ac_func in _getb67 GETB67 getb67; do
15550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15551echo "$as_me:$LINENO: checking for $ac_func" >&5
15552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15553if eval "test \"\${$as_ac_var+set}\" = set"; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 if test x$gcc_no_link = xyes; then
15557 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15558echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15559 { (exit 1); exit 1; }; }
15560fi
15561cat >conftest.$ac_ext <<_ACEOF
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15569#define $ac_func innocuous_$ac_func
15570
2622c79d 15571/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
15572 which can conflict with char $ac_func (); below.
15573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15574 <limits.h> exists even on freestanding compilers. */
15575
15576#ifdef __STDC__
15577# include <limits.h>
15578#else
15579# include <assert.h>
15580#endif
2622c79d 15581
ed698112 15582#undef $ac_func
2622c79d 15583
ed698112
NN
15584/* Override any gcc2 internal prototype to avoid an error. */
15585#ifdef __cplusplus
15586extern "C"
15587{
15588#endif
15589/* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591char $ac_func ();
2622c79d
RR
15592/* The GNU C library defines this for functions which it implements
15593 to always fail with ENOSYS. Some functions are actually named
15594 something starting with __ and the normal name is an alias. */
5aac1dac 15595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2622c79d
RR
15596choke me
15597#else
ed698112
NN
15598char (*f) () = $ac_func;
15599#endif
15600#ifdef __cplusplus
15601}
2622c79d
RR
15602#endif
15603
ed698112
NN
15604int
15605main ()
15606{
15607return f != $ac_func;
15608 ;
15609 return 0;
15610}
15611_ACEOF
15612rm -f conftest.$ac_objext conftest$ac_exeext
15613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15614 (eval $ac_link) 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
2c92e90f
KC
15621 { ac_try='test -z "$ac_c_werror_flag"
15622 || test ! -s conftest.err'
ed698112
NN
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest$ac_exeext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 eval "$as_ac_var=yes"
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639eval "$as_ac_var=no"
15640fi
15641rm -f conftest.err conftest.$ac_objext \
15642 conftest$ac_exeext conftest.$ac_ext
15643fi
15644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15646if test `eval echo '${'$as_ac_var'}'` = yes; then
15647
15648cat >>confdefs.h <<_ACEOF
5aac1dac 15649#define CRAY_STACKSEG_END $ac_func
ed698112 15650_ACEOF
5aac1dac 15651
ed698112 15652 break
2622c79d
RR
15653fi
15654
ed698112 15655 done
5aac1dac
TT
15656fi
15657
ed698112
NN
15658echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15659echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15660if test "${ac_cv_c_stack_direction+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 15662else
5aac1dac
TT
15663 if test "$cross_compiling" = yes; then
15664 ac_cv_c_stack_direction=0
15665else
ed698112
NN
15666 cat >conftest.$ac_ext <<_ACEOF
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
15672int
5aac1dac
TT
15673find_stack_direction ()
15674{
15675 static char *addr = 0;
15676 auto char dummy;
15677 if (addr == 0)
15678 {
15679 addr = &dummy;
15680 return find_stack_direction ();
15681 }
15682 else
15683 return (&dummy > addr) ? 1 : -1;
15684}
ed698112
NN
15685
15686int
5aac1dac
TT
15687main ()
15688{
ed698112 15689 exit (find_stack_direction () < 0);
5aac1dac 15690}
ed698112
NN
15691_ACEOF
15692rm -f conftest$ac_exeext
15693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
5aac1dac 15703 ac_cv_c_stack_direction=1
2622c79d 15704else
ed698112
NN
15705 echo "$as_me: program exited with status $ac_status" >&5
15706echo "$as_me: failed program was:" >&5
15707sed 's/^/| /' conftest.$ac_ext >&5
15708
15709( exit $ac_status )
15710ac_cv_c_stack_direction=-1
5aac1dac 15711fi
ed698112 15712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2622c79d 15713fi
2622c79d 15714fi
ed698112
NN
15715echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15716echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5aac1dac 15717
ed698112 15718cat >>confdefs.h <<_ACEOF
5aac1dac 15719#define STACK_DIRECTION $ac_cv_c_stack_direction
ed698112 15720_ACEOF
5aac1dac 15721
ed698112
NN
15722
15723fi
15724
15725if test x$gcc_no_link = xyes; then
15726 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15727 ac_cv_func_mmap_fixed_mapped=no
15728 fi
2622c79d 15729fi
ed698112 15730if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
2622c79d 15731
ed698112
NN
15732
15733for ac_header in stdlib.h unistd.h
c0daa902 15734do
ed698112
NN
15735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15736if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo "$as_me:$LINENO: checking for $ac_header" >&5
15738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15739if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741fi
15742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15744else
15745 # Is the header compilable?
15746echo "$as_me:$LINENO: checking $ac_header usability" >&5
15747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15748cat >conftest.$ac_ext <<_ACEOF
15749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
15754$ac_includes_default
15755#include <$ac_header>
15756_ACEOF
15757rm -f conftest.$ac_objext
15758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
2c92e90f
KC
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
ed698112
NN
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15780else
15781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784ac_header_compiler=no
15785fi
15786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788echo "${ECHO_T}$ac_header_compiler" >&6
15789
15790# Is the header present?
15791echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15793cat >conftest.$ac_ext <<_ACEOF
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799#include <$ac_header>
15800_ACEOF
15801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812 else
15813 ac_cpp_err=
15814 fi
c0daa902 15815else
ed698112 15816 ac_cpp_err=yes
c0daa902 15817fi
ed698112
NN
15818if test -z "$ac_cpp_err"; then
15819 ac_header_preproc=yes
15820else
15821 echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_header_preproc=no
c0daa902 15825fi
ed698112
NN
15826rm -f conftest.err conftest.$ac_ext
15827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828echo "${ECHO_T}$ac_header_preproc" >&6
15829
15830# So? What about this header?
15831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832 yes:no: )
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc=yes
15838 ;;
15839 no:yes:* )
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15852 (
15853 cat <<\_ASBOX
e3f92d3b
MK
15854## ---------------------------------- ##
15855## Report this to the libjava lists. ##
15856## ---------------------------------- ##
ed698112
NN
15857_ASBOX
15858 ) |
15859 sed "s/^/$as_me: WARNING: /" >&2
15860 ;;
15861esac
15862echo "$as_me:$LINENO: checking for $ac_header" >&5
15863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
c0daa902 15866else
ed698112
NN
15867 eval "$as_ac_Header=\$ac_header_preproc"
15868fi
15869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15871
15872fi
15873if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h <<_ACEOF
15875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15876_ACEOF
15877
c0daa902 15878fi
ed698112 15879
c0daa902
MK
15880done
15881
ed698112 15882
c0daa902
MK
15883for ac_func in getpagesize
15884do
ed698112
NN
15885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15886echo "$as_me:$LINENO: checking for $ac_func" >&5
15887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15888if eval "test \"\${$as_ac_var+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 if test x$gcc_no_link = xyes; then
15892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15893echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15894 { (exit 1); exit 1; }; }
15895fi
15896cat >conftest.$ac_ext <<_ACEOF
15897/* confdefs.h. */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */
15902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15904#define $ac_func innocuous_$ac_func
15905
c0daa902 15906/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
15907 which can conflict with char $ac_func (); below.
15908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15909 <limits.h> exists even on freestanding compilers. */
15910
15911#ifdef __STDC__
15912# include <limits.h>
15913#else
15914# include <assert.h>
15915#endif
c0daa902 15916
ed698112 15917#undef $ac_func
c0daa902 15918
ed698112
NN
15919/* Override any gcc2 internal prototype to avoid an error. */
15920#ifdef __cplusplus
15921extern "C"
15922{
15923#endif
15924/* We use char because int might match the return type of a gcc2
15925 builtin and then its argument prototype would still apply. */
15926char $ac_func ();
c0daa902
MK
15927/* The GNU C library defines this for functions which it implements
15928 to always fail with ENOSYS. Some functions are actually named
15929 something starting with __ and the normal name is an alias. */
15930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15931choke me
15932#else
ed698112
NN
15933char (*f) () = $ac_func;
15934#endif
15935#ifdef __cplusplus
15936}
c0daa902
MK
15937#endif
15938
ed698112
NN
15939int
15940main ()
15941{
15942return f != $ac_func;
15943 ;
15944 return 0;
15945}
15946_ACEOF
15947rm -f conftest.$ac_objext conftest$ac_exeext
15948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15949 (eval $ac_link) 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
2c92e90f
KC
15956 { ac_try='test -z "$ac_c_werror_flag"
15957 || test ! -s conftest.err'
ed698112
NN
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest$ac_exeext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 eval "$as_ac_var=yes"
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974eval "$as_ac_var=no"
15975fi
15976rm -f conftest.err conftest.$ac_objext \
15977 conftest$ac_exeext conftest.$ac_ext
15978fi
15979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15981if test `eval echo '${'$as_ac_var'}'` = yes; then
15982 cat >>confdefs.h <<_ACEOF
15983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15984_ACEOF
c0daa902 15985
c0daa902
MK
15986fi
15987done
15988
ed698112
NN
15989echo "$as_me:$LINENO: checking for working mmap" >&5
15990echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15991if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
c0daa902
MK
15993else
15994 if test "$cross_compiling" = yes; then
15995 ac_cv_func_mmap_fixed_mapped=no
15996else
ed698112
NN
15997 cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003$ac_includes_default
16004/* malloc might have been renamed as rpl_malloc. */
16005#undef malloc
c0daa902
MK
16006
16007/* Thanks to Mike Haertel and Jim Avera for this test.
16008 Here is a matrix of mmap possibilities:
16009 mmap private not fixed
16010 mmap private fixed at somewhere currently unmapped
16011 mmap private fixed at somewhere already mapped
16012 mmap shared not fixed
16013 mmap shared fixed at somewhere currently unmapped
16014 mmap shared fixed at somewhere already mapped
16015 For private mappings, we should verify that changes cannot be read()
16016 back from the file, nor mmap's back from the file at a different
16017 address. (There have been systems where private was not correctly
16018 implemented like the infamous i386 svr4.0, and systems where the
ed698112 16019 VM page cache was not coherent with the file system buffer cache
c0daa902
MK
16020 like early versions of FreeBSD and possibly contemporary NetBSD.)
16021 For shared mappings, we should conversely verify that changes get
ed698112 16022 propagated back to all the places they're supposed to be.
c0daa902
MK
16023
16024 Grep wants private fixed already mapped.
16025 The main things grep needs to know about mmap are:
16026 * does it exist and is it safe to write into the mmap'd area
16027 * how to use it (BSD variants) */
ed698112 16028
c0daa902
MK
16029#include <fcntl.h>
16030#include <sys/mman.h>
16031
ed698112
NN
16032#if !STDC_HEADERS && !HAVE_STDLIB_H
16033char *malloc ();
16034#endif
c0daa902 16035
ed698112
NN
16036/* This mess was copied from the GNU getpagesize.h. */
16037#if !HAVE_GETPAGESIZE
c0daa902 16038/* Assume that all systems that can run configure have sys/param.h. */
ed698112 16039# if !HAVE_SYS_PARAM_H
c0daa902
MK
16040# define HAVE_SYS_PARAM_H 1
16041# endif
16042
16043# ifdef _SC_PAGESIZE
16044# define getpagesize() sysconf(_SC_PAGESIZE)
16045# else /* no _SC_PAGESIZE */
ed698112 16046# if HAVE_SYS_PARAM_H
c0daa902
MK
16047# include <sys/param.h>
16048# ifdef EXEC_PAGESIZE
16049# define getpagesize() EXEC_PAGESIZE
16050# else /* no EXEC_PAGESIZE */
16051# ifdef NBPG
16052# define getpagesize() NBPG * CLSIZE
16053# ifndef CLSIZE
16054# define CLSIZE 1
16055# endif /* no CLSIZE */
16056# else /* no NBPG */
16057# ifdef NBPC
16058# define getpagesize() NBPC
16059# else /* no NBPC */
16060# ifdef PAGESIZE
16061# define getpagesize() PAGESIZE
16062# endif /* PAGESIZE */
16063# endif /* no NBPC */
16064# endif /* no NBPG */
16065# endif /* no EXEC_PAGESIZE */
16066# else /* no HAVE_SYS_PARAM_H */
16067# define getpagesize() 8192 /* punt totally */
16068# endif /* no HAVE_SYS_PARAM_H */
16069# endif /* no _SC_PAGESIZE */
16070
16071#endif /* no HAVE_GETPAGESIZE */
16072
c0daa902 16073int
ed698112
NN
16074main ()
16075{
16076 char *data, *data2, *data3;
16077 int i, pagesize;
16078 int fd;
16079
16080 pagesize = getpagesize ();
16081
16082 /* First, make a file with some known garbage in it. */
16083 data = (char *) malloc (pagesize);
16084 if (!data)
16085 exit (1);
16086 for (i = 0; i < pagesize; ++i)
16087 *(data + i) = rand ();
16088 umask (0);
16089 fd = creat ("conftest.mmap", 0600);
16090 if (fd < 0)
16091 exit (1);
16092 if (write (fd, data, pagesize) != pagesize)
16093 exit (1);
16094 close (fd);
16095
16096 /* Next, try to mmap the file at a fixed address which already has
16097 something else allocated at it. If we can, also make sure that
16098 we see the same garbage. */
16099 fd = open ("conftest.mmap", O_RDWR);
16100 if (fd < 0)
16101 exit (1);
16102 data2 = (char *) malloc (2 * pagesize);
16103 if (!data2)
16104 exit (1);
16105 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16106 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16107 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16108 exit (1);
16109 for (i = 0; i < pagesize; ++i)
16110 if (*(data + i) != *(data2 + i))
16111 exit (1);
16112
16113 /* Finally, make sure that changes to the mapped area do not
16114 percolate back to the file as seen by read(). (This is a bug on
16115 some variants of i386 svr4.0.) */
16116 for (i = 0; i < pagesize; ++i)
16117 *(data2 + i) = *(data2 + i) + 1;
16118 data3 = (char *) malloc (pagesize);
16119 if (!data3)
16120 exit (1);
16121 if (read (fd, data3, pagesize) != pagesize)
16122 exit (1);
16123 for (i = 0; i < pagesize; ++i)
16124 if (*(data + i) != *(data3 + i))
16125 exit (1);
16126 close (fd);
16127 exit (0);
c0daa902 16128}
ed698112
NN
16129_ACEOF
16130rm -f conftest$ac_exeext
16131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
c0daa902
MK
16141 ac_cv_func_mmap_fixed_mapped=yes
16142else
ed698112
NN
16143 echo "$as_me: program exited with status $ac_status" >&5
16144echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147( exit $ac_status )
16148ac_cv_func_mmap_fixed_mapped=no
c0daa902 16149fi
ed698112 16150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c0daa902 16151fi
c0daa902 16152fi
ed698112
NN
16153echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16154echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
c0daa902 16155if test $ac_cv_func_mmap_fixed_mapped = yes; then
ed698112
NN
16156
16157cat >>confdefs.h <<\_ACEOF
c0daa902 16158#define HAVE_MMAP 1
ed698112 16159_ACEOF
c0daa902
MK
16160
16161fi
ed698112 16162rm -f conftest.mmap
c0daa902 16163
ed698112 16164fi
2622c79d 16165
5aac1dac
TT
16166for ac_prog in perl
16167do
ed698112 16168 # Extract the first word of "$ac_prog", so it can be a program name with args.
5aac1dac 16169set dummy $ac_prog; ac_word=$2
ed698112
NN
16170echo "$as_me:$LINENO: checking for $ac_word" >&5
16171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16172if test "${ac_cv_prog_PERL+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 16174else
5aac1dac
TT
16175 if test -n "$PERL"; then
16176 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2622c79d 16177else
ed698112
NN
16178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179for as_dir in $PATH
16180do
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16185 ac_cv_prog_PERL="$ac_prog"
16186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16187 break 2
16188 fi
16189done
16190done
16191
2622c79d 16192fi
2622c79d 16193fi
ed698112 16194PERL=$ac_cv_prog_PERL
5aac1dac 16195if test -n "$PERL"; then
ed698112
NN
16196 echo "$as_me:$LINENO: result: $PERL" >&5
16197echo "${ECHO_T}$PERL" >&6
2622c79d 16198else
ed698112
NN
16199 echo "$as_me:$LINENO: result: no" >&5
16200echo "${ECHO_T}no" >&6
2622c79d
RR
16201fi
16202
ed698112 16203 test -n "$PERL" && break
5aac1dac
TT
16204done
16205test -n "$PERL" || PERL="false"
2622c79d 16206
2622c79d 16207
5aac1dac 16208SYSDEP_SOURCES=
02731d29 16209SIGNAL_HANDLER_AUX=
2622c79d 16210
5aac1dac
TT
16211case "${host}" in
16212 i?86-*-linux*)
16213 SIGNAL_HANDLER=include/i386-signal.h
16214 ;;
16215 sparc*-sun-solaris*)
16216 SIGNAL_HANDLER=include/sparc-signal.h
16217 ;;
16218# ia64-*)
16219# SYSDEP_SOURCES=sysdep/ia64.c
16220# test -d sysdep || mkdir sysdep
16221# ;;
8c5ac2c4
RC
16222 hppa*-*-linux*)
16223 SIGNAL_HANDLER=include/pa-signal.h
16224 ;;
5aac1dac
TT
16225 ia64-*-linux*)
16226 SIGNAL_HANDLER=include/dwarf2-signal.h
16227 ;;
02731d29 16228 powerpc*-*-linux*)
beea2324 16229 SIGNAL_HANDLER=include/powerpc-signal.h
5aac1dac
TT
16230 ;;
16231 alpha*-*-linux*)
16232 SIGNAL_HANDLER=include/dwarf2-signal.h
16233 ;;
16234 s390*-*-linux*)
16235 SIGNAL_HANDLER=include/s390-signal.h
16236 ;;
16237 x86_64*-*-linux*)
16238 SIGNAL_HANDLER=include/x86_64-signal.h
02731d29 16239 SIGNAL_HANDLER_AUX=include/i386-signal.h
5aac1dac
TT
16240 ;;
16241 sparc*-*-linux*)
16242 SIGNAL_HANDLER=include/dwarf2-signal.h
16243 ;;
be3d702c
KK
16244 sh*-*-linux*)
16245 SIGNAL_HANDLER=include/sh-signal.h
5aac1dac
TT
16246 ;;
16247 *mingw*)
16248 SIGNAL_HANDLER=include/win32-signal.h
16249 ;;
13229468
DD
16250 mips*-*-linux*)
16251 SIGNAL_HANDLER=include/mips-signal.h
16252 ;;
f8a57be8
GK
16253 *-*-darwin*)
16254 SIGNAL_HANDLER=include/darwin-signal.h
16255 ;;
5aac1dac
TT
16256 *)
16257 SIGNAL_HANDLER=include/default-signal.h
16258 ;;
16259esac
2622c79d 16260
5aac1dac
TT
16261# If we're using sjlj exceptions, forget what we just learned.
16262if test "$enable_sjlj_exceptions" = yes; then
16263 SIGNAL_HANDLER=include/default-signal.h
02731d29 16264 SIGNAL_HANDLER_AUX=
5aac1dac 16265fi
2622c79d 16266
4b445d7c
AH
16267# Define here any compiler flags that you need in order to make backtrace() work.
16268BACKTRACESPEC=
16269case "${host}" in
21a32e08 16270 x86_64*-*-linux*|i?86-*)
4b445d7c
AH
16271 BACKTRACESPEC=-fno-omit-frame-pointer
16272 ;;
16273esac
16274
16275
5950e016 16276
5950e016 16277
02731d29
JJ
16278if test -z "$SIGNAL_HANDLER_AUX"; then
16279 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16280fi
16281
614c0fc2 16282 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
5950e016
BM
16283
16284
5aac1dac
TT
16285if test "${multilib}" = "yes"; then
16286 multilib_arg="--enable-multilib"
2622c79d 16287else
5aac1dac 16288 multilib_arg=
2622c79d
RR
16289fi
16290
5950e016 16291
5950e016 16292
ed698112
NN
16293here=`${PWDCMD-pwd}`
16294
16295
16296# We get this from the environment.
16297
16298
16299 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
cad90591
MK
16300
16301
ed698112 16302 ac_config_commands="$ac_config_commands default"
cad90591
MK
16303
16304
ed698112
NN
16305cat >confcache <<\_ACEOF
16306# This file is a shell script that caches the results of configure
16307# tests run on this system so they can be shared between configure
16308# scripts and configure runs, see configure's option --config-cache.
16309# It is not useful on other systems. If it contains results you don't
16310# want to keep, you may remove or edit it.
16311#
16312# config.status only pays attention to the cache file if you give it
16313# the --recheck option to rerun configure.
16314#
16315# `ac_cv_env_foo' variables (set or unset) will be overridden when
16316# loading this file, other *unset* `ac_cv_foo' will be assigned the
16317# following values.
16318
16319_ACEOF
16320
16321# The following way of writing the cache mishandles newlines in values,
16322# but we know of no workaround that is simple, portable, and efficient.
16323# So, don't put newlines in cache variables' values.
16324# Ultrix sh set writes to stderr and can't be redirected directly,
16325# and sets the high bit in the cache file unless we assign to the vars.
16326{
16327 (set) 2>&1 |
16328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16329 *ac_space=\ *)
16330 # `set' does not quote correctly, so add quotes (double-quote
16331 # substitution turns \\\\ into \\, and sed turns \\ into \).
16332 sed -n \
16333 "s/'/'\\\\''/g;
16334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16335 ;;
16336 *)
16337 # `set' quotes correctly as required by POSIX, so do not add quotes.
16338 sed -n \
16339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16340 ;;
16341 esac;
16342} |
16343 sed '
16344 t clear
16345 : clear
16346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16347 t end
16348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16349 : end' >>confcache
16350if diff $cache_file confcache >/dev/null 2>&1; then :; else
16351 if test -w $cache_file; then
16352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16353 cat confcache >$cache_file
16354 else
16355 echo "not updating unwritable cache $cache_file"
16356 fi
16357fi
16358rm -f confcache
16359
16360test "x$prefix" = xNONE && prefix=$ac_default_prefix
16361# Let make expand exec_prefix.
16362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16363
16364# VPATH may cause trouble with some makes, so we remove $(srcdir),
16365# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16366# trailing colons and then remove the whole line if VPATH becomes empty
16367# (actually we leave an empty line to preserve line numbers).
16368if test "x$srcdir" = x.; then
16369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16370s/:*\$(srcdir):*/:/;
16371s/:*\${srcdir}:*/:/;
16372s/:*@srcdir@:*/:/;
16373s/^\([^=]*=[ ]*\):*/\1/;
16374s/:*$//;
16375s/^[^=]*=[ ]*$//;
16376}'
16377fi
16378
16379DEFS=-DHAVE_CONFIG_H
16380
16381ac_libobjs=
16382ac_ltlibobjs=
16383for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16384 # 1. Remove the extension, and $U if already installed.
16385 ac_i=`echo "$ac_i" |
16386 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16387 # 2. Add them.
16388 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16389 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16390done
16391LIBOBJS=$ac_libobjs
16392
16393LTLIBOBJS=$ac_ltlibobjs
16394
16395
e3f92d3b
MK
16396if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16397 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16398Usually this means the macro was only invoked conditionally." >&5
16399echo "$as_me: error: conditional \"AMDEP\" was never defined.
16400Usually this means the macro was only invoked conditionally." >&2;}
16401 { (exit 1); exit 1; }; }
16402fi
16403if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16404 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16405Usually this means the macro was only invoked conditionally." >&5
16406echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16407Usually this means the macro was only invoked conditionally." >&2;}
16408 { (exit 1); exit 1; }; }
16409fi
16410if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16411 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16412Usually this means the macro was only invoked conditionally." >&5
16413echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16414Usually this means the macro was only invoked conditionally." >&2;}
16415 { (exit 1); exit 1; }; }
16416fi
16417if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16418 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16419Usually this means the macro was only invoked conditionally." >&5
16420echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16421Usually this means the macro was only invoked conditionally." >&2;}
16422 { (exit 1); exit 1; }; }
16423fi
16424if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16425 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16426Usually this means the macro was only invoked conditionally." >&5
16427echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16428Usually this means the macro was only invoked conditionally." >&2;}
16429 { (exit 1); exit 1; }; }
16430fi
16431if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16432 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16433Usually this means the macro was only invoked conditionally." >&5
16434echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16435Usually this means the macro was only invoked conditionally." >&2;}
16436 { (exit 1); exit 1; }; }
16437fi
16438if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16439 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16440Usually this means the macro was only invoked conditionally." >&5
16441echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16442Usually this means the macro was only invoked conditionally." >&2;}
16443 { (exit 1); exit 1; }; }
16444fi
16445if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16446 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16447Usually this means the macro was only invoked conditionally." >&5
16448echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16449Usually this means the macro was only invoked conditionally." >&2;}
16450 { (exit 1); exit 1; }; }
16451fi
16452if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16453 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16454Usually this means the macro was only invoked conditionally." >&5
16455echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16456Usually this means the macro was only invoked conditionally." >&2;}
16457 { (exit 1); exit 1; }; }
16458fi
16459if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16460 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16461Usually this means the macro was only invoked conditionally." >&5
16462echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16463Usually this means the macro was only invoked conditionally." >&2;}
16464 { (exit 1); exit 1; }; }
16465fi
f1a66265
GK
16466if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16467 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16468Usually this means the macro was only invoked conditionally." >&5
16469echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16470Usually this means the macro was only invoked conditionally." >&2;}
16471 { (exit 1); exit 1; }; }
16472fi
e3f92d3b
MK
16473if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16474 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16475Usually this means the macro was only invoked conditionally." >&5
16476echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16477Usually this means the macro was only invoked conditionally." >&2;}
16478 { (exit 1); exit 1; }; }
16479fi
16480if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16481 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16482Usually this means the macro was only invoked conditionally." >&5
16483echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16484Usually this means the macro was only invoked conditionally." >&2;}
16485 { (exit 1); exit 1; }; }
16486fi
16487if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16488 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16489Usually this means the macro was only invoked conditionally." >&5
16490echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16491Usually this means the macro was only invoked conditionally." >&2;}
16492 { (exit 1); exit 1; }; }
16493fi
16494if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16495 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16496Usually this means the macro was only invoked conditionally." >&5
16497echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16498Usually this means the macro was only invoked conditionally." >&2;}
16499 { (exit 1); exit 1; }; }
16500fi
16501if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16502 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16503Usually this means the macro was only invoked conditionally." >&5
16504echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16505Usually this means the macro was only invoked conditionally." >&2;}
16506 { (exit 1); exit 1; }; }
16507fi
16508if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16509 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16510Usually this means the macro was only invoked conditionally." >&5
16511echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16512Usually this means the macro was only invoked conditionally." >&2;}
16513 { (exit 1); exit 1; }; }
16514fi
16515if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16516 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16517Usually this means the macro was only invoked conditionally." >&5
16518echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16519Usually this means the macro was only invoked conditionally." >&2;}
16520 { (exit 1); exit 1; }; }
16521fi
16522if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16523 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16524Usually this means the macro was only invoked conditionally." >&5
16525echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16526Usually this means the macro was only invoked conditionally." >&2;}
16527 { (exit 1); exit 1; }; }
16528fi
16529if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16530 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16531Usually this means the macro was only invoked conditionally." >&5
16532echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16533Usually this means the macro was only invoked conditionally." >&2;}
16534 { (exit 1); exit 1; }; }
16535fi
16536if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16537 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16538Usually this means the macro was only invoked conditionally." >&5
16539echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16540Usually this means the macro was only invoked conditionally." >&2;}
16541 { (exit 1); exit 1; }; }
16542fi
16543if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16544 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16545Usually this means the macro was only invoked conditionally." >&5
16546echo "$as_me: error: conditional \"NATIVE\" was never defined.
16547Usually this means the macro was only invoked conditionally." >&2;}
16548 { (exit 1); exit 1; }; }
16549fi
16550if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16551 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16552Usually this means the macro was only invoked conditionally." >&5
16553echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16554Usually this means the macro was only invoked conditionally." >&2;}
16555 { (exit 1); exit 1; }; }
16556fi
ed698112
NN
16557
16558: ${CONFIG_STATUS=./config.status}
16559ac_clean_files_save=$ac_clean_files
16560ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16561{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16562echo "$as_me: creating $CONFIG_STATUS" >&6;}
16563cat >$CONFIG_STATUS <<_ACEOF
16564#! $SHELL
16565# Generated by $as_me.
16566# Run this file to recreate the current configuration.
16567# Compiler output produced by configure, useful for debugging
16568# configure, is in config.log if it exists.
16569
16570debug=false
16571ac_cs_recheck=false
16572ac_cs_silent=false
16573SHELL=\${CONFIG_SHELL-$SHELL}
16574_ACEOF
16575
16576cat >>$CONFIG_STATUS <<\_ACEOF
16577## --------------------- ##
16578## M4sh Initialization. ##
16579## --------------------- ##
16580
16581# Be Bourne compatible
16582if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16583 emulate sh
16584 NULLCMD=:
16585 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16586 # is contrary to our usage. Disable this feature.
16587 alias -g '${1+"$@"}'='"$@"'
16588elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16589 set -o posix
16590fi
16591DUALCASE=1; export DUALCASE # for MKS sh
16592
16593# Support unset when possible.
16594if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16595 as_unset=unset
16596else
16597 as_unset=false
16598fi
16599
16600
16601# Work around bugs in pre-3.0 UWIN ksh.
16602$as_unset ENV MAIL MAILPATH
16603PS1='$ '
16604PS2='> '
16605PS4='+ '
16606
16607# NLS nuisances.
16608for as_var in \
16609 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16610 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16611 LC_TELEPHONE LC_TIME
16612do
16613 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16614 eval $as_var=C; export $as_var
16615 else
16616 $as_unset $as_var
16617 fi
16618done
16619
16620# Required to use basename.
16621if expr a : '\(a\)' >/dev/null 2>&1; then
16622 as_expr=expr
16623else
16624 as_expr=false
16625fi
16626
16627if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16628 as_basename=basename
16629else
16630 as_basename=false
16631fi
16632
16633
16634# Name of the executable.
16635as_me=`$as_basename "$0" ||
16636$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16637 X"$0" : 'X\(//\)$' \| \
16638 X"$0" : 'X\(/\)$' \| \
16639 . : '\(.\)' 2>/dev/null ||
16640echo X/"$0" |
16641 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16642 /^X\/\(\/\/\)$/{ s//\1/; q; }
16643 /^X\/\(\/\).*/{ s//\1/; q; }
16644 s/.*/./; q'`
16645
16646
16647# PATH needs CR, and LINENO needs CR and PATH.
16648# Avoid depending upon Character Ranges.
16649as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16650as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16651as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16652as_cr_digits='0123456789'
16653as_cr_alnum=$as_cr_Letters$as_cr_digits
16654
16655# The user is always right.
16656if test "${PATH_SEPARATOR+set}" != set; then
16657 echo "#! /bin/sh" >conf$$.sh
16658 echo "exit 0" >>conf$$.sh
16659 chmod +x conf$$.sh
16660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16661 PATH_SEPARATOR=';'
16662 else
16663 PATH_SEPARATOR=:
16664 fi
16665 rm -f conf$$.sh
16666fi
16667
16668
16669 as_lineno_1=$LINENO
16670 as_lineno_2=$LINENO
16671 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16672 test "x$as_lineno_1" != "x$as_lineno_2" &&
16673 test "x$as_lineno_3" = "x$as_lineno_2" || {
16674 # Find who we are. Look in the path if we contain no path at all
16675 # relative or not.
16676 case $0 in
16677 *[\\/]* ) as_myself=$0 ;;
16678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16679for as_dir in $PATH
16680do
16681 IFS=$as_save_IFS
16682 test -z "$as_dir" && as_dir=.
16683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16684done
16685
16686 ;;
16687 esac
16688 # We did not find ourselves, most probably we were run as `sh COMMAND'
16689 # in which case we are not to be found in the path.
16690 if test "x$as_myself" = x; then
16691 as_myself=$0
16692 fi
16693 if test ! -f "$as_myself"; then
16694 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16695echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16696 { (exit 1); exit 1; }; }
16697 fi
16698 case $CONFIG_SHELL in
16699 '')
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16702do
16703 IFS=$as_save_IFS
16704 test -z "$as_dir" && as_dir=.
16705 for as_base in sh bash ksh sh5; do
16706 case $as_dir in
16707 /*)
16708 if ("$as_dir/$as_base" -c '
16709 as_lineno_1=$LINENO
16710 as_lineno_2=$LINENO
16711 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16712 test "x$as_lineno_1" != "x$as_lineno_2" &&
16713 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16714 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16715 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16716 CONFIG_SHELL=$as_dir/$as_base
16717 export CONFIG_SHELL
16718 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16719 fi;;
16720 esac
16721 done
16722done
16723;;
16724 esac
16725
16726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16727 # uniformly replaced by the line number. The first 'sed' inserts a
16728 # line-number line before each line; the second 'sed' does the real
16729 # work. The second script uses 'N' to pair each line-number line
16730 # with the numbered line, and appends trailing '-' during
16731 # substitution so that $LINENO is not a special case at line end.
16732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16733 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16734 sed '=' <$as_myself |
16735 sed '
16736 N
16737 s,$,-,
16738 : loop
16739 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16740 t loop
16741 s,-$,,
16742 s,^['$as_cr_digits']*\n,,
16743 ' >$as_me.lineno &&
16744 chmod +x $as_me.lineno ||
16745 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16746echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16747 { (exit 1); exit 1; }; }
16748
16749 # Don't try to exec as it changes $[0], causing all sort of problems
16750 # (the dirname of $[0] is not the place where we might find the
16751 # original and so on. Autoconf is especially sensible to this).
16752 . ./$as_me.lineno
16753 # Exit status is that of the last command.
16754 exit
16755}
16756
16757
16758case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16759 *c*,-n*) ECHO_N= ECHO_C='
16760' ECHO_T=' ' ;;
16761 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16762 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16763esac
16764
16765if expr a : '\(a\)' >/dev/null 2>&1; then
16766 as_expr=expr
16767else
16768 as_expr=false
16769fi
16770
16771rm -f conf$$ conf$$.exe conf$$.file
16772echo >conf$$.file
16773if ln -s conf$$.file conf$$ 2>/dev/null; then
16774 # We could just check for DJGPP; but this test a) works b) is more generic
16775 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16776 if test -f conf$$.exe; then
16777 # Don't use ln at all; we don't have any links
16778 as_ln_s='cp -p'
16779 else
16780 as_ln_s='ln -s'
16781 fi
16782elif ln conf$$.file conf$$ 2>/dev/null; then
16783 as_ln_s=ln
16784else
16785 as_ln_s='cp -p'
16786fi
16787rm -f conf$$ conf$$.exe conf$$.file
16788
16789if mkdir -p . 2>/dev/null; then
16790 as_mkdir_p=:
16791else
16792 test -d ./-p && rmdir ./-p
16793 as_mkdir_p=false
16794fi
16795
16796as_executable_p="test -f"
16797
16798# Sed expression to map a string onto a valid CPP name.
16799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16800
16801# Sed expression to map a string onto a valid variable name.
16802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16803
16804
16805# IFS
16806# We need space, tab and new line, in precisely that order.
16807as_nl='
16808'
16809IFS=" $as_nl"
16810
16811# CDPATH.
16812$as_unset CDPATH
16813
16814exec 6>&1
16815
16816# Open the log real soon, to keep \$[0] and so on meaningful, and to
16817# report actual input values of CONFIG_FILES etc. instead of their
16818# values after options handling. Logging --version etc. is OK.
16819exec 5>>config.log
16820{
16821 echo
16822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16823## Running $as_me. ##
16824_ASBOX
16825} >&5
16826cat >&5 <<_CSEOF
16827
e3f92d3b 16828This file was extended by libjava $as_me version-unused, which was
ed698112
NN
16829generated by GNU Autoconf 2.59. Invocation command line was
16830
16831 CONFIG_FILES = $CONFIG_FILES
16832 CONFIG_HEADERS = $CONFIG_HEADERS
16833 CONFIG_LINKS = $CONFIG_LINKS
16834 CONFIG_COMMANDS = $CONFIG_COMMANDS
16835 $ $0 $@
16836
16837_CSEOF
16838echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16839echo >&5
16840_ACEOF
16841
16842# Files that config.status was made for.
16843if test -n "$ac_config_files"; then
16844 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16845fi
16846
16847if test -n "$ac_config_headers"; then
16848 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16849fi
16850
16851if test -n "$ac_config_links"; then
16852 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16853fi
16854
16855if test -n "$ac_config_commands"; then
16856 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16857fi
16858
16859cat >>$CONFIG_STATUS <<\_ACEOF
16860
16861ac_cs_usage="\
16862\`$as_me' instantiates files from templates according to the
16863current configuration.
16864
16865Usage: $0 [OPTIONS] [FILE]...
16866
16867 -h, --help print this help, then exit
16868 -V, --version print version number, then exit
16869 -q, --quiet do not print progress messages
16870 -d, --debug don't remove temporary files
16871 --recheck update $as_me by reconfiguring in the same conditions
16872 --file=FILE[:TEMPLATE]
16873 instantiate the configuration file FILE
16874 --header=FILE[:TEMPLATE]
16875 instantiate the configuration header FILE
16876
16877Configuration files:
16878$config_files
16879
16880Configuration headers:
16881$config_headers
ee9dd372 16882
ed698112
NN
16883Configuration links:
16884$config_links
ee9dd372 16885
ed698112
NN
16886Configuration commands:
16887$config_commands
7e0c895f 16888
ed698112
NN
16889Report bugs to <bug-autoconf@gnu.org>."
16890_ACEOF
480222b5 16891
ed698112
NN
16892cat >>$CONFIG_STATUS <<_ACEOF
16893ac_cs_version="\\
e3f92d3b 16894libjava config.status version-unused
ed698112
NN
16895configured by $0, generated by GNU Autoconf 2.59,
16896 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16897
16898Copyright (C) 2003 Free Software Foundation, Inc.
16899This config.status script is free software; the Free Software Foundation
16900gives unlimited permission to copy, distribute and modify it."
16901srcdir=$srcdir
16902INSTALL="$INSTALL"
16903_ACEOF
16904
16905cat >>$CONFIG_STATUS <<\_ACEOF
16906# If no file are specified by the user, then we need to provide default
16907# value. By we need to know if files were specified by the user.
16908ac_need_defaults=:
16909while test $# != 0
16910do
16911 case $1 in
16912 --*=*)
16913 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16914 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16915 ac_shift=:
ee9dd372 16916 ;;
ed698112
NN
16917 -*)
16918 ac_option=$1
16919 ac_optarg=$2
16920 ac_shift=shift
ee9dd372 16921 ;;
ed698112
NN
16922 *) # This is not an option, so the user has probably given explicit
16923 # arguments.
16924 ac_option=$1
16925 ac_need_defaults=false;;
16926 esac
ee9dd372 16927
ed698112
NN
16928 case $ac_option in
16929 # Handling of the options.
16930_ACEOF
16931cat >>$CONFIG_STATUS <<\_ACEOF
16932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16933 ac_cs_recheck=: ;;
16934 --version | --vers* | -V )
16935 echo "$ac_cs_version"; exit 0 ;;
16936 --he | --h)
16937 # Conflict between --help and --header
16938 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16939Try \`$0 --help' for more information." >&5
16940echo "$as_me: error: ambiguous option: $1
16941Try \`$0 --help' for more information." >&2;}
16942 { (exit 1); exit 1; }; };;
16943 --help | --hel | -h )
16944 echo "$ac_cs_usage"; exit 0 ;;
16945 --debug | --d* | -d )
16946 debug=: ;;
16947 --file | --fil | --fi | --f )
16948 $ac_shift
16949 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16950 ac_need_defaults=false;;
16951 --header | --heade | --head | --hea )
16952 $ac_shift
16953 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16954 ac_need_defaults=false;;
16955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16956 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16957 ac_cs_silent=: ;;
ee9dd372 16958
ed698112
NN
16959 # This is an error.
16960 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16961Try \`$0 --help' for more information." >&5
16962echo "$as_me: error: unrecognized option: $1
16963Try \`$0 --help' for more information." >&2;}
16964 { (exit 1); exit 1; }; } ;;
ee9dd372 16965
ed698112 16966 *) ac_config_targets="$ac_config_targets $1" ;;
ee9dd372 16967
ed698112
NN
16968 esac
16969 shift
16970done
ee9dd372 16971
ed698112 16972ac_configure_extra_args=
ee9dd372 16973
ed698112
NN
16974if $ac_cs_silent; then
16975 exec 6>/dev/null
16976 ac_configure_extra_args="$ac_configure_extra_args --silent"
16977fi
ee9dd372 16978
ed698112
NN
16979_ACEOF
16980cat >>$CONFIG_STATUS <<_ACEOF
16981if \$ac_cs_recheck; then
16982 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16983 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16984fi
16985
16986_ACEOF
16987
16988cat >>$CONFIG_STATUS <<_ACEOF
ee9dd372 16989#
ed698112 16990# INIT-COMMANDS section.
ee9dd372 16991#
ee9dd372 16992
e3f92d3b 16993AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
ed698112
NN
16994srcdir=${srcdir}
16995host=${host}
16996target=${target}
16997with_multisubdir=${with_multisubdir}
16998ac_configure_args="${multilib_arg} ${ac_configure_args}"
16999CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17000libgcj_basedir=${libgcj_basedir}
17001CC="${CC}"
17002CXX="${CXX}"
17003ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17004
17005
17006_ACEOF
17007
17008
17009
17010cat >>$CONFIG_STATUS <<\_ACEOF
17011for ac_config_target in $ac_config_targets
ee9dd372 17012do
ed698112
NN
17013 case "$ac_config_target" in
17014 # Handling of arguments.
17015 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17016 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17017 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17018 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17019 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
17020 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17021 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17022 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
614c0fc2
TF
17023 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17024 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17025 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17026 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17027 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17028 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
17029 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17030 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17031 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17032 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17033 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17034 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17035 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17036 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17037 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17038 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
e3f92d3b 17039 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
ed698112
NN
17040 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17041 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17042 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17043 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17044echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17045 { (exit 1); exit 1; }; };;
ee9dd372
TT
17046 esac
17047done
17048
ed698112
NN
17049# If the user did not use the arguments to specify the items to instantiate,
17050# then the envvar interface is used. Set only those that are not.
17051# We use the long form for the default assignment because of an extremely
17052# bizarre bug on SunOS 4.1.3.
17053if $ac_need_defaults; then
17054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17056 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17058fi
17059
17060# Have a temporary directory for convenience. Make it in the build tree
17061# simply because there is no reason to put it here, and in addition,
17062# creating and moving files from /tmp can sometimes cause problems.
17063# Create a temporary directory, and hook for its removal unless debugging.
17064$debug ||
17065{
17066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17067 trap '{ (exit 1); exit 1; }' 1 2 13 15
17068}
17069
17070# Create a (secure) tmp directory for tmp files.
ee9dd372 17071
ed698112
NN
17072{
17073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17074 test -n "$tmp" && test -d "$tmp"
17075} ||
17076{
17077 tmp=./confstat$$-$RANDOM
17078 (umask 077 && mkdir $tmp)
17079} ||
17080{
17081 echo "$me: cannot create a temporary directory in ." >&2
17082 { (exit 1); exit 1; }
17083}
ee9dd372 17084
ed698112 17085_ACEOF
ee9dd372 17086
ed698112
NN
17087cat >>$CONFIG_STATUS <<_ACEOF
17088
17089#
17090# CONFIG_FILES section.
17091#
17092
17093# No need to generate the scripts if there are no CONFIG_FILES.
17094# This happens for instance when ./config.status config.h
17095if test -n "\$CONFIG_FILES"; then
17096 # Protect against being on the right side of a sed subst in config.status.
17097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17099s,@SHELL@,$SHELL,;t t
17100s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17101s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17102s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17103s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17104s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17105s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17106s,@exec_prefix@,$exec_prefix,;t t
17107s,@prefix@,$prefix,;t t
17108s,@program_transform_name@,$program_transform_name,;t t
17109s,@bindir@,$bindir,;t t
17110s,@sbindir@,$sbindir,;t t
17111s,@libexecdir@,$libexecdir,;t t
17112s,@datadir@,$datadir,;t t
17113s,@sysconfdir@,$sysconfdir,;t t
17114s,@sharedstatedir@,$sharedstatedir,;t t
17115s,@localstatedir@,$localstatedir,;t t
17116s,@libdir@,$libdir,;t t
17117s,@includedir@,$includedir,;t t
17118s,@oldincludedir@,$oldincludedir,;t t
17119s,@infodir@,$infodir,;t t
17120s,@mandir@,$mandir,;t t
17121s,@build_alias@,$build_alias,;t t
17122s,@host_alias@,$host_alias,;t t
17123s,@target_alias@,$target_alias,;t t
17124s,@DEFS@,$DEFS,;t t
17125s,@ECHO_C@,$ECHO_C,;t t
17126s,@ECHO_N@,$ECHO_N,;t t
17127s,@ECHO_T@,$ECHO_T,;t t
17128s,@LIBS@,$LIBS,;t t
17129s,@libgcj_basedir@,$libgcj_basedir,;t t
17130s,@build@,$build,;t t
17131s,@build_cpu@,$build_cpu,;t t
17132s,@build_vendor@,$build_vendor,;t t
17133s,@build_os@,$build_os,;t t
17134s,@host@,$host,;t t
17135s,@host_cpu@,$host_cpu,;t t
17136s,@host_vendor@,$host_vendor,;t t
17137s,@host_os@,$host_os,;t t
17138s,@target@,$target,;t t
17139s,@target_cpu@,$target_cpu,;t t
17140s,@target_vendor@,$target_vendor,;t t
17141s,@target_os@,$target_os,;t t
17142s,@target_noncanonical@,$target_noncanonical,;t t
17143s,@LN_S@,$LN_S,;t t
17144s,@mkinstalldirs@,$mkinstalldirs,;t t
17145s,@CC@,$CC,;t t
17146s,@ac_ct_CC@,$ac_ct_CC,;t t
17147s,@EXEEXT@,$EXEEXT,;t t
17148s,@OBJEXT@,$OBJEXT,;t t
17149s,@CXX@,$CXX,;t t
17150s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17151s,@CFLAGS@,$CFLAGS,;t t
17152s,@CXXFLAGS@,$CXXFLAGS,;t t
17153s,@LDFLAGS@,$LDFLAGS,;t t
17154s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17155s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17156s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e3f92d3b 17157s,@CYGPATH_W@,$CYGPATH_W,;t t
ed698112
NN
17158s,@PACKAGE@,$PACKAGE,;t t
17159s,@VERSION@,$VERSION,;t t
17160s,@ACLOCAL@,$ACLOCAL,;t t
17161s,@AUTOCONF@,$AUTOCONF,;t t
17162s,@AUTOMAKE@,$AUTOMAKE,;t t
17163s,@AUTOHEADER@,$AUTOHEADER,;t t
17164s,@MAKEINFO@,$MAKEINFO,;t t
e3f92d3b
MK
17165s,@install_sh@,$install_sh,;t t
17166s,@STRIP@,$STRIP,;t t
17167s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17168s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17169s,@mkdir_p@,$mkdir_p,;t t
17170s,@AWK@,$AWK,;t t
ed698112 17171s,@SET_MAKE@,$SET_MAKE,;t t
e3f92d3b
MK
17172s,@am__leading_dot@,$am__leading_dot,;t t
17173s,@AMTAR@,$AMTAR,;t t
17174s,@am__tar@,$am__tar,;t t
17175s,@am__untar@,$am__untar,;t t
17176s,@DEPDIR@,$DEPDIR,;t t
17177s,@am__include@,$am__include,;t t
17178s,@am__quote@,$am__quote,;t t
17179s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17180s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17181s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17182s,@CCDEPMODE@,$CCDEPMODE,;t t
17183s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17184s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17185s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17186s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17187s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
ed698112
NN
17188s,@AS@,$AS,;t t
17189s,@ac_ct_AS@,$ac_ct_AS,;t t
17190s,@AR@,$AR,;t t
17191s,@ac_ct_AR@,$ac_ct_AR,;t t
17192s,@RANLIB@,$RANLIB,;t t
17193s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17194s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17195s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17196s,@MAINT@,$MAINT,;t t
17197s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17198s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17199s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
36739040 17200s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
ed698112
NN
17201s,@INCLTDL@,$INCLTDL,;t t
17202s,@LIBLTDL@,$LIBLTDL,;t t
17203s,@DIRLTDL@,$DIRLTDL,;t t
ed698112
NN
17204s,@LIBTOOL@,$LIBTOOL,;t t
17205s,@CXXCPP@,$CXXCPP,;t t
17206s,@CPPFLAGS@,$CPPFLAGS,;t t
e3f92d3b
MK
17207s,@GCJ@,$GCJ,;t t
17208s,@GCJFLAGS@,$GCJFLAGS,;t t
17209s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17210s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17211s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
ed698112
NN
17212s,@subdirs@,$subdirs,;t t
17213s,@COMPPATH@,$COMPPATH,;t t
17214s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17215s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17216s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17217s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17218s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17219s,@INTERPRETER@,$INTERPRETER,;t t
17220s,@LIBFFI@,$LIBFFI,;t t
17221s,@LIBFFIINCS@,$LIBFFIINCS,;t t
c58f2900 17222s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
ed698112
NN
17223s,@CPP@,$CPP,;t t
17224s,@EGREP@,$EGREP,;t t
e3f92d3b
MK
17225s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17226s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17227s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17228s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17229s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17230s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
f1a66265
GK
17231s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17232s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
ed698112
NN
17233s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17234s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17235s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17236s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17237s,@X_CFLAGS@,$X_CFLAGS,;t t
17238s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17239s,@X_LIBS@,$X_LIBS,;t t
17240s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17241s,@TOOLKIT@,$TOOLKIT,;t t
17242s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17243s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17244s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17245s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17246s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17247s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17248s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17249s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17250s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17251s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17252s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17253s,@GCLIBS@,$GCLIBS,;t t
17254s,@GCINCS@,$GCINCS,;t t
17255s,@GCDEPS@,$GCDEPS,;t t
ed698112
NN
17256s,@GCSPEC@,$GCSPEC,;t t
17257s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17258s,@GCTESTSPEC@,$GCTESTSPEC,;t t
e3f92d3b
MK
17259s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17260s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17261s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17262s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
ed698112
NN
17263s,@THREADLIBS@,$THREADLIBS,;t t
17264s,@THREADINCS@,$THREADINCS,;t t
17265s,@THREADDEPS@,$THREADDEPS,;t t
ed698112
NN
17266s,@THREADSPEC@,$THREADSPEC,;t t
17267s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17268s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
e3f92d3b
MK
17269s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17270s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17271s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17272s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17273s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17274s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
ed698112
NN
17275s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17276s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17277s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
afabd8e6
RS
17278s,@gcc_version_trigger@,$gcc_version_trigger,;t t
17279s,@gcc_version_full@,$gcc_version_full,;t t
ed698112 17280s,@gcc_version@,$gcc_version,;t t
afabd8e6 17281s,@tool_include_dir@,$tool_include_dir,;t t
ed698112 17282s,@LIBICONV@,$LIBICONV,;t t
5b7a26f6 17283s,@LTLIBICONV@,$LTLIBICONV,;t t
ed698112
NN
17284s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17285s,@GTK_LIBS@,$GTK_LIBS,;t t
17286s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17287s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17288s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17289s,@LIBART_LIBS@,$LIBART_LIBS,;t t
e3f92d3b
MK
17290s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17291s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
ed698112
NN
17292s,@GCJH@,$GCJH,;t t
17293s,@ZIP@,$ZIP,;t t
349e19d4 17294s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
ed698112 17295s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
ed698112
NN
17296s,@ZLIBS@,$ZLIBS,;t t
17297s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17298s,@ZINCS@,$ZINCS,;t t
17299s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17300s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17301s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17302s,@IEEESPEC@,$IEEESPEC,;t t
17303s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17304s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17305s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17306s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17307s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17308s,@toolexecdir@,$toolexecdir,;t t
17309s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17310s,@toolexeclibdir@,$toolexeclibdir,;t t
17311s,@GCJVERSION@,$GCJVERSION,;t t
17312s,@ALLOCA@,$ALLOCA,;t t
17313s,@PERL@,$PERL,;t t
17314s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17315s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17316s,@here@,$here,;t t
17317s,@LIBOBJS@,$LIBOBJS,;t t
17318s,@LTLIBOBJS@,$LTLIBOBJS,;t t
ee9dd372 17319CEOF
ee9dd372 17320
ed698112
NN
17321_ACEOF
17322
17323 cat >>$CONFIG_STATUS <<\_ACEOF
17324 # Split the substitutions into bite-sized pieces for seds with
17325 # small command number limits, like on Digital OSF/1 and HP-UX.
17326 ac_max_sed_lines=48
17327 ac_sed_frag=1 # Number of current file.
17328 ac_beg=1 # First line for current file.
17329 ac_end=$ac_max_sed_lines # Line after last line for current file.
17330 ac_more_lines=:
17331 ac_sed_cmds=
17332 while $ac_more_lines; do
17333 if test $ac_beg -gt 1; then
17334 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
ee9dd372 17335 else
ed698112 17336 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
ee9dd372 17337 fi
ed698112
NN
17338 if test ! -s $tmp/subs.frag; then
17339 ac_more_lines=false
17340 else
17341 # The purpose of the label and of the branching condition is to
17342 # speed up the sed processing (if there are no `@' at all, there
17343 # is no need to browse any of the substitutions).
17344 # These are the two extra sed commands mentioned above.
17345 (echo ':t
17346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17347 if test -z "$ac_sed_cmds"; then
17348 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17349 else
17350 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17351 fi
17352 ac_sed_frag=`expr $ac_sed_frag + 1`
17353 ac_beg=$ac_end
17354 ac_end=`expr $ac_end + $ac_max_sed_lines`
17355 fi
17356 done
17357 if test -z "$ac_sed_cmds"; then
17358 ac_sed_cmds=cat
ee9dd372 17359 fi
ed698112 17360fi # test -n "$CONFIG_FILES"
ee9dd372 17361
ed698112
NN
17362_ACEOF
17363cat >>$CONFIG_STATUS <<\_ACEOF
17364for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ee9dd372 17365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
ed698112
NN
17366 case $ac_file in
17367 - | *:- | *:-:* ) # input from stdin
17368 cat >$tmp/stdin
17369 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17370 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17371 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17373 * ) ac_file_in=$ac_file.in ;;
ee9dd372
TT
17374 esac
17375
ed698112
NN
17376 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17377 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17379 X"$ac_file" : 'X\(//\)[^/]' \| \
17380 X"$ac_file" : 'X\(//\)$' \| \
17381 X"$ac_file" : 'X\(/\)' \| \
17382 . : '\(.\)' 2>/dev/null ||
17383echo X"$ac_file" |
17384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17386 /^X\(\/\/\)$/{ s//\1/; q; }
17387 /^X\(\/\).*/{ s//\1/; q; }
17388 s/.*/./; q'`
17389 { if $as_mkdir_p; then
17390 mkdir -p "$ac_dir"
ee9dd372 17391 else
ed698112
NN
17392 as_dir="$ac_dir"
17393 as_dirs=
17394 while test ! -d "$as_dir"; do
17395 as_dirs="$as_dir $as_dirs"
17396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17398 X"$as_dir" : 'X\(//\)[^/]' \| \
17399 X"$as_dir" : 'X\(//\)$' \| \
17400 X"$as_dir" : 'X\(/\)' \| \
17401 . : '\(.\)' 2>/dev/null ||
17402echo X"$as_dir" |
17403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17405 /^X\(\/\/\)$/{ s//\1/; q; }
17406 /^X\(\/\).*/{ s//\1/; q; }
17407 s/.*/./; q'`
17408 done
17409 test ! -n "$as_dirs" || mkdir $as_dirs
17410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17411echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17412 { (exit 1); exit 1; }; }; }
17413
17414 ac_builddir=.
17415
17416if test "$ac_dir" != .; then
17417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17418 # A "../" for each directory in $ac_dir_suffix.
17419 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17420else
17421 ac_dir_suffix= ac_top_builddir=
17422fi
ee9dd372 17423
ed698112
NN
17424case $srcdir in
17425 .) # No --srcdir option. We are building in place.
17426 ac_srcdir=.
17427 if test -z "$ac_top_builddir"; then
17428 ac_top_srcdir=.
17429 else
17430 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17431 fi ;;
17432 [\\/]* | ?:[\\/]* ) # Absolute path.
17433 ac_srcdir=$srcdir$ac_dir_suffix;
17434 ac_top_srcdir=$srcdir ;;
ee9dd372 17435 *) # Relative path.
ed698112
NN
17436 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17437 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17438esac
ee9dd372 17439
ed698112
NN
17440# Do not use `cd foo && pwd` to compute absolute paths, because
17441# the directories may not exist.
17442case `pwd` in
17443.) ac_abs_builddir="$ac_dir";;
17444*)
17445 case "$ac_dir" in
17446 .) ac_abs_builddir=`pwd`;;
17447 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17448 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17449 esac;;
17450esac
17451case $ac_abs_builddir in
17452.) ac_abs_top_builddir=${ac_top_builddir}.;;
17453*)
17454 case ${ac_top_builddir}. in
17455 .) ac_abs_top_builddir=$ac_abs_builddir;;
17456 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17457 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17458 esac;;
17459esac
17460case $ac_abs_builddir in
17461.) ac_abs_srcdir=$ac_srcdir;;
17462*)
17463 case $ac_srcdir in
17464 .) ac_abs_srcdir=$ac_abs_builddir;;
17465 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17466 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17467 esac;;
17468esac
17469case $ac_abs_builddir in
17470.) ac_abs_top_srcdir=$ac_top_srcdir;;
17471*)
17472 case $ac_top_srcdir in
17473 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17474 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17475 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17476 esac;;
17477esac
ee9dd372 17478
ed698112
NN
17479
17480 case $INSTALL in
17481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17482 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ee9dd372
TT
17483 esac
17484
2c92e90f
KC
17485 if test x"$ac_file" != x-; then
17486 { echo "$as_me:$LINENO: creating $ac_file" >&5
17487echo "$as_me: creating $ac_file" >&6;}
17488 rm -f "$ac_file"
17489 fi
ed698112
NN
17490 # Let's still pretend it is `configure' which instantiates (i.e., don't
17491 # use $as_me), people would be surprised to read:
17492 # /* config.h. Generated by config.status. */
17493 if test x"$ac_file" = x-; then
17494 configure_input=
17495 else
17496 configure_input="$ac_file. "
17497 fi
17498 configure_input=$configure_input"Generated from `echo $ac_file_in |
17499 sed 's,.*/,,'` by configure."
17500
17501 # First look for the input files in the build tree, otherwise in the
17502 # src tree.
17503 ac_file_inputs=`IFS=:
17504 for f in $ac_file_in; do
17505 case $f in
17506 -) echo $tmp/stdin ;;
17507 [\\/$]*)
17508 # Absolute (can't be DOS-style, as IFS=:)
17509 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17510echo "$as_me: error: cannot find input file: $f" >&2;}
17511 { (exit 1); exit 1; }; }
17512 echo "$f";;
17513 *) # Relative
17514 if test -f "$f"; then
17515 # Build tree
17516 echo "$f"
17517 elif test -f "$srcdir/$f"; then
17518 # Source tree
17519 echo "$srcdir/$f"
17520 else
17521 # /dev/null tree
17522 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17523echo "$as_me: error: cannot find input file: $f" >&2;}
17524 { (exit 1); exit 1; }; }
17525 fi;;
17526 esac
17527 done` || { (exit 1); exit 1; }
ed698112
NN
17528_ACEOF
17529cat >>$CONFIG_STATUS <<_ACEOF
17530 sed "$ac_vpsub
17531$extrasub
17532_ACEOF
17533cat >>$CONFIG_STATUS <<\_ACEOF
17534:t
17535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17536s,@configure_input@,$configure_input,;t t
17537s,@srcdir@,$ac_srcdir,;t t
17538s,@abs_srcdir@,$ac_abs_srcdir,;t t
17539s,@top_srcdir@,$ac_top_srcdir,;t t
17540s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17541s,@builddir@,$ac_builddir,;t t
17542s,@abs_builddir@,$ac_abs_builddir,;t t
17543s,@top_builddir@,$ac_top_builddir,;t t
17544s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17545s,@INSTALL@,$ac_INSTALL,;t t
17546" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17547 rm -f $tmp/stdin
17548 if test x"$ac_file" != x-; then
17549 mv $tmp/out $ac_file
17550 else
17551 cat $tmp/out
17552 rm -f $tmp/out
17553 fi
17554
17555done
17556_ACEOF
17557cat >>$CONFIG_STATUS <<\_ACEOF
17558
17559#
17560# CONFIG_HEADER section.
17561#
ee9dd372
TT
17562
17563# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17564# NAME is the cpp macro being defined and VALUE is the value it is being given.
17565#
17566# ac_d sets the value in "#define NAME VALUE" lines.
ed698112
NN
17567ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17568ac_dB='[ ].*$,\1#\2'
17569ac_dC=' '
17570ac_dD=',;t'
17571# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17572ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17573ac_uB='$,\1#\2define\3'
ee9dd372 17574ac_uC=' '
ed698112
NN
17575ac_uD=',;t'
17576
17577for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ee9dd372 17578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
ed698112
NN
17579 case $ac_file in
17580 - | *:- | *:-:* ) # input from stdin
17581 cat >$tmp/stdin
17582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17586 * ) ac_file_in=$ac_file.in ;;
ee9dd372
TT
17587 esac
17588
ed698112
NN
17589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17590echo "$as_me: creating $ac_file" >&6;}
17591
17592 # First look for the input files in the build tree, otherwise in the
17593 # src tree.
17594 ac_file_inputs=`IFS=:
17595 for f in $ac_file_in; do
17596 case $f in
17597 -) echo $tmp/stdin ;;
17598 [\\/$]*)
17599 # Absolute (can't be DOS-style, as IFS=:)
17600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17601echo "$as_me: error: cannot find input file: $f" >&2;}
17602 { (exit 1); exit 1; }; }
17603 # Do quote $f, to prevent DOS paths from being IFS'd.
17604 echo "$f";;
17605 *) # Relative
17606 if test -f "$f"; then
17607 # Build tree
17608 echo "$f"
17609 elif test -f "$srcdir/$f"; then
17610 # Source tree
17611 echo "$srcdir/$f"
17612 else
17613 # /dev/null tree
17614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17615echo "$as_me: error: cannot find input file: $f" >&2;}
17616 { (exit 1); exit 1; }; }
17617 fi;;
17618 esac
17619 done` || { (exit 1); exit 1; }
17620 # Remove the trailing spaces.
17621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17622
17623_ACEOF
17624
17625# Transform confdefs.h into two sed scripts, `conftest.defines' and
17626# `conftest.undefs', that substitutes the proper values into
17627# config.h.in to produce config.h. The first handles `#define'
17628# templates, and the second `#undef' templates.
17629# And first: Protect against being on the right side of a sed subst in
17630# config.status. Protect against being in an unquoted here document
17631# in config.status.
17632rm -f conftest.defines conftest.undefs
17633# Using a here document instead of a string reduces the quoting nightmare.
17634# Putting comments in sed scripts is not portable.
17635#
17636# `end' is used to avoid that the second main sed command (meant for
17637# 0-ary CPP macros) applies to n-ary macro definitions.
17638# See the Autoconf documentation for `clear'.
17639cat >confdef2sed.sed <<\_ACEOF
17640s/[\\&,]/\\&/g
17641s,[\\$`],\\&,g
17642t clear
17643: clear
17644s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17645t end
17646s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17647: end
17648_ACEOF
17649# If some macros were called several times there might be several times
17650# the same #defines, which is useless. Nevertheless, we may not want to
17651# sort them, since we want the *last* AC-DEFINE to be honored.
17652uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17653sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17654rm -f confdef2sed.sed
ee9dd372
TT
17655
17656# This sed command replaces #undef with comments. This is necessary, for
17657# example, in the case of _POSIX_SOURCE, which is predefined and required
17658# on some systems where configure will not decide to define it.
ed698112
NN
17659cat >>conftest.undefs <<\_ACEOF
17660s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17661_ACEOF
17662
17663# Break up conftest.defines because some shells have a limit on the size
17664# of here documents, and old seds have small limits too (100 cmds).
17665echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17666echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17667echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17668echo ' :' >>$CONFIG_STATUS
17669rm -f conftest.tail
17670while grep . conftest.defines >/dev/null
17671do
17672 # Write a limited-size here document to $tmp/defines.sed.
17673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17674 # Speed up: don't consider the non `#define' lines.
17675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17676 # Work around the forget-to-reset-the-flag bug.
17677 echo 't clr' >>$CONFIG_STATUS
17678 echo ': clr' >>$CONFIG_STATUS
17679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17680 echo 'CEOF
17681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17682 rm -f $tmp/in
17683 mv $tmp/out $tmp/in
17684' >>$CONFIG_STATUS
17685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17686 rm -f conftest.defines
17687 mv conftest.tail conftest.defines
17688done
17689rm -f conftest.defines
17690echo ' fi # grep' >>$CONFIG_STATUS
17691echo >>$CONFIG_STATUS
ee9dd372 17692
ed698112
NN
17693# Break up conftest.undefs because some shells have a limit on the size
17694# of here documents, and old seds have small limits too (100 cmds).
17695echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ee9dd372 17696rm -f conftest.tail
ed698112 17697while grep . conftest.undefs >/dev/null
ee9dd372 17698do
ed698112
NN
17699 # Write a limited-size here document to $tmp/undefs.sed.
17700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17701 # Speed up: don't consider the non `#undef'
17702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17703 # Work around the forget-to-reset-the-flag bug.
17704 echo 't clr' >>$CONFIG_STATUS
17705 echo ': clr' >>$CONFIG_STATUS
17706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ee9dd372 17707 echo 'CEOF
ed698112
NN
17708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17709 rm -f $tmp/in
17710 mv $tmp/out $tmp/in
17711' >>$CONFIG_STATUS
17712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17713 rm -f conftest.undefs
17714 mv conftest.tail conftest.undefs
17715done
17716rm -f conftest.undefs
17717
17718cat >>$CONFIG_STATUS <<\_ACEOF
17719 # Let's still pretend it is `configure' which instantiates (i.e., don't
17720 # use $as_me), people would be surprised to read:
17721 # /* config.h. Generated by config.status. */
17722 if test x"$ac_file" = x-; then
17723 echo "/* Generated by configure. */" >$tmp/config.h
ee9dd372 17724 else
ed698112 17725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
ee9dd372 17726 fi
ed698112
NN
17727 cat $tmp/in >>$tmp/config.h
17728 rm -f $tmp/in
17729 if test x"$ac_file" != x-; then
17730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17732echo "$as_me: $ac_file is unchanged" >&6;}
17733 else
17734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17736 X"$ac_file" : 'X\(//\)[^/]' \| \
17737 X"$ac_file" : 'X\(//\)$' \| \
17738 X"$ac_file" : 'X\(/\)' \| \
17739 . : '\(.\)' 2>/dev/null ||
17740echo X"$ac_file" |
17741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17743 /^X\(\/\/\)$/{ s//\1/; q; }
17744 /^X\(\/\).*/{ s//\1/; q; }
17745 s/.*/./; q'`
17746 { if $as_mkdir_p; then
17747 mkdir -p "$ac_dir"
17748 else
17749 as_dir="$ac_dir"
17750 as_dirs=
17751 while test ! -d "$as_dir"; do
17752 as_dirs="$as_dir $as_dirs"
17753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755 X"$as_dir" : 'X\(//\)[^/]' \| \
17756 X"$as_dir" : 'X\(//\)$' \| \
17757 X"$as_dir" : 'X\(/\)' \| \
17758 . : '\(.\)' 2>/dev/null ||
17759echo X"$as_dir" |
17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17762 /^X\(\/\/\)$/{ s//\1/; q; }
17763 /^X\(\/\).*/{ s//\1/; q; }
17764 s/.*/./; q'`
17765 done
17766 test ! -n "$as_dirs" || mkdir $as_dirs
17767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17769 { (exit 1); exit 1; }; }; }
ee9dd372 17770
ed698112
NN
17771 rm -f $ac_file
17772 mv $tmp/config.h $ac_file
17773 fi
17774 else
17775 cat $tmp/config.h
17776 rm -f $tmp/config.h
17777 fi
e3f92d3b
MK
17778# Compute $ac_file's index in $config_headers.
17779_am_stamp_count=1
17780for _am_header in $config_headers :; do
17781 case $_am_header in
17782 $ac_file | $ac_file:* )
17783 break ;;
17784 * )
17785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17786 esac
17787done
17788echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17789$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17790 X$ac_file : 'X\(//\)[^/]' \| \
17791 X$ac_file : 'X\(//\)$' \| \
17792 X$ac_file : 'X\(/\)' \| \
17793 . : '\(.\)' 2>/dev/null ||
17794echo X$ac_file |
17795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17797 /^X\(\/\/\)$/{ s//\1/; q; }
17798 /^X\(\/\).*/{ s//\1/; q; }
17799 s/.*/./; q'`/stamp-h$_am_stamp_count
ed698112
NN
17800done
17801_ACEOF
17802cat >>$CONFIG_STATUS <<\_ACEOF
ee9dd372 17803
ed698112
NN
17804#
17805# CONFIG_LINKS section.
17806#
ee9dd372 17807
ed698112
NN
17808for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17809 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17810 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
ee9dd372 17811
ed698112
NN
17812 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17813echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
ee9dd372
TT
17814
17815 if test ! -r $srcdir/$ac_source; then
ed698112
NN
17816 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17817echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17818 { (exit 1); exit 1; }; }
ee9dd372
TT
17819 fi
17820 rm -f $ac_dest
17821
17822 # Make relative symlinks.
ed698112
NN
17823 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17824$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17825 X"$ac_dest" : 'X\(//\)[^/]' \| \
17826 X"$ac_dest" : 'X\(//\)$' \| \
17827 X"$ac_dest" : 'X\(/\)' \| \
17828 . : '\(.\)' 2>/dev/null ||
17829echo X"$ac_dest" |
17830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17832 /^X\(\/\/\)$/{ s//\1/; q; }
17833 /^X\(\/\).*/{ s//\1/; q; }
17834 s/.*/./; q'`
17835 { if $as_mkdir_p; then
17836 mkdir -p "$ac_dest_dir"
ee9dd372 17837 else
ed698112
NN
17838 as_dir="$ac_dest_dir"
17839 as_dirs=
17840 while test ! -d "$as_dir"; do
17841 as_dirs="$as_dir $as_dirs"
17842 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17844 X"$as_dir" : 'X\(//\)[^/]' \| \
17845 X"$as_dir" : 'X\(//\)$' \| \
17846 X"$as_dir" : 'X\(/\)' \| \
17847 . : '\(.\)' 2>/dev/null ||
17848echo X"$as_dir" |
17849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17851 /^X\(\/\/\)$/{ s//\1/; q; }
17852 /^X\(\/\).*/{ s//\1/; q; }
17853 s/.*/./; q'`
17854 done
17855 test ! -n "$as_dirs" || mkdir $as_dirs
17856 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17857echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17858 { (exit 1); exit 1; }; }; }
17859
17860 ac_builddir=.
ee9dd372 17861
ed698112
NN
17862if test "$ac_dest_dir" != .; then
17863 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17864 # A "../" for each directory in $ac_dir_suffix.
17865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17866else
17867 ac_dir_suffix= ac_top_builddir=
17868fi
17869
17870case $srcdir in
17871 .) # No --srcdir option. We are building in place.
17872 ac_srcdir=.
17873 if test -z "$ac_top_builddir"; then
17874 ac_top_srcdir=.
17875 else
17876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17877 fi ;;
17878 [\\/]* | ?:[\\/]* ) # Absolute path.
17879 ac_srcdir=$srcdir$ac_dir_suffix;
17880 ac_top_srcdir=$srcdir ;;
17881 *) # Relative path.
17882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17884esac
17885
17886# Do not use `cd foo && pwd` to compute absolute paths, because
17887# the directories may not exist.
17888case `pwd` in
17889.) ac_abs_builddir="$ac_dest_dir";;
17890*)
17891 case "$ac_dest_dir" in
17892 .) ac_abs_builddir=`pwd`;;
17893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17894 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17895 esac;;
17896esac
17897case $ac_abs_builddir in
17898.) ac_abs_top_builddir=${ac_top_builddir}.;;
17899*)
17900 case ${ac_top_builddir}. in
17901 .) ac_abs_top_builddir=$ac_abs_builddir;;
17902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17904 esac;;
17905esac
17906case $ac_abs_builddir in
17907.) ac_abs_srcdir=$ac_srcdir;;
17908*)
17909 case $ac_srcdir in
17910 .) ac_abs_srcdir=$ac_abs_builddir;;
17911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17913 esac;;
17914esac
17915case $ac_abs_builddir in
17916.) ac_abs_top_srcdir=$ac_top_srcdir;;
17917*)
17918 case $ac_top_srcdir in
17919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17922 esac;;
17923esac
17924
17925
17926 case $srcdir in
17927 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17928 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
ee9dd372
TT
17929 esac
17930
ed698112
NN
17931 # Try a symlink, then a hard link, then a copy.
17932 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17933 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17934 cp -p $srcdir/$ac_source $ac_dest ||
17935 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17936echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17937 { (exit 1); exit 1; }; }
ee9dd372 17938done
ed698112
NN
17939_ACEOF
17940cat >>$CONFIG_STATUS <<\_ACEOF
9d577a61 17941
ed698112
NN
17942#
17943# CONFIG_COMMANDS section.
17944#
17945for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17946 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17947 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17948 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17949$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17950 X"$ac_dest" : 'X\(//\)[^/]' \| \
17951 X"$ac_dest" : 'X\(//\)$' \| \
17952 X"$ac_dest" : 'X\(/\)' \| \
17953 . : '\(.\)' 2>/dev/null ||
17954echo X"$ac_dest" |
17955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17957 /^X\(\/\/\)$/{ s//\1/; q; }
17958 /^X\(\/\).*/{ s//\1/; q; }
17959 s/.*/./; q'`
17960 { if $as_mkdir_p; then
17961 mkdir -p "$ac_dir"
17962 else
17963 as_dir="$ac_dir"
17964 as_dirs=
17965 while test ! -d "$as_dir"; do
17966 as_dirs="$as_dir $as_dirs"
17967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17969 X"$as_dir" : 'X\(//\)[^/]' \| \
17970 X"$as_dir" : 'X\(//\)$' \| \
17971 X"$as_dir" : 'X\(/\)' \| \
17972 . : '\(.\)' 2>/dev/null ||
17973echo X"$as_dir" |
17974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17976 /^X\(\/\/\)$/{ s//\1/; q; }
17977 /^X\(\/\).*/{ s//\1/; q; }
17978 s/.*/./; q'`
17979 done
17980 test ! -n "$as_dirs" || mkdir $as_dirs
17981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17983 { (exit 1); exit 1; }; }; }
ee9dd372 17984
ed698112
NN
17985 ac_builddir=.
17986
17987if test "$ac_dir" != .; then
17988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17989 # A "../" for each directory in $ac_dir_suffix.
17990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17991else
17992 ac_dir_suffix= ac_top_builddir=
17993fi
17994
17995case $srcdir in
17996 .) # No --srcdir option. We are building in place.
17997 ac_srcdir=.
17998 if test -z "$ac_top_builddir"; then
17999 ac_top_srcdir=.
18000 else
18001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18002 fi ;;
18003 [\\/]* | ?:[\\/]* ) # Absolute path.
18004 ac_srcdir=$srcdir$ac_dir_suffix;
18005 ac_top_srcdir=$srcdir ;;
18006 *) # Relative path.
18007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18008 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18009esac
18010
18011# Do not use `cd foo && pwd` to compute absolute paths, because
18012# the directories may not exist.
18013case `pwd` in
18014.) ac_abs_builddir="$ac_dir";;
18015*)
18016 case "$ac_dir" in
18017 .) ac_abs_builddir=`pwd`;;
18018 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18019 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18020 esac;;
18021esac
18022case $ac_abs_builddir in
18023.) ac_abs_top_builddir=${ac_top_builddir}.;;
18024*)
18025 case ${ac_top_builddir}. in
18026 .) ac_abs_top_builddir=$ac_abs_builddir;;
18027 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18028 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18029 esac;;
18030esac
18031case $ac_abs_builddir in
18032.) ac_abs_srcdir=$ac_srcdir;;
18033*)
18034 case $ac_srcdir in
18035 .) ac_abs_srcdir=$ac_abs_builddir;;
18036 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18037 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18038 esac;;
18039esac
18040case $ac_abs_builddir in
18041.) ac_abs_top_srcdir=$ac_top_srcdir;;
18042*)
18043 case $ac_top_srcdir in
18044 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18045 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18046 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18047 esac;;
18048esac
18049
18050
18051 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18052echo "$as_me: executing $ac_dest commands" >&6;}
18053 case $ac_dest in
e3f92d3b
MK
18054 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18055 # Strip MF so we end up with the name of the file.
18056 mf=`echo "$mf" | sed -e 's/:.*$//'`
18057 # Check whether this is an Automake generated Makefile or not.
18058 # We used to match only the files named `Makefile.in', but
18059 # some people rename them; so instead we look at the file content.
18060 # Grep'ing the first line is not enough: some people post-process
18061 # each Makefile.in and add a new line on top of each file to say so.
18062 # So let's grep whole file.
18063 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18064 dirpart=`(dirname "$mf") 2>/dev/null ||
18065$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18066 X"$mf" : 'X\(//\)[^/]' \| \
18067 X"$mf" : 'X\(//\)$' \| \
18068 X"$mf" : 'X\(/\)' \| \
18069 . : '\(.\)' 2>/dev/null ||
18070echo X"$mf" |
18071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18073 /^X\(\/\/\)$/{ s//\1/; q; }
18074 /^X\(\/\).*/{ s//\1/; q; }
18075 s/.*/./; q'`
18076 else
18077 continue
18078 fi
18079 # Extract the definition of DEPDIR, am__include, and am__quote
18080 # from the Makefile without running `make'.
18081 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18082 test -z "$DEPDIR" && continue
18083 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18084 test -z "am__include" && continue
18085 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18086 # When using ansi2knr, U may be empty or an underscore; expand it
18087 U=`sed -n 's/^U = //p' < "$mf"`
18088 # Find all dependency output files, they are included files with
18089 # $(DEPDIR) in their names. We invoke sed twice because it is the
18090 # simplest approach to changing $(DEPDIR) to its actual value in the
18091 # expansion.
18092 for file in `sed -n "
18093 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18094 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18095 # Make sure the directory exists.
18096 test -f "$dirpart/$file" && continue
18097 fdir=`(dirname "$file") 2>/dev/null ||
18098$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18099 X"$file" : 'X\(//\)[^/]' \| \
18100 X"$file" : 'X\(//\)$' \| \
18101 X"$file" : 'X\(/\)' \| \
18102 . : '\(.\)' 2>/dev/null ||
18103echo X"$file" |
18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18106 /^X\(\/\/\)$/{ s//\1/; q; }
18107 /^X\(\/\).*/{ s//\1/; q; }
18108 s/.*/./; q'`
18109 { if $as_mkdir_p; then
18110 mkdir -p $dirpart/$fdir
18111 else
18112 as_dir=$dirpart/$fdir
18113 as_dirs=
18114 while test ! -d "$as_dir"; do
18115 as_dirs="$as_dir $as_dirs"
18116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18118 X"$as_dir" : 'X\(//\)[^/]' \| \
18119 X"$as_dir" : 'X\(//\)$' \| \
18120 X"$as_dir" : 'X\(/\)' \| \
18121 . : '\(.\)' 2>/dev/null ||
18122echo X"$as_dir" |
18123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18125 /^X\(\/\/\)$/{ s//\1/; q; }
18126 /^X\(\/\).*/{ s//\1/; q; }
18127 s/.*/./; q'`
18128 done
18129 test ! -n "$as_dirs" || mkdir $as_dirs
18130 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18131echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18132 { (exit 1); exit 1; }; }; }
18133
18134 # echo "creating $dirpart/$file"
18135 echo '# dummy' > "$dirpart/$file"
18136 done
18137done
18138 ;;
ed698112 18139 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
eb019738
TT
18140case " $CONFIG_FILES " in
18141 *" Makefile "*)
6706f116 18142 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
eb019738
TT
18143 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18144 ;;
18145esac
ed698112
NN
18146 ;;
18147 esac
18148done
18149_ACEOF
480222b5 18150
ed698112
NN
18151cat >>$CONFIG_STATUS <<\_ACEOF
18152
18153{ (exit 0); exit 0; }
18154_ACEOF
ee9dd372 18155chmod +x $CONFIG_STATUS
ed698112
NN
18156ac_clean_files=$ac_clean_files_save
18157
18158
18159# configure is writing to config.log, and then calls config.status.
18160# config.status does its own redirection, appending to config.log.
18161# Unfortunately, on DOS this fails, as config.log is still kept open
18162# by configure, so config.status won't be able to write to it; its
18163# output is simply discarded. So we exec the FD to /dev/null,
18164# effectively closing config.log, so it can be properly (re)opened and
18165# appended to by config.status. When coming back to configure, we
18166# need to make the FD available again.
18167if test "$no_create" != yes; then
18168 ac_cs_success=:
18169 ac_config_status_args=
18170 test "$silent" = yes &&
18171 ac_config_status_args="$ac_config_status_args --quiet"
18172 exec 5>/dev/null
18173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18174 exec 5>>config.log
18175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18176 # would make configure fail if this is the last instruction.
18177 $ac_cs_success || { (exit 1); exit 1; }
18178fi
ee9dd372 18179
ed698112
NN
18180#
18181# CONFIG_SUBDIRS section.
18182#
7af85558
TT
18183if test "$no_recursion" != yes; then
18184
18185 # Remove --cache-file and --srcdir arguments so they do not pile up.
18186 ac_sub_configure_args=
18187 ac_prev=
18188 for ac_arg in $ac_configure_args; do
18189 if test -n "$ac_prev"; then
18190 ac_prev=
18191 continue
18192 fi
ed698112 18193 case $ac_arg in
7af85558
TT
18194 -cache-file | --cache-file | --cache-fil | --cache-fi \
18195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18196 ac_prev=cache_file ;;
18197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
ed698112
NN
18198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18199 | --c=*)
18200 ;;
18201 --config-cache | -C)
7af85558
TT
18202 ;;
18203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18204 ac_prev=srcdir ;;
18205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18206 ;;
ed698112
NN
18207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18208 ac_prev=prefix ;;
18209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18210 ;;
7af85558
TT
18211 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18212 esac
18213 done
18214
ed698112
NN
18215 # Always prepend --prefix to ensure using the same prefix
18216 # in subdir configurations.
18217 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18218
18219 ac_popdir=`pwd`
18220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7af85558
TT
18221
18222 # Do not complain, so a configure script can configure whichever
18223 # parts of a large source tree are present.
ed698112 18224 test -d $srcdir/$ac_dir || continue
7af85558 18225
ed698112
NN
18226 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18227echo "$as_me: configuring in $ac_dir" >&6;}
18228 { if $as_mkdir_p; then
18229 mkdir -p "$ac_dir"
18230 else
18231 as_dir="$ac_dir"
18232 as_dirs=
18233 while test ! -d "$as_dir"; do
18234 as_dirs="$as_dir $as_dirs"
18235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18237 X"$as_dir" : 'X\(//\)[^/]' \| \
18238 X"$as_dir" : 'X\(//\)$' \| \
18239 X"$as_dir" : 'X\(/\)' \| \
18240 . : '\(.\)' 2>/dev/null ||
18241echo X"$as_dir" |
18242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18244 /^X\(\/\/\)$/{ s//\1/; q; }
18245 /^X\(\/\).*/{ s//\1/; q; }
18246 s/.*/./; q'`
18247 done
18248 test ! -n "$as_dirs" || mkdir $as_dirs
18249 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18250echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18251 { (exit 1); exit 1; }; }; }
7af85558 18252
ed698112
NN
18253 ac_builddir=.
18254
18255if test "$ac_dir" != .; then
18256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18257 # A "../" for each directory in $ac_dir_suffix.
18258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18259else
18260 ac_dir_suffix= ac_top_builddir=
18261fi
18262
18263case $srcdir in
18264 .) # No --srcdir option. We are building in place.
18265 ac_srcdir=.
18266 if test -z "$ac_top_builddir"; then
18267 ac_top_srcdir=.
18268 else
18269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18270 fi ;;
18271 [\\/]* | ?:[\\/]* ) # Absolute path.
18272 ac_srcdir=$srcdir$ac_dir_suffix;
18273 ac_top_srcdir=$srcdir ;;
18274 *) # Relative path.
18275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18277esac
7af85558 18278
ed698112
NN
18279# Do not use `cd foo && pwd` to compute absolute paths, because
18280# the directories may not exist.
18281case `pwd` in
18282.) ac_abs_builddir="$ac_dir";;
18283*)
18284 case "$ac_dir" in
18285 .) ac_abs_builddir=`pwd`;;
18286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18288 esac;;
18289esac
18290case $ac_abs_builddir in
18291.) ac_abs_top_builddir=${ac_top_builddir}.;;
18292*)
18293 case ${ac_top_builddir}. in
18294 .) ac_abs_top_builddir=$ac_abs_builddir;;
18295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18297 esac;;
18298esac
18299case $ac_abs_builddir in
18300.) ac_abs_srcdir=$ac_srcdir;;
18301*)
18302 case $ac_srcdir in
18303 .) ac_abs_srcdir=$ac_abs_builddir;;
18304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18306 esac;;
18307esac
18308case $ac_abs_builddir in
18309.) ac_abs_top_srcdir=$ac_top_srcdir;;
18310*)
18311 case $ac_top_srcdir in
18312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18315 esac;;
18316esac
7af85558 18317
7af85558 18318
ed698112 18319 cd $ac_dir
7af85558
TT
18320
18321 # Check for guested configure; otherwise get Cygnus style configure.
ed698112
NN
18322 if test -f $ac_srcdir/configure.gnu; then
18323 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18324 elif test -f $ac_srcdir/configure; then
18325 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18326 elif test -f $ac_srcdir/configure.in; then
7af85558
TT
18327 ac_sub_configure=$ac_configure
18328 else
ed698112
NN
18329 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18330echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7af85558
TT
18331 ac_sub_configure=
18332 fi
18333
18334 # The recursion is here.
18335 if test -n "$ac_sub_configure"; then
7af85558 18336 # Make the cache file name correct relative to the subdirectory.
ed698112
NN
18337 case $cache_file in
18338 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7af85558 18339 *) # Relative path.
ed698112 18340 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7af85558 18341 esac
7af85558 18342
ed698112
NN
18343 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18344echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7af85558 18345 # The eval makes quoting arguments work.
ed698112
NN
18346 eval $ac_sub_configure $ac_sub_configure_args \
18347 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18348 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18349echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18350 { (exit 1); exit 1; }; }
7af85558
TT
18351 fi
18352
2c92e90f 18353 cd $ac_popdir
7af85558
TT
18354 done
18355fi
18356