X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/f4f10a3e2bd1bd7ffda6462edef92d1d8aaebe2f..0f2525a0289276c502087c62bb228d9ad7a1880f:/autogen.sh diff --git a/autogen.sh b/autogen.sh index 9db4e70..66a90e8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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."