--- build/pkgs/iml/spkg-install-orig	2014-12-06 21:45:54.000000000 +0000
+++ build/pkgs/iml/spkg-install	2014-12-06 21:50:08.000000000 +0000
@@ -18,6 +18,7 @@
     fi
 done
 
+export CFLAGS="-I${LOCALBASE}/include $CFLAGS"
 
 if [ "$SAGE_DEBUG" = "yes" ]; then
     echo "Building a debug version of IML."
@@ -38,6 +39,9 @@
     EXTRA_BLAS="--with-cblas=-lcblas"
 fi
 
+aclocal
+automake --add-missing
+autoconf
 ./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" \
     --enable-shared --with-default="$SAGE_LOCAL" "$EXTRA_BLAS" 
 if [ $? -ne 0 ]; then