summaryrefslogtreecommitdiffstats
path: root/docs-xml/aclocal.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
commit4f5791ebd03eaec1c7da0865a383175b05102712 (patch)
tree8ce7b00f7a76baa386372422adebbe64510812d4 /docs-xml/aclocal.m4
parentInitial commit. (diff)
downloadsamba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz
samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs-xml/aclocal.m4')
-rw-r--r--docs-xml/aclocal.m438
1 files changed, 38 insertions, 0 deletions
diff --git a/docs-xml/aclocal.m4 b/docs-xml/aclocal.m4
new file mode 100644
index 0000000..1252d21
--- /dev/null
+++ b/docs-xml/aclocal.m4
@@ -0,0 +1,38 @@
+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
+])