diff --git a/ChangeLog b/ChangeLog
index 058691eb71fa49e2a1a812b2fdd3b302d44c5c57..f6e8467e260f5f1306a265a246418af6f9f8c4d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-13  Niels Möller  <nisse@lysator.liu.se>
+
+	* configure.ac: Fix shell quoting in test of GMP_NUMB_BITS asm
+	compatibility. Reported by Edward Sheldrake.
+
 2015-03-31  Niels Möller  <nisse@diamant.hack.org>
 
 	* x86_64/ecc-224-modp.asm: Require that GMP_NUMB_BITS == 64.
diff --git a/configure.ac b/configure.ac
index 5a16151d5fff3a8f596768530d14b383b816cc42..b9fb347e1587c2cade3008e3ee36c1bbe34b54fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -467,7 +467,7 @@ EOF
 	  dnl Note double square brackets, for extra m4 quoting.
 	  tmp_bits=`grep GMP_NUMB_BITS "$srcdir/$asm_dir/$tmp_h" \
             | sed 's/^.*GMP_NUMB_BITS(\([[0-9]]*\)).*$/\1/'`
-	  if test "$tmp_bits" && test "$tmp_bits" != '${GMP_NUMB_BITS}' ; then
+	  if test "$tmp_bits" && test "$tmp_bits" != "${GMP_NUMB_BITS}" ; then
 	     AC_MSG_WARN([skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits])
 	     continue
 	  fi