summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2002-12-21 05:39:06 +0000
committerBrian Jones <cbj@gnu.org>2002-12-21 05:39:06 +0000
commitea69411498101135b89e17ff163d9e485b3c99c3 (patch)
treebb64e507e70afc9f0760c3b35514584c715441d6 /acinclude.m4
parente107bb7df3dbc0c78aefd0f0c41a1c50b6646b37 (diff)
downloadclasspath-ea69411498101135b89e17ff163d9e485b3c99c3.tar.gz
* BUGS: updated Savannah URL
* doc/api: new directory * doc/api/.cvsignore: new file * doc/api/classpath-copyright.xml: new directory * doc/api/Makefile.am: new file * configure.in: added doc/api/Makefile to output, include CLASSPATH_ENABLE_GJDOC * acinclude.m4: added function CLASSPATH_ENABLE_GJDOC * doc/Makefile.am: added api to SUBDIRS * doc/xslt: new directory * doc/xslt/gjdocxml2html.xsl: new file * doc/xslt/common: new directory * doc/xslt/common/gjdochtml.css: new file * doc/xslt/common/images: new directory * doc/xslt/common/images/tree-branch.png: new file * doc/xslt/common/images/tree-empty.png: new file * doc/xslt/common/images/tree-final-node.png: new file * doc/xslt/common/images/tree-node.png: new file
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 4ce19fa41..4419f9775 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -557,3 +557,32 @@ AC_DEFUN(CLASSPATH_WITH_ZIP,
AC_SUBST(ZIP)
AM_CONDITIONAL(HAVE_ZIP, test "x${ZIP}" != x)
])
+
+dnl -----------------------------------------------------------
+dnl Enable generation of API documentation, assumes gjdoc
+dnl has been compiled to an executable or a suitable script
+dnl is in your PATH
+dnl -----------------------------------------------------------
+AC_DEFUN(CLASSPATH_ENABLE_GJDOC,
+[
+ AC_ARG_ENABLE(gjdoc,
+ [ --enable-gjdoc enable API doc. generation [default=no]],
+ [
+ case "${enableval}" in
+ yes) ENABLE_GJDOC=yes ;;
+ no) ENABLE_GJDOC=no ;;
+ *) ENABLE_GJDOC=yes ;;
+ esac
+ if test "x${ENABLE_GJDOC}" = xyes; then
+ AC_PATH_PROG(GJDOC, gjdoc)
+ AC_PATH_PROG(FIND, find)
+ AC_PATH_PROG(CP, cp)
+ AC_PATH_PROG(XMLCATALOG, xmlcatalog)
+ AC_PATH_PROG(XSLTPROC, xsltproc)
+ fi
+ ],
+ [ENABLE_GJDOC=no])
+
+ AM_CONDITIONAL(CREATE_API_DOCS, test "x${ENABLE_GJDOC}" = xyes)
+])
+