File: aclocal.m4

package info (click to toggle)
samba 2%3A4.1.17%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 102,820 kB
  • sloc: ansic: 1,165,393; xml: 114,314; python: 103,454; perl: 28,180; sh: 12,167; asm: 3,281; cpp: 2,281; yacc: 1,949; ada: 1,681; exp: 1,582; makefile: 1,287; pascal: 1,082; cs: 879; lex: 566; awk: 140; csh: 58; sed: 45
file content (38 lines) | stat: -rw-r--r-- 833 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
])