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