Commit 73b724e7 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Detect out of tree builds made from an unclean source tree.

parent 6150fe19
......@@ -1999,6 +1999,17 @@ then
WIN16_INSTALL=""
fi
case "$srcdir" in
.) ;;
*) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
{ { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
You need to run 'make distclean' in the source tree first." >&5
echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
You need to run 'make distclean' in the source tree first." >&2;}
{ (exit 1); exit 1; }; }
fi ;;
esac
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
......
......@@ -49,6 +49,15 @@ then
WIN16_INSTALL=""
fi
dnl check for out of tree build with unclean source tree
case "$srcdir" in
.) ;;
*) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
AC_MSG_ERROR([you are building out of the source tree, but the source tree contains object files.
You need to run 'make distclean' in the source tree first.])
fi ;;
esac
dnl **** Check for some programs ****
AC_PROG_MAKE_SET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment