1 dnl (C) 2003-2004 Jelmer Vernooij <jelmer@samba.org>
2 dnl Published under the GNU GPL
5 dnl arg1: Target that is defined
7 dnl arg3: Official name
8 dnl arg4: Makefile target name
10 AC_DEFUN(DOCS_DEFINE_TARGET, [
11 if test "x$$1_REQUIRES" = x; then
12 $1_REQUIRES="$$2_REQUIRES"
14 $1_REQUIRES="$$1_REQUIRES $$2_REQUIRES"
17 if test x"$$1_REQUIRES" = x; then
20 AC_MSG_RESULT([Building the $3 requires : $$1_REQUIRES])
24 dnl DOCS_TARGET_REQUIRE_PROGRAM
25 dnl arg1: program variable
26 dnl arg2: program executable name
27 dnl arg3: target that requires it
29 AC_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
35 $3_REQUIRES="$$3_REQUIRES $2"