From 911e6dda0466708affc38fce2bb395fb998c6695 Mon Sep 17 00:00:00 2001 From: Dan Villiom Podlaski Christiansen Date: Tue, 23 Oct 2012 17:44:29 +0200 Subject: don't build examples and tests by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1351005993 -7200 # Node ID 09c82f0e4a0aed0862fb53714b6d50a14d55d44d # Parent 51a19440f633d0f24c24355f4e1f0e88b4640ad2 don't build examples and tests by default Signed-off-by: Klaus Kämpf --- Makefile.am | 9 ++++++++- configure.in | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1babb55..96cda27 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,13 @@ -SUBDIRS = src examples tests +SUBDIRS = src AUTOMAKE_OPTIONS = no-dist-gzip dist-bzip2 +if BUILD_EXAMPLES +SUBDIRS += examples +endif +if BUILD_TESTS +SUBDIRS += tests +endif + package: dist cp wsmancli.spec /usr/src/packages/SPEC cp wsmancli-*.tar.gz /usr/src/packages/SOURCES diff --git a/configure.in b/configure.in index e2e3597..6fd1478 100644 --- a/configure.in +++ b/configure.in @@ -21,6 +21,18 @@ PKG_CHECK_MODULES(OPENWSMAN, [openwsman >= 2.2.7]) have_cunit=no AC_CHECK_HEADERS([CUnit/Basic.h], have_cunit="yes" ) AM_CONDITIONAL(BUILD_CUNIT_TESTS, test "$have_cunit" == "yes") + +examples_default=no +AC_ARG_WITH(examples, + [ --with-examples=[no/yes] build examples [default=no]],, + with_examples=$examples_default) +AM_CONDITIONAL(BUILD_EXAMPLES, test "x$with_examples" = "xyes") +tests_default=no +AC_ARG_WITH(tests, + [ --with-tests=[no/yes] build tests [default=no]],, + with_tests=$tests_default) +AM_CONDITIONAL(BUILD_TESTS, test "x$with_tests" = "xyes") + dnl ************************************* dnl *** Warnings to show if using GCC *** dnl ************************************* -- cgit