summaryrefslogtreecommitdiff
path: root/docs-xml/aclocal.m4
diff options
context:
space:
mode:
authorGerald W. Carter <jerry@samba.org>2008-04-22 10:09:40 -0500
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:47:48 -0500
commit8f8a9f01909ba29e2b781310baeeaaddc3f15f0d (patch)
tree90c6b720ad3a7bc815245c0ef28820424f89d658 /docs-xml/aclocal.m4
parent197238246389c40edc60c6630d18d6913086e630 (diff)
downloadsamba-8f8a9f01909ba29e2b781310baeeaaddc3f15f0d.tar.gz
Moving docs tree to docs-xml to make room for generated docs in the release tarball.
(This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14)
Diffstat (limited to 'docs-xml/aclocal.m4')
-rw-r--r--docs-xml/aclocal.m464
1 files changed, 64 insertions, 0 deletions
diff --git a/docs-xml/aclocal.m4 b/docs-xml/aclocal.m4
new file mode 100644
index 00000000000..9ecbda5e6bc
--- /dev/null
+++ b/docs-xml/aclocal.m4
@@ -0,0 +1,64 @@
+dnl (C) 2003-2004 Jelmer Vernooij <jelmer@samba.org>
+dnl Published under the GNU GPL
+dnl
+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_CHECK_PROGS([$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
+])
+
+dnl DOCS_TARGET_REQUIRE_DIR
+dnl arg1: list of possible paths
+dnl arg2: file in dir know to exist
+dnl arg3: variable to store found path in
+dnl arg4: target that requires it
+
+AC_DEFUN(DOCS_TARGET_REQUIRE_DIR, [
+ AC_MSG_CHECKING([for $2])
+ AC_SUBST($3)
+ for I in $1;
+ do
+ test -f "$I/$2" && $3="$I"
+ done
+
+ if test x$$3 = x; then
+ if test x"$$4_REQUIRES" = x; then
+ $4_REQUIRES="$3"
+ else
+ $4_REQUIRES="$$4_REQUIRES $3"
+ fi
+ AC_MSG_RESULT([not found])
+ else
+ AC_MSG_RESULT([found in $$3])
+ fi
+])