[pypy-svn] r76726 - pypy/trunk/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Wed Aug 25 15:43:30 CEST 2010


Author: arigo
Date: Wed Aug 25 15:43:28 2010
New Revision: 76726

Modified:
   pypy/trunk/pypy/rlib/rlocale.py
Log:
Disable #include <libintl.h> on platforms that don't have it,
notably some Mac OS/X.


Modified: pypy/trunk/pypy/rlib/rlocale.py
==============================================================================
--- pypy/trunk/pypy/rlib/rlocale.py	(original)
+++ pypy/trunk/pypy/rlib/rlocale.py	Wed Aug 25 15:43:28 2010
@@ -15,6 +15,12 @@
 HAVE_LANGINFO = sys.platform != 'win32'
 HAVE_LIBINTL  = sys.platform != 'win32'
 
+if HAVE_LIBINTL:
+    try:
+        platform.verify_eci(ExternalCompilationInfo(includes=['libintl.h']))
+    except platform.CompilationError:
+        HAVE_LIBINTL = False
+
 class CConfig:
     includes = ['locale.h', 'limits.h']
 



More information about the Pypy-commit mailing list