[ostree: 1/2] configure.ac: Fix checks for libarchive



commit b314b25e6ac52da142edf3553054cc3d5523c196
Author: Adrian Perez <aperez igalia com>
Date:   Tue Aug 28 16:36:07 2012 +0300

    configure.ac: Fix checks for libarchive
    
    When configuring without passing --enable-triggers-only, checks for
    libarchive were not being done. Shuffling around the checks solves
    the issue.

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d6a9f99..1aa747b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,7 +91,11 @@ AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes)
 AC_ARG_WITH(libarchive,
 	    AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
 	    :, with_libarchive=maybe)
-AS_IF([ test x$with_libarchive != xno && test x$enable_triggers_only != xno ], [
+if test x$enable_triggers_only != xno; then
+	with_libarchive=no
+fi
+
+AS_IF([ test x$with_libarchive != xno ], [
     AC_MSG_CHECKING([for $LIBARCHIVE_DEPENDENCY])
     PKG_CHECK_EXISTS($LIBARCHIVE_DEPENDENCY, have_libarchive=yes, have_libarchive=no)
     AC_MSG_RESULT([$have_libarchive])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]