diff options
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | docs/lasso-book/Makefile.am | 12 |
2 files changed, 17 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index bfffc7bb..556e66f3 100644 --- a/configure.ac +++ b/configure.ac @@ -385,6 +385,11 @@ else fi AC_SUBST(HTML_DIR) +AC_CHECK_PROGS(REST2HTML, rest2html) + +AM_CONDITIONAL(HAVE_REST2HTML, test -n "$ac_cv_prog_REST2HTML") + + dnl pkg-config path AC_ARG_WITH(pkg-config-path, [ --with-pkg-config=PATH Set pkg-config metadata search path.], PKG_CONFIG_PATH="${withval}", PKG_CONFIG_PATH="") @@ -474,7 +479,7 @@ AC_SUBST(LASSO_STATIC_BINARIES) dnl ========================================================================== dnl Final steps: lasso config dnl ========================================================================== -LASSO_CORE_CFLAGS="$LASSO_DEFINES -I${includedir}/lasso" +LASSO_CORE_CFLAGS="$LASSO_DEFINES -I${includedir}" if test $MINGW -eq 1; then LASSO_CORE_LIBS="-llasso-0" else diff --git a/docs/lasso-book/Makefile.am b/docs/lasso-book/Makefile.am index f31e1b78..18fd1ade 100644 --- a/docs/lasso-book/Makefile.am +++ b/docs/lasso-book/Makefile.am @@ -1,3 +1,13 @@ + +if HAVE_REST2HTML +doc_DATA = writing-a-c-sp.html +else +doc_DATA = writing-a-c-sp.txt +endif + +writing-a-c-sp.html: writing-a-c-sp.txt + $(REST2HTML) writing-a-c-sp.txt > writing-a-c-sp.html + EXTRA_DIST = \ - lasso-book.txt + lasso-book.txt writing-a-c-sp.txt |