]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
[ARM] Disable ACLE support if uname returns "eabi".
authorMika Lindqvist <postmaster@raasu.org>
Fri, 23 Mar 2018 11:01:07 +0000 (13:01 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 28 Apr 2018 16:23:29 +0000 (18:23 +0200)
* Warn if current processor doesn't support ACLE or NEON.

configure

index 8d64be516b0f99ab3a0627665acb2d04d6733b16..9de84b975adf626c1f9c8100bda8a12ef5007e9f 100755 (executable)
--- a/configure
+++ b/configure
@@ -266,7 +266,12 @@ if test "$gcc" -eq 1 && ($cc $CFLAGS -c $test.c) >> configure.log 2>&1; then
       fi ;;
     arm)
       if test "${uname}" = "eabi"; then
+        # No ACLE support
         uname=arm
+        if test $buildacle -eq 1; then
+          echo ACLE support not available
+          buildacle=0
+        fi
       fi
       if test $buildacle -eq 1; then
         if test $native -eq 0; then
@@ -867,16 +872,37 @@ case "${ARCH}" in
         esac
 
         case "${ARCH}" in
+            armv[345]*)
+                if test $buildacle -eq 1; then
+                    echo ACLE support not available
+                fi
+
+                if test $buildneon -eq 1; then
+                    echo NEON support not available
+                fi
+            ;;
             armv6l | armv6hl)
                 # Tests done on Raspberry pi (armv6hl) indicate that UNALIGNED_OK and UNROLL_LESS both
                 # provide performance improvements, totaling about 1.5% for the two.
                 CFLAGS="${CFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
                 SFLAGS="${SFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
+
+                if test $buildacle -eq 1; then
+                    echo ACLE support not available
+                fi
+
+                if test $buildneon -eq 1; then
+                    echo NEON support not available
+                fi
             ;;
             arm | armv7*)
                 CFLAGS="${CFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
                 SFLAGS="${SFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
 
+                if test $buildacle -eq 1; then
+                    echo ACLE support not available
+                fi
+
                 if test $buildneon -eq 1; then
                     CFLAGS="${CFLAGS} ${floatabi} -mfpu=neon -DARM_NEON_ADLER32"
                     SFLAGS="${SFLAGS} ${floatabi} -mfpu=neon -DARM_NEON_ADLER32"
@@ -889,6 +915,10 @@ case "${ARCH}" in
                 CFLAGS="${CFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
                 SFLAGS="${SFLAGS} -DUNALIGNED_OK -DUNROLL_LESS"
 
+                if test $buildacle -eq 1; then
+                    echo ACLE support not available
+                fi
+
                 if test $buildneon -eq 1; then
                     CFLAGS="${CFLAGS} ${floatabi} -DARM_NEON_ADLER32"
                     SFLAGS="${SFLAGS} ${floatabi} -DARM_NEON_ADLER32"