]> git.draconx.ca Git - liblbx.git/blobdiff - autogen.sh
liblbx: Update lbximg_fopen to work like lbx_fopen.
[liblbx.git] / autogen.sh
index 9db4e70f6a7ba547e6031717d65d5ef3568330dd..66a90e88d02770067bb6940ee7d0584ebe679c15 100755 (executable)
@@ -6,7 +6,15 @@ die()
        exit 1
 }
 
-test -d m4 || mkdir m4
+test -d m4  || mkdir m4
+test -d lib || mkdir lib
+
+git submodule update --init || echo "Failed to update Gnulib sources from git."
+if test -x gnulib/gnulib-tool; then
+       gnulib/gnulib-tool --update || die "Failed to update gnulib."
+else
+       die "Gnulib sources are not properly installed in gnulib/"
+fi
 
 aclocal    -I m4         || die "Failed to run aclocal."
 autoheader               || die "Failed to run autoheader."