This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MELT tutorial on the wiki
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, tromey at redhat dot com, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sat, 01 Aug 2009 08:11:22 +0100
- Subject: Re: MELT tutorial on the wiki
- References: <4A707003.8060103@starynkevitch.net> <m3k51prhv4.fsf@fleche.redhat.com> <4A728EE2.2050401@starynkevitch.net> <m3eirwpwoq.fsf@fleche.redhat.com> <4A73E386.3080508@gmail.com> <4A73E407.8030407@starynkevitch.net>
Basile STARYNKEVITCH wrote:
> Dave Korn wrote:
>> Tom Tromey wrote:
>>
>>> I looked into this a little. It looks like the PPL checks don't work
>>> properly in the case where PPL is a system library. I guess I need
>>> --with-ppl=/usr ... I will try that later.
>>
>> Were you using a --prefix? The PPL checks (by design I think) only
>> look for PPL in your prefix.
>
> Sorry DaveK, are you talking of only the MELT branch or of the current
> gcc trunk (future 4.5)?
Trunk.
> In the latter (trunk) case, what is the
> rationale for checking only in the prefix?
I do not know it; I have merely observed the behaviour. It may even not be by
design for all I know, though I suspect it makes sense - where else would you
look but in the prefix? Prefixes exist to create separation between packages.
> I have to clean up a bit my MELT's gcc/configure.ac, but I cannot
> understand why apparently the trunk's gcc/configure.ac does not set any
> HAVE_ppl flag.
>
> Why is there no
> if test "x${PPPLLIBS}" != "x" ; then
> AC_DEFINE(HAVE_ppl, 1, [Define if PPL is in use.])
> fi
> near line 4110 of the trunk's gcc/configure.ac ?
I imagine nobody has needed one yet.
> IMHO, such a test and such a generated #define makes a lot of sense (at
> least inside plugins).
It certainly does. I'm sure there's no reason not to add it.
cheers,
DaveK