[Python-Dev] HAVE_CONFIG_H

Guido van Rossum guido@python.org
Mon, 29 Jul 2002 16:06:57 -0400


> > I see no references to HAVE_CONFIG_H in the source code (except one
> > #undef in readline.c), yet we #define it on the command line.  Is that
> > still necessary?
> 
> What about these ?

> ./Mac/mwerks/old/mwerks_nsgusi_config.h:
> -- define HAVE_CONFIG_H
> ./Mac/mwerks/old/mwerks_tk_config.h:
> -- define HAVE_CONFIG_H
> ./Mac/mwerks/old/mwerks_shgusi_config.h:
> -- define HAVE_CONFIG_H

I don't have a directory Mac/mwerks/old/.  Maybe you created this
yourself?

> ./Modules/expat/xmlparse.c:
> -- #ifdef HAVE_CONFIG_H
> ./Modules/expat/xmltok.c:
> -- #ifdef HAVE_CONFIG_H
> ./Modules/expat/xmlrole.c:
> -- #ifdef HAVE_CONFIG_H

We don't pass HAVE_CONFIG_H to extension modules, only to the core
(stuff built directly by the Makefile, not by setup.py).  That's a
good thing too, becaus these include <config.h>, not "pyconfig.h".

--Guido van Rossum (home page: http://www.python.org/~guido/)