libdc: update MXE build

If the submodule isn't initialized, run git submodule init before
running submodule update. Also, ensure that the autotools are set up.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-12-04 15:07:23 -08:00
parent ee0341fd97
commit 472592fe85

View file

@ -157,11 +157,18 @@ if [[ ! -d libgit2 || -f build.libgit2 ]] ; then
fi
# libdivecomputer
# ensure the git submodule is present and the autotools are set up
cd "$BASEDIR"/subsurface
if [ ! -d libdivecomputer/src ] ; then
git submodule init
git submodule update --recursive
fi
if [ ! -f libdivecomputer/configure ] ; then
cd libdivecomputer
autoreconf --install
autoreconf --install
fi
cd "$BUILDDIR"
if [[ ! -d libdivecomputer || -f build.libdivecomputer ]] ; then