Skip to content
Snippets Groups Projects
Commit b54793c6 authored by Christian Engwer's avatar Christian Engwer
Browse files

[dunecontrol] check for left over la files

if the user has for some reason old la files from the autotools era,
these can lead to very subtle and hard to understand errors. We now
check for old la files and bail out in case some are found.
parent 087a6f08
No related branches found
No related tags found
No related merge requests found
......@@ -715,6 +715,10 @@ run_default_configure () {
test -d "$ABS_BUILDDIR" || mkdir -p "$ABS_BUILDDIR"
SRCDIR="$PWD"
cd "$ABS_BUILDDIR"
# check for libtool libs, which might break modules depending on this module
test -n "`find -name \*.la`" && \
echo "Error: your build directory $ABS_BUILDDIR contains libtool built libraries, please cleanup" && \
exit 1
echo "$PREPARAMS $CMAKE -DCMAKE_MODULE_PATH=\"$CMAKE_MODULE_PATH\" $CMAKE_PARAMS $CMAKE_FLAGS \"$SRCDIR\""
eval $PREPARAMS $CMAKE "-DCMAKE_MODULE_PATH=\"$CMAKE_MODULE_PATH\" $CMAKE_PARAMS $CMAKE_FLAGS \"$SRCDIR\"" || exit 1
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment