aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2004-07-16 02:11:33 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2004-07-16 02:11:33 +0000
commitbc03b358a0a7f5acbc38c0e650ea5063080191ef (patch)
tree512c3db45acc6004efc120a01cb9b22ad99bc85c /libjava/configure.in
parentaaaa46d2b0cb797b68b079e6f7b9deb5bcb4a774 (diff)
downloadgcc-bc03b358a0a7f5acbc38c0e650ea5063080191ef.tar.gz
gcc-bc03b358a0a7f5acbc38c0e650ea5063080191ef.tar.bz2
gcc-bc03b358a0a7f5acbc38c0e650ea5063080191ef.zip
configure.in: Move as much as possible below AC_CANONICAL_SYSTEM.
* configure.in: Move as much as possible below AC_CANONICAL_SYSTEM. Introduce _GCC_TOPLEV_NONCANONICAL_TARGET. * acinclude.m4: Include acx.m4. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r84797
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in73
1 files changed, 38 insertions, 35 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index fd524b413dc..33f240ee979 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -2,44 +2,10 @@ dnl Process this with autoconf to create configure
AC_PREREQ(2.13)
AC_INIT(java/lang/System.java)
-# This works around the fact that libtool configuration may change LD
-# for this particular configuration, but some shells, instead of
-# keeping the changes in LD private, export them just because LD is
-# exported.
-ORIGINAL_LD_FOR_MULTILIBS=$LD
-
-AC_PROG_LN_S
-
dnl We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=SUBDIR
configuring in a subdirectory])
-AC_ARG_WITH(cross-host,
-[ --with-cross-host=HOST configuring with a cross compiler])
-
-AC_ARG_WITH(newlib,
-[ --with-newlib Configuring with newlib])
-
-AC_ARG_ENABLE(version-specific-runtime-libs,
-[ --enable-version-specific-runtime-libs
- specify that runtime libraries should be installed in a compiler-specific
- directory ],
- [case "$enableval" in
- yes) version_specific_libs=yes ;;
- no) version_specific_libs=no ;;
- *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
- esac],
- [version_specific_libs=no]
-)
-
-dnl Default to --enable-multilib
-AC_ARG_ENABLE(multilib,
-[ --enable-multilib build many library versions (default)],
-[case "${enableval}" in
- yes) multilib=yes ;;
- no) multilib=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
- esac], [multilib=yes])dnl
dnl We may get other options which we don't document:
dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
@@ -73,11 +39,48 @@ if :; then :; else
AC_CONFIG_AUX_DIR(..)
fi
+AC_CANONICAL_SYSTEM
+
+_GCC_TOPLEV_NONCANONICAL_TARGET
+
+# This works around the fact that libtool configuration may change LD
+# for this particular configuration, but some shells, instead of
+# keeping the changes in LD private, export them just because LD is
+# exported.
+ORIGINAL_LD_FOR_MULTILIBS=$LD
+
+AC_PROG_LN_S
+
# This works around an automake problem.
mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
AC_SUBST(mkinstalldirs)
-AC_CANONICAL_SYSTEM
+AC_ARG_WITH(cross-host,
+[ --with-cross-host=HOST configuring with a cross compiler])
+
+AC_ARG_WITH(newlib,
+[ --with-newlib Configuring with newlib])
+
+AC_ARG_ENABLE(version-specific-runtime-libs,
+[ --enable-version-specific-runtime-libs
+ specify that runtime libraries should be installed in a compiler-specific
+ directory ],
+ [case "$enableval" in
+ yes) version_specific_libs=yes ;;
+ no) version_specific_libs=no ;;
+ *) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
+ esac],
+ [version_specific_libs=no]
+)
+
+dnl Default to --enable-multilib
+AC_ARG_ENABLE(multilib,
+[ --enable-multilib build many library versions (default)],
+[case "${enableval}" in
+ yes) multilib=yes ;;
+ no) multilib=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
+ esac], [multilib=yes])dnl
dnl This shouldn't be needed, as long as top-level dependencies are
dnl defined correctly and shared-library paths are set up so that