Re: AC_INIT produces unexpected "PACKAGE" and "VERSION" strings in config.h

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

 



I am now able to answer my own question. The new form of AM_INIT_AUTOMAKE adds this unwanted stuff if one does not pass no-define as another option:

"By default this macro AC_DEFINEʼs PACKAGE and VERSION. This can be avoided by passing the no-define option (see List of Automake options)"

I am not sure what the value of adding another redundant definition is but it seems that is what Automake decided to do.

The problem is that I have a subordinate package which also uses VERSION but the definition is not the same.

Bob

On Tue, 5 Jan 2021, Bob Friesenhahn wrote:

I am *still* working to update GraphicsMagick to support the 5-part AC_INIT plus new-style AM_INIT_AUTOMAKE. I am using Autoconf 2.69 and Automake 1.16.3.

Something which is very much unwanted is now the generated config.h has added these

/* Name of package */
#define PACKAGE "GraphicsMagick"

/* Version number of package */
#define VERSION "1.4.020210102"

These definitions are unexpected.

What produces these definitions and how can I get rid of them?

Bob


--
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



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

  Powered by Linux