[m-rev.] for review: mercury implementation of string__format
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Nov 22 04:54:52 AEDT 2002
On 21-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
>
> I am heading off now but just checking that I am on the right approach with
> configure. The bit I am worried about is the
>
> #ifdef MR_HAVE_IEEEFP_H
>
> will this be defined or do I need to do it another way.
Well, to do it properly you should use AC_REQUIRE inside the AC_DEFUN
to ensure that the macros get run in the right order.
I don't know off-hand if `#ifdef MR_HAVE_IEEEFP_H' will work inside AC_TRY_LINK.
However, an alternative that I do know should work is to test
$MR_HAVE_IEEEFP_H and then invoke AC_TRY_LINK differently depending on
how it is set. Provided that you use AC_REQUIRE to ensure that the
check for MR_HAVE_IEEEFP_H occurs before you try to reference
$MR_HAVE_IEEEFP_H, this should work fine. (This may require moving
the check for MR_HAVE_IEEEFP_H into a separate macro so that you
can reference it from AC_REQUIRE.)
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list