libtool
[Top][All Lists]
Advanced

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

Re: Detecting that AC_PROG_LIBTOOL has been invoked


From: Benoit Sigoure
Subject: Re: Detecting that AC_PROG_LIBTOOL has been invoked
Date: Fri, 14 Dec 2007 14:53:07 +0100

On Dec 14, 2007, at 1:24 PM, Paolo Bonzini wrote:

The reason why I'm asking this is that I wrote some macros that rely on Libtool's magic handling of -R and even though it's clearly stated in the doc/comments/README that Libtool is mandatory, people keep running in troubles because they didn't use Libtool, so I'd like to trigger an error, somehow, to tell them that they did something wrong.

You can use m4_provide_if like this:

m4_define([m4_provided], [
m4_provide_if([AC_PROG_LIBTOOL], [], [
m4_provide_if([LT_INIT], [],
              [m4_warn([syntax], [Libtool required by $1])])])])])

...

m4_provided([MY_MACRO_NAME])

I didn't count the number of closing brackets.


What is the m4_provide_if? I didn't find it in the manual of autoconf and m4. Anyways, does this guarantee me that the user did INVOKE the give macros, not merely that they exist?

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory






reply via email to

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