aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2009-02-17 20:25:17 +0000
committerHeikki Lindholm <holin@iki.fi>2009-02-17 20:25:17 +0000
commitfe8b7d92cdf5074c9e95a090707fad9642ff2e4f (patch)
treeaa58561ba368c4af7d530d682492325b04502e31
parent2c53619affc880f653c23b6f861d100d43b6d4af (diff)
downloadlibmicrohttpd-fe8b7d92cdf5074c9e95a090707fad9642ff2e4f.tar.gz
libmicrohttpd-fe8b7d92cdf5074c9e95a090707fad9642ff2e4f.zip
pkg-config: if not anything else, helps with static linkage
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac1
-rw-r--r--libmicrohttpd.pc.in13
3 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 7cd847ec..001dbec0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,7 @@
1ACLOCAL_AMFLAGS = -I m4 1ACLOCAL_AMFLAGS = -I m4
2SUBDIRS = contrib src doc m4 . 2SUBDIRS = contrib src doc m4 .
3EXTRA_DIST = acinclude.m4 3EXTRA_DIST = acinclude.m4 libmicrohttpd.pc.in
4
5pkgconfigdir = $(libdir)/pkgconfig
6pkgconfig_DATA = libmicrohttpd.pc
4 7
diff --git a/configure.ac b/configure.ac
index c70c32c5..b66538b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,7 @@ AC_SUBST(EXT_LIB_PATH)
298AC_SUBST(EXT_LIBS) 298AC_SUBST(EXT_LIBS)
299 299
300AC_CONFIG_FILES([ 300AC_CONFIG_FILES([
301libmicrohttpd.pc
301Makefile 302Makefile
302contrib/Makefile 303contrib/Makefile
303doc/Makefile 304doc/Makefile
diff --git a/libmicrohttpd.pc.in b/libmicrohttpd.pc.in
new file mode 100644
index 00000000..fd3e8c92
--- /dev/null
+++ b/libmicrohttpd.pc.in
@@ -0,0 +1,13 @@
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3libdir=@libdir@
4includedir=@includedir@
5
6Name: libmicrohttpd
7Description: A library for creating an embedded HTTP server
8Version: @VERSION@
9Requires:
10Conflicts:
11Libs: -L${libdir} -lmicrohttpd
12Libs.private: @LIBGCRYPT_LIBS@
13Cflags: -I${includedir}