diff options
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | configure.in | 12 |
2 files changed, 20 insertions, 1 deletions
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 ************************************* |