autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

generating pc files


From: Vincent Torri
Subject: generating pc files
Date: Wed, 19 Sep 2012 08:54:07 +0200 (CEST)


Hey,

I've been using AC_CONFIG FILES to generate my pc files. So I have

foo.pc.in which contains

address@hidden@
address@hidden@

and foo.pc contains (for example):

prefix=/usr/local
libdir=${exec_prefix}/lib

For me it's not a problem to have libdir built with ${exec_prefix} and not being ${libdir} because of the pkg-config documentation :

http://people.freedesktop.org/~dbn/pkg-config-guide.html

All the examples show that variables depending on $prefix are built "with it" and it's even recommended in section "Writing pkg-config files" in the link above.

But it seems that several projects use sed in their Makefile.am to use the value of $libdir, $includedir, etc.. to generate their pc files. So they have in foo.pc

libdir=${libdir}

So I would like to know the opinion of the autoconf dev about what the correct way to generate pc file is.

thank you

Vincent Torri



reply via email to

[Prev in Thread] Current Thread [Next in Thread]