diff --git a/configure b/configure
index e315b5f6ee2b61ca22e6c27f207a58559866de68..904c97fc6b6fccae7b9de7faee6bf56b663fd765 100755
--- a/configure
+++ b/configure
@@ -1987,6 +1987,7 @@ echo "#define restrict $_restrict" >> $TMPH
 
 if test "$optimize" = "small"; then
   echo "#define always_inline"  >> $TMPH
+  echo "#define CONFIG_SMALL 1" >> $TMPH
 fi
 
 # build tree in object directory if source path is different from current one