source: branches/samba-3.5.x/docs-xml/aclocal.m4

Last change on this file was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 833 bytes
Line 
1dnl (C) 2003-2004 Jelmer Vernooij <jelmer@samba.org>
2dnl Published under the GNU GPL
3dnl
4dnl DOCS_DEFINE_TARGET
5dnl arg1: Target that is defined
6dnl arg2: Requirement
7dnl arg3: Official name
8dnl arg4: Makefile target name
9
10AC_DEFUN(DOCS_DEFINE_TARGET, [
11 if test "x$$1_REQUIRES" = x; then
12 $1_REQUIRES="$$2_REQUIRES"
13 else
14 $1_REQUIRES="$$1_REQUIRES $$2_REQUIRES"
15 fi
16
17 if test x"$$1_REQUIRES" = x; then
18 TARGETS="$TARGETS $4"
19 else
20 AC_MSG_RESULT([Building the $3 requires : $$1_REQUIRES])
21 fi
22])
23
24dnl DOCS_TARGET_REQUIRE_PROGRAM
25dnl arg1: program variable
26dnl arg2: program executable name
27dnl arg3: target that requires it
28
29AC_DEFUN(DOCS_TARGET_REQUIRE_PROGRAM, [
30 AC_CHECK_PROGS([$1], [$2])
31 if test x"$$1" = x; then
32 if test x"$$3_REQUIRES" = x; then
33 $3_REQUIRES="$2"
34 else
35 $3_REQUIRES="$$3_REQUIRES $2"
36 fi
37 fi
38])
Note: See TracBrowser for help on using the repository browser.