summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-08-16 14:21:57 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-08-16 14:21:57 +0000
commita6aa82cdfe368a4e65fbac5bdc64bd98747b29b8 (patch)
tree1cb274947dc5a3fd44f4fa70ea3a6adbbee38d87
parent05cc875b413f808fa69088c6e6ac4f22d8e95b8a (diff)
downloadlasso-a6aa82cdfe368a4e65fbac5bdc64bd98747b29b8.tar.gz
lasso-a6aa82cdfe368a4e65fbac5bdc64bd98747b29b8.tar.xz
lasso-a6aa82cdfe368a4e65fbac5bdc64bd98747b29b8.zip
detect and use rest2html
-rw-r--r--configure.ac7
-rw-r--r--docs/lasso-book/Makefile.am12
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