Bourne shell compliance
[melted] / configure
index bdb91dd..2e2f2be 100755 (executable)
--- a/configure
+++ b/configure
@@ -38,6 +38,7 @@ function build_config
                echo "version=$version"
                echo "prefix=$prefix"
                echo "bindir=$prefix/bin"
+               echo "targetos=$targetos"
 
                [ "$mmx" = "true" ] && 
                echo "MMX_FLAGS=-DUSE_MMX"
@@ -56,7 +57,7 @@ function build_config
 
                case $targetos in
                Darwin)
-               echo "CFLAGS+=-DDARWIN"
+               echo "CFLAGS+=-D__DARWIN__"
                echo "SHFLAGS=-dynamiclib"
                ;;
                Linux)
@@ -142,7 +143,7 @@ do
 done
 
 # Double check mmx (may end up disabling mmx on non-linux platforms incorrectly)
-if [ "$mmx" == "true" ]
+if [ "$mmx" = "true" ]
 then
        grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false
 fi