aboutsummaryrefslogtreecommitdiff
path: root/libphobos/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/configure.ac')
-rw-r--r--libphobos/configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/libphobos/configure.ac b/libphobos/configure.ac
index ffd1298..8c89ebd 100644
--- a/libphobos/configure.ac
+++ b/libphobos/configure.ac
@@ -152,8 +152,21 @@ AC_ARG_ENABLE(libphobos,
[AS_HELP_STRING([--enable-libphobos], [Enable libphobos])])
AC_MSG_RESULT($enable_libphobos)
+AC_MSG_CHECKING([for --with-libphobos-druntime-only])
+AC_ARG_WITH(libdruntime-only,
+ AS_HELP_STRING([--with-libphobos-druntime-only={yes,no,auto}],
+ [build only the druntime library (default: auto)]),,
+ [with_libdruntime_only=auto])
+AC_MSG_RESULT($with_libdruntime_only)
+
+case "$with_libdruntime_only" in
+ yes|no|auto) ;;
+ *) AC_MSG_ERROR([Invalid argument for --with-libphobos-druntime-only]) ;;
+esac
+
# See if supported.
unset LIBPHOBOS_SUPPORTED
+unset LIBDRUNTIME_ONLY
AC_MSG_CHECKING([for host support for libphobos])
. ${srcdir}/configure.tgt
case ${host} in
@@ -187,6 +200,15 @@ yes:*) use_libphobos=yes ;;
esac
AM_CONDITIONAL(ENABLE_LIBPHOBOS, test x$use_libphobos = xyes)
+# Decide if only libdruntime should be built.
+case $LIBDRUNTIME_ONLY:$with_libdruntime_only in
+*:no) only_libdruntime=no ;;
+*:yes) only_libdruntime=yes ;;
+yes:*) only_libdruntime=yes ;;
+*:*) only_libdruntime=no ;;
+esac
+AM_CONDITIONAL(ENABLE_LIBDRUNTIME_ONLY, test x$only_libdruntime = xyes)
+
# Enable expensive internal checks
AC_ARG_ENABLE(libphobos-checking,
[AS_HELP_STRING([[--enable-libphobos-checking[=LIST]]],