From: Rafael L. <lab...@ps...> - 2003-01-28 11:14:18
|
* Maurice LeBrun <mj...@ga...> [2003-01-27 17:29]: > BTW I just ran into another irritating side effect of the current > configuration system. Running a recursive search from the top level > shows up HAVE_CONFIG_H defined throughout: > > ./bindings/c++/Makefile:DEFS = -DHAVE_CONFIG_H > ./bindings/f77/Makefile:DEFS = -DHAVE_CONFIG_H > ./bindings/java/Makefile:DEFS = -DHAVE_CONFIG_H > ... > > Well the problem occurs when including headers from some gnu tools such as > readline. In /usr/include/readline/tilde.h -- > > #if defined (HAVE_CONFIG_H) > # include <config.h> > #endif > > Whoops. I guess when this happens we'll just have to #undef HAVE_CONFIG_H > but that seems pretty lame.. is there any way to turn off this define? I think that there is a logical justification for having this define, provided that we proceed like it is advised in the autoconf documentation. We should replace all instances of `#include "plConfig.h"', by: #if HAVE_CONFIG_H # include <plConfig.h> #endif (cf info -f /usr/share/info/autoconf.info.gz -n "Configuration Headers") I am making the assumption that all the definitions in plConfig.h are useful only when compiling PLplot itself and are irrelevant for user's applications linked against PLplot. Is that true? -- Rafael |