[Top][All Lists]

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

Re: autconf, configure & purify...

From: Ralf Wildenhues
Subject: Re: autconf, configure & purify...
Date: Sat, 25 Oct 2008 10:21:56 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Boggis, Antony wrote on Fri, Oct 24, 2008 at 11:28:28PM CEST:
> >Remains the question: does anything in your files use
> >$(PURIFY)?
> No.
> There is a "if PURIFY" though...

Well, Automake conditionals only work if you declare them using

> >One hack I'd try would be to, after your snippet, and after AC_PROG_CC,
> >but before AC_PROG_LIBTOOL, set
> >  CC="$PURIFY $CC"
> Only trouble with that is that it ends up causing all the configure
> tests to use a purify'd binary... not really desired.

Well, you can also just try to do that very late in the script, right
before AC_OUTPUT.  That way, the tests will be run without puriy (and
will thus possibly have wrong results), and the effect is the same as
not specifying purify in at all and using
  env CC="purify gcc" make -e

(so all it does is save you from modifying CC on the make command line).

BTW, if you use GNU make, then above simplifies to
  make CC="purify gcc"

> Unfortunately vanguard is not an option for us (SPARC, Solaris 10, Sun
> Studio 12).

There's also the possibility to invest the next license fees in somebody
doing a valgrind port for sparc-solaris.  ;-)
(AFAIR it's been ported to powerpc-aix, so presumably the code base is
in shape for portability now.)


reply via email to

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