[PATCH 1/2] m4: replace bash comments with m4 ones

Peter Johansson trojkan at gmail.com
Mon Apr 30 16:50:11 PDT 2012


On 05/01/2012 09:07 AM, Luca Barbato wrote:
> # isn't a comment marker for m4, anyway if you prefer this way I'll rework the
> second patch accordingly.
>
Sounds good to me (although I've got not much a vote here;))

Whether '#' is a comment marker boils down to semantics; it is 
definitely treated specially by Autoconf. This source snippet below, for 
example,

m4_define([my_hello], [HELLO WORLD!])
echo "my_hello and #my_hello"

will expand to

echo "HELLO WORLD! and #my_hello"

i.e. text following character '#' is not expanded by Autoconf, but 
copied verbatim.

Thanks,
Peter


More information about the pkg-config mailing list