diff options
author | Colin Walters <walters@verbum.org> | 2014-06-26 07:54:41 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-06-26 08:03:33 -0400 |
commit | e8f508ac6b9c055b58bb1cae412061d224ee0add (patch) | |
tree | 98d4f3899b4eb000f03e893d4bf820a6342948ee | |
parent | 7c01ad590ee99f59ecdcb5f34ec9817091806b7f (diff) | |
download | ostree-e8f508ac6b9c055b58bb1cae412061d224ee0add.tar.gz |
Add --enable-libsoup-client-certs
The goal of this is to hard-fail if the API isn't present in the
buildroot, as some downstreams may explicitly require it.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0a90fdef..1e5a872e 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,10 @@ AC_ARG_WITH(soup, AS_HELP_STRING([--with-soup], [Use libsoup @<:@default=yes@:>@]), [], [with_soup=check]) AS_IF([test x$with_soup != xno ], [ + AC_ARG_ENABLE(libsoup_client_certs, + AS_HELP_STRING([--enable-libsoup-client-certs], + [Require availability of new enough libsoup TLS client cert API (default: auto)]),, + [enable_libsoup_client_certs=auto]) AC_MSG_CHECKING([for $SOUP_DEPENDENCY]) PKG_CHECK_EXISTS($SOUP_DEPENDENCY, have_soup=yes, have_soup=no) AC_MSG_RESULT([$have_soup]) @@ -73,6 +77,9 @@ AS_IF([test x$with_soup != xno ], [ AC_DEFINE(HAVE_LIBSOUP_CLIENT_CERTS, 1, [Define if we have libsoup client certs]) have_libsoup_client_certs=yes ], [], [#include <libsoup/soup.h>]) + AS_IF([test x$enable_libsoup_client_certs = xyes && test x$have_libsoup_client_certs != xyes], [ + AC_MSG_ERROR([libsoup client certs explicitly requested but not found]) + ]) CFLAGS=$save_CFLAGS ], [ with_soup=no @@ -219,6 +226,7 @@ echo " introspection: $found_introspection libsoup (retrieve remote HTTP repositories): $with_soup + libsoup TLS client certs: $have_libsoup_client_certs SELinux: $with_selinux libarchive (parse tar files directly): $with_libarchive gpgme (sign commits): $with_gpgme |