summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2009-02-17 20:38:34 +0000
committerHeikki Lindholm <holin@iki.fi>2009-02-17 20:38:34 +0000
commit7b6b408cc4dd89ddead611d0f45def886480c82d (patch)
treed3c8d4b85601917b2f0eaba91dc854d31b01cf35
parentfe8b7d92cdf5074c9e95a090707fad9642ff2e4f (diff)
pkg-config without https, too
-rw-r--r--configure.ac6
-rw-r--r--libmicrohttpd.pc.in2
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b66538b3..4936aa01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,7 +131,8 @@ netbsd*)
esac
-
+# for pkg-config
+MHD_LIBDEPS=""
CHECK_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
@@ -242,6 +243,7 @@ then
if test "$gcrypt" = "true"
then
AC_DEFINE([HTTPS_SUPPORT],[1],[include HTTPS support])
+ MHD_LIBDEPS="$LIBGCRYPT_LIBS"
else
AC_DEFINE([HTTPS_SUPPORT],[0],[no libgcrypt])
enable_https="no (lacking libgcrypt)"
@@ -290,6 +292,8 @@ AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
AC_SUBST(MHD_LIB_LDFLAGS)
+# for pkg-config
+AC_SUBST(MHD_LIBDEPS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LIBS)
diff --git a/libmicrohttpd.pc.in b/libmicrohttpd.pc.in
index fd3e8c92..54ce379d 100644
--- a/libmicrohttpd.pc.in
+++ b/libmicrohttpd.pc.in
@@ -9,5 +9,5 @@ Version: @VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lmicrohttpd
-Libs.private: @LIBGCRYPT_LIBS@
+Libs.private: @MHD_LIBDEPS@
Cflags: -I${includedir}