X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=autoconf%2Fconfigure.ac;h=586f3f26cb313ba5aa00d6f8b8c1508ad11cffac;hb=bdfc11784badbc820208343ac2bceb41b30e7640;hp=39ce9f353ee30792c2611e7fdd200db10b172e4f;hpb=b241283669d0646de58df2aed4008603bbeaaf84;p=oota-llvm.git 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=}