[lockdev-devel] [PATCH 21/22] add pkgconfig file

Ludwig Nussel ludwig.nussel at suse.de
Fri Feb 26 15:38:15 UTC 2010


Karel Zak wrote:
> On Fri, Feb 26, 2010 at 11:37:21AM +0100, Ludwig Nussel wrote:
> > ---
> >  Makefile.am |   14 ++++++++++++++
> >  1 files changed, 14 insertions(+), 0 deletions(-)
> > 
> > diff --git a/Makefile.am b/Makefile.am
> > index d229a00..0aee4fe 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -1 +1,15 @@
> >  SUBDIRS = src docs
> > +
> > +pkgconfigdir = $(libdir)/pkgconfig
> > +pkgconfig_DATA = lockdev.pc
> > +
> > +lockdev.pc: lockdev.pc.in Makefile
> > +	sed -e 's, at libdir\@,$(libdir),g' \
> > +	    -e 's, at prefix\@,$(prefix),g' \
> > +	    -e 's, at exec_prefix\@,$(exec_prefix),g' \
> > +	    -e 's, at includedir\@,$(includedir),g' \
> > +	    -e 's, at VERSION\@,$(VERSION),g' \
> > +	    < $< > $@
> 
>  What about:
> 
>  AC_CONFIG_FILES([
>         lockdev.pc
>  ])
> 
>  in the ./configure.in ? :-)

I'm not sure actually. I've copied the snipped from an older
project of mine. In general using AC_CONFIG_FILES may not work as
variables are allowed to contain references to other variables.
Looks like pkg-config supports that though.
However, what's really missing from the patch is the actual
pkgconfig file. I forgot git add :-)

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)



More information about the lockdev-devel mailing list