From: Mathieu Desnoyers Date: Fri, 14 Jun 2013 22:32:04 +0000 (-0400) Subject: Fix: don't build examples in static builds X-Git-Tag: v0.8.0~69 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2f49a496a4d7d3d4cd1b8d8323f907114bf2f3c8;p=urcu.git Fix: don't build examples in static builds Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 058be20..52b20d8 100644 --- a/configure.ac +++ b/configure.ac @@ -162,6 +162,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ AM_CONDITIONAL([COMPAT_FUTEX], [test "x$compat_futex_test" = "x1"]) AM_CONDITIONAL([COMPAT_ARCH], [test "x$SUBARCHTYPE" = "xx86compat"]) +AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"]) # smp-support configure option AC_ARG_ENABLE([smp-support], diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 4583b5b..646213b 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -1,3 +1,7 @@ +if NO_SHARED +# Don't build examples if shared libraries support was explicitly +# disabled. +else SUBDIRS = qsbr-minimal doc_examplesdir = ${docdir}/examples @@ -10,3 +14,4 @@ doc_examples_qsbr_minimal_DATA = \ BUILD_EXAMPLES_FROM_TREE = 1 export +endif