fi
AC_SUBST(ZLIBS)
-dnl
-dnl Check if we have AFS on this system
-dnl
-AFS_CFLAGS=""
-AFS_LIBS=""
-support_afs=auto
-AC_ARG_ENABLE(afs,
- AC_HELP_STRING([--disable-afs], [disable afs support @<:@default=auto@:>@]),
- [
- if test x$enableval = xyes; then
- support_afs=yes
- elif test x$enableval = xno; then
- support_afs=no
- fi
- ]
-)
-
-have_afs=no
-if test x$support_afs = xyes -o x$support_afs = xauto; then
- AC_ARG_WITH(afsdir,
- AC_HELP_STRING([--with-afsdir@<:@=DIR@:>@], [Directory holding AFS includes/libs]),
- with_afsdir=$withval
- )
-
- dnl
- dnl Search in standard places, or --with-afsdir not specified
- dnl
- if test x$with_afsdir = x; then
- for root in /usr /usr/local; do
- if test -d ${root}/include/afs/ ; then
- with_afsdir=${root}
- break
- fi
- done
- fi
-
- AFS_CFLAGS="-I${with_afsdir}/include"
-
- saved_CFLAGS="${CFLAGS}"
- CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
-
- AC_CHECK_HEADERS(afs/stds.h)
-
- CFLAGS="${saved_CFLAGS}"
-
- dnl
- dnl See if we can find a libsys with the pioctl symbol in there
- dnl
- for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
- do
- for arch_type in .a .so
- do
- A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
- pkg=$?
- if test $pkg = 0; then
- have_afs=yes
- AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
- break
- fi
- done
- done
-
- if test x$support_afs = xyes -a $have_afs != yes; then
- AC_MSG_ERROR([afs support explicitly enabled but no supported afs implementation found,
- please either load the afs libraries or rerun configure without --enable-afs])
- else
- if test $have_afs = yes; then
- AC_DEFINE([HAVE_AFS],1,[Defines if your system has AFS support])
- AC_DEFINE([HAVE_AFS_ACL],1,[Andrew FileSystem ACL support])
- fi
- fi
-fi
-
-AC_SUBST(AFS_CFLAGS)
-AC_SUBST(AFS_LIBS)
-
dnl
dnl Check for ACL support and libraries
dnl
PYTHON_LIBS = @PYTHON_LIBS@
PYTHON_INC = @PYTHON_INCDIR@
-AFS_CFLAGS = @AFS_CFLAGS@
-AFS_LIBS = @AFS_LIBS@
first_rule: all
dummy:
acl.o: acl.c
@echo "Compiling $<"
- $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $(AFS_CFLAGS) $<
+ $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
win32/winlib.a:
@if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
@echo "Linking $@ ..."
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
$(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS)
static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
$(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS)
strip $@
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
* - Solaris (POSIX and NFSv4/ZFS acls)
* - Tru64
*
- * Next to OS specific acls we support AFS acls using the pioctl interface.
- *
* We handle two different types of ACLs: access and default ACLS.
* On most systems that support default ACLs they only apply to directories.
*
#include "bacula.h"
#include "filed.h"
-#if !defined(HAVE_ACL) && !defined(HAVE_AFS_ACL)
+#if !defined(HAVE_ACL)
/**
* Entry points when compiled without support for ACLs or on an unsupported platform.
*/