autoconf
[Top][All Lists]
Advanced

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

Re: Is autoupdate supposed to scan comments?


From: Eric Blake
Subject: Re: Is autoupdate supposed to scan comments?
Date: Tue, 19 Feb 2008 06:35:48 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to NightStrike on 2/18/2008 10:40 PM:
| I have a configure.ac file with a line like this:
|
| #AC_CANONICAL_SYSTEM is obsolete
|
| When I run autoupdate, it changes that line to read:
|
| #AC_CANONICAL_TARGET is obsolete
|
|
| Shouldn't autoupdate ignore comments when scanning for macro names
| that need to updating?

I'm not sure that this is wise, since how do you tell a true m4 comment
apart from quoted content like [#include <stdlib.h>]?  It might be
possible to patch autoupdate to no longer disable comments, but I don't
know how easy it would be, since autoupdate does quite a bit of m4 magic
in defining which macros exist at which time, nor do I know if it would
break other things.

|  Or am I doing something wrong?

No - for now, the fact that autoupdate disables all comments (or in other
words, updates the contents of comments) is intentional - look at
autoupdate, for the definition of __au_disable.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHuts084KuGfSFAYARAuDdAKCugpoq4JkHTmTl21wBLFT2cUFeCACgj4lQ
oFn2qs20H1DpHMBd1ctgNqQ=
=0T3+
-----END PGP SIGNATURE-----




reply via email to

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