Explicitly undefine PACKAGE_ variables. Fixes #746012.
diff --git a/configure b/configure
index 5439d26..5db96b3 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.413 .
+# From configure.in Revision: 1.414 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.53 for python 2.3.
 #
@@ -1231,13 +1231,17 @@
 ac_config_headers="$ac_config_headers pyconfig.h"
 
 
-# This is for stuff that absolutely must end up in pyconfig.h.
-# Please use pyport.h instead, if possible.
 
 
 
 
 
+# We don't use PACKAGE_ variables, and they cause conflicts
+# with other autoconf-based packages that include Python.h
+grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
+rm confdefs.h
+mv confdefs.h.new confdefs.h
+
 
 VERSION=2.3