diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-09-25 17:37:16 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-09-28 10:48:47 +0200 |
commit | b25830d8f9e8fbb8fb5f74299a3b24adca220471 (patch) | |
tree | 8e81f23e452a2ebca1ab919a99eb4d1a6b7ff4fa /configure.ac | |
parent | 7af7d61fa0fd43da01f76c14dd7858e1feca1136 (diff) | |
download | xdg-app-b25830d8f9e8fbb8fb5f74299a3b24adca220471.tar.gz |
Add xdg-app dump-runtime command
This creates a tar of the runtime as set up by xdg-app
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 039ba11..4f16cb5 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,34 @@ AC_ARG_ENABLE(sudo, [SUDO_BIN="sudo"], [SUDO_BIN=""]) AC_SUBST([SUDO_BIN]) +LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0" + +AC_ARG_WITH(libarchive, + AS_HELP_STRING([--without-libarchive], [Do not use libarchive]), + :, with_libarchive=maybe) + +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]) + AS_IF([ test x$have_libarchive = xno && test x$with_libarchive != xmaybe ], [ + AC_MSG_ERROR([libarchive is enabled but could not be found]) + ]) + AS_IF([ test x$have_libarchive = xyes], [ + AC_DEFINE([HAVE_LIBARCHIVE], 1, [Define if we have libarchive.pc]) + PKG_CHECK_MODULES(LIBARCHIVE, $LIBARCHIVE_DEPENDENCY) + save_LIBS=$LIBS + LIBS=$LIBARCHIVE_LIBS + AC_CHECK_FUNCS(archive_read_support_filter_all) + LIBS=$save_LIBS + with_libarchive=yes + ], [ + with_libarchive=no + ]) +], [ with_libarchive=no ]) +AM_CONDITIONAL(USE_LIBARCHIVE, test $with_libarchive != no) + + AC_ARG_ENABLE(documentation, AC_HELP_STRING([--enable-documentation], [Build documentation]),, enable_documentation=yes) |