[mpich-discuss] [PATCH] config: change PAC_FUNC_NEEDS_DECL to check by assignment
Pavan Balaji
balaji at mcs.anl.gov
Sat May 18 13:29:20 CDT 2013
On 05/18/2013 01:24 PM US Central Time, Jed Brown wrote:
> Pavan Balaji <balaji at mcs.anl.gov> writes:
>
>> Eh? My point was that if AC_CHECK_DECLS is doing the same thing as
>> PAC_FUNC_NEEDS_DECL, we might be able to discard that macro totally.
>
> Fair enough, it appears to use the even simpler structure:
>
> (void)the_symbol;
>
> is perfectly adequate, but cannot be combined with a link test.
Last time I tried it, it didn't work in some cases. I'll need to go
back and look.
> HWLOC_CHECK_DECL suffers from the same problem. I don't why
> AC_CHECK_FUNCS appears to be calling HWLOC_CHECK_DECL, but that is the
> only occurrence of this "int,long,int,long,..." string in either MPICH
> or autoconf.
The declaration part of the test was contributed by me to hwloc, because
without that the test was not useful in some cases.
-- Pavan
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the discuss
mailing list