From 191079ed6c32a631f3fee2beddfaa204a56da618 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 31 Mar 2006 11:05:31 +0000 Subject: [PATCH] new configuration option --enable-batch, which control of including to compilation process for packages Batch and Batch_SWIG (default: yes) --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5a8aa38de..b0c36f69a 100644 --- a/configure.ac +++ b/configure.ac @@ -305,6 +305,17 @@ dnl localbatch_ok is set to yes by CHECK_LOCAL WITH_BATCH=no test x$openpbs_ok = xyes || test x$lsf_ok = xyes || test x$localbatch_ok = xyes && WITH_BATCH=yes + +AC_ARG_ENABLE(batch, + [AC_HELP_STRING([--enable-batch],[Batch [default=yes]])], + [case "${enableval}" in + yes) test x$openpbs_ok = xyes || test x$lsf_ok = xyes || test x$localbatch_ok = xyes && WITH_BATCH=yes;; + no) WITH_BATCH=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-batch) ;; + esac],[test x$openpbs_ok = xyes || test x$lsf_ok = xyes || test x$localbatch_ok = xyes && WITH_BATCH=yes]) + +echo Batch mode = $WITH_BATCH + AC_SUBST(WITH_BATCH) AM_CONDITIONAL(WITH_BATCH, [test x"$WITH_BATCH" = xyes]) @@ -365,7 +376,7 @@ function check_fatal_error { # -------------------------------------- -basic_mandatory_products="cc_ok threads_ok python_ok swig_ok hdf5_ok occ_ok" +basic_mandatory_products="cc_ok threads_ok hdf5_ok occ_ok" echo --- General mandatory products - Light configuration: summary $basic_mandatory_products check_fatal_error $basic_mandatory_products -- 2.39.2