X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/b051c916dbcc015f75047b8b5d18a68367f5e7e1..fc8dd8be3744680d93c490227be4db8628377d3c:/autogen.sh diff --git a/autogen.sh b/autogen.sh index b52b9c1..66a90e8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,8 +6,18 @@ die() exit 1 } -aclocal --force || die "Failed to run aclocal." -autoheader --force || die "Failed to run autoheader." -libtoolize --force --copy || die "Failed to run libtoolize." -automake --force --add-missing || die "Failed to run automake." -autoconf --force || die "Failed to run autoconf." +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." +libtoolize --copy || die "Failed to run libtoolize." +automake --add-missing || die "Failed to run automake." +autoconf || die "Failed to run autoconf."