automake
[Top][All Lists]
Advanced

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

Re: suggestions about AC_CONFIG_MACRO_DIR


From: Lorenzo Bettini
Subject: Re: suggestions about AC_CONFIG_MACRO_DIR
Date: Thu, 23 Apr 2009 09:24:05 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Braden McDaniel wrote:
On 4/22/09 2:16 PM, Lorenzo Bettini wrote:
Braden McDaniel wrote:
On 4/22/09 12:13 PM, Lorenzo Bettini wrote:
Braden McDaniel wrote:
On 4/21/09 1:35 PM, Lorenzo Bettini wrote:
Hi

I started adding some m4 macros to my program, that I put in the m4
directory in my sources, and that will be installed during the make
install.

I then added

aclocaldir = $(datadir)/aclocal
aclocal_DATA = ax_boost_base.m4 ax_boost_regex.m4

Unless you're Boost, you shouldn't be installing these.

well, but my library needs boost regex library, so I was planning to
write an autoconf macro that not only searches for my library but also
for boost regex library...

If you really want to do that, you need to change the names of the
files, the macros themselves, and any public shell variables in the
macros so that you do not conflict with versions of these macros
someone else might install.


but in that case, aclocal should get those versions instead of mine,
shouldn't it?

aclocal will get the version that used in configure.ac (or used in a macro that's used in configure.ac)... which should be your renamed variant.

But you really should just use pkg-config instead.

I actually use pkg-config for my library; but boost libraries don't come
with a pkg-config .pc file unfortunately :-(

or did you mean something else?

As long as Boost isn't providing pkg-config metadata, you can simply refer directly to the Boost libraries you need in -l flags in your .pc file's Libs (or Libs.private).


mhh... I don't think I got this point: though I can put the -l flags, still the boost library (and its headers) still need to be searched for, shouldn't they?

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net





reply via email to

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