]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
kes Apply patch from Marco van Wieringen that implements the new
[bacula/bacula] / bacula / autoconf / configure.in
index 9510443bd300db58348bac75dfb0b5bd65780c6e..02ce81690a78567243219dda3fea66dfbc3d3c79 100644 (file)
@@ -2207,6 +2207,7 @@ dnl
 dnl Check for ACL libraries
 dnl
 have_acl=no
+have_extended_acl=no
 AC_CHECK_HEADER(sys/acl.h)
 AC_CHECK_FUNC(acl_get_file, [have_acl=yes],
    [
@@ -2219,6 +2220,12 @@ AC_CHECK_FUNC(acl_get_file, [have_acl=yes],
                 [
                     have_acl=yes;
                     FDLIBS="-lsec $FDLIBS"
+
+                    AC_CHECK_LIB(sec, acl_totext,
+                       [
+                           have_extended_acl=yes
+                       ]
+                    )
                 ]
              )
          ]
@@ -2229,6 +2236,10 @@ if test $have_acl = yes; then
    AC_DEFINE(HAVE_ACL)
 fi
 
+if test $have_extended_acl = yes; then
+   AC_DEFINE(HAVE_EXTENDED_ACL)
+fi
+
 dnl Check for pthread libraries
 PTHREAD_LIB=""
 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",