File: afs-check.m4

package info (click to toggle)
netatalk 2.0.3-11%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,428 kB
  • ctags: 6,161
  • sloc: ansic: 67,633; sh: 8,393; perl: 1,187; makefile: 1,060
file content (31 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (4)
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
dnl $Id: afs-check.m4,v 1.2.6.1 2003/10/29 23:53:24 bfernhomberg Exp $
dnl Autoconf macro to check whether AFS support should be enabled

AC_DEFUN([NETATALK_AFS_CHECK], [
	AFS_LIBS=
	AFS_CFLAGS=

	netatalk_cv_afs=no
	AC_ARG_ENABLE(afs,
		[  --enable-afs            enable AFS support],
		[
			if test "x$enableval" = "xyes"; then
				AC_CHECK_LIB(afsauthent, pioctl, netatalk_cv_afs=yes,
					AC_MSG_ERROR([AFS installation not found])
				)
				AFS_LIBS=-lafsauthent
				AC_DEFINE(AFS, 1, [Define if AFS should be used])
			fi
		]
	)

	AC_MSG_CHECKING([whether to enable AFS support])	
	if test x"$netatalk_cv_afs" = x"yes"; then
		AC_MSG_RESULT([yes])
	else
		AC_MSG_RESULT([no])
	fi

	AC_SUBST(AFS_LIBS)
	AC_SUBST(AFS_CFLAGS)
])