1 dnl Process this file with autoconf to produce a configure script.
3 dnl -----------------------------------------------------------
4 dnl Turning off cache for debug reasons
5 dnl -----------------------------------------------------------
6 dnl define([AC_CACHE_LOAD], )dnl
7 dnl define([AC_CACHE_SAVE], )dnl
9 AC_INIT([GNU Classpath],[0.98-pre],[classpath@gnu.org],[classpath])
10 AC_CONFIG_SRCDIR(java/lang/System.java)
13 AC_CONFIG_AUX_DIR(../..)
19 AC_ARG_ENABLE(java-maintainer-mode,
20 AS_HELP_STRING([--enable-java-maintainer-mode],
21 [allow rebuilding of .class and .h files]))
22 AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
26 # We would like to our source tree to be readonly. However when releases or
27 # pre-releases are generated, the man pages need to be included as they are
28 # converted from the texi files via perl which we don't require end users to
30 # Therefore we have --enable-generated-files-in-srcdir to do just that.
32 AC_MSG_CHECKING([whether to place generated files in the source directory])
33 dnl generated-files-in-srcdir is disabled by default
34 AC_ARG_ENABLE(generated-files-in-srcdir,
35 [ --enable-generated-files-in-srcdir
36 put copies of generated files in source dir
37 intended for creating source tarballs for users
38 without texinfo, perl, bison or flex.],
39 generated_files_in_srcdir=$enableval,
40 generated_files_in_srcdir=no)
42 AC_MSG_RESULT($generated_files_in_srcdir)
43 AM_CONDITIONAL(GENINSRC, test x$generated_files_in_srcdir = xyes)
46 # Find the rest of the source tree framework.
47 AM_ENABLE_MULTILIB(, ../..)
49 dnl -----------------------------------------------------------
50 dnl Fold all IA-32 CPU architectures into "x86"
51 dnl -----------------------------------------------------------
52 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
54 dnl -----------------------------------------------------------
55 dnl We will not track/change lib version until we reach version 1.0
56 dnl at which time we'll have to be more anal about such things
57 dnl -----------------------------------------------------------
58 AC_SUBST(LIBVERSION, "0:0:0")
68 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
69 AC_SUBST(CLASSPATH_MODULE)
71 CLASSPATH_CONVENIENCE="-no-undefined"
72 AC_SUBST(CLASSPATH_CONVENIENCE)
75 AM_INIT_AUTOMAKE([1.9.0 gnu std-options tar-ustar -Wno-portability])
76 AC_CONFIG_HEADERS([include/config.h])
77 AC_PREFIX_DEFAULT(/usr/local/classpath)
82 dnl -----------------------------------------------------------
83 dnl Enable collections.jar (disabled by default)
84 dnl -----------------------------------------------------------
85 AC_ARG_ENABLE([collections],
86 [AS_HELP_STRING(--enable-collections,create collections.jar [default=no])],
87 [case x"${enableval}" in
88 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
89 xno) COMPILE_COLLECTIONS=no ;;
90 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
91 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
93 [COMPILE_COLLECTIONS=no])
94 AM_CONDITIONAL(CREATE_COLLECTIONS, test "x${COMPILE_COLLECTIONS}" = xyes)
96 dnl -----------------------------------------------------------
97 dnl Enable JNI libraries (enabled by default)
98 dnl -----------------------------------------------------------
100 [AS_HELP_STRING(--enable-jni,compile JNI source [default=yes])],
101 [case "${enableval}" in
102 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
103 no) COMPILE_JNI=no ;;
104 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
107 AM_CONDITIONAL(CREATE_JNI_LIBRARIES, test "x${COMPILE_JNI}" = xyes)
109 dnl -----------------------------------------------------------
110 dnl Enable core JNI libraries (enabled by default)
111 dnl -----------------------------------------------------------
112 AC_ARG_ENABLE([core-jni],
113 [AS_HELP_STRING(--enable-core-jni,
114 compile JNI sources for core [default=yes])],
115 [case "${enableval}" in
116 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
117 no) COMPILE_CORE_JNI=no ;;
118 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
120 [COMPILE_CORE_JNI=yes])
121 AM_CONDITIONAL(CREATE_CORE_JNI_LIBRARIES, test "x${COMPILE_CORE_JNI}" = xyes)
123 dnl -----------------------------------------------------------
124 dnl Default Preference Backend
125 dnl -----------------------------------------------------------
126 AC_ARG_ENABLE([default-preferences-peer],
127 [AS_HELP_STRING([--enable-default-preferences-peer@<:@=peer type or class name@:>@],
128 [specify one of: "gconf" [default] for a GConf based backend, "file" for a file based one, "memory" for a transient one, or a fully qualified class name implementing java.util.prefs.PreferencesFactory])],
129 [case "${enableval}" in
130 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
131 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
132 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
133 no|false) AC_MSG_ERROR(bad value '${enableval}' for --enable-default-preferences-peer) ;;
134 *) DEFAULT_PREFS_PEER=${enableval} ;;
136 [DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory])
137 dnl AC_SUBST(DEFAULT_PREFS_PEER)
139 dnl -----------------------------------------------------------
140 dnl GConf native peer (enabled by default)
141 dnl -----------------------------------------------------------
142 AC_ARG_ENABLE([gconf-peer],
143 [AS_HELP_STRING(--disable-gconf-peer,compile GConf native peers (disabled by --disable-jni) [default=yes])],
144 [case "${enableval}" in
145 yes) COMPILE_GCONF_PEER=yes ;;
146 no) COMPILE_GCONF_PEER=no ;;
147 *) COMPILE_GCONF_PEER=yes ;;
149 [COMPILE_GCONF_PEER=yes])
150 AM_CONDITIONAL(CREATE_GCONF_PEER_LIBRARIES, test "x${COMPILE_GCONF_PEER}" = xyes)
152 dnl -----------------------------------------------------------
153 dnl GConf native peer error checking
154 dnl -----------------------------------------------------------
155 AC_ARG_ENABLE([gconf-peers],,AC_MSG_ERROR([No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer]))
157 dnl ------------------------------------------------------------
158 dnl GStreamer based sound provider backend (disabled by default)
159 dnl ------------------------------------------------------------
160 AC_ARG_ENABLE([gstreamer-peer],
161 [AS_HELP_STRING(--enable-gstreamer-peer,compile GStreamer native peers (disabled by --disable-jni) [default=no])],
162 [case "${enableval}" in
163 yes) COMPILE_GSTREAMER_PEER=yes ;;
164 no) COMPILE_GSTREAMER_PEER=no ;;
165 *) COMPILE_GSTREAMER_PEER=default ;;
167 [COMPILE_GSTREAMER_PEER=default])
168 AM_CONDITIONAL(CREATE_GSTREAMER_PEER_LIBRARIES, test "x${COMPILE_GSTREAMER_PEER}" = xyes)
170 dnl -----------------------------------------------------------
171 dnl GStreamer native peer error checking
172 dnl -----------------------------------------------------------
173 AC_ARG_ENABLE([gstreamer-peers],,AC_MSG_ERROR([No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer]))
175 dnl ------------------------------------------------------------
176 dnl Whether to compile with -Werror or not (disabled by default)
177 dnl ------------------------------------------------------------
178 AC_ARG_ENABLE([Werror],
179 [AS_HELP_STRING(--enable-Werror,whether to compile C code with -Werror which turns any compiler warning into a compilation failure [default=no])],
180 [case "${enableval}" in
181 yes) ENABLE_WERROR=yes ;;
182 no) ENABLE_WERROR=no ;;
183 *) ENABLE_WERROR=default ;;
185 [ENABLE_WERROR=default])
187 dnl -----------------------------------------------------------
188 dnl Default AWT toolkit
189 dnl -----------------------------------------------------------
190 AC_ARG_ENABLE(default-toolkit,
191 AS_HELP_STRING([--enable-default-toolkit],
192 [fully qualified class name of default AWT toolkit]))
193 default_toolkit=$enable_default_toolkit
194 if test "$default_toolkit" = ""; then
195 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
197 AC_SUBST(default_toolkit)
199 dnl -----------------------------------------------------------
200 dnl Native libxml/xslt library (disabled by default)
201 dnl -----------------------------------------------------------
202 AC_ARG_ENABLE([xmlj],
203 [AS_HELP_STRING(--enable-xmlj,compile native libxml/xslt library [default=no])],
204 [case "${enableval}" in
205 yes) COMPILE_XMLJ=yes ;;
206 no) COMPILE_XMLJ=no ;;
207 *) COMPILE_XMLJ=no ;;
210 AM_CONDITIONAL(CREATE_XMLJ_LIBRARY, test "x${COMPILE_XMLJ}" = xyes)
212 dnl -----------------------------------------------------------
213 dnl ALSA code (enabled by default)
214 dnl -----------------------------------------------------------
215 AC_ARG_ENABLE([alsa],
216 [AS_HELP_STRING(--disable-alsa,compile ALSA providers (enable by --enable-alsa) [default=yes])],
217 [case "${enableval}" in
218 yes) COMPILE_ALSA=yes ;;
219 no) COMPILE_ALSA=no ;;
220 *) COMPILE_ALSA=yes ;;
222 [AC_CHECK_HEADERS([alsa/asoundlib.h],
223 [AC_CHECK_LIB([asound], [snd_seq_open], COMPILE_ALSA=yes,COMPILE_ALSA=no)],
225 AM_CONDITIONAL(CREATE_ALSA_LIBRARIES, test "x${COMPILE_ALSA}" = xyes)
227 dnl -----------------------------------------------------------
228 dnl DSSI code (enabled by default)
229 dnl -----------------------------------------------------------
230 AC_ARG_ENABLE([dssi],
231 [AS_HELP_STRING(--disable-dssi,compile DSSI providers (enable by --enable-dssi) [default=yes])],
232 [case "${enableval}" in
233 yes) COMPILE_DSSI=yes ;;
234 no) COMPILE_DSSI=no ;;
235 *) COMPILE_DSSI=yes ;;
238 AC_CHECK_HEADERS([dssi.h], [
239 AC_CHECK_HEADERS([jack/jack.h],COMPILE_DSSI=yes)])])
240 AM_CONDITIONAL(CREATE_DSSI_LIBRARIES, test "x${COMPILE_DSSI}" = xyes)
242 dnl -----------------------------------------------------------
243 dnl GTK native peer (enabled by default)
244 dnl -----------------------------------------------------------
245 AC_ARG_ENABLE([gtk-peer],
246 [AS_HELP_STRING(--disable-gtk-peer,compile GTK native peers (disabled by --disable-jni) [default=yes])],
247 [case "${enableval}" in
248 yes) COMPILE_GTK_PEER=yes ;;
249 no) COMPILE_GTK_PEER=no ;;
250 *) COMPILE_GTK_PEER=yes ;;
252 [COMPILE_GTK_PEER=yes])
253 AM_CONDITIONAL(CREATE_GTK_PEER_LIBRARIES, test "x${COMPILE_GTK_PEER}" = xyes)
255 dnl -----------------------------------------------------------
256 dnl GTK native peer error checking
257 dnl -----------------------------------------------------------
258 AC_ARG_ENABLE([gtk-peers],,AC_MSG_ERROR([No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer]))
260 dnl -----------------------------------------------------------
261 dnl Qt native peer (disabled by default)
262 dnl -----------------------------------------------------------
263 AC_ARG_ENABLE([qt-peer],
264 [AS_HELP_STRING(--enable-qt-peer,compile Qt4 native peers (disabled by --disable-jni) [default=no])],
265 [case "${enableval}" in
266 yes) COMPILE_QT_PEER=yes ;;
267 no) COMPILE_QT_PEER=no ;;
268 *) COMPILE_QT_PEER=yes ;;
270 [COMPILE_QT_PEER=no])
271 AM_CONDITIONAL(CREATE_QT_PEER_LIBRARIES, test "x${COMPILE_QT_PEER}" = xyes)
273 dnl -----------------------------------------------------------
274 dnl Plugin (enabled by default)
275 dnl -----------------------------------------------------------
276 AC_ARG_ENABLE([plugin],
277 [AS_HELP_STRING(--disable-plugin,compile gcjwebplugin (disabled by --disable-plugin) [default=yes])],
278 [case "${enableval}" in
279 yes) COMPILE_PLUGIN=yes ;;
280 no) COMPILE_PLUGIN=no ;;
281 *) COMPILE_PLUGIN=yes ;;
283 [COMPILE_PLUGIN=yes])
284 AM_CONDITIONAL(CREATE_PLUGIN, test "x${COMPILE_PLUGIN}" = xyes)
286 dnl -----------------------------------------------------------
287 dnl Native java.math.BigInteger (enabled by default)
288 dnl -----------------------------------------------------------
290 [AS_HELP_STRING(--enable-gmp,
291 compile native java.math.BigInteger library (disabled by --disable-gmp) [default=yes])],
292 [case "${enableval}" in
293 yes|true) COMPILE_GMP=yes ;;
294 no|false) COMPILE_GMP=no ;;
295 *) COMPILE_GMP=yes ;;
299 dnl -----------------------------------------------------------
300 dnl GJDoc (enabled by default)
301 dnl -----------------------------------------------------------
302 AC_ARG_ENABLE([gjdoc],
303 [AS_HELP_STRING(--disable-gjdoc,compile GJDoc (disabled by --disable-gjdoc) [default=yes])],
304 [case "${enableval}" in
305 yes) COMPILE_GJDOC=yes ;;
306 no) COMPILE_GJDOC=no ;;
307 *) COMPILE_GJDOC=yes ;;
310 AM_CONDITIONAL(CREATE_GJDOC, test "x${COMPILE_GJDOC}" = xyes)
312 dnl GCJ LOCAL: Calculates and substitutes toolexeclibdir. $libdir is
313 dnl defined to the same value for all multilibs. We define toolexeclibdir
314 dnl so that we can refer to the multilib installation directories from
315 dnl classpath's build files.
316 dnl -----------------------------------------------------------
317 CLASSPATH_TOOLEXECLIBDIR
319 dnl -----------------------------------------------------------
320 dnl Sets the native libraries installation dir
321 dnl -----------------------------------------------------------
322 dnl GCJ LOCAL: default to ${toolexeclibdir}/gcj-${gcc_version}-${libgcj_soversion}
323 AC_ARG_WITH([native-libdir],
324 [AS_HELP_STRING(--with-native-libdir,sets the installation directory for native libraries [default='${libdir}/${PACKAGE}'])],
326 nativeexeclibdir=${withval}
329 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[[^#]].*:/ { print $1 }' ${srcdir}/../libtool-version`
332 AC_SUBST(nativeexeclibdir)
334 dnl -----------------------------------------------------------
335 dnl Sets the Java library installation dir.
336 dnl -----------------------------------------------------------
337 AC_ARG_WITH([glibj-dir],
338 [AS_HELP_STRING(--with-glibj-dir,sets the installation directory for glibj.zip [default='${libdir}/${PACKAGE}'])],
343 glibjdir='${datadir}/${PACKAGE}'
348 dnl -----------------------------------------------------------
349 dnl Sets the Antlr jar to use for compiling gjdoc
350 dnl -----------------------------------------------------------
351 AC_ARG_WITH([antlr-jar],
352 [AS_HELP_STRING([--with-antlr-jar=file],[Use ANTLR from the specified jar file])],
357 ANTLR_JAR="$ANTLR_JAR"
360 dnl -----------------------------------------------------------
361 dnl Regenerate headers at build time (enabled if not found)
362 dnl -----------------------------------------------------------
363 AC_MSG_CHECKING([whether to regenerate the headers])
364 AC_ARG_ENABLE([regen-headers],
365 [AS_HELP_STRING(--enable-regen-headers,automatically regenerate JNI headers [default=yes if headers don't exist])],
366 [case "${enableval}" in
367 yes) REGENERATE_JNI_HEADERS=yes ;;
368 no) REGENERATE_JNI_HEADERS=no ;;
369 *) REGENERATE_JNI_HEADERS=yes ;;
371 [if test -e ${srcdir}/include/java_lang_VMSystem.h; then
372 REGENERATE_JNI_HEADERS=no ;
374 REGENERATE_JNI_HEADERS=yes ;
376 AC_MSG_RESULT(${REGENERATE_JNI_HEADERS})
377 AM_CONDITIONAL(CREATE_JNI_HEADERS, test "x${REGENERATE_JNI_HEADERS}" = xyes)
379 dnl ------------------------------------------------------------------------
380 dnl Regenerate GJDoc parser at build time (enabled if not found)
381 dnl ------------------------------------------------------------------------
382 AC_MSG_CHECKING([whether to regenerate the GJDoc parser])
383 AC_ARG_ENABLE([regen-gjdoc-parser],
384 [AS_HELP_STRING(--enable-regen-gjdoc-parser,automatically regenerate the GJDoc parser [default=yes if generated source doesn't exist])],
385 [case "${enableval}" in
386 yes) REGENERATE_GJDOC_PARSER=yes ;;
387 no) REGENERATE_GJDOC_PARSER=no ;;
388 *) REGENERATE_GJDOC_PARSER=yes ;;
390 [if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
391 REGENERATE_GJDOC_PARSER=no ;
393 REGENERATE_GJDOC_PARSER=yes ;
395 AC_MSG_RESULT(${REGENERATE_GJDOC_PARSER})
396 AM_CONDITIONAL(CREATE_GJDOC_PARSER, test "x${REGENERATE_GJDOC_PARSER}" = xyes)
398 dnl -----------------------------------------------------------
399 dnl Enable tool wrapper binaries (disabled by default)
400 dnl -----------------------------------------------------------
401 AC_ARG_ENABLE([tool-wrappers],
402 [AS_HELP_STRING(--enable-tool-wrappers,create tool wrapper binaries [default=no])],
403 [case x"${enableval}" in
405 COMPILE_WRAPPERS=yes;
406 AC_CHECK_HEADERS([ltdl.h],, [AC_MSG_ERROR(cannot find ltdl.h)])
407 AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR(cannot find libltdl)])
409 xno) COMPILE_WRAPPERS=no ;;
410 x) COMPILE_WRAPPERS=yes ;;
411 *) COMPILE_WRAPPERS=yes ;;
413 [COMPILE_WRAPPERS=no])
414 AM_CONDITIONAL(CREATE_WRAPPERS, test "x${COMPILE_WRAPPERS}" = xyes)
419 dnl -----------------------------------------------------------
420 dnl Checks for programs.
421 dnl -----------------------------------------------------------
423 dnl Initialize libtool
432 # Handle -Werror default case.
433 if test "$ENABLE_WERROR" = default; then
436 if test "$GCC" = yes; then
443 if test "x${COMPILE_COLLECTIONS}" = xyes; then
444 AC_PATH_PROG(PERL, [perl])
446 AC_SUBST(COLLECTIONS_PREFIX)
447 AC_CONFIG_FILES([lib/mkcollections.pl])
448 AC_CONFIG_COMMANDS([mkcollections.pl],[chmod 755 lib/mkcollections.pl])
451 if test "x${COMPILE_JNI}" = xyes; then
456 dnl Checking sizeof void * is needed for fdlibm to work properly on ppc64,
458 AC_COMPILE_CHECK_SIZEOF(void *)
460 dnl Checking for endianess.
463 dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
464 dnl On that system, sys/ioctl.h will not include sys/filio.h unless
465 dnl BSD_COMP is defined; just including sys/filio.h is simpler.
466 dnl Check for crt_externs.h on Darwin.
467 dnl Check for netinet/in_systm.h, netinet/ip.h and net/if.h for Windows CE.
468 dnl Check for sys/loadavg.h for getloadavg() on Solaris 9.
469 dnl Check for sys/sockio.h for SIOCGIFFLAGS on OpenSolaris.
470 AC_CHECK_HEADERS([unistd.h sys/types.h sys/config.h sys/ioctl.h \
472 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
479 sys/event.h sys/epoll.h \
481 netinet/in_systm.h netinet/ip.h net/if.h \
482 sys/loadavg.h sys/sockio.h])
484 AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
485 AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
486 AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
487 AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
489 AC_SEARCH_LIBS([inet_pton],[nsl])
490 AC_CHECK_LIB([socket], [gethostname])
491 AC_CHECK_FUNCS([ftruncate fsync select \
492 gethostname socket strerror fork pipe execve open close \
493 lseek fstat read readv write writev htonl memset htons connect \
494 getsockname getpeername bind listen accept \
495 recvfrom send sendto setsockopt getsockopt time mktime \
496 gethostbyname_r localtime_r \
500 mmap munmap mincore msync madvise getpagesize sysconf \
502 inet_aton inet_addr inet_pton \
503 getifaddrs kqueue kevent epoll_create \
507 AC_CHECK_LIB(magic, magic_open, LIBMAGIC=-lmagic)
510 AC_MSG_CHECKING([whether struct sockaddr_in6 is in netinet/in.h])
511 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netinet/in.h>]], [[struct sockaddr_in6 addr6;]])],
512 [AC_DEFINE(HAVE_INET6, 1,
513 [Define if inet6 structures are defined in netinet/in.h.])
521 AC_MSG_CHECKING([for tm_gmtoff in struct tm])
522 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]],[[struct tm tim; tim.tm_gmtoff = 0;]])],
523 [AC_DEFINE(STRUCT_TM_HAS_GMTOFF, 1, [Define if struct tm has tm_gmtoff field.])
526 AC_MSG_CHECKING([for global timezone variable])
527 dnl FIXME: we don't want a link check here because that won't work
528 dnl when cross-compiling. So instead we make an assumption that
529 dnl the header file will mention timezone if it exists.
530 dnl Don't find the win32 function timezone
531 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[void i(){long z2 = 2*timezone;}]])],
532 [AC_DEFINE(HAVE_TIMEZONE, 1, [Define if global 'timezone' exists.])
535 AC_MSG_CHECKING([for global _timezone variable])
536 dnl FIXME: As above, don't want link check
537 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[long z2 = _timezone;]])],
538 [AC_DEFINE(HAVE_UNDERSCORE_TIMEZONE, 1,
539 [Define if your platform has the global _timezone variable.])
541 [AC_MSG_RESULT(no)])])])
546 AX_FUNC_WHICH_GETHOSTBYNAME_R
548 dnl See if we HAVE_ICONV, how ICONV_CONST is set and LTLIBICONV
551 dnl When using gcc we want warnings, lots of warnings :-)
552 if test "x${GCC}" = xyes; then
553 dnl We want ISO C90 ansi, but with longlong (jlong) support
554 dnl and modern POSIX and BSD C library functions/prototypes.
556 dnl Warning flags for (almost) everybody.
557 dnl Should probably be configurable
558 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
559 AC_SUBST(WARNING_CFLAGS)
561 dnl CFLAGS that are used for all native code. We want to compile
562 dnl everything with unwinder data so that backtrace() will always
564 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
565 AC_SUBST(EXTRA_CFLAGS)
567 dnl Strict warning flags which not every module uses.
568 dnl Should probably be configurable.
569 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
570 AC_SUBST(STRICT_WARNING_CFLAGS)
572 dnl Whether or not to add -Werror, also not used by all modueles.
573 dnl Can be configured by --disable-Werror
575 if test "x${ENABLE_WERROR}" = xyes; then
576 ERROR_CFLAGS='-Werror'
578 AC_SUBST(ERROR_CFLAGS)
581 dnl Check for libxml and libxslt libraries (when xmlj is enabled).
582 if test "x${COMPILE_XMLJ}" = xyes; then
583 PKG_CHECK_MODULES(XML, libxml-2.0 >= 2.6.8)
584 PKG_CHECK_MODULES(XSLT, libxslt >= 1.1.11)
588 AC_SUBST(XSLT_CFLAGS)
591 dnl Check for AWT related gthread/gtk
592 if test "x${COMPILE_GTK_PEER}" = xyes; then
594 if test "$no_x" = yes; then
595 AC_MSG_ERROR([GTK+ peers requested but no X library available])
597 dnl Check if we can link against the XTest library and set
598 dnl HAVE_XTEST accordingly.
599 AC_CHECK_LIB([Xtst], [XTestQueryExtension],
600 [AC_DEFINE(HAVE_XTEST, 1, [Define to 1 if you have libXtst.])[XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"]],
605 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0)
606 PKG_CHECK_MODULES(FREETYPE2, freetype2)
607 PKG_CHECK_MODULES(PANGOFT2, pangoft2)
608 PKG_CHECK_MODULES(CAIRO, cairo >= 1.1.8)
609 dnl Check if we can link against the XRender library and set
610 dnl HAVE_XRENDER accordingly.
611 AC_CHECK_LIB([Xrender], [XRenderQueryExtension],
612 [AC_DEFINE(HAVE_XRENDER, 1, [Define to 1 if you have libXrender.])[X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"]],
616 dnl Check if we can link against the XRandR library and set
617 dnl HAVE_XRANDR accordingly.
618 AC_CHECK_LIB([Xrandr], [XRRQueryExtension],
619 [AC_DEFINE(HAVE_XRANDR, 1, [Define to 1 if you have libXrandr.])[X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"]],
625 AC_SUBST(FREETYPE2_LIBS)
626 AC_SUBST(FREETYPE2_CFLAGS)
627 AC_SUBST(PANGOFT2_LIBS)
628 AC_SUBST(PANGOFT2_CFLAGS)
633 if test "x${COMPILE_GCONF_PEER}" = xyes; then
634 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.0)
635 AC_SUBST(GCONF_CFLAGS)
637 dnl we also need gdk for locking
638 PKG_CHECK_MODULES(GDK, gdk-2.0 >= 2.8)
641 dnl check if the config value was given form the command line,
642 dnl if not, overwrite the default if we have the gconf backend
644 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
645 if test "$USE_GCONF_PREFS_PEER" = ""; then
646 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
651 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
656 PKG_CHECK_MODULES(GSTREAMER, gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED)
657 AC_SUBST(GSTREAMER_CFLAGS)
658 AC_SUBST(GSTREAMER_LIBS)
661 PKG_CHECK_MODULES(GSTREAMER_BASE,
662 gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED)
663 AC_SUBST(GSTREAMER_BASE_CFLAGS)
664 AC_SUBST(GSTREAMER_BASE_LIBS)
666 dnl gstreamer-plugin-base
667 PKG_CHECK_MODULES(GSTREAMER_PLUGINS_BASE,
668 gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED)
669 AC_SUBST(GSTREAMER_PLUGINS_BASE_CFLAGS)
670 AC_SUBST(GSTREAMER_PLUGINS_BASE_LIBS)
672 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
673 AC_SUBST(GST_PLUGIN_LDFLAGS)
675 PKG_CHECK_MODULES(GDK, gdk-2.0 >= 2.8)
679 dnl set the gstreamer based file reader, writer and mixer
680 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
681 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
683 dnl add the gstreamer resources
684 AC_SUBST(GSTREAMER_FILE_READER)
685 AC_SUBST(GSTREAMER_MIXER_PROVIDER)
687 dnl Check for AWT related Qt4
688 if test "x${COMPILE_QT_PEER}" = xyes; then
689 PKG_CHECK_MODULES(QT, QtCore QtGui >= 4.1.0, HAVE_QT4="yes", HAVE_QT4="no")
690 if test "x$HAVE_QT4" = "xyes"; then
691 dnl Check needed because in some cases the QtGui includedir
692 dnl doesn't contain the subsystem dir.
693 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
694 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
695 AC_CHECK_FILE([$QT_INCLUDE_DIR/QWidget],
696 AC_MSG_NOTICE([No extra QT_INCLUDE_DIR needed]),
697 AC_CHECK_FILE([$EXTRA_QT_INCLUDE_DIR/QWidget],
698 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR",
699 AC_MSG_WARN([QWidget not found])))
700 AC_CHECK_PROG(MOC, [moc], [moc])
701 AC_CHECK_PROG(MOC, [moc-qt4], [moc-qt4])
703 if test "x$HAVE_QT4" = "xno"; then
704 AC_MSG_NOTICE([Looking for QT_CFLAGS and QT_LIBS without pkg-config])
707 AC_ARG_WITH([qt4dir],
708 [AS_HELP_STRING([--with-qt4dir=DIR],
709 [Qt4 installation directory used for OS-X.
710 For other systems use pkg-config.])],
713 if test x"$QT4DIR" = x ; then
714 AC_MSG_ERROR([*** No path for Qt4 --with-qt4dir option given])
716 AC_MSG_RESULT([QT4DIR... $QT4DIR])
717 AC_CHECK_PROG(MOC, [moc], [$QT4DIR/bin/moc], [], $QT4DIR/bin)
718 if test x"$MOC" = x; then
719 AC_MSG_ERROR([*** This is not the right Qt installation])
721 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
722 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
723 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
724 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
727 AC_MSG_ERROR([*** Please check PKG_CONFIG_PATH or the version
728 of your installed Qt4 installation.])
732 AC_MSG_NOTICE([Set QT_CFLAGS... $QT_CFLAGS])
736 dnl **********************************************************************
737 dnl Check for MSG_NOSIGNAL
738 dnl **********************************************************************
739 AC_MSG_CHECKING(for MSG_NOSIGNAL)
740 AC_TRY_COMPILE([#include <sys/socket.h>],
741 [ int f = MSG_NOSIGNAL; ],
743 AC_DEFINE(HAVE_MSG_NOSIGNAL, 1,
744 [Define this symbol if you have MSG_NOSIGNAL]) ],
747 dnl **********************************************************************
748 dnl Check for SO_NOSIGPIPE (Darwin equivalent for MSG_NOSIGNAL)
749 dnl **********************************************************************
750 AC_MSG_CHECKING(for SO_NOSIGPIPE )
751 AC_TRY_COMPILE([#include <sys/socket.h>],
752 [ int f = SO_NOSIGPIPE; ],
754 AC_DEFINE(HAVE_SO_NOSIGPIPE, 1,
755 [Define this symbol if you have SO_NOSIGPIPE]) ],
758 dnl **********************************************************************
759 dnl Check for MSG_WAITALL
760 dnl **********************************************************************
761 AC_MSG_CHECKING(for MSG_WAITALL)
762 AC_TRY_COMPILE([#include <sys/socket.h>],
763 [ int f = MSG_WAITALL; ],
765 AC_DEFINE(HAVE_MSG_WAITALL, 1,
766 [Define this symbol if you have MSG_WAITALL]) ],
770 dnl Check for plugin support headers and libraries.
771 if test "x${COMPILE_PLUGIN}" = xyes; then
772 PKG_CHECK_MODULES(MOZILLA, mozilla-plugin, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
773 if test "x${MOZILLA_FOUND}" = xno; then
774 PKG_CHECK_MODULES(MOZILLA, firefox-plugin firefox-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
776 if test "x${MOZILLA_FOUND}" = xno; then
777 PKG_CHECK_MODULES(MOZILLA, xulrunner-plugin xulrunner-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
779 if test "x${MOZILLA_FOUND}" = xno; then
780 PKG_CHECK_MODULES(MOZILLA, mozilla-firefox-plugin mozilla-firefox-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
782 if test "x${MOZILLA_FOUND}" = xno; then
783 PKG_CHECK_MODULES(MOZILLA, seamonkey-plugin seamonkey-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
785 if test "x${MOZILLA_FOUND}" = xno; then
786 PKG_CHECK_MODULES(MOZILLA, iceape-plugin iceape-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
788 if test "x${MOZILLA_FOUND}" = xno; then
789 AC_MSG_ERROR([Couldn't find plugin support headers and libraries, try --disable-plugin])
792 PKG_CHECK_MODULES(GLIB, glib-2.0)
793 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0)
795 AC_SUBST(MOZILLA_CFLAGS)
796 AC_SUBST(MOZILLA_LIBS)
797 AC_SUBST(GLIB_CFLAGS)
802 AC_SUBST(PLUGIN_DIR, $HOME/.mozilla/plugins/)
805 dnl Check for GNU MP library and header file
806 dnl for GNU MP versions >= 4.2 use __gmpz_combit; otherwise look for
807 dnl __gmpz_mul_si for earlier versions (>= 3.1).
808 dnl IMPORTANT: if you decide to look for __gmpz_combit, don't forget to
809 dnl change the name of the corresponding ac_ variable on lines 860...
810 if test "x${COMPILE_GMP}" = xyes; then
811 AC_CHECK_LIB(gmp, __gmpz_mul_si,
812 [GMP_CFLAGS=-I/usr/include
819 AC_CHECK_HEADERS([gmp.h])
826 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
830 dnl -----------------------------------------------------------
831 dnl Add the include files for the native abstraction layer.
832 dnl Used by AM_CPPFLAGS in the different modules.
833 dnl -----------------------------------------------------------
834 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
835 AC_SUBST(CLASSPATH_INCLUDES)
837 dnl -----------------------------------------------------------
838 if test "x${COMPILE_JNI}" = xyes; then
839 AC_MSG_CHECKING(jni_md.h support)
840 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
845 AC_MSG_WARN(no, using x86-linux-gnu)
847 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
848 ac_dests="include/jni_md.h"
849 while test -n "$ac_sources"; do
850 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
851 set $ac_sources; ac_source=$1; shift; ac_sources=$*
852 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
854 AC_CONFIG_LINKS([$ac_config_links_1])
857 CLASSPATH_WITH_CLASSLIB
859 dnl -----------------------------------------------------------
860 dnl Initialize maintainer mode
861 dnl -----------------------------------------------------------
864 dnl -----------------------------------------------------------
865 dnl Enable debugging statements at compile time. By default
866 dnl these statements should be optimized out of the bytecode
867 dnl produced by an optimizing Java compiler and not hinder
868 dnl performance because debugging is turned off by default.
869 dnl -----------------------------------------------------------
870 AC_ARG_ENABLE([debug],
871 [AS_HELP_STRING(--enable-debug,enable runtime debugging code)],
872 [case "${enableval}" in
875 AC_DEFINE(DEBUG, 1, [Define to 1 if you want native library runtime debugging code enabled])
877 no) LIBDEBUG="false" ;;
878 *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
883 dnl -----------------------------------------------------------
884 dnl Enable execution of all static initializer loadLibrary()
885 dnl calls at compile time. By default most people will not
886 dnl want to disable this, but some VMs (gcj) don't need or want
888 dnl -----------------------------------------------------------
889 AC_ARG_ENABLE([load-library],
890 [AS_HELP_STRING(--enable-load-library,enable to use JNI native methods [default=yes])],
891 [case "${enableval}" in
892 yes) INIT_LOAD_LIBRARY="true" ;;
893 no) INIT_LOAD_LIBRARY="false" ;;
894 *) AC_MSG_ERROR(bad value ${enableval} for --enable-load-library) ;;
896 [INIT_LOAD_LIBRARY="true"])
897 AC_SUBST(INIT_LOAD_LIBRARY)
900 dnl -----------------------------------------------------------
901 dnl Specify the jar file containing the Eclipse Java Compiler. If
902 dnl this option is not specified then the com.sun.tools.javac
903 dnl implementation will not be included in tools.zip.
904 dnl -----------------------------------------------------------
905 dnl GCJ LOCAL: default to $multi_basedir/ecj.jar
906 dnl In the default case where $multi_basedir/ecj.jar is found
907 dnl $(jardir)/ecj.jar will not expand properly in GNU Classpath's
908 dnl gnu/classpath/Configuration.java. That is OK though since libjava's
909 dnl gnu/classpath/Configuration.java overrides GNU Classpath's and
910 dnl ECJ_JAR_FILE will be properly expanded in libjava's
911 dnl gnu/classpath/natConfiguration.cc.
912 AC_ARG_WITH([ecj-jar],
913 [AS_HELP_STRING([--with-ecj-jar=ABS.PATH],
914 [specify jar file containing the Eclipse Java Compiler])],
916 [if test -f $multi_basedir/ecj.jar; then
917 ECJ_JAR='$(jardir)/ecj.jar'
921 dnl -----------------------------------------------------------
922 dnl Should the VM explicitly run class initialization subfunctions for
923 dnl java.lang.System? (default is false -- the subfunctions will be run
924 dnl automatically by the class initializer)
925 dnl -----------------------------------------------------------
926 AC_ARG_ENABLE([java-lang-system-explicit-initialization],
927 [AS_HELP_STRING(--enable-java-lang-system-explicit-initialization,will the VM explicitly invoke java.lang.System's static initialization methods [default=no])],
928 [case "${enableval}" in
929 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
930 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
931 *) AC_MSG_ERROR(bad value ${enableval} for --enable-java-lang-system-explicit-initialization) ;;
933 [JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"])
934 AC_SUBST(JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION)
937 dnl -----------------------------------------------------------
938 dnl avoiding automake complaints
939 dnl -----------------------------------------------------------
943 dnl -----------------------------------------------------------
944 dnl This is probably useless.
945 dnl -----------------------------------------------------------
946 AC_PATH_PROG(MKDIR, mkdir)
948 AC_PATH_PROG(DATE, date)
950 dnl -----------------------------------------------------------
951 dnl According to the GNU coding guide, we shouldn't require find,
952 dnl and zip, however GNU provides both so it should be okay
953 dnl -----------------------------------------------------------
954 AC_PATH_PROG(FIND, find)
956 dnl -----------------------------------------------------------
957 dnl Specify what to install (install only glibj.zip by default)
958 dnl -----------------------------------------------------------
961 dnl -----------------------------------------------------------
962 dnl Enable API documentation generation (disabled by default)
963 dnl -----------------------------------------------------------
966 dnl -----------------------------------------------------------
967 dnl Whether to use jay to regenerate parsers.
968 dnl -----------------------------------------------------------
971 dnl -----------------------------------------------------------
972 dnl This sets the build-time default, which can now be overridden
973 dnl by setting the system property gnu.classpath.awt.gtk.portable.native.sync
974 dnl to "true" or "false".
975 dnl -----------------------------------------------------------
976 AC_ARG_ENABLE([portable-native-sync],
977 [AS_HELP_STRING(--enable-portable-native-sync,synchronize VM threads portably)],
978 [case "${enableval}" in
980 AC_DEFINE(PORTABLE_NATIVE_SYNC, 1, [Define if you want to synchronize VM threads portably by default; undef otherwise])
984 AC_MSG_ERROR(bad value ${enableval} for --enable-portable-native-sync)
989 AX_CREATE_STDINT_H([include/config-int.h])
991 dnl -----------------------------------------------------------------------
992 dnl Support for using a prebuilt class library
993 dnl -----------------------------------------------------------------------
994 AC_ARG_WITH([glibj_zip],
995 AS_HELP_STRING([--with-glibj-zip=ABS.PATH],
996 [use prebuilt glibj.zip class library]))
998 case "$with_glibj_zip" in
1006 AC_MSG_ERROR([Please suply an absolute path to a prebuilt glibj.zip])
1010 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
1014 AM_CONDITIONAL(USE_PREBUILT_GLIBJ_ZIP, test x$use_glibj_zip = xtrue)
1015 AC_SUBST(PATH_TO_GLIBJ_ZIP)
1017 if test "x${TOOLSDIR}" != x; then
1018 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
1021 if test "x${COMPILE_GJDOC}" = xyes; then
1023 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
1025 if test "x${enable_java_maintainer_mode}" = xyes; then
1027 AC_PROG_ANTLR(2,7,1)
1035 # Check for javac if we need to build either the class library,
1036 # the examples or the tools
1037 if test "x${use_glibj_zip}" = xfalse || \
1038 test "x${EXAMPLESDIR}" != x || \
1039 test "x${TOOLSDIR}" != x && \
1040 test "x${build_class_files}" != xno; then
1042 CLASSPATH_JAVAC_MEM_CHECK
1045 dnl -----------------------------------------------------------
1046 dnl Build with Escher based X peers.
1047 dnl -----------------------------------------------------------
1048 AC_ARG_WITH([escher],
1049 AS_HELP_STRING([--with-escher=ABS.PATH],
1050 [specify path to escher dir or JAR for X peers]))
1051 case "$with_escher" in
1059 AC_MSG_ERROR([Please supply an absolute path to Escher library])
1063 PATH_TO_ESCHER=$with_escher
1067 AM_CONDITIONAL(USE_ESCHER, test x$use_escher = xtrue)
1068 AC_SUBST(PATH_TO_ESCHER)
1070 dnl -----------------------------------------------------------
1071 dnl Check if local socket support should be included.
1072 dnl -----------------------------------------------------------
1073 AC_ARG_ENABLE([local-sockets],
1074 [AS_HELP_STRING(--enable-local-sockets,enables local (AF_LOCAL) socket API [default: no])],
1075 [case "${enableval}" in
1077 ENABLE_LOCAL_SOCKETS=yes
1080 ENABLE_LOCAL_SOCKETS=no
1084 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
1086 AC_CHECK_HEADER([sys/un.h])
1087 AC_CHECK_FUNCS([read write bind listen accept shutdown], [],
1088 AC_MSG_ERROR([networking support not available]))
1089 AC_DEFINE(ENABLE_LOCAL_SOCKETS, [1], [Define to enable support for local sockets.])
1091 AM_CONDITIONAL(ENABLE_LOCAL_SOCKETS, test "x$ENABLE_LOCAL_SOCKETS" = "xyes")
1093 dnl -----------------------------------------------------------
1094 dnl Add the default preference peer
1095 dnl -----------------------------------------------------------
1096 AC_SUBST(DEFAULT_PREFS_PEER)
1098 dnl -----------------------------------------------------------
1099 dnl Set GNU MP related params
1100 dnl -----------------------------------------------------------
1101 WANT_NATIVE_BIG_INTEGER=false
1102 if test "x${COMPILE_GMP}" = xyes; then
1103 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
1104 if test "x${ac_cv_header_gmp_h}" = xyes; then
1105 WANT_NATIVE_BIG_INTEGER=true
1106 AC_DEFINE(WITH_GNU_MP, 1, [Define to 1 if gmp is usable])
1114 AC_SUBST(WANT_NATIVE_BIG_INTEGER)
1115 AM_CONDITIONAL(CREATE_GMPBI_LIBRARY, test "x${COMPILE_GMP}" = xyes)
1117 dnl -----------------------------------------------------------
1119 dnl -----------------------------------------------------------
1120 AC_CONFIG_FILES([Makefile
1124 external/sax/Makefile
1125 external/w3c_dom/Makefile
1126 external/relaxngDatatype/Makefile
1127 external/jsr166/Makefile
1128 gnu/classpath/Configuration.java
1129 gnu/java/security/Configuration.java
1132 native/fdlibm/Makefile
1133 native/jawt/Makefile
1135 native/jni/classpath/Makefile
1136 native/jni/java-io/Makefile
1137 native/jni/java-lang/Makefile
1138 native/jni/java-math/Makefile
1139 native/jni/java-net/Makefile
1140 native/jni/java-nio/Makefile
1141 native/jni/java-util/Makefile
1142 native/jni/gtk-peer/Makefile
1143 native/jni/gconf-peer/Makefile
1144 native/jni/gstreamer-peer/Makefile
1145 native/jni/qt-peer/Makefile
1146 native/jni/xmlj/Makefile
1147 native/jni/midi-alsa/Makefile
1148 native/jni/midi-dssi/Makefile
1149 native/jni/native-lib/Makefile
1150 native/plugin/Makefile
1152 resource/META-INF/services/java.util.prefs.PreferencesFactory
1153 resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader
1154 resource/META-INF/services/javax.sound.sampled.spi.MixerProvider
1156 scripts/classpath.spec
1158 lib/gen-classlist.sh
1159 lib/copy-vmresources.sh
1160 scripts/check_jni_methods.sh
1163 examples/Makefile.jawt
1164 examples/Makefile.java2d])
1166 CLASSPATH_COND_IF([CREATE_WRAPPERS], [test "x${COMPILE_WRAPPERS}" = xyes], [],
1167 [AC_CONFIG_FILES([tools/gappletviewer
1180 AC_CONFIG_COMMANDS([gappletviewer],[chmod 755 tools/gappletviewer])
1181 AC_CONFIG_COMMANDS([gjarsigner],[chmod 755 tools/gjarsigner])
1182 AC_CONFIG_COMMANDS([gkeytool],[chmod 755 tools/gkeytool])
1183 AC_CONFIG_COMMANDS([gjar],[chmod 755 tools/gjar])
1184 AC_CONFIG_COMMANDS([gnative2ascii],[chmod 755 tools/gnative2ascii])
1185 AC_CONFIG_COMMANDS([gserialver],[chmod 755 tools/gserialver])
1186 AC_CONFIG_COMMANDS([grmiregistry],[chmod 755 tools/grmiregistry])
1187 AC_CONFIG_COMMANDS([gtnameserv],[chmod 755 tools/gtnameserv])
1188 AC_CONFIG_COMMANDS([gorbd],[chmod 755 tools/gorbd])
1189 AC_CONFIG_COMMANDS([grmid],[chmod 755 tools/grmid])
1190 AC_CONFIG_COMMANDS([grmic],[chmod 755 tools/grmic])
1191 AC_CONFIG_COMMANDS([gjavah], [chmod 755 tools/gjavah])
1194 if test "x${COMPILE_GJDOC}" = xyes
1196 AC_CONFIG_FILES([tools/gjdoc])
1197 AC_CONFIG_COMMANDS([gjdoc], [chmod 755 tools/gjdoc])
1200 AC_CONFIG_COMMANDS([gen-classlist],[chmod 755 lib/gen-classlist.sh])
1201 AC_CONFIG_COMMANDS([copy-vmresources],[chmod 755 lib/copy-vmresources.sh])
1204 # Create standard.omit based on decisions we just made.
1205 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
1206 if test x$use_escher != xtrue; then
1207 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit