]> err.no Git - varnish/commitdiff
Install headers, and register with pkg-config.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Jul 2007 08:23:31 +0000 (08:23 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Jul 2007 08:23:31 +0000 (08:23 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1605 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/Makefile.am
varnish-cache/configure.ac
varnish-cache/include/Makefile.am
varnish-cache/varnishapi.pc.in [new file with mode: 0644]

index 9984a64a17abd40e5c91c6643fbf7c26fe705323..6002d886686f7360d6b2978e5d0baaea5b9775a8 100644 (file)
@@ -4,7 +4,10 @@ SUBDIRS = include lib bin man etc doc
 
 SUBDIRS += debian redhat
 
-EXTRA_DIST = LICENSE autogen.sh
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = varnishapi.pc
+
+EXTRA_DIST = LICENSE autogen.sh varnishapi.pc.in
 
 install-data-local:
        $(install_sh) -d -m 0755 $(localstatedir)/varnish
index dc5b73e031d222cecf3010aef8140d02e15b389c..b6af8defb939f6479258389554aeb6a512fa1711 100644 (file)
@@ -155,5 +155,6 @@ AC_CONFIG_FILES([
     man/Makefile
     debian/Makefile
     redhat/Makefile
+    varnishapi.pc
 ])
 AC_OUTPUT
index 5b62b62ed1ff3b9ef38c20e28790bd3a82657396..8b09fa074dcd34a57e28634e03b5a8a5e2af9fa9 100644 (file)
@@ -1,5 +1,12 @@
 # $Id$
 
+pkginclude_HEADERS = \
+       shmlog.h \
+       shmlog_tags.h \
+       stat_field.h \
+       stats.h \
+       varnishapi.h
+
 noinst_HEADERS = \
        binary_heap.h \
        cli.h \
@@ -22,11 +29,6 @@ noinst_HEADERS = \
        queue.h \
        vpf.h \
        vsb.h \
-       shmlog.h \
-       shmlog_tags.h \
-       stat_field.h \
-       stats.h \
-       varnishapi.h \
        vcl.h \
        vcl_returns.h \
        vrt.h \
diff --git a/varnish-cache/varnishapi.pc.in b/varnish-cache/varnishapi.pc.in
new file mode 100644 (file)
index 0000000..4b3b2ac
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: VarnishAPI
+Description: Varnish API
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}/varnish
+Libs: -L${libdir} -lvarnishapi