diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2014-01-01 17:51:31 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2014-01-01 17:51:31 -0800 |
commit | 02d5c58ae4b9bbaa6201990ff5066f0db561d231 (patch) | |
tree | ae921e5d1e89e5584de57109501b83e33b13cea6 | |
parent | 01d9c3ca607e7a2c52ee8dfcd0766dc55e9ad648 (diff) | |
download | rabbitmq-c-github-ask-02d5c58ae4b9bbaa6201990ff5066f0db561d231.tar.gz |
Fixes librabbitmq.pc generation under autoconf
Properly substitute the @requires_private@ and @libs_private@ variables
when configuring under autoconf
This fixes #154
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0559f8f..382fafa 100644 --- a/configure.ac +++ b/configure.ac @@ -115,7 +115,8 @@ AS_IF([test "x$with_ssl" = "xcyassl"], [test "x$with_ssl" = "xgnutls"], [PKG_CHECK_MODULES([SSL], [gnutls],, [with_ssl=no])], [test "x$with_ssl" = "xopenssl"], - [PKG_CHECK_MODULES([SSL], [openssl >= 0.9.8],, [with_ssl=no])], + [PKG_CHECK_MODULES([SSL], [openssl >= 0.9.8], [ssl_pkg_required=openssl], + [with_ssl=no])], [test "x$with_ssl" = "xpolarssl"], [AX_LIB_POLARSSL([SSL_CFLAGS=$POLARSSL_CFLAGS SSL_LIBS=$POLARSSL_LIBS], @@ -162,6 +163,8 @@ AC_ARG_ENABLE([examples], [enable_examples=yes]) AM_CONDITIONAL([EXAMPLES], [test "x$enable_examples" = "xyes"]) +AC_SUBST([requires_private], [$ssl_pkg_required]) +AC_SUBST([libs_private], [$LIBS]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ librabbitmq.pc |