build-system: Only run autoreconf when needed

Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2018-06-20 20:03:11 +02:00 committed by Dirk Hohndel
parent 207c752396
commit d853c477b7

View file

@ -192,9 +192,11 @@ if [ ! -e "$PKG_CONFIG_LIBDIR/sqlite3.pc" ] ; then
fi fi
${SUBSURFACE_SOURCE}/scripts/get-dep-lib.sh singleAndroid . libxml2 ${SUBSURFACE_SOURCE}/scripts/get-dep-lib.sh singleAndroid . libxml2
pushd libxml2 if [ ! -e libxml2/configure ] ; then
autoreconf --install pushd libxml2
popd autoreconf --install
popd
fi
if [ ! -e "$PKG_CONFIG_LIBDIR/libxml-2.0.pc" ] ; then if [ ! -e "$PKG_CONFIG_LIBDIR/libxml-2.0.pc" ] ; then
mkdir -p libxml2-build-"$ARCH" mkdir -p libxml2-build-"$ARCH"
pushd libxml2-build-"$ARCH" pushd libxml2-build-"$ARCH"
@ -207,9 +209,11 @@ if [ ! -e "$PKG_CONFIG_LIBDIR/libxml-2.0.pc" ] ; then
fi fi
${SUBSURFACE_SOURCE}/scripts/get-dep-lib.sh singleAndroid . libxslt ${SUBSURFACE_SOURCE}/scripts/get-dep-lib.sh singleAndroid . libxslt
pushd libxslt if [ ! -e libxslt/configure ] ; then
autoreconf --install pushd libxslt
popd autoreconf --install
popd
fi
if [ ! -e "$PKG_CONFIG_LIBDIR/libxslt.pc" ] ; then if [ ! -e "$PKG_CONFIG_LIBDIR/libxslt.pc" ] ; then
mkdir -p libxslt-build-"$ARCH" mkdir -p libxslt-build-"$ARCH"
pushd libxslt-build-"$ARCH" pushd libxslt-build-"$ARCH"