Re: Description not expanded in a call to AC_DEFINE

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

 



Hi Sébastien,

On 2021-08-31, Sébastien Hinderer <Sebastien.Hinderer@xxxxxxxx> wrote:
[...]
> As the next step, I wanted to add a description as the third argument,
> hoping to find this description in the generated header file as
> documented, but that does not work. I did cleanupu the project to make
> sure the ancient generated header is deleted, then I did run autoconf
> and configure again, but the produced header is exactly as if I didn't
> add a third argument to my macro.
>
> The macro call looks like this:
>
> AC_DEFINE([PKG_VERSION_MAJOR], [PKG__VERSION_MAJOR],
>   [The major number of the current PKG version])

The third argument to AC_DEFINE only has any effect when autoheader
is used to generate config.h.in.

So if you just "run autoconf and configure again" that won't
be sufficient to do anything, you also need to run autoheader
to regenerate config.h.in with the new descriptions.

Cheers,
  Nick





[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux