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

configure.ac

index d307456dea54a32bfef2f8a597d869325378818b..c327db58f2905accfac266898388c4d312601635 100644 (file)
@@ -425,10 +425,12 @@ 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
       ;;
     mipsel*)
@@ -439,16 +441,18 @@ if test "x${with_simd}" != "xno"; then
          simd_arch=mipsel],
         [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.])