]> granicus.if.org Git - python/commitdiff
Issue #4305: ctypes fails to build on mipsel-linux-gnu (detects mips
authorThomas Heller <theller@ctypes.org>
Tue, 28 Apr 2009 19:23:41 +0000 (19:23 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 28 Apr 2009 19:23:41 +0000 (19:23 +0000)
instead of mipsel)

Misc/NEWS
Modules/_ctypes/libffi/configure
Modules/_ctypes/libffi/configure.ac

index beabc9bda04900f0f60b45963f2c2ac0c9a93687..6fdc253b15c2d433610b8d5fbfb23964ac66a280 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -255,6 +255,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #4305: ctypes should now build again on mipsel-linux-gnu
+
 - Issue #1734234: Massively speedup ``unicodedata.normalize()`` when the
   string is already in normalized form, by performing a quick check beforehand.
   Original patch by Rauli Ruohonen.
index de0b9aca13236b8b9a2f4ee383e6248fa3965565..6984fc67fbc462ba7f77f773403922ff0f14e686 100755 (executable)
@@ -20426,10 +20426,10 @@ case "$host" in
        ;;
 
   mips-sgi-irix5.* | mips-sgi-irix6.*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_IRIX; TARGETDIR=mips
        ;;
   mips*-*-linux*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_LINUX; TARGETDIR=mips
        ;;
 
   powerpc*-*-linux* | powerpc-*-sysv*)
@@ -20484,7 +20484,7 @@ echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
    { (exit 1); exit 1; }; }
 fi
 
- if test x$TARGET = xMIPS; then
+ if expr x$TARGET : 'xMIPS' > /dev/null; then
   MIPS_TRUE=
   MIPS_FALSE='#'
 else
index 57c161befe16b6ae065ebc4e2693f7f6f8400b4c..947053690e54dc13c968bcd751953dfd61578f2e 100644 (file)
@@ -106,10 +106,10 @@ case "$host" in
        ;;
 
   mips-sgi-irix5.* | mips-sgi-irix6.*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_IRIX; TARGETDIR=mips
        ;;
   mips*-*-linux*)
-       TARGET=MIPS; TARGETDIR=mips
+       TARGET=MIPS_LINUX; TARGETDIR=mips
        ;;
 
   powerpc*-*-linux* | powerpc-*-sysv*)
@@ -162,7 +162,7 @@ if test $TARGETDIR = unknown; then
   AC_MSG_ERROR(["libffi has not been ported to $host."])
 fi
 
-AM_CONDITIONAL(MIPS, test x$TARGET = xMIPS)
+AM_CONDITIONAL(MIPS,[expr x$TARGET : 'xMIPS' > /dev/null])
 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
 AM_CONDITIONAL(X86, test x$TARGET = xX86)
 AM_CONDITIONAL(X86_FREEBSD, test x$TARGET = xX86_FREEBSD)