]> granicus.if.org Git - libjpeg-turbo/commitdiff
Fix logic error from r1039
authorDRC <dcommander@users.sourceforge.net>
Sat, 26 Oct 2013 00:32:23 +0000 (00:32 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 26 Oct 2013 00:32:23 +0000 (00:32 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1063 632fc199-4ca6-4c93-a231-07263d6284db

configure.ac

index 9cdbd4282713c0a457cd97533819427decce5cc2..1c81c5dfe8ec6d64906136227ba651ae84f33af7 100644 (file)
@@ -425,16 +425,18 @@ if test "x${with_simd}" != "xno"; then
          simd_arch=arm],
         [AC_MSG_RESULT([no])
          with_simd=no])
-      if test "x${require_simd}" = "xyes" -a "x${with_simd}" = "xno"; then
-        AC_MSG_ERROR([SIMD support can't be enabled.])
-      else
-        AC_MSG_WARN([SIMD support can't be enabled.  Performance will suffer.])
+      if test "x${with_simd}" = "xno"; then
+        if test "x${require_simd}" = "xyes"; then
+          AC_MSG_ERROR([SIMD support can't be enabled.])
+        else
+          AC_MSG_WARN([SIMD support can't be enabled.  Performance will suffer.])
+      fi
       fi
       ;;
     *)
       AC_MSG_RESULT([no ("$host_cpu")])
       with_simd=no;
-      if test "x${require_simd}" = "xyes" -a "x${with_simd}" = "xno"; then
+      if test "x${require_simd}" = "xyes"; then
         AC_MSG_ERROR([SIMD support not available for this CPU.])
       else
         AC_MSG_WARN([SIMD support not available for this CPU.  Performance will suffer.])