diff --git a/configure.in b/configure.in index 80404a798..15030a749 100644 --- a/configure.in +++ b/configure.in @@ -87,7 +87,10 @@ case $uname in # Starting with 10.6 (Snow Leopard), OS X does not support # Carbon calls anymore. We patch this until we are completely Cocoa compliant # by limiting ourselves to 32 bit Intel compiles - if test `sw_vers -productVersion` = "10.6"; then + d_ver_rev=`sw_vers -productVersion | sed -e 's/\.[[0-9]][[0-9]]*//2'` + d_ver=`echo $d_ver_rev | sed -e 's/\.[[0-9]][[0-9]]*//'` + d_rev=`echo $d_ver_rev | sed -e 's/[[0-9]][[0-9]]*\.//'` + if test $d_ver -gt 10 -o $d_ver -eq 10 -a $d_rev -ge 6; then CFLAGS="$CFLAGS -arch i386" CXXFLAGS="$CXXFLAGS -arch i386" LDFLAGS="$LDFLAGS -arch i386"