Re: ./configure options
Bob Friesenhahn <[email protected]> Mon, 18 Nov 2019 15:27:03 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 18 Nov 2019, Pro Turm wrote: > I need different behavior, because in animate.c I have > #if defined(HasX11) > which for some reasons evaluated to TRUE, i.e. it tried to compile animate.c & co, with --without-x. According to magick/Makefile.am, animate.c and other source files depending on X11 are only included in the build if HasX11 is defined and evaluates to true. The Windows Visual Studio build is not as smart, and in that case the source files are included in the build but the content is disabled. > Im not sure, but I think that the line in configure.ac > > AC_CONFIG_HEADERS([magick/magick_config.h magick/magick_config_api.h]) > > is not completely correct, since it forces the commenting out of the #undefs from magick_config_api.h which are no header preprocessor symbols. > > I could think that the #undefs are misplaced in this file or AC_CONFIG_HEADERS shouldn't be called with magick_config_api.h, because the reason for the commenting out is: > "If the corresponding ‘ AC_DEFINE’ has not been executed during the configure run, the ‘ #undef’ line is commented out." > Shortly, as I understood it, AC_CONFIG_HEADERS is for headers only, not for symbols. The AC_CONFIG_HEADERS macro is telling configure which configuration header files it should generate using config.sub. The magick/magick_config.h header file is used while building GraphicsMagick and the magick/magick_config_api.h header file provides only the definitions needed by the API header files after they have been installed. What are you trying to do? It seems like you are doing something unusual. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help