[cig-commits] r14781 - cs/autoconf/trunk

leif at geodynamics.org leif at geodynamics.org
Tue Apr 21 12:31:52 PDT 2009


Author: leif
Date: 2009-04-21 12:31:52 -0700 (Tue, 21 Apr 2009)
New Revision: 14781

Modified:
   cs/autoconf/trunk/cit_python.m4
Log:
Revised Eh's new Python.h macro.  See Issue45.


Modified: cs/autoconf/trunk/cit_python.m4
===================================================================
--- cs/autoconf/trunk/cit_python.m4	2009-04-21 18:05:06 UTC (rev 14780)
+++ cs/autoconf/trunk/cit_python.m4	2009-04-21 19:31:52 UTC (rev 14781)
@@ -25,13 +25,13 @@
 # Checking the existence of Python.h
 AC_DEFUN([CIT_CHECK_PYTHON_HEADER], [
 # $Id$
-AC_MSG_CHECKING([for Python.h])
-if test -a "$PYTHON_INCDIR/Python.h"; then
-    AC_MSG_RESULT(yes)
-else
-    AC_MSG_RESULT(no)
-    AC_MSG_ERROR([Header file 'Python.h' not found, maybe you don't have the python development package, e.g. 'python-dev', installed?])
-fi
+AC_REQUIRE([AM_PATH_PYTHON])
+cit_save_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="-I$PYTHON_INCDIR $cit_save_CPPFLAGS"
+AC_CHECK_HEADER([Python.h], [], [
+                AC_MSG_ERROR([Header file 'Python.h' not found; maybe you don't have the python development package, e.g. 'python-dev', installed?])
+                ])
+CPPFLAGS=$cit_save_CPPFLAGS
 ])dnl CIT_CHECK_PYTHON_HEADER
 
 



More information about the CIG-COMMITS mailing list