--- /dev/null
+diff --git a/configure.ac b/configure.ac
+index ed27ceda64f7..97e1d35594ca 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -35,11 +35,11 @@ AC_PREPROC_IFELSE(
+ big_endian=1)
+
+
+-if test x"$endian" != "xbig" -a x"$endian" != "xlittle"; then
++if test x"$endian" != "xbig" && test x"$endian" != "xlittle"; then
+ AC_MSG_ERROR([Can't determine endianness; is endian.h present?])
+ fi
+
+-if test "$little_endian" == 1; then
++if test "$little_endian" = 1; then
+ ENDIAN="-DHAVE_LITTLE_ENDIAN"
+ else
+ ENDIAN="-DHAVE_BIG_ENDIAN"