SE-DBUS landed

Olivier Andrieu oliv__a at users.sourceforge.net
Sat Jul 31 02:43:52 PDT 2004


 Colin Walters [Fri, 30 Jul 2004]:
 > The first took me a while to track down - it turns out that
 > AC_EGREP_HEADER is wrong for looking for DBUS__ACQUIRE_SVC, because
 > DBUS__ACQUIRE_SVC is a preprocessor macro itself.  Since
 > AC_EGREP_HEADER is actually defined to be run on the preprocessed
 > source, that #define will disappear.  Due to a quirk of GCC, it
 > would work on earlier versions.  I also added AC_MSG_CHECKING so
 > the user knows what's going on.

Doesn't work for me: the preprocessor directives must be on lines of
their own.

-- 
   Olivier
-------------- next part --------------
--- configure.in.~1.93.~	2004-07-31 11:08:48.000000000 +0200
+++ configure.in	2004-07-31 11:40:19.140101578 +0200
@@ -702,10 +702,10 @@
     if test x$have_selinux = xyes ; then
         AC_MSG_CHECKING([for DBUS Flask permissions in selinux/av_permissions.h])
 	AC_TRY_COMPILE([#include <selinux/av_permissions.h>],
-			[#ifdef DBUS__ACQUIRE_SVC return 0;
-			 #else #error DBUS__ACQUIRE_SVC not defined
-			 #endif],
-                        have_selinux=yes, have_selinux=no)
+		       [#ifndef DBUS__ACQUIRE_SVC
+#error DBUS__ACQUIRE_SVC not defined
+#endif],
+                       have_selinux=yes, have_selinux=no)
 	AC_MSG_RESULT($have_selinux)
     fi
 


More information about the dbus mailing list