1 dnl $Id: afs-check.m4,v 1.4 2005-08-11 20:15:35 didg Exp $
2 dnl Autoconf macro to check whether AFS support should be enabled
4 AC_DEFUN([NETATALK_AFS_CHECK], [
10 [ --enable-afs enable AFS support],
12 if test "x$enableval" = "xyes"; then
13 AC_CHECK_LIB(afsauthent, pioctl, netatalk_cv_afs=yes,
14 AC_MSG_ERROR([AFS installation not found])
16 AFS_LIBS=-lresolv -lafsrpc -lafsauthent
17 AC_DEFINE(AFS, 1, [Define if AFS should be used])
22 AC_MSG_CHECKING([whether to enable AFS support])
23 if test x"$netatalk_cv_afs" = x"yes"; then