aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
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