]> arthur.barton.de Git - netatalk.git/blobdiff - configure.in
Define AFP func no macros. Move 3.2 calls to 3.2 case switch.
[netatalk.git] / configure.in
index 47336919dd92acc9b3d79fc6783dc23d9773e24f..5fc230437e441845875da270271ae917f3ac956b 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.210 2009-02-02 11:55:00 franklahm Exp $
+dnl $Id: configure.in,v 1.211 2009-02-16 13:49:19 franklahm Exp $
 dnl configure.in for netatalk
 
 AC_INIT(etc/afpd/main.c)
@@ -1041,6 +1041,28 @@ else
 fi
 AC_SUBST(LIBATALK_ACLS)
 
+dnl --------------------- check for Extended Attributes support
+neta_cv_extattrs="no"
+AC_MSG_CHECKING([if Extended Attribute Support should be enabled])
+AC_ARG_ENABLE(extattrs,
+       [  --enable-extattrs       enable Extended Attributes],[
+       if test x"$enableval" = x"yes"; then
+          AC_MSG_RESULT([yes])
+          neta_cv_extattrs="yes"
+       else
+          AC_MSG_RESULT([no])
+       fi],[
+          AC_MSG_RESULT([no])
+       ]
+)
+if test x$neta_cv_extattrs = xyes; then
+       AC_CHECK_LIB(c,attropen,neta_cv_extattrs=yes,neta_cv_extattrs=no)
+fi
+if test x$neta_cv_extattrs = xyes; then
+       AC_MSG_NOTICE([Enabling Extended Attributes support])
+       AC_DEFINE([HAVE_EXT_ATTRS], 1, [Enable Extended Attributes])
+fi
+
 dnl --------------------- last minute substitutions
 
 AC_SUBST(LIBS)
@@ -1053,6 +1075,7 @@ AM_CONDITIONAL(COMPILE_A2BOOT, test x$compile_a2boot = xyes)
 AM_CONDITIONAL(HAVE_LIBGCRYPT, test x$neta_cv_have_libgcrypt = xyes)
 AM_CONDITIONAL(HAVE_OPENSSL, test x$neta_cv_have_openssl = xyes)
 AM_CONDITIONAL(USE_NFSv4_ACLS, test x$neta_cv_nfsv4acl = xyes)
+AM_CONDITIONAL(USE_EXT_ATTRS, test x$neta_cv_extattrs = xyes)
 AM_CONDITIONAL(USE_DHX, test x$neta_cv_compile_dhx = xyes)
 AM_CONDITIONAL(USE_DHX2, test x$neta_cv_compile_dhx2 = xyes)
 AM_CONDITIONAL(USE_RANDNUM, test x$neta_cv_have_openssl = xyes)