throw NotSupportException when not on windows
[mono.git] / autogen.sh
index a01a29711a178e82182cd82a389716c7daea9626..3a51ad424c8e6efb91e74fe08f085fce547af8a2 100755 (executable)
@@ -108,7 +108,7 @@ fi
 #
 has_ext_mod=false
 for PARAM; do
-    if test $PARAM = "--enable-extension-module" ; then
+    if test "$PARAM" = "--enable-extension-module" ; then
                has_ext_mod=true
        fi
 done
@@ -119,6 +119,7 @@ if test x$has_ext_mod = xtrue; then
        popd
 else
        cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
+       cat mono/metadata/Makefile.am.in > mono/metadata/Makefile.am
 fi
 
 
@@ -133,7 +134,7 @@ aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
   exit 1
 }
 
-if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
+if grep "^AC_CONFIG_HEADERS" configure.in >/dev/null; then
   echo "Running autoheader..."
   autoheader || { echo "**Error**: autoheader failed."; exit 1; }
 fi