Page 1 of 1

ImageMagick Automake/Autoconf configuration file

Posted: 2007-11-12T13:17:53-07:00
by magick
We received a bug report about namespace collision in the automake/autoconf configuration file, magick-config.h. Gcc 4.3 returns are error when common automake/autoconf defines are used by more than one shared API, for example PACKAGE_NAME and PACKAGE_VERSION. This problem is fixed in ImageMagick 6.3.7-0 Beta by pushing these defines into the MAGICKCORE namespace and checking to see if they are already defined. For example,

/* Define to the version of this package. */
#ifndef MAGICKCORE_PACKAGE_VERSION
#define MAGICKCORE_PACKAGE_VERSION "6.3.7"
#endif

This change may affect some software distributions that depend on ImageMagick. However, from what we can see the only commonly used define is QuantumDepth which we continue to support but deprecate in favor of MAGICKCORE_QUANTUM_DEPTH.