diff --git a/configure b/configure
index fdc0fe3b81c75765b9e09925e35ffc40ad2bb30c..0c407fc72a31f0764d8fe02ee086c9c78a021307 100755
--- a/configure
+++ b/configure
@@ -3272,7 +3272,7 @@ check_deps $CONFIG_LIST       \
 
 enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }
 
-if test $target_os == "haiku"; then
+if test $target_os = "haiku"; then
     disable memalign
     disable posix_memalign
 fi