From: Michael W. Hudson Date: Tue, 24 Sep 2002 11:22:28 +0000 (+0000) Subject: backport akuchling's checkin of X-Git-Tag: v2.2.2b1~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a748f064718c709e849ce7e239f0f5ed90e59abd;p=thirdparty%2FPython%2Fcpython.git backport akuchling's checkin of revision 1.12 of config.py Include an empty body when checking for a header file (Bugfix candidate for 2.2, and likely 2.1 as well) --- diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py index 27c2cc15125e..1c37ede5126e 100644 --- a/Lib/distutils/command/config.py +++ b/Lib/distutils/command/config.py @@ -348,7 +348,8 @@ class config (Command): exists and can be found by the preprocessor; return true if so, false otherwise. """ - return self.try_cpp(headers=[header], include_dirs=include_dirs) + return self.try_cpp(body="/* No body */", headers=[header], + include_dirs=include_dirs) # class config