1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
diff -Nur kdelibs-3.4.91.orig/configure.in.in kdelibs-3.4.91/configure.in.in
--- kdelibs-3.4.91.orig/configure.in.in 2005-09-10 10:27:50.000000000 +0200
+++ kdelibs-3.4.91/configure.in.in 2005-09-19 16:26:01.000000000 +0200
@@ -48,16 +48,27 @@
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/param.h sys/mman.h sys/time.h sysent.h strings.h sys/stat.h sys/select.h paths.h malloc.h limits.h sys/soundcard.h dlfcn.h termios.h)
-USE_POSIX_ACL="yes"
+AC_ARG_WITH(acl,
+ [AC_HELP_STRING(--with-acl,
+ [enable support for POSIX ACLs @<:@default=check@:>@])],
+ [], with_acl=check)
+
ACL_LIBS=""
-KDE_CHECK_HEADER(sys/xattr.h, ,[USE_POSIX_ACL="no"])
-KDE_CHECK_HEADER(sys/acl.h, ,[USE_POSIX_ACL="no"])
-KDE_CHECK_HEADER(acl/libacl.h, ,[USE_POSIX_ACL="no"])
-KDE_CHECK_LIB(acl,acl_init, ,[USE_POSIX_ACL="no"])
+if test "x$with_acl" != xno; then
+ USE_POSIX_ACL="yes"
+ KDE_CHECK_HEADER(sys/xattr.h, ,[USE_POSIX_ACL="no"])
+ KDE_CHECK_HEADER(sys/acl.h, ,[USE_POSIX_ACL="no"])
+ KDE_CHECK_HEADER(acl/libacl.h, ,[USE_POSIX_ACL="no"])
+ KDE_CHECK_LIB(acl,acl_init, ,[USE_POSIX_ACL="no"])
-if test $USE_POSIX_ACL = "yes" ; then
+ if test $USE_POSIX_ACL = "yes" ; then
ACL_LIBS="-lacl -lattr"
AC_DEFINE([USE_POSIX_ACL], 1, [Define if system has POSIX ACL support.])
+ fi
+
+ if test "x$with_acl" != xcheck && test "$USE_POSIX_ACL" != "yes"; then
+ AC_MSG_ERROR([--with-acl was given, but test for POSIX ACLs failed])
+ fi
fi
AC_SUBST(ACL_LIBS)
|