diff --git a/src/template/aix b/src/template/aix
index 414430a22ff9c929d7ca14d1540afab05e683f17..f12023d7316e200c14c59c94e5365f1751c05fbe 100644
--- a/src/template/aix
+++ b/src/template/aix
@@ -15,7 +15,7 @@ fi
 # "IBM XL C/C++ for AIX, V12.1" miscompiles, for 32-bit, some inline
 # expansions of ginCompareItemPointers() "long long" arithmetic.  To
 # take advantage of inlining, build a 64-bit PostgreSQL.
-test "$GCC" != yes -a $(getconf HARDWARE_BITMODE) == '32'; then
+if test "$GCC" != yes -a $(getconf HARDWARE_BITMODE) == '32'; then
   echo "$as_me: WARNING: disabling inlining on 32 bit aix due to a bug in xlc" 2>&1
   CPPFLAGS="$CPPFLAGS -DPG_FORCE_DISABLE_INLINE"
 fi