build: require polkit-gobject >= 0.97

It's new enough, and it lets us use polkit_authority_get_sync().
This commit is contained in:
Aleksander Morgado
2012-03-16 14:53:15 +01:00
parent 3e5b42569b
commit 5ab3ec6bce
+1 -5
View File
@@ -109,15 +109,11 @@ AM_CONDITIONAL(WITH_POLKIT, test "x$with_polkit" = "xyes")
case $with_polkit in
yes)
with_polkit=yes
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.95)
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.97)
AC_DEFINE(WITH_POLKIT, 1, [Define if you want to use PolicyKit])
AC_SUBST(POLKIT_CFLAGS)
AC_SUBST(POLKIT_LIBS)
# Check for polkit_authority_get_sync()
AC_CHECK_LIB([polkit-gobject-1], [polkit_authority_get_sync], ac_have_pk_auth_get_sync="1", ac_have_pk_auth_get_sync="0")
AC_DEFINE_UNQUOTED(HAVE_POLKIT_AUTHORITY_GET_SYNC, $ac_have_pk_auth_get_sync, [Define if you have a polkit with polkit_authority_get_sync()])
AM_GLIB_GNU_GETTEXT
;;
*)