aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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*)
131esac 131esac
132 132
133 133
134 134# for pkg-config
135MHD_LIBDEPS=""
135 136
136CHECK_PTHREAD 137CHECK_PTHREAD
137LIBS="$PTHREAD_LIBS $LIBS" 138LIBS="$PTHREAD_LIBS $LIBS"
@@ -242,6 +243,7 @@ then
242 if test "$gcrypt" = "true" 243 if test "$gcrypt" = "true"
243 then 244 then
244 AC_DEFINE([HTTPS_SUPPORT],[1],[include HTTPS support]) 245 AC_DEFINE([HTTPS_SUPPORT],[1],[include HTTPS support])
246 MHD_LIBDEPS="$LIBGCRYPT_LIBS"
245 else 247 else
246 AC_DEFINE([HTTPS_SUPPORT],[0],[no libgcrypt]) 248 AC_DEFINE([HTTPS_SUPPORT],[0],[no libgcrypt])
247 enable_https="no (lacking libgcrypt)" 249 enable_https="no (lacking libgcrypt)"
@@ -290,6 +292,8 @@ AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
290 292
291AC_SUBST(MHD_LIB_LDFLAGS) 293AC_SUBST(MHD_LIB_LDFLAGS)
292 294
295# for pkg-config
296AC_SUBST(MHD_LIBDEPS)
293 297
294AC_SUBST(CPPFLAGS) 298AC_SUBST(CPPFLAGS)
295AC_SUBST(LIBS) 299AC_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@
9Requires: 9Requires:
10Conflicts: 10Conflicts:
11Libs: -L${libdir} -lmicrohttpd 11Libs: -L${libdir} -lmicrohttpd
12Libs.private: @LIBGCRYPT_LIBS@ 12Libs.private: @MHD_LIBDEPS@
13Cflags: -I${includedir} 13Cflags: -I${includedir}