aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Alex Elsayed <eternaleye@gmail.com> 2012-06-01 22:20:36 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-06-02 22:01:27 +0100
commita3bb614a9fe39b0cbc597197e7428f70a6b99e8c (patch)
tree4ce2fbe7b7dde4b17ac13a7a236d85ce7c8dcefc /configure.ac
parentd4661a13032a90c7be9a03b5c9ad11845f8cc2f6 (diff)
downloadpaludis-a3bb614a9fe39b0cbc597197e7428f70a6b99e8c.tar.gz
paludis-a3bb614a9fe39b0cbc597197e7428f70a6b99e8c.tar.xz
docs, configure.ac: libarchive[>=3.0]
Version 3.0 of libarchive fixes both xattr issues and GNU tar support, so we now hard-dep on it. As a result, we can rip out the code for creating paxballs. However, we'll keep unpaxinate and the other machinery for extracting them so as not to break old pbins.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 4 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index dd361a555..1b891f519 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1692,31 +1692,11 @@ dnl }}}
dnl {{{ libarchive
libarchive_does_gnutar=no
if test "x$need_libarchive_check" = "xyes" ; then
- AC_MSG_CHECKING([for libarchive])
- AC_PREPROC_IFELSE([AC_LANG_SOURCE([
-#include <archive.h>
- ])],
- [AC_MSG_RESULT([yes])],
- [AC_MSG_ERROR([libarchive is required for pbins])])
-
- AC_MSG_CHECKING([whether your libarchive does gnutar])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-#include <archive.h>
-
-int main(int, char **)
-{
- struct archive * archive;
- archive_write_set_format_gnutar(archive);
-}
- ])],
- [
- AC_MSG_RESULT([yes])
- libarchive_does_gnutar=yes
- AC_DEFINE([LIBARCHIVE_DOES_GNUTAR], [1], [libarchive does gnutar])
- ],
- [AC_MSG_RESULT([no])])
+ PKG_CHECK_MODULES(
+ LIBARCHIVE, [libarchive >= 3.0.4],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_ERROR([libarchive >= 3.0.4 is required for pbins])])
fi
-AM_CONDITIONAL([LIBARCHIVE_DOES_GNUTAR], test "x$libarchive_does_gnutar" = "xyes")
dnl }}}
dnl {{{ sqlite3 check