summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2015-05-04 02:04:54 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2015-05-04 02:04:54 +0000
commit7dda4c92e4718c624e2bb91d8cf31685710c5f09 (patch)
tree9b42523548d5665afc559f9e70f86b8bf741ec5b /autoconf
parent82b7c1b25b7f8f6784bc1ffa0f1cee60d43012de (diff)
Deprecate in-source autotools builds
This is a followup from: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150323/268067.html Upgrade instructions: $ mv llvm/include/llvm/Config/config.h ./config.h.BACKUP # copy the configure line from line 7 of llvm/config.log # (for example: `$ ./configure --no-create --no-recursion`) $ mkdir build $ cd build # run the configure line, but this time with '../llvm' at the beginning: $ ../llvm/configure --no-create --no-recursion These warnings will soon be turned into hard errors after a week. Speak up now if this is going to be a problem for you. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 39ce9f353ee..586f3f26cb3 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -73,6 +73,19 @@ if test ${srcdir} != "." ; then
fi
fi
+dnl Quit if it is an in-source build
+if test ${srcdir} == "." ; then
+ AC_MSG_WARN([**************************************************************************************])
+ AC_MSG_WARN([* *])
+ AC_MSG_WARN([* WARNING *])
+ AC_MSG_WARN([* *])
+ AC_MSG_WARN([* In-source builds are deprecated. *])
+ AC_MSG_WARN([* *])
+ AC_MSG_WARN([* Please configure from a separate build directory! *])
+ AC_MSG_WARN([* *])
+ AC_MSG_WARN([**************************************************************************************])
+fi
+
dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS,
dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc).
: ${CFLAGS=}