~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to macros/afs-check.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl $Id: afs-check.m4,v 1.1 2002/01/17 05:48:51 srittau Exp $
 
2
dnl Autoconf macro to check whether AFS support should be enabled
 
3
 
 
4
AC_DEFUN([NETATALK_AFS_CHECK], [
 
5
        AFS_LIBS=
 
6
        AFS_CFLAGS=
 
7
 
 
8
        AC_ARG_ENABLE(afs,
 
9
                [  --enable-afs            enable AFS support],
 
10
                [
 
11
                        if test "x$enableval" = "xyes"; then
 
12
                                AC_CHECK_LIB(afsauthent, pioctl, ,
 
13
                                        AC_MSG_ERROR([AFS installation not found])
 
14
                                )
 
15
                                AFS_LIBS=-lafsauthent
 
16
                                AC_DEFINE(AFS, 1)
 
17
                        fi
 
18
                ]
 
19
        )
 
20
 
 
21
        AC_SUBST(AFS_LIBS)
 
22
        AC_SUBST(AFS_CFLAGS)
 
23
])