First pass at making a python 3.0 patch to build on haiku. It's not yet building but this patch gets far into make before it's first error.

This commit is contained in:
Scott McCreary
2008-10-10 20:46:14 +00:00
parent 898f372f26
commit 8781bf670e

View File

@@ -0,0 +1,20 @@
diff -urN Python-3.0rc1/configure.in Python-3.0rc1-haiku/configure.in
--- Python-3.0rc1/configure.in 2008-09-07 19:23:19.000000000 +0000
+++ Python-3.0rc1-haiku/configure.in 2008-10-10 12:23:15.000000000 +0000
@@ -230,6 +230,7 @@
case $MACHDEP in
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
+ haiku*) MACHDEP="haiku";;
atheos*) MACHDEP="atheos";;
irix646) MACHDEP="irix6";;
'') MACHDEP="unknown";;
@@ -3009,7 +3010,7 @@
# check for --with-libm=...
AC_SUBST(LIBM)
case $ac_sys_system in
-Darwin) ;;
+Darwin|Haiku*) ;;
*) LIBM=-lm
esac
AC_MSG_CHECKING(for --with-libm=STRING)