diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-15 17:04:06 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-15 17:04:06 +0000 |
commit | 93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d (patch) | |
tree | 7cdac9323918a17cfcd9596f59fae86abe3fa49c /autoconf | |
parent | bdbecac051601e1554aa3802f7ecff5252347716 (diff) | |
download | external_llvm-93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d.zip external_llvm-93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d.tar.gz external_llvm-93e1c72ec0dbdb0a3af1af61e7a78bc992efa60d.tar.bz2 |
Added code that verifies that the source directory has not been configured
already. This should help prevent strange errors from happening, but will
make re-configuring the source directory more difficult when it is shared with
the object directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index fa0aa33..787c0d7 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -20,6 +20,13 @@ AC_INIT([[[LLVM]]],[[[1.0]]],[llvmbugs@cs.uiuc.edu]) dnl Place all of the extra autoconf files into the config subdirectory AC_CONFIG_AUX_DIR([autoconf]) +dnl Quit if the source directory has already been configured. +if test -f ${srcdir}/include/Config/config.h +then + AC_MSG_ERROR([Already configured in ${srcdir}]) +fi + + dnl Configure a header file AC_CONFIG_HEADERS(include/Config/config.h) AC_CONFIG_MAKEFILE(Makefile) |