diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2015-02-27 23:35:47 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2015-02-27 23:35:47 +0000 |
commit | dcd2094389d607cac1c2de1dd417bcd87298596f (patch) | |
tree | 335d6c499cae8eaeca4e286a9f3f9d5f2e04d031 /configure | |
parent | 88bbdc790e4379874df6d22c0bccd9ad6f811568 (diff) |
Discourage in-source autoconf builds (as we already do for the cmake build)
http://reviews.llvm.org/D7961
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure index cac9bf6533a..29437550f0d 100755 --- a/configure +++ b/configure @@ -1999,6 +1999,12 @@ echo "$as_me: error: Already configured in ${srcdir}" >&2;} fi fi +if test ${srcdir} == "." ; then + { { echo "$as_me:$LINENO: error: In-source builds are discouraged. Configure from a separate build directory." >&5 +echo "$as_me: error: In-source builds are discouraged. Configure from a separate build directory." >&2;} + { (exit 1); exit 1; }; } +fi + : ${CFLAGS=} : ${CXXFLAGS=} |