PackageKit/PackageKit-ac.patch

87 lines
2.7 KiB
Diff

--- configure.ac
+++ configure.ac
@@ -18,6 +18,7 @@ DEVELOPMENT_RELEASE=yes
# REVISION If the API and ABI remains the same, but bugs are fixed.
# AGE If libpackagekit can be linked into executables which can be
# built with previous versions of this library. Don't use.
+m4_pattern_allow([^LT_(CURRENT|REVISION|AGE)$])dnl
LT_CURRENT=3
LT_REVISION=0
LT_AGE=0
@@ -398,7 +400,7 @@ AC_SUBST(DEFAULT_BACKEND, "$with_default
AC_DEFUN([APT_BACKEND],
[
- if test "$APT_PKG_TYPE" == "" ; then
+ if test "$APT_PKG_TYPE" = "" ; then
AC_LANG_PUSH(C++)
_libaptpkg_save_cppflags=$CPPFLAGS
CPPFLAGS="$APT_CFLAGS $CPPFLAGS"
@@ -412,12 +414,12 @@ AC_DEFUN([APT_BACKEND],
#include <apt-pkg/init.h>
#include <stdio.h>
],[
- if (pkgInitConfig(*_config) == false)
+ if (!pkgInitConfig(*_config))
{
fprintf(stderr,"pkginitconfig was false");
return -1;
}
- if (pkgInitSystem(*_config, _system) == false)
+ if (!pkgInitSystem(*_config, _system))
{
fprintf(stderr,"pkginitsystem was false");
return -1;
@@ -458,7 +460,7 @@ if test x$enable_apt = xyes; then
AC_ARG_WITH(libapt-pkg-lib,
AC_HELP_STRING([--with-libapt-pkg-lib=DIR],[look for the libapt-pkg library in DIR]),
[_libaptpkg_with_lib=$withval],[_libaptpkg_with_lib=no])
- if test "$_libaptpkg_with_lib" == "no" ; then
+ if test "$_libaptpkg_with_lib" = "no" ; then
APT_LIBS="-lapt-pkg"
else
APT_LIBS="-L$withval -lapt-pkg"
@@ -467,7 +469,7 @@ if test x$enable_apt = xyes; then
AC_ARG_WITH(libapt-pkg-includes,
AC_HELP_STRING([--with-libapt-pkg-includes=DIR],[look for the libapt-pkg includes in DIR]),
[_libaptpkg_with_inc=$withval],[_libaptpkg_with_inc=no])
- if test "$_libaptpkg_with_inc" == "no" ; then
+ if test "$_libaptpkg_with_inc" = "no" ; then
APT_CFLAGS="-I/usr/include/apt-pkg"
else
APT_CFLAGS="-I$withval"
@@ -488,29 +490,29 @@ if test x$enable_apt = xyes; then
#include <apt-pkg/init.h>
#include <stdio.h>
],[
- if (pkgInitConfig(*_config) == false)
+ if (!pkgInitConfig(*_config))
{
fprintf(stderr,"pkginitconfig was false");
return -1;
}
- if (pkgInitSystem(*_config, _system) == false)
+ if (!pkgInitSystem(*_config, _system))
{
fprintf(stderr,"pkginitsystem was false");
return -1;
}
return 0;
]),libaptpkg_usable=yes,AC_MSG_ERROR([libapt-pkg not found]))
+ AC_LANG_POP(C++)
CPPFLAGS=$_libaptpkg_save_cppflags
LIBS=$_libaptpkg_save_libs
unset _libaptpkg_save_cppflags
unset _libaptpkg_save_libs
])
- AC_LANG_POP(C++)
APT_BACKEND(deb,DEB)
APT_BACKEND(rpm,RPM)
- if test "$APT_PKG_TYPE" == "" ; then
+ if test "$APT_PKG_TYPE" = "" ; then
AC_MSG_ERROR([Couldn't find support for any type of packages that we know about for Apt!])
fi