From fbd3a59c1f1e1e967457f66b33651d6e2cc6d4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 11 Oct 2013 09:31:14 +0000 Subject: [PATCH] build exceptionhandling-example only if stacktrace is given; refs #7 --- doc/examples/makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/examples/makefile.am b/doc/examples/makefile.am index 99f3829..39b6994 100644 --- a/doc/examples/makefile.am +++ b/doc/examples/makefile.am @@ -4,15 +4,20 @@ ## 45678901234567890123456789012345678901234567890123456789012345678901234567890 exampledir = ${docdir}/examples -example_PROGRAMS = exceptionhandling smartpointer arguments +example_PROGRAMS = smartpointer arguments +if HAVE_STACKTRACE +example_PROGRAMS += exceptionhandling +endif example_DATA = ${smartpointer_SOURCES} ${exceptionhandling_SOURCES} \ ${arguments_SOURCES} CPPFLAGS = -I${top_srcdir}/src LDFLAGS = -L${top_builddir}/src +if HAVE_STACKTRACE exceptionhandling_SOURCES = exceptionhandling.cxx exceptionhandling_LDADD = ${top_builddir}/src/.libs/libmrw.la +endif smartpointer_SOURCES = smartpointer.cxx smartpointer_LDADD = ${top_builddir}/src/.libs/libmrw.la