diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-07-30 23:10:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-07-30 23:10:39 +0200 |
commit | a301690be6581e23a39813444b2904addcb26ab7 (patch) | |
tree | f678658bb426989e1889d153a6f6ddccc2a42781 | |
parent | 54a5c0546730efd7e8e54ac8cb06be0b7dfcea0d (diff) | |
download | platform_external_libdaemon-a301690be6581e23a39813444b2904addcb26ab7.tar.gz platform_external_libdaemon-a301690be6581e23a39813444b2904addcb26ab7.tar.bz2 platform_external_libdaemon-a301690be6581e23a39813444b2904addcb26ab7.zip |
make building of examples optional
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 742b744..2025eb8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,11 @@ # <http://www.gnu.org/licenses/>. EXTRA_DIST=bootstrap.sh LICENSE -SUBDIRS=libdaemon doc examples +SUBDIRS=libdaemon doc + +if EXAMPLES +SUBDIRS += examples +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libdaemon.pc diff --git a/configure.ac b/configure.ac index 3f2ab05..57026a2 100644 --- a/configure.ac +++ b/configure.ac @@ -111,5 +111,10 @@ fi AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes]) +AC_ARG_ENABLE(examples, + AS_HELP_STRING([--disable-examples], [Don't build examples during make]),, + enable_examples="yes") +AM_CONDITIONAL(EXAMPLES, [test "$enable_examples" = "yes"]) + AC_CONFIG_FILES([libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile libdaemon.pc]) AC_OUTPUT |