From: Daniel Lezcano Date: Wed, 10 Jun 2009 16:21:48 +0000 (+0200) Subject: add pkg-config for lxc X-Git-Tag: lxc_0_6_3~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6345ba1b39ada371caa24ec3c105694604caa76;p=thirdparty%2Flxc.git add pkg-config for lxc Add the pkg-config information for lxc. Signed-off-by: Daniel Lezcano --- diff --git a/Makefile.am b/Makefile.am index e3e1978b4..5b66d2ffb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,9 @@ SUBDIRS = src test etc scripts doc DIST_SUBDIRS = config src test etc scripts doc EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog +pcdatadir = $(datadir)/pkgconfig +pcdata_DATA = lxc.pc + ChangeLog:: @touch ChangeLog diff --git a/configure.ac b/configure.ac index 2de68add3..12a4f8252 100644 --- a/configure.ac +++ b/configure.ac @@ -14,7 +14,10 @@ AC_PROG_LIBTOOL AC_CHECK_PROG(SETCAP, setcap, yes, no) AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no) AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes) +AS_AC_EXPAND(PREFIX, $prefix) +AS_AC_EXPAND(LIBDIR, $libdir) AS_AC_EXPAND(BINDIR, $bindir) +AS_AC_EXPAND(INCLUDEDIR, $includedir) AS_AC_EXPAND(LIBEXECDIR, $libexecdir) AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir) @@ -59,6 +62,7 @@ AC_SUBST(LXC_MICRO_VERSION) AC_CONFIG_FILES([ Makefile + lxc.pc lxc.spec config/Makefile diff --git a/lxc.pc.in b/lxc.pc.in new file mode 100644 index 000000000..188cbe543 --- /dev/null +++ b/lxc.pc.in @@ -0,0 +1,11 @@ +bindir=@BINDIR@ +libdir=@LIBDIR@ +localstatedir=@LXCPATH@ +includedir=@INCLUDEDIR@ + +Name: lxc +Description: linux container tools +Version: @LXC_MAJOR_VERSION@.@LXC_MINOR_VERSION@.@LXC_MICRO_VERSION@ +URL: http://lxc.sourceforge.net +Libs: -L${libdir} -llxc -lutil +Cflags: -I${includedir} diff --git a/lxc.spec.in b/lxc.spec.in index eb3829b60..199732707 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -78,6 +78,7 @@ chmod ugo+w /var/lxc %{_bindir}/* %{_libexecdir}/* %{_mandir}/* +%{_datadir}/pkgconfig/* %files devel %defattr(-,root,root)