summaryrefslogtreecommitdiff
path: root/docs/aclocal.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-04-23 14:23:36 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:47 -0500
commitbcb40631df9c6ff69ccf7a41d570c4914c09e797 (patch)
treef2ae3dd4095979a3919ee4dc5044084bfd637374 /docs/aclocal.m4
parenta48fcbf0b45de7b7c44cd6eb9b983d13e5ad93a9 (diff)
downloadsamba-bcb40631df9c6ff69ccf7a41d570c4914c09e797.tar.gz
samba-bcb40631df9c6ff69ccf7a41d570c4914c09e797.tar.bz2
samba-bcb40631df9c6ff69ccf7a41d570c4914c09e797.zip
Make the docs system somewhat more user-friendly:
- Configure now prints a summary of what output formats the docs can be built in using the utilities that it found and prints the names of the missing utilities for the formats that can't be built. - Add 'make all' that builds all the docs that can be built using the utilities that were found (the current 'make all' has been renamed to 'make help' and is still the first target in the Makefile) - Add a few utility functions for autoconf (This used to be commit 48cc8b693f182653ac7b9bcccc92c72cf062c1ea)
Diffstat (limited to 'docs/aclocal.m4')
-rw-r--r--docs/aclocal.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/aclocal.m4 b/docs/aclocal.m4
new file mode 100644
index 0000000000..731139cfde
--- /dev/null
+++ b/docs/aclocal.m4
@@ -0,0 +1,35 @@
+dnl DOCS_DEFINE_TARGET
+dnl arg1: Target that is defined
+dnl arg2: Requirement
+dnl arg3: Official name
+dnl arg4: Makefile target name
+
+AC_DEFUN(DOCS_DEFINE_TARGET, [
+ if test "x$$1_REQUIRES" = x; then
+ $1_REQUIRES="$$2_REQUIRES"
+ else
+ $1_REQUIRES="$$1_REQUIRES $$2_REQUIRES"
+ fi
+
+ if test x"$$1_REQUIRES" = x; then
+ TARGETS="$TARGETS $4"
+ else
+ AC_MSG_RESULT([Building the $3 requires : $$1_REQUIRES])
+ fi
+])
+
+dnl DOCS_TARGET_REQUIRE_PROGRAM
+dnl arg1: program variable
+dnl arg2: program executable name
+dnl arg3: target that requires it
+
+AC_DEFUN(DOCS_TARGET_REQUIRE_PROGRAM, [
+ AC_PATH_PROG([$1], [$2])
+ if test x"$$1" = x; then
+ if test x"$$3_REQUIRES" = x; then
+ $3_REQUIRES="$2"
+ else
+ $3_REQUIRES="$$3_REQUIRES $2"
+ fi
+ fi
+])