Fix detection of polkit_context_is_caller_authorized() function, also reported by...
authorDiego Petteno <flameeyes@gmail.com>
Fri, 23 Nov 2007 15:27:56 +0000 (15:27 +0000)
committerDiego Petteno <flameeyes@gmail.com>
Fri, 23 Nov 2007 15:27:56 +0000 (15:27 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2075 fefdeb5f-60dc-0310-8127-8f9354f1896f

configure.ac

index b9be19b..441f8d6 100644 (file)
@@ -881,11 +881,11 @@ if test "x${polkit}" != xno ; then
         [
             HAVE_POLKIT=1
             saved_LIBS="$LIBS"
-            LIBS="$LIBS POLKIT_LIBS"
+            LIBS="$LIBS $POLKIT_LIBS"
             AC_CHECK_FUNCS(polkit_context_is_caller_authorized)
             LIBS="$saved_LIBS"
             AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
-            policydir=`pkg-config --variable prefix`/usr/share/PolicyKit/policy/
+            policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
             AC_SUBST(policydir)
         ],
         [