OSDN Git Service

f2a7bb02de392103a10ad13545e1ef01e04f0996
[pf3gnuchains/gcc-fork.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.94-pre.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.94-pre'
273 PACKAGE_STRING='GNU Classpath 0.94-pre'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
275
276 ac_unique_file="java/lang/System.java"
277 ac_default_prefix=/usr/local/classpath
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE GENINSRC_TRUE GENINSRC_FALSE multi_basedir LIBVERSION CLASSPATH_MODULE CLASSPATH_CONVENIENCE 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 CREATE_COLLECTIONS_TRUE CREATE_COLLECTIONS_FALSE CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE CREATE_GCONF_PEER_LIBRARIES_TRUE CREATE_GCONF_PEER_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE CREATE_PLUGIN_TRUE CREATE_PLUGIN_FALSE toolexeclibdir nativeexeclibdir glibjdir VM_BINARY FOUND_CACAO_TRUE FOUND_CACAO_FALSE CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS XTEST_LIBS GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_LIBS QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY ECJ_JAR JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP FASTJAR INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE USE_PREBUILT_GLIBJ_ZIP_TRUE USE_PREBUILT_GLIBJ_ZIP_FALSE PATH_TO_GLIBJ_ZIP USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
788
789 #
790 # Report the --help message.
791 #
792 if test "$ac_init_help" = "long"; then
793   # Omit some internal or obsolete options to make the list less imposing.
794   # This message is too long to be a string in the A/UX 3.1 sh.
795   cat <<_ACEOF
796 \`configure' configures GNU Classpath 0.94-pre to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE.  See below for descriptions of some of the useful variables.
802
803 Defaults for the options are specified in brackets.
804
805 Configuration:
806   -h, --help              display this help and exit
807       --help=short        display options specific to this package
808       --help=recursive    display the short help of all the included packages
809   -V, --version           display version information and exit
810   -q, --quiet, --silent   do not print \`checking...' messages
811       --cache-file=FILE   cache test results in FILE [disabled]
812   -C, --config-cache      alias for \`--cache-file=config.cache'
813   -n, --no-create         do not create output files
814       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
815
816 _ACEOF
817
818   cat <<_ACEOF
819 Installation directories:
820   --prefix=PREFIX         install architecture-independent files in PREFIX
821                           [$ac_default_prefix]
822   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
823                           [PREFIX]
824
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
829
830 For better control, use the options below.
831
832 Fine tuning of the installation directories:
833   --bindir=DIR           user executables [EPREFIX/bin]
834   --sbindir=DIR          system admin executables [EPREFIX/sbin]
835   --libexecdir=DIR       program executables [EPREFIX/libexec]
836   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
837   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
838   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
839   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
840   --libdir=DIR           object code libraries [EPREFIX/lib]
841   --includedir=DIR       C header files [PREFIX/include]
842   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
843   --infodir=DIR          info documentation [PREFIX/info]
844   --mandir=DIR           man documentation [PREFIX/man]
845 _ACEOF
846
847   cat <<\_ACEOF
848
849 Program names:
850   --program-prefix=PREFIX            prepend PREFIX to installed program names
851   --program-suffix=SUFFIX            append SUFFIX to installed program names
852   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
853
854 X features:
855   --x-includes=DIR    X include files are in DIR
856   --x-libraries=DIR   X library files are in DIR
857
858 System types:
859   --build=BUILD     configure for building on BUILD [guessed]
860   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
861   --target=TARGET   configure for building compilers for TARGET [HOST]
862 _ACEOF
863 fi
864
865 if test -n "$ac_init_help"; then
866   case $ac_init_help in
867      short | recursive ) echo "Configuration of GNU Classpath 0.94-pre:";;
868    esac
869   cat <<\_ACEOF
870
871 Optional Features:
872   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
873   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
874   --enable-java-maintainer-mode
875                           allow rebuilding of .class and .h files
876   --enable-generated-files-in-srcdir
877                           put copies of generated files in source dir
878                           intended for creating source tarballs for users
879                           without texinfo, perl, bison or flex.
880   --enable-multilib       build many library versions (default)
881   --enable-collections    create collections.jar default=no
882   --enable-jni            compile JNI source default=yes
883   --enable-core-jni       compile JNI sources for core default=yes
884   --enable-default-preferences-peer[=peer type or class name]
885                           specify one of: "gconf" [default] for a GConf based
886                           backend, "file" for a file based one, "memory" for a
887                           transient one, or a fully qualified class name
888                           implementing java.util.prefs.PreferencesFactory
889   --disable-gconf-peer    compile GConf native peers (disabled by
890                           --disable-jni) default=yes
891
892   --enable-Werror         whether to compile C code with -Werror which turns
893                           any compiler warning into a compilation failure
894                           default=no
895   --enable-default-toolkit
896                           fully qualified class name of default AWT toolkit
897   --enable-xmlj           compile native libxml/xslt library default=no
898   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
899                           default=yes
900   --disable-dependency-tracking  speeds up one-time build
901   --enable-dependency-tracking   do not reject slow dependency extractors
902   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
903                           default=yes
904   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
905                           default=yes
906   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
907                           default=no
908   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
909                           default=yes
910   --enable-regen-headers  automatically regenerate JNI headers default=no
911   --enable-tool-wrappers  create tool wrapper binaries default=no
912   --enable-static=PKGS  build static libraries default=no
913   --enable-shared=PKGS  build shared libraries default=yes
914   --enable-fast-install=PKGS  optimize for fast installation default=yes
915   --disable-libtool-lock  avoid locking (might break parallel builds)
916   --disable-rpath         do not hardcode runtime library paths
917   --enable-maintainer-mode  enable make rules and dependencies not useful
918                           (and sometimes confusing) to the casual installer
919   --enable-debug          enable runtime debugging code
920   --enable-load-library   enable to use JNI native methods default=yes
921   --enable-java-lang-system-explicit-initialization
922                           will the VM explicitly invoke java.lang.System's
923                           static initialization methods default=no
924   --enable-examples       enable build of the examples default=yes
925   --enable-portable-native-sync
926                           synchronize VM threads portably
927   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
928
929 Optional Packages:
930   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
931   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
932   --with-native-libdir    sets the installation directory for native libraries
933                           default='${libdir}/${PACKAGE}'
934   --with-glibj-dir        sets the installation directory for glibj.zip
935                           default='${libdir}/${PACKAGE}'
936   --with-vm               sets the VM binary name
937                           default='${prefix}/bin/jamvm'
938   --with-gnu-ld           assume the C compiler uses GNU ld default=no
939   --with-pic              try to use only PIC/non-PIC objects default=use both
940   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
941   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
942   --with-x                use the X Window System
943   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
944                           systems use pkg-config.
945   --with-javah            specify path or name of a javah-like program
946   --with-gcj              bytecode compilation with gcj
947   --with-jikes            bytecode compilation with jikes
948   --with-kjc              bytecode compilation with kjc
949   --with-gcjx             bytecode compilation with gcjx
950   --with-ecj              bytecode compilation with ecj
951   --with-classpath        specify path to a classes.zip like file
952   --with-vm-classes       specify path to VM override source files
953   --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
954                           Compiler
955   --with-fastjar=PATH     define to use a fastjar style tool
956   --with-glibj            define what to install (zip|flat|both|none|build)
957                           [default=zip]
958   --with-gjdoc            generate documentation using gjdoc (default is NO)
959   --with-jay              Regenerate the parsers with jay must be given the
960                           path to the jay executable
961   --with-glibj-zip=ABS.PATH
962                           use prebuilt glibj.zip class library
963   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
964
965 Some influential environment variables:
966   CC          C compiler command
967   CFLAGS      C compiler flags
968   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
969               nonstandard directory <lib dir>
970   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
971               headers in a nonstandard directory <include dir>
972   CPP         C preprocessor
973   CXX         C++ compiler command
974   CXXFLAGS    C++ compiler flags
975   CXXCPP      C++ preprocessor
976
977 Use these variables to override the choices made by `configure' or to help
978 it to find libraries and programs with nonstandard names/locations.
979
980 Report bugs to <classpath@gnu.org>.
981 _ACEOF
982 fi
983
984 if test "$ac_init_help" = "recursive"; then
985   # If there are subdirs, report their specific --help.
986   ac_popdir=`pwd`
987   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
988     test -d $ac_dir || continue
989     ac_builddir=.
990
991 if test "$ac_dir" != .; then
992   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
993   # A "../" for each directory in $ac_dir_suffix.
994   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
995 else
996   ac_dir_suffix= ac_top_builddir=
997 fi
998
999 case $srcdir in
1000   .)  # No --srcdir option.  We are building in place.
1001     ac_srcdir=.
1002     if test -z "$ac_top_builddir"; then
1003        ac_top_srcdir=.
1004     else
1005        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1006     fi ;;
1007   [\\/]* | ?:[\\/]* )  # Absolute path.
1008     ac_srcdir=$srcdir$ac_dir_suffix;
1009     ac_top_srcdir=$srcdir ;;
1010   *) # Relative path.
1011     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1012     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1013 esac
1014
1015 # Do not use `cd foo && pwd` to compute absolute paths, because
1016 # the directories may not exist.
1017 case `pwd` in
1018 .) ac_abs_builddir="$ac_dir";;
1019 *)
1020   case "$ac_dir" in
1021   .) ac_abs_builddir=`pwd`;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1023   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1024   esac;;
1025 esac
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1028 *)
1029   case ${ac_top_builddir}. in
1030   .) ac_abs_top_builddir=$ac_abs_builddir;;
1031   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1032   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1033   esac;;
1034 esac
1035 case $ac_abs_builddir in
1036 .) ac_abs_srcdir=$ac_srcdir;;
1037 *)
1038   case $ac_srcdir in
1039   .) ac_abs_srcdir=$ac_abs_builddir;;
1040   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1041   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1042   esac;;
1043 esac
1044 case $ac_abs_builddir in
1045 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1046 *)
1047   case $ac_top_srcdir in
1048   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1049   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1050   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1051   esac;;
1052 esac
1053
1054     cd $ac_dir
1055     # Check for guested configure; otherwise get Cygnus style configure.
1056     if test -f $ac_srcdir/configure.gnu; then
1057       echo
1058       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1059     elif test -f $ac_srcdir/configure; then
1060       echo
1061       $SHELL $ac_srcdir/configure  --help=recursive
1062     elif test -f $ac_srcdir/configure.ac ||
1063            test -f $ac_srcdir/configure.in; then
1064       echo
1065       $ac_configure --help
1066     else
1067       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1068     fi
1069     cd $ac_popdir
1070   done
1071 fi
1072
1073 test -n "$ac_init_help" && exit 0
1074 if $ac_init_version; then
1075   cat <<\_ACEOF
1076 GNU Classpath configure 0.94-pre
1077 generated by GNU Autoconf 2.59
1078
1079 Copyright (C) 2003 Free Software Foundation, Inc.
1080 This configure script is free software; the Free Software Foundation
1081 gives unlimited permission to copy, distribute and modify it.
1082 _ACEOF
1083   exit 0
1084 fi
1085 exec 5>config.log
1086 cat >&5 <<_ACEOF
1087 This file contains any messages produced by compilers while
1088 running configure, to aid debugging if configure makes a mistake.
1089
1090 It was created by GNU Classpath $as_me 0.94-pre, which was
1091 generated by GNU Autoconf 2.59.  Invocation command line was
1092
1093   $ $0 $@
1094
1095 _ACEOF
1096 {
1097 cat <<_ASUNAME
1098 ## --------- ##
1099 ## Platform. ##
1100 ## --------- ##
1101
1102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1107
1108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1109 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1110
1111 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1112 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1114 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1115 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1116 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1117 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1118
1119 _ASUNAME
1120
1121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1122 for as_dir in $PATH
1123 do
1124   IFS=$as_save_IFS
1125   test -z "$as_dir" && as_dir=.
1126   echo "PATH: $as_dir"
1127 done
1128
1129 } >&5
1130
1131 cat >&5 <<_ACEOF
1132
1133
1134 ## ----------- ##
1135 ## Core tests. ##
1136 ## ----------- ##
1137
1138 _ACEOF
1139
1140
1141 # Keep a trace of the command line.
1142 # Strip out --no-create and --no-recursion so they do not pile up.
1143 # Strip out --silent because we don't want to record it for future runs.
1144 # Also quote any args containing shell meta-characters.
1145 # Make two passes to allow for proper duplicate-argument suppression.
1146 ac_configure_args=
1147 ac_configure_args0=
1148 ac_configure_args1=
1149 ac_sep=
1150 ac_must_keep_next=false
1151 for ac_pass in 1 2
1152 do
1153   for ac_arg
1154   do
1155     case $ac_arg in
1156     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1157     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158     | -silent | --silent | --silen | --sile | --sil)
1159       continue ;;
1160     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1161       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1162     esac
1163     case $ac_pass in
1164     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1165     2)
1166       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1167       if test $ac_must_keep_next = true; then
1168         ac_must_keep_next=false # Got value, back to normal.
1169       else
1170         case $ac_arg in
1171           *=* | --config-cache | -C | -disable-* | --disable-* \
1172           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1173           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1174           | -with-* | --with-* | -without-* | --without-* | --x)
1175             case "$ac_configure_args0 " in
1176               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1177             esac
1178             ;;
1179           -* ) ac_must_keep_next=true ;;
1180         esac
1181       fi
1182       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1183       # Get rid of the leading space.
1184       ac_sep=" "
1185       ;;
1186     esac
1187   done
1188 done
1189 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1190 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1191
1192 # When interrupted or exit'd, cleanup temporary files, and complete
1193 # config.log.  We remove comments because anyway the quotes in there
1194 # would cause problems or look ugly.
1195 # WARNING: Be sure not to use single quotes in there, as some shells,
1196 # such as our DU 5.0 friend, will then `close' the trap.
1197 trap 'exit_status=$?
1198   # Save into config.log some information that might help in debugging.
1199   {
1200     echo
1201
1202     cat <<\_ASBOX
1203 ## ---------------- ##
1204 ## Cache variables. ##
1205 ## ---------------- ##
1206 _ASBOX
1207     echo
1208     # The following way of writing the cache mishandles newlines in values,
1209 {
1210   (set) 2>&1 |
1211     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1212     *ac_space=\ *)
1213       sed -n \
1214         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1215           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1216       ;;
1217     *)
1218       sed -n \
1219         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1220       ;;
1221     esac;
1222 }
1223     echo
1224
1225     cat <<\_ASBOX
1226 ## ----------------- ##
1227 ## Output variables. ##
1228 ## ----------------- ##
1229 _ASBOX
1230     echo
1231     for ac_var in $ac_subst_vars
1232     do
1233       eval ac_val=$`echo $ac_var`
1234       echo "$ac_var='"'"'$ac_val'"'"'"
1235     done | sort
1236     echo
1237
1238     if test -n "$ac_subst_files"; then
1239       cat <<\_ASBOX
1240 ## ------------- ##
1241 ## Output files. ##
1242 ## ------------- ##
1243 _ASBOX
1244       echo
1245       for ac_var in $ac_subst_files
1246       do
1247         eval ac_val=$`echo $ac_var`
1248         echo "$ac_var='"'"'$ac_val'"'"'"
1249       done | sort
1250       echo
1251     fi
1252
1253     if test -s confdefs.h; then
1254       cat <<\_ASBOX
1255 ## ----------- ##
1256 ## confdefs.h. ##
1257 ## ----------- ##
1258 _ASBOX
1259       echo
1260       sed "/^$/d" confdefs.h | sort
1261       echo
1262     fi
1263     test "$ac_signal" != 0 &&
1264       echo "$as_me: caught signal $ac_signal"
1265     echo "$as_me: exit $exit_status"
1266   } >&5
1267   rm -f core *.core &&
1268   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1269     exit $exit_status
1270      ' 0
1271 for ac_signal in 1 2 13 15; do
1272   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1273 done
1274 ac_signal=0
1275
1276 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1277 rm -rf conftest* confdefs.h
1278 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1279 echo >confdefs.h
1280
1281 # Predefined preprocessor variables.
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_NAME "$PACKAGE_NAME"
1285 _ACEOF
1286
1287
1288 cat >>confdefs.h <<_ACEOF
1289 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1290 _ACEOF
1291
1292
1293 cat >>confdefs.h <<_ACEOF
1294 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1295 _ACEOF
1296
1297
1298 cat >>confdefs.h <<_ACEOF
1299 #define PACKAGE_STRING "$PACKAGE_STRING"
1300 _ACEOF
1301
1302
1303 cat >>confdefs.h <<_ACEOF
1304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1305 _ACEOF
1306
1307
1308 # Let the site file select an alternate cache file if it wants to.
1309 # Prefer explicitly selected file to automatically selected ones.
1310 if test -z "$CONFIG_SITE"; then
1311   if test "x$prefix" != xNONE; then
1312     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1313   else
1314     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1315   fi
1316 fi
1317 for ac_site_file in $CONFIG_SITE; do
1318   if test -r "$ac_site_file"; then
1319     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1320 echo "$as_me: loading site script $ac_site_file" >&6;}
1321     sed 's/^/| /' "$ac_site_file" >&5
1322     . "$ac_site_file"
1323   fi
1324 done
1325
1326 if test -r "$cache_file"; then
1327   # Some versions of bash will fail to source /dev/null (special
1328   # files actually), so we avoid doing that.
1329   if test -f "$cache_file"; then
1330     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1331 echo "$as_me: loading cache $cache_file" >&6;}
1332     case $cache_file in
1333       [\\/]* | ?:[\\/]* ) . $cache_file;;
1334       *)                      . ./$cache_file;;
1335     esac
1336   fi
1337 else
1338   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1339 echo "$as_me: creating cache $cache_file" >&6;}
1340   >$cache_file
1341 fi
1342
1343 # Check that the precious variables saved in the cache have kept the same
1344 # value.
1345 ac_cache_corrupted=false
1346 for ac_var in `(set) 2>&1 |
1347                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1348   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1349   eval ac_new_set=\$ac_env_${ac_var}_set
1350   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1351   eval ac_new_val="\$ac_env_${ac_var}_value"
1352   case $ac_old_set,$ac_new_set in
1353     set,)
1354       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1355 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1356       ac_cache_corrupted=: ;;
1357     ,set)
1358       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1359 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1360       ac_cache_corrupted=: ;;
1361     ,);;
1362     *)
1363       if test "x$ac_old_val" != "x$ac_new_val"; then
1364         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1365 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1366         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1367 echo "$as_me:   former value:  $ac_old_val" >&2;}
1368         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1369 echo "$as_me:   current value: $ac_new_val" >&2;}
1370         ac_cache_corrupted=:
1371       fi;;
1372   esac
1373   # Pass precious variables to config.status.
1374   if test "$ac_new_set" = set; then
1375     case $ac_new_val in
1376     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1377       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1378     *) ac_arg=$ac_var=$ac_new_val ;;
1379     esac
1380     case " $ac_configure_args " in
1381       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1382       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1383     esac
1384   fi
1385 done
1386 if $ac_cache_corrupted; then
1387   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1388 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1389   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1390 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1391    { (exit 1); exit 1; }; }
1392 fi
1393
1394 ac_ext=c
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428 ac_aux_dir=
1429 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1430   if test -f $ac_dir/install-sh; then
1431     ac_aux_dir=$ac_dir
1432     ac_install_sh="$ac_aux_dir/install-sh -c"
1433     break
1434   elif test -f $ac_dir/install.sh; then
1435     ac_aux_dir=$ac_dir
1436     ac_install_sh="$ac_aux_dir/install.sh -c"
1437     break
1438   elif test -f $ac_dir/shtool; then
1439     ac_aux_dir=$ac_dir
1440     ac_install_sh="$ac_aux_dir/shtool install -c"
1441     break
1442   fi
1443 done
1444 if test -z "$ac_aux_dir"; then
1445   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1446 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1447    { (exit 1); exit 1; }; }
1448 fi
1449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1451 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1452
1453 # Make sure we can run config.sub.
1454 $ac_config_sub sun4 >/dev/null 2>&1 ||
1455   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1457    { (exit 1); exit 1; }; }
1458
1459 echo "$as_me:$LINENO: checking build system type" >&5
1460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1461 if test "${ac_cv_build+set}" = set; then
1462   echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464   ac_cv_build_alias=$build_alias
1465 test -z "$ac_cv_build_alias" &&
1466   ac_cv_build_alias=`$ac_config_guess`
1467 test -z "$ac_cv_build_alias" &&
1468   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1470    { (exit 1); exit 1; }; }
1471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1472   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1474    { (exit 1); exit 1; }; }
1475
1476 fi
1477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1478 echo "${ECHO_T}$ac_cv_build" >&6
1479 build=$ac_cv_build
1480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1483
1484
1485 echo "$as_me:$LINENO: checking host system type" >&5
1486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1487 if test "${ac_cv_host+set}" = set; then
1488   echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490   ac_cv_host_alias=$host_alias
1491 test -z "$ac_cv_host_alias" &&
1492   ac_cv_host_alias=$ac_cv_build_alias
1493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1494   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1496    { (exit 1); exit 1; }; }
1497
1498 fi
1499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1500 echo "${ECHO_T}$ac_cv_host" >&6
1501 host=$ac_cv_host
1502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505
1506
1507 echo "$as_me:$LINENO: checking target system type" >&5
1508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1509 if test "${ac_cv_target+set}" = set; then
1510   echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512   ac_cv_target_alias=$target_alias
1513 test "x$ac_cv_target_alias" = "x" &&
1514   ac_cv_target_alias=$ac_cv_host_alias
1515 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1522 echo "${ECHO_T}$ac_cv_target" >&6
1523 target=$ac_cv_target
1524 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 # The aliases save the names the user supplied, while $host etc.
1530 # will get canonicalized.
1531 test -n "$target_alias" &&
1532   test "$program_prefix$program_suffix$program_transform_name" = \
1533     NONENONEs,x,x, &&
1534   program_prefix=${target_alias}-
1535
1536 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1537 if test "${enable_java_maintainer_mode+set}" = set; then
1538   enableval="$enable_java_maintainer_mode"
1539
1540 fi;
1541
1542
1543 if test "$enable_java_maintainer_mode" = yes; then
1544   JAVA_MAINTAINER_MODE_TRUE=
1545   JAVA_MAINTAINER_MODE_FALSE='#'
1546 else
1547   JAVA_MAINTAINER_MODE_TRUE='#'
1548   JAVA_MAINTAINER_MODE_FALSE=
1549 fi
1550
1551
1552 # We would like to our source tree to be readonly.  However when releases or
1553 # pre-releases are generated, the man pages need to be included as they are
1554 # converted from the texi files via perl which we don't require end users to
1555 # have installed.
1556 # Therefore we have --enable-generated-files-in-srcdir to do just that.
1557
1558 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1559 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1560     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1561 if test "${enable_generated_files_in_srcdir+set}" = set; then
1562   enableval="$enable_generated_files_in_srcdir"
1563   generated_files_in_srcdir=$enableval
1564 else
1565   generated_files_in_srcdir=no
1566 fi;
1567
1568 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1569 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1570
1571
1572 if test x$generated_files_in_srcdir = xyes; then
1573   GENINSRC_TRUE=
1574   GENINSRC_FALSE='#'
1575 else
1576   GENINSRC_TRUE='#'
1577   GENINSRC_FALSE=
1578 fi
1579
1580
1581 # Find the rest of the source tree framework.
1582 # Default to --enable-multilib
1583 # Check whether --enable-multilib or --disable-multilib was given.
1584 if test "${enable_multilib+set}" = set; then
1585   enableval="$enable_multilib"
1586   case "$enableval" in
1587   yes) multilib=yes ;;
1588   no)  multilib=no ;;
1589   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1590 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1591    { (exit 1); exit 1; }; } ;;
1592  esac
1593 else
1594   multilib=yes
1595 fi;
1596
1597 # We may get other options which we leave undocumented:
1598 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1599 # See config-ml.in if you want the gory details.
1600
1601 if test "$srcdir" = "."; then
1602   if test "$with_target_subdir" != "."; then
1603     multi_basedir="$srcdir/$with_multisrctop../../.."
1604   else
1605     multi_basedir="$srcdir/$with_multisrctop../.."
1606   fi
1607 else
1608   multi_basedir="$srcdir/../.."
1609 fi
1610
1611
1612 # Even if the default multilib is not a cross compilation,
1613 # it may be that some of the other multilibs are.
1614 if test $cross_compiling = no && test $multilib = yes \
1615    && test "x${with_multisubdir}" != x ; then
1616    cross_compiling=maybe
1617 fi
1618
1619           ac_config_commands="$ac_config_commands default-1"
1620
1621
1622 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1623
1624 LIBVERSION="0:0:0"
1625
1626 case "$host_os" in
1627      darwin*)
1628         cp_module=""
1629         ;;
1630         *)
1631         cp_module="-module"
1632         ;;
1633 esac
1634
1635 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1636
1637
1638 CLASSPATH_CONVENIENCE="-no-undefined"
1639
1640
1641
1642 am__api_version="1.9"
1643 # Find a good install program.  We prefer a C program (faster),
1644 # so one script is as good as another.  But avoid the broken or
1645 # incompatible versions:
1646 # SysV /etc/install, /usr/sbin/install
1647 # SunOS /usr/etc/install
1648 # IRIX /sbin/install
1649 # AIX /bin/install
1650 # AmigaOS /C/install, which installs bootblocks on floppy discs
1651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1654 # OS/2's system install, which has a completely different semantic
1655 # ./install, which can be erroneously created by make from ./install.sh.
1656 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1657 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1658 if test -z "$INSTALL"; then
1659 if test "${ac_cv_path_install+set}" = set; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   # Account for people who put trailing slashes in PATH elements.
1668 case $as_dir/ in
1669   ./ | .// | /cC/* | \
1670   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1671   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1672   /usr/ucb/* ) ;;
1673   *)
1674     # OSF1 and SCO ODT 3.0 have their own names for install.
1675     # Don't use installbsd from OSF since it installs stuff as root
1676     # by default.
1677     for ac_prog in ginstall scoinst install; do
1678       for ac_exec_ext in '' $ac_executable_extensions; do
1679         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1680           if test $ac_prog = install &&
1681             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682             # AIX install.  It has an incompatible calling convention.
1683             :
1684           elif test $ac_prog = install &&
1685             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686             # program-specific install script used by HP pwplus--don't use.
1687             :
1688           else
1689             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1690             break 3
1691           fi
1692         fi
1693       done
1694     done
1695     ;;
1696 esac
1697 done
1698
1699
1700 fi
1701   if test "${ac_cv_path_install+set}" = set; then
1702     INSTALL=$ac_cv_path_install
1703   else
1704     # As a last resort, use the slow shell script.  We don't cache a
1705     # path for INSTALL within a source directory, because that will
1706     # break other packages using the cache if that directory is
1707     # removed, or if the path is relative.
1708     INSTALL=$ac_install_sh
1709   fi
1710 fi
1711 echo "$as_me:$LINENO: result: $INSTALL" >&5
1712 echo "${ECHO_T}$INSTALL" >&6
1713
1714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715 # It thinks the first close brace ends the variable substitution.
1716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
1718 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719
1720 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
1722 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1723 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1724 # Just in case
1725 sleep 1
1726 echo timestamp > conftest.file
1727 # Do `set' in a subshell so we don't clobber the current shell's
1728 # arguments.  Must try -L first in case configure is actually a
1729 # symlink; some systems play weird games with the mod time of symlinks
1730 # (eg FreeBSD returns the mod time of the symlink's containing
1731 # directory).
1732 if (
1733    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1734    if test "$*" = "X"; then
1735       # -L didn't work.
1736       set X `ls -t $srcdir/configure conftest.file`
1737    fi
1738    rm -f conftest.file
1739    if test "$*" != "X $srcdir/configure conftest.file" \
1740       && test "$*" != "X conftest.file $srcdir/configure"; then
1741
1742       # If neither matched, then we have a broken ls.  This can happen
1743       # if, for instance, CONFIG_SHELL is bash and it inherits a
1744       # broken ls alias from the environment.  This has actually
1745       # happened.  Such a system could not be considered "sane".
1746       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1747 alias in your environment" >&5
1748 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1749 alias in your environment" >&2;}
1750    { (exit 1); exit 1; }; }
1751    fi
1752
1753    test "$2" = conftest.file
1754    )
1755 then
1756    # Ok.
1757    :
1758 else
1759    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1760 Check your system clock" >&5
1761 echo "$as_me: error: newly created file is older than distributed files!
1762 Check your system clock" >&2;}
1763    { (exit 1); exit 1; }; }
1764 fi
1765 echo "$as_me:$LINENO: result: yes" >&5
1766 echo "${ECHO_T}yes" >&6
1767 test "$program_prefix" != NONE &&
1768   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1769 # Use a double $ so make ignores it.
1770 test "$program_suffix" != NONE &&
1771   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1772 # Double any \ or $.  echo might interpret backslashes.
1773 # By default was `s,x,x', remove it if useless.
1774 cat <<\_ACEOF >conftest.sed
1775 s/[\\$]/&&/g;s/;s,x,x,$//
1776 _ACEOF
1777 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778 rm conftest.sed
1779
1780 # expand $ac_aux_dir to an absolute path
1781 am_aux_dir=`cd $ac_aux_dir && pwd`
1782
1783 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1784 # Use eval to expand $SHELL
1785 if eval "$MISSING --run true"; then
1786   am_missing_run="$MISSING --run "
1787 else
1788   am_missing_run=
1789   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1790 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1791 fi
1792
1793 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1794   # We used to keeping the `.' as first argument, in order to
1795   # allow $(mkdir_p) to be used without argument.  As in
1796   #   $(mkdir_p) $(somedir)
1797   # where $(somedir) is conditionally defined.  However this is wrong
1798   # for two reasons:
1799   #  1. if the package is installed by a user who cannot write `.'
1800   #     make install will fail,
1801   #  2. the above comment should most certainly read
1802   #     $(mkdir_p) $(DESTDIR)$(somedir)
1803   #     so it does not work when $(somedir) is undefined and
1804   #     $(DESTDIR) is not.
1805   #  To support the latter case, we have to write
1806   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1807   #  so the `.' trick is pointless.
1808   mkdir_p='mkdir -p --'
1809 else
1810   # On NextStep and OpenStep, the `mkdir' command does not
1811   # recognize any option.  It will interpret all options as
1812   # directories to create, and then abort because `.' already
1813   # exists.
1814   for d in ./-p ./--version;
1815   do
1816     test -d $d && rmdir $d
1817   done
1818   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819   if test -f "$ac_aux_dir/mkinstalldirs"; then
1820     mkdir_p='$(mkinstalldirs)'
1821   else
1822     mkdir_p='$(install_sh) -d'
1823   fi
1824 fi
1825
1826 for ac_prog in gawk mawk nawk awk
1827 do
1828   # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$AWK"; then
1836   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
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_AWK="$ac_prog"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 AWK=$ac_cv_prog_AWK
1855 if test -n "$AWK"; then
1856   echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1858 else
1859   echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863   test -n "$AWK" && break
1864 done
1865
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870   echo $ECHO_N "(cached) $ECHO_C" >&6
1871 else
1872   cat >conftest.make <<\_ACEOF
1873 all:
1874         @echo 'ac_maketemp="$(MAKE)"'
1875 _ACEOF
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879   eval ac_cv_prog_make_${ac_make}_set=yes
1880 else
1881   eval ac_cv_prog_make_${ac_make}_set=no
1882 fi
1883 rm -f conftest.make
1884 fi
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886   echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1888   SET_MAKE=
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892   SET_MAKE="MAKE=${MAKE-make}"
1893 fi
1894
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1898   am__leading_dot=.
1899 else
1900   am__leading_dot=_
1901 fi
1902 rmdir .tst 2>/dev/null
1903
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906    test -f $srcdir/config.status; then
1907   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914   if (cygpath --version) >/dev/null 2>/dev/null; then
1915     CYGPATH_W='cygpath -w'
1916   else
1917     CYGPATH_W=echo
1918   fi
1919 fi
1920
1921
1922 # Define the identity of the package.
1923  PACKAGE='classpath'
1924  VERSION='0.94-pre'
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1934 _ACEOF
1935
1936 # Some tools Automake needs.
1937
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939
1940
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942
1943
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1945
1946
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948
1949
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951
1952 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1953
1954 # Installed binaries are usually stripped using `strip' when the user
1955 # run `make install-strip'.  However `strip' might not be the right
1956 # tool to use in cross-compilation environments, therefore Automake
1957 # will honor the `STRIP' environment variable to overrule this program.
1958 if test "$cross_compiling" != no; then
1959   if test -n "$ac_tool_prefix"; then
1960   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961 set dummy ${ac_tool_prefix}strip; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_STRIP+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$STRIP"; then
1968   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 STRIP=$ac_cv_prog_STRIP
1987 if test -n "$STRIP"; then
1988   echo "$as_me:$LINENO: result: $STRIP" >&5
1989 echo "${ECHO_T}$STRIP" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 fi
1996 if test -z "$ac_cv_prog_STRIP"; then
1997   ac_ct_STRIP=$STRIP
1998   # Extract the first word of "strip", so it can be a program name with args.
1999 set dummy strip; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$ac_ct_STRIP"; then
2006   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015     ac_cv_prog_ac_ct_STRIP="strip"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2023 fi
2024 fi
2025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2026 if test -n "$ac_ct_STRIP"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2028 echo "${ECHO_T}$ac_ct_STRIP" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   STRIP=$ac_ct_STRIP
2035 else
2036   STRIP="$ac_cv_prog_STRIP"
2037 fi
2038
2039 fi
2040 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2041
2042 # We need awk for the "check" target.  The system "awk" is bad on
2043 # some platforms.
2044 # Always define AMTAR for backward compatibility.
2045
2046 AMTAR=${AMTAR-"${am_missing_run}tar"}
2047
2048
2049 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2050 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2051 # Loop over all known methods to create a tar archive until one works.
2052 _am_tools='gnutar plaintar pax cpio none'
2053 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2054 # Do not fold the above two line into one, because Tru64 sh and
2055 # Solaris sh will not grok spaces in the rhs of `-'.
2056 for _am_tool in $_am_tools
2057 do
2058   case $_am_tool in
2059   gnutar)
2060     for _am_tar in tar gnutar gtar;
2061     do
2062       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2063    ($_am_tar --version) >&5 2>&5
2064    ac_status=$?
2065    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066    (exit $ac_status); } && break
2067     done
2068     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2069     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2070     am__untar="$_am_tar -xf -"
2071     ;;
2072   plaintar)
2073     # Must skip GNU tar: if it does not support --format= it doesn't create
2074     # ustar tarball either.
2075     (tar --version) >/dev/null 2>&1 && continue
2076     am__tar='tar chf - "$$tardir"'
2077     am__tar_='tar chf - "$tardir"'
2078     am__untar='tar xf -'
2079     ;;
2080   pax)
2081     am__tar='pax -L -x ustar -w "$$tardir"'
2082     am__tar_='pax -L -x ustar -w "$tardir"'
2083     am__untar='pax -r'
2084     ;;
2085   cpio)
2086     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2087     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2088     am__untar='cpio -i -H ustar -d'
2089     ;;
2090   none)
2091     am__tar=false
2092     am__tar_=false
2093     am__untar=false
2094     ;;
2095   esac
2096
2097   # If the value was cached, stop now.  We just wanted to have am__tar
2098   # and am__untar set.
2099   test -n "${am_cv_prog_tar_ustar}" && break
2100
2101   # tar/untar a dummy directory, and stop if the command works
2102   rm -rf conftest.dir
2103   mkdir conftest.dir
2104   echo GrepMe > conftest.dir/file
2105   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2106    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2107    ac_status=$?
2108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109    (exit $ac_status); }
2110   rm -rf conftest.dir
2111   if test -s conftest.tar; then
2112     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2113    ($am__untar <conftest.tar) >&5 2>&5
2114    ac_status=$?
2115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116    (exit $ac_status); }
2117     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2118   fi
2119 done
2120 rm -rf conftest.dir
2121
2122 if test "${am_cv_prog_tar_ustar+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   am_cv_prog_tar_ustar=$_am_tool
2126 fi
2127
2128 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2129 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2130
2131
2132
2133
2134
2135           ac_config_headers="$ac_config_headers include/config.h"
2136
2137
2138
2139
2140
2141 # Check whether --enable-collections or --disable-collections was given.
2142 if test "${enable_collections+set}" = set; then
2143   enableval="$enable_collections"
2144   case x"${enableval}" in
2145                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2146                 xno) COMPILE_COLLECTIONS=no ;;
2147                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2148                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2149               esac
2150 else
2151   COMPILE_COLLECTIONS=no
2152 fi;
2153
2154
2155 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2156   CREATE_COLLECTIONS_TRUE=
2157   CREATE_COLLECTIONS_FALSE='#'
2158 else
2159   CREATE_COLLECTIONS_TRUE='#'
2160   CREATE_COLLECTIONS_FALSE=
2161 fi
2162
2163
2164 # Check whether --enable-jni or --disable-jni was given.
2165 if test "${enable_jni+set}" = set; then
2166   enableval="$enable_jni"
2167   case "${enableval}" in
2168                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2169                 no) COMPILE_JNI=no ;;
2170                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2171               esac
2172 else
2173   COMPILE_JNI=yes
2174 fi;
2175
2176
2177 if test "x${COMPILE_JNI}" = xyes; then
2178   CREATE_JNI_LIBRARIES_TRUE=
2179   CREATE_JNI_LIBRARIES_FALSE='#'
2180 else
2181   CREATE_JNI_LIBRARIES_TRUE='#'
2182   CREATE_JNI_LIBRARIES_FALSE=
2183 fi
2184
2185
2186 # Check whether --enable-core-jni or --disable-core-jni was given.
2187 if test "${enable_core_jni+set}" = set; then
2188   enableval="$enable_core_jni"
2189   case "${enableval}" in
2190                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2191                 no) COMPILE_CORE_JNI=no ;;
2192                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2193               esac
2194 else
2195   COMPILE_CORE_JNI=yes
2196 fi;
2197
2198
2199 if test "x${COMPILE_CORE_JNI}" = xyes; then
2200   CREATE_CORE_JNI_LIBRARIES_TRUE=
2201   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2202 else
2203   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2204   CREATE_CORE_JNI_LIBRARIES_FALSE=
2205 fi
2206
2207
2208 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2209 if test "${enable_default_preferences_peer+set}" = set; then
2210   enableval="$enable_default_preferences_peer"
2211   case "${enableval}" in
2212                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
2213                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
2214                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
2215                 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2216 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2217    { (exit 1); exit 1; }; } ;;
2218                 *) DEFAULT_PREFS_PEER=${enableval} ;;
2219               esac
2220 else
2221   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2222 fi;
2223
2224 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2225 if test "${enable_gconf_peer+set}" = set; then
2226   enableval="$enable_gconf_peer"
2227   case "${enableval}" in
2228                 yes) COMPILE_GCONF_PEER=yes ;;
2229                 no) COMPILE_GCONF_PEER=no ;;
2230                 *) COMPILE_GCONF_PEER=yes ;;
2231               esac
2232 else
2233   COMPILE_GCONF_PEER=yes
2234 fi;
2235
2236
2237 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2238   CREATE_GCONF_PEER_LIBRARIES_TRUE=
2239   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2240 else
2241   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2242   CREATE_GCONF_PEER_LIBRARIES_FALSE=
2243 fi
2244
2245
2246 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2247 if test "${enable_gconf_peers+set}" = set; then
2248   enableval="$enable_gconf_peers"
2249   { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2250 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2251    { (exit 1); exit 1; }; }
2252 fi;
2253
2254 # Check whether --enable-Werror or --disable-Werror was given.
2255 if test "${enable_Werror+set}" = set; then
2256   enableval="$enable_Werror"
2257   case "${enableval}" in
2258                 yes) ENABLE_WERROR=yes ;;
2259                 no) ENABLE_WERROR=no ;;
2260                 *) ENABLE_WERROR=default ;;
2261               esac
2262 else
2263   ENABLE_WERROR=default
2264 fi;
2265
2266 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2267 if test "${enable_default_toolkit+set}" = set; then
2268   enableval="$enable_default_toolkit"
2269
2270 fi;
2271 default_toolkit=$enable_default_toolkit
2272 if test "$default_toolkit" = ""; then
2273    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2274 fi
2275
2276
2277 # Check whether --enable-xmlj or --disable-xmlj was given.
2278 if test "${enable_xmlj+set}" = set; then
2279   enableval="$enable_xmlj"
2280   case "${enableval}" in
2281                 yes) COMPILE_XMLJ=yes ;;
2282                 no) COMPILE_XMLJ=no ;;
2283                 *) COMPILE_XMLJ=no ;;
2284               esac
2285 else
2286   COMPILE_XMLJ=no
2287 fi;
2288
2289
2290 if test "x${COMPILE_XMLJ}" = xyes; then
2291   CREATE_XMLJ_LIBRARY_TRUE=
2292   CREATE_XMLJ_LIBRARY_FALSE='#'
2293 else
2294   CREATE_XMLJ_LIBRARY_TRUE='#'
2295   CREATE_XMLJ_LIBRARY_FALSE=
2296 fi
2297
2298
2299 DEPDIR="${am__leading_dot}deps"
2300
2301           ac_config_commands="$ac_config_commands depfiles"
2302
2303
2304 am_make=${MAKE-make}
2305 cat > confinc << 'END'
2306 am__doit:
2307         @echo done
2308 .PHONY: am__doit
2309 END
2310 # If we don't find an include directive, just comment out the code.
2311 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2312 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2313 am__include="#"
2314 am__quote=
2315 _am_result=none
2316 # First try GNU make style include.
2317 echo "include confinc" > confmf
2318 # We grep out `Entering directory' and `Leaving directory'
2319 # messages which can occur if `w' ends up in MAKEFLAGS.
2320 # In particular we don't look at `^make:' because GNU make might
2321 # be invoked under some other name (usually "gmake"), in which
2322 # case it prints its new name instead of `make'.
2323 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2324    am__include=include
2325    am__quote=
2326    _am_result=GNU
2327 fi
2328 # Now try BSD make style include.
2329 if test "$am__include" = "#"; then
2330    echo '.include "confinc"' > confmf
2331    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2332       am__include=.include
2333       am__quote="\""
2334       _am_result=BSD
2335    fi
2336 fi
2337
2338
2339 echo "$as_me:$LINENO: result: $_am_result" >&5
2340 echo "${ECHO_T}$_am_result" >&6
2341 rm -f confinc confmf
2342
2343 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2344 if test "${enable_dependency_tracking+set}" = set; then
2345   enableval="$enable_dependency_tracking"
2346
2347 fi;
2348 if test "x$enable_dependency_tracking" != xno; then
2349   am_depcomp="$ac_aux_dir/depcomp"
2350   AMDEPBACKSLASH='\'
2351 fi
2352
2353
2354 if test "x$enable_dependency_tracking" != xno; then
2355   AMDEP_TRUE=
2356   AMDEP_FALSE='#'
2357 else
2358   AMDEP_TRUE='#'
2359   AMDEP_FALSE=
2360 fi
2361
2362
2363
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 if test -n "$ac_tool_prefix"; then
2370   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2372 echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   if test -n "$CC"; then
2378   ac_cv_prog_CC="$CC" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383   IFS=$as_save_IFS
2384   test -z "$as_dir" && as_dir=.
2385   for ac_exec_ext in '' $ac_executable_extensions; do
2386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389     break 2
2390   fi
2391 done
2392 done
2393
2394 fi
2395 fi
2396 CC=$ac_cv_prog_CC
2397 if test -n "$CC"; then
2398   echo "$as_me:$LINENO: result: $CC" >&5
2399 echo "${ECHO_T}$CC" >&6
2400 else
2401   echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2403 fi
2404
2405 fi
2406 if test -z "$ac_cv_prog_CC"; then
2407   ac_ct_CC=$CC
2408   # Extract the first word of "gcc", so it can be a program name with args.
2409 set dummy gcc; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   if test -n "$ac_ct_CC"; then
2416   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_exec_ext in '' $ac_executable_extensions; do
2424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425     ac_cv_prog_ac_ct_CC="gcc"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430 done
2431
2432 fi
2433 fi
2434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2435 if test -n "$ac_ct_CC"; then
2436   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2437 echo "${ECHO_T}$ac_ct_CC" >&6
2438 else
2439   echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2441 fi
2442
2443   CC=$ac_ct_CC
2444 else
2445   CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449   if test -n "$ac_tool_prefix"; then
2450   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467     ac_cv_prog_CC="${ac_tool_prefix}cc"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473
2474 fi
2475 fi
2476 CC=$ac_cv_prog_CC
2477 if test -n "$CC"; then
2478   echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6
2480 else
2481   echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2483 fi
2484
2485 fi
2486 if test -z "$ac_cv_prog_CC"; then
2487   ac_ct_CC=$CC
2488   # Extract the first word of "cc", so it can be a program name with args.
2489 set dummy cc; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   if test -n "$ac_ct_CC"; then
2496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503   for ac_exec_ext in '' $ac_executable_extensions; do
2504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505     ac_cv_prog_ac_ct_CC="cc"
2506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510 done
2511
2512 fi
2513 fi
2514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515 if test -n "$ac_ct_CC"; then
2516   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2517 echo "${ECHO_T}$ac_ct_CC" >&6
2518 else
2519   echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523   CC=$ac_ct_CC
2524 else
2525   CC="$ac_cv_prog_CC"
2526 fi
2527
2528 fi
2529 if test -z "$CC"; then
2530   # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540   ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549        ac_prog_rejected=yes
2550        continue
2551      fi
2552     ac_cv_prog_CC="cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558
2559 if test $ac_prog_rejected = yes; then
2560   # We found a bogon in the path, so make sure we never use it.
2561   set dummy $ac_cv_prog_CC
2562   shift
2563   if test $# != 0; then
2564     # We chose a different compiler from the bogus one.
2565     # However, it has the same basename, so the bogon will be chosen
2566     # first if we set CC to just the basename; use the full file name.
2567     shift
2568     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569   fi
2570 fi
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6
2577 else
2578   echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
2581
2582 fi
2583 if test -z "$CC"; then
2584   if test -n "$ac_tool_prefix"; then
2585   for ac_prog in cl
2586   do
2587     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   if test -n "$CC"; then
2595   ac_cv_prog_CC="$CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610
2611 fi
2612 fi
2613 CC=$ac_cv_prog_CC
2614 if test -n "$CC"; then
2615   echo "$as_me:$LINENO: result: $CC" >&5
2616 echo "${ECHO_T}$CC" >&6
2617 else
2618   echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6
2620 fi
2621
2622     test -n "$CC" && break
2623   done
2624 fi
2625 if test -z "$CC"; then
2626   ac_ct_CC=$CC
2627   for ac_prog in cl
2628 do
2629   # Extract the first word of "$ac_prog", so it can be a program name with args.
2630 set dummy $ac_prog; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636   if test -n "$ac_ct_CC"; then
2637   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642   IFS=$as_save_IFS
2643   test -z "$as_dir" && as_dir=.
2644   for ac_exec_ext in '' $ac_executable_extensions; do
2645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646     ac_cv_prog_ac_ct_CC="$ac_prog"
2647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648     break 2
2649   fi
2650 done
2651 done
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658 echo "${ECHO_T}$ac_ct_CC" >&6
2659 else
2660   echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2662 fi
2663
2664   test -n "$ac_ct_CC" && break
2665 done
2666
2667   CC=$ac_ct_CC
2668 fi
2669
2670 fi
2671
2672
2673 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: no acceptable C compiler found in \$PATH
2676 See \`config.log' for more details." >&2;}
2677    { (exit 1); exit 1; }; }
2678
2679 # Provide some information about the compiler.
2680 echo "$as_me:$LINENO:" \
2681      "checking for C compiler version" >&5
2682 ac_compiler=`set X $ac_compile; echo $2`
2683 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2684   (eval $ac_compiler --version </dev/null >&5) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2689   (eval $ac_compiler -v </dev/null >&5) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2694   (eval $ac_compiler -V </dev/null >&5) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 # FIXME: Cleanup?
2715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2716   (eval $ac_link) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; then
2720   gcc_no_link=no
2721 else
2722   gcc_no_link=yes
2723 fi
2724
2725 if test x$gcc_no_link = xyes; then
2726   # Setting cross_compile will disable run tests; it will
2727   # also disable AC_CHECK_FILE but that's generally
2728   # correct if we can't link.
2729   cross_compiling=yes
2730   EXEEXT=
2731 else
2732   cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2756   (eval $ac_link_default) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; then
2760   # Find the output, starting from the most likely.  This scheme is
2761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2762 # resort.
2763
2764 # Be careful to initialize this variable, since it used to be cached.
2765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2766 ac_cv_exeext=
2767 # b.out is created by i960 compilers.
2768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2769 do
2770   test -f "$ac_file" || continue
2771   case $ac_file in
2772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2773         ;;
2774     conftest.$ac_ext )
2775         # This is the source file.
2776         ;;
2777     [ab].out )
2778         # We found the default executable, but exeext='' is most
2779         # certainly right.
2780         break;;
2781     *.* )
2782         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2783         # FIXME: I believe we export ac_cv_exeext for Libtool,
2784         # but it would be cool to find out if it's true.  Does anybody
2785         # maintain Libtool? --akim.
2786         export ac_cv_exeext
2787         break;;
2788     * )
2789         break;;
2790   esac
2791 done
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: C compiler cannot create executables
2799 See \`config.log' for more details." >&2;}
2800    { (exit 77); exit 77; }; }
2801 fi
2802
2803 ac_exeext=$ac_cv_exeext
2804 echo "$as_me:$LINENO: result: $ac_file" >&5
2805 echo "${ECHO_T}$ac_file" >&6
2806
2807 # Check the compiler produces executables we can run.  If not, either
2808 # the compiler is broken, or we cross compile.
2809 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2810 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2811 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2812 # If not cross compiling, check that we can run a simple program.
2813 if test "$cross_compiling" != yes; then
2814   if { ac_try='./$ac_file'
2815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; }; then
2820     cross_compiling=no
2821   else
2822     if test "$cross_compiling" = maybe; then
2823         cross_compiling=yes
2824     else
2825         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&2;}
2831    { (exit 1); exit 1; }; }
2832     fi
2833   fi
2834 fi
2835 echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6
2837
2838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2839 ac_clean_files=$ac_clean_files_save
2840 # Check the compiler produces executables we can run.  If not, either
2841 # the compiler is broken, or we cross compile.
2842 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2844 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2845 echo "${ECHO_T}$cross_compiling" >&6
2846
2847 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850   (eval $ac_link) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; then
2854   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2855 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2856 # work properly (i.e., refer to `conftest.exe'), while it won't with
2857 # `rm'.
2858 for ac_file in conftest.exe conftest conftest.*; do
2859   test -f "$ac_file" || continue
2860   case $ac_file in
2861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2862     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863           export ac_cv_exeext
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 fi
2884 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2886 if test "${ac_cv_objext+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.o conftest.obj
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906   (eval $ac_compile) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; then
2910   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2911   case $ac_file in
2912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2913     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914        break;;
2915   esac
2916 done
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2922 See \`config.log' for more details." >&5
2923 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&2;}
2925    { (exit 1); exit 1; }; }
2926 fi
2927
2928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2929 fi
2930 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2931 echo "${ECHO_T}$ac_cv_objext" >&6
2932 OBJEXT=$ac_cv_objext
2933 ac_objext=$OBJEXT
2934 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2935 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2936 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945
2946 int
2947 main ()
2948 {
2949 #ifndef __GNUC__
2950        choke me
2951 #endif
2952
2953   ;
2954   return 0;
2955 }
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959   (eval $ac_compile) 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_c_werror_flag"
2967                          || test ! -s conftest.err'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975   (eval $ac_try) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 ac_compiler_gnu=no
2985 fi
2986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2988
2989 fi
2990 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2991 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2992 GCC=`test $ac_compiler_gnu = yes && echo yes`
2993 ac_test_CFLAGS=${CFLAGS+set}
2994 ac_save_CFLAGS=$CFLAGS
2995 CFLAGS="-g"
2996 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007
3008 int
3009 main ()
3010 {
3011
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018   (eval $ac_compile) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_c_werror_flag"
3026                          || test ! -s conftest.err'
3027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028   (eval $ac_try) 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   ac_cv_prog_cc_g=yes
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ac_cv_prog_cc_g=no
3044 fi
3045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3046 fi
3047 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3048 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3049 if test "$ac_test_CFLAGS" = set; then
3050   CFLAGS=$ac_save_CFLAGS
3051 elif test $ac_cv_prog_cc_g = yes; then
3052   if test "$GCC" = yes; then
3053     CFLAGS="-g -O2"
3054   else
3055     CFLAGS="-g"
3056   fi
3057 else
3058   if test "$GCC" = yes; then
3059     CFLAGS="-O2"
3060   else
3061     CFLAGS=
3062   fi
3063 fi
3064 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3065 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3066 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3067   echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069   ac_cv_prog_cc_stdc=no
3070 ac_save_CC=$CC
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <stdarg.h>
3078 #include <stdio.h>
3079 #include <sys/types.h>
3080 #include <sys/stat.h>
3081 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3082 struct buf { int x; };
3083 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3084 static char *e (p, i)
3085      char **p;
3086      int i;
3087 {
3088   return p[i];
3089 }
3090 static char *f (char * (*g) (char **, int), char **p, ...)
3091 {
3092   char *s;
3093   va_list v;
3094   va_start (v,p);
3095   s = g (p, va_arg (v,int));
3096   va_end (v);
3097   return s;
3098 }
3099
3100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3101    function prototypes and stuff, but not '\xHH' hex character constants.
3102    These don't provoke an error unfortunately, instead are silently treated
3103    as 'x'.  The following induces an error, until -std1 is added to get
3104    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3105    array size at least.  It's necessary to write '\x00'==0 to get something
3106    that's true only with -std1.  */
3107 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3108
3109 int test (int i, double x);
3110 struct s1 {int (*f) (int a);};
3111 struct s2 {int (*f) (double a);};
3112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3113 int argc;
3114 char **argv;
3115 int
3116 main ()
3117 {
3118 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 # Don't try gcc -ansi; that turns off useful extensions and
3124 # breaks some systems' header files.
3125 # AIX                   -qlanglvl=ansi
3126 # Ultrix and OSF/1      -std1
3127 # HP-UX 10.20 and later -Ae
3128 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3129 # SVR4                  -Xc -D__EXTENSIONS__
3130 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3131 do
3132   CC="$ac_save_CC $ac_arg"
3133   rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135   (eval $ac_compile) 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } &&
3142          { ac_try='test -z "$ac_c_werror_flag"
3143                          || test ! -s conftest.err'
3144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151   (eval $ac_try) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cc_stdc=$ac_arg
3156 break
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 fi
3162 rm -f conftest.err conftest.$ac_objext
3163 done
3164 rm -f conftest.$ac_ext conftest.$ac_objext
3165 CC=$ac_save_CC
3166
3167 fi
3168
3169 case "x$ac_cv_prog_cc_stdc" in
3170   x|xno)
3171     echo "$as_me:$LINENO: result: none needed" >&5
3172 echo "${ECHO_T}none needed" >&6 ;;
3173   *)
3174     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3176     CC="$CC $ac_cv_prog_cc_stdc" ;;
3177 esac
3178
3179 # Some people use a C++ compiler to compile C.  Since we use `exit',
3180 # in C++ we need to declare it.  In case someone uses the same compiler
3181 # for both compiling C and C++ we need to have the C++ compiler decide
3182 # the declaration of exit, since it's the most demanding environment.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 #ifndef __cplusplus
3185   choke me
3186 #endif
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190   (eval $ac_compile) 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } &&
3197          { ac_try='test -z "$ac_c_werror_flag"
3198                          || test ! -s conftest.err'
3199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200   (eval $ac_try) 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; } &&
3204          { ac_try='test -s conftest.$ac_objext'
3205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206   (eval $ac_try) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; }; then
3210   for ac_declaration in \
3211    '' \
3212    'extern "C" void std::exit (int) throw (); using std::exit;' \
3213    'extern "C" void std::exit (int); using std::exit;' \
3214    'extern "C" void exit (int) throw ();' \
3215    'extern "C" void exit (int);' \
3216    'void exit (int);'
3217 do
3218   cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224 $ac_declaration
3225 #include <stdlib.h>
3226 int
3227 main ()
3228 {
3229 exit (42);
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_c_werror_flag"
3244                          || test ! -s conftest.err'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 continue
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_c_werror_flag"
3289                          || test ! -s conftest.err'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   break
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 fi
3307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308 done
3309 rm -f conftest*
3310 if test -n "$ac_declaration"; then
3311   echo '#ifdef __cplusplus' >>confdefs.h
3312   echo $ac_declaration      >>confdefs.h
3313   echo '#endif'             >>confdefs.h
3314 fi
3315
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 fi
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328 depcc="$CC"   am_compiler_list=
3329
3330 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3331 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3332 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3336   # We make a subdir and do the tests there.  Otherwise we can end up
3337   # making bogus files that we don't know about and never remove.  For
3338   # instance it was reported that on HP-UX the gcc test will end up
3339   # making a dummy file named `D' -- because `-MD' means `put the output
3340   # in D'.
3341   mkdir conftest.dir
3342   # Copy depcomp to subdir because otherwise we won't find it if we're
3343   # using a relative directory.
3344   cp "$am_depcomp" conftest.dir
3345   cd conftest.dir
3346   # We will build objects and dependencies in a subdirectory because
3347   # it helps to detect inapplicable dependency modes.  For instance
3348   # both Tru64's cc and ICC support -MD to output dependencies as a
3349   # side effect of compilation, but ICC will put the dependencies in
3350   # the current directory while Tru64 will put them in the object
3351   # directory.
3352   mkdir sub
3353
3354   am_cv_CC_dependencies_compiler_type=none
3355   if test "$am_compiler_list" = ""; then
3356      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3357   fi
3358   for depmode in $am_compiler_list; do
3359     # Setup a source with many dependencies, because some compilers
3360     # like to wrap large dependency lists on column 80 (with \), and
3361     # we should not choose a depcomp mode which is confused by this.
3362     #
3363     # We need to recreate these files for each test, as the compiler may
3364     # overwrite some of them when testing with obscure command lines.
3365     # This happens at least with the AIX C compiler.
3366     : > sub/conftest.c
3367     for i in 1 2 3 4 5 6; do
3368       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3369       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3370       # Solaris 8's {/usr,}/bin/sh.
3371       touch sub/conftst$i.h
3372     done
3373     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3374
3375     case $depmode in
3376     nosideeffect)
3377       # after this tag, mechanisms are not by side-effect, so they'll
3378       # only be used when explicitly requested
3379       if test "x$enable_dependency_tracking" = xyes; then
3380         continue
3381       else
3382         break
3383       fi
3384       ;;
3385     none) break ;;
3386     esac
3387     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3388     # mode.  It turns out that the SunPro C++ compiler does not properly
3389     # handle `-M -o', and we need to detect this.
3390     if depmode=$depmode \
3391        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3392        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3393        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3394          >/dev/null 2>conftest.err &&
3395        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3396        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3397        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3398       # icc doesn't choke on unknown options, it will just issue warnings
3399       # or remarks (even with -Werror).  So we grep stderr for any message
3400       # that says an option was ignored or not supported.
3401       # When given -MP, icc 7.0 and 7.1 complain thusly:
3402       #   icc: Command line warning: ignoring option '-M'; no argument required
3403       # The diagnosis changed in icc 8.0:
3404       #   icc: Command line remark: option '-MP' not supported
3405       if (grep 'ignoring option' conftest.err ||
3406           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3407         am_cv_CC_dependencies_compiler_type=$depmode
3408         break
3409       fi
3410     fi
3411   done
3412
3413   cd ..
3414   rm -rf conftest.dir
3415 else
3416   am_cv_CC_dependencies_compiler_type=none
3417 fi
3418
3419 fi
3420 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3421 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3422 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3423
3424
3425
3426 if
3427   test "x$enable_dependency_tracking" != xno \
3428   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3429   am__fastdepCC_TRUE=
3430   am__fastdepCC_FALSE='#'
3431 else
3432   am__fastdepCC_TRUE='#'
3433   am__fastdepCC_FALSE=
3434 fi
3435
3436
3437
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3444 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3447   CPP=
3448 fi
3449 if test -z "$CPP"; then
3450   if test "${ac_cv_prog_CPP+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453       # Double quotes because CPP needs to be expanded
3454     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455     do
3456       ac_preproc_ok=false
3457 for ac_c_preproc_warn_flag in '' yes
3458 do
3459   # Use a header file that comes with gcc, so configuring glibc
3460   # with a fresh cross-compiler works.
3461   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462   # <limits.h> exists even on freestanding compilers.
3463   # On the NeXT, cc -E runs the code through the compiler's parser,
3464   # not just through cpp. "Syntax error" is here to catch this case.
3465   cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471 #ifdef __STDC__
3472 # include <limits.h>
3473 #else
3474 # include <assert.h>
3475 #endif
3476                      Syntax error
3477 _ACEOF
3478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } >/dev/null; then
3486   if test -s conftest.err; then
3487     ac_cpp_err=$ac_c_preproc_warn_flag
3488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489   else
3490     ac_cpp_err=
3491   fi
3492 else
3493   ac_cpp_err=yes
3494 fi
3495 if test -z "$ac_cpp_err"; then
3496   :
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   # Broken: fails on valid input.
3502 continue
3503 fi
3504 rm -f conftest.err conftest.$ac_ext
3505
3506   # OK, works on sane cases.  Now check whether non-existent headers
3507   # can be detected and how.
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } >/dev/null; then
3524   if test -s conftest.err; then
3525     ac_cpp_err=$ac_c_preproc_warn_flag
3526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527   else
3528     ac_cpp_err=
3529   fi
3530 else
3531   ac_cpp_err=yes
3532 fi
3533 if test -z "$ac_cpp_err"; then
3534   # Broken: success on invalid input.
3535 continue
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Passes both tests.
3541 ac_preproc_ok=:
3542 break
3543 fi
3544 rm -f conftest.err conftest.$ac_ext
3545
3546 done
3547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548 rm -f conftest.err conftest.$ac_ext
3549 if $ac_preproc_ok; then
3550   break
3551 fi
3552