From 1ae1dc9f54b28358047fb31d4eb0ad0f92889a8c Mon Sep 17 00:00:00 2001 From: Daniel Hartwig Date: Sun, 25 Mar 2012 13:01:46 +0800 Subject: Also support MultiArch flags from apt 0.8.16 * configure.ac: - check for MultiArch support in APT (requires at least 0.8); * src/generic/apt/apt.cc: - support libapt-pkg 0.8.16 in multiarch_type; * src/generic/apt/matching/match.cc: - tweak multiarch; --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0cea82cb..be0fe6b2 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], AC_MSG_RESULT([yes]), AC_MSG_FAILURE([need libapt-pkg 0.7 or later])) +AC_CHECK_MEMBER([struct pkgCache::Version.MultiArch], [], + [AC_MSG_ERROR([need libapt-pkg 0.8 or later])], + [[#include ]]) + AC_CHECK_LIB(pthread, main, HAVE_LIBPTHREAD=1 , [AC_MSG_ERROR([Can't find the POSIX thread libraries])]) -- cgit v1.2.3