File: acinclude.m4

package info (click to toggle)
libapache2-mod-auth-cas 1.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 596 kB
  • ctags: 157
  • sloc: sh: 8,468; ansic: 1,475; makefile: 69
file content (43 lines) | stat: -rw-r--r-- 867 bytes parent folder | download
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
39
40
41
42
43
################################################################################
#MJS - Find APXS
# 	path search for APXS
AC_DEFUN([AZ_PROG_APXS],
[
	AC_PATH_PROGS([APXS],[apxs apxs2])
])

################################################################################
#MJS - Look for --with-apxs
AC_DEFUN([AZ_WITH_APXS],
[
	AC_MSG_CHECKING([for --with-apxs])
	AC_ARG_WITH(
		[apxs],
		[AS_HELP_STRING([--with-apxs],[/path/to/apxs])],
		[APXS=$with_apxs]
	)
	if test "$APXS"
	then
		AC_MSG_RESULT([$APXS])
	else
		AC_MSG_RESULT([no])
	fi
])

################################################################################
#MJS - require apxs
AC_DEFUN([AZ_USE_APXS],
[
	AC_REQUIRE([AZ_WITH_APXS])
	if test -z "$APXS" 
	then
		AZ_PROG_APXS
	fi
	
	if test -z "$APXS"
	then
		AC_MSG_FAILURE([apxs not found])
	fi
	AC_SUBST([APXS])
	AC_MSG_NOTICE([Using APXS=$APXS])
])