[llvm-commits] CVS: llvm/autoconf/configure.ac
John Criswell
criswell at cs.uiuc.edu
Mon Sep 15 12:20:06 PDT 2003
Changes in directory llvm/autoconf:
configure.ac updated: 1.16 -> 1.17
---
Log message:
Modified the checks slightly so that one can re-configure LLVM without
having to do a "make distclean" when building in the source directory.
---
Diffs of the changes:
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.16 llvm/autoconf/configure.ac:1.17
--- llvm/autoconf/configure.ac:1.16 Mon Sep 15 12:04:06 2003
+++ llvm/autoconf/configure.ac Mon Sep 15 12:19:42 2003
@@ -21,11 +21,14 @@
AC_CONFIG_AUX_DIR([autoconf])
dnl Quit if the source directory has already been configured.
-if test -f ${srcdir}/include/Config/config.h
+dnl NOTE: This relies upon undocumented autoconf behavior.
+if test ${srcdir} != "."
then
- AC_MSG_ERROR([Already configured in ${srcdir}])
+ if test -f ${srcdir}/include/Config/config.h
+ then
+ AC_MSG_ERROR([Already configured in ${srcdir}])
+ fi
fi
-
dnl Configure a header file
AC_CONFIG_HEADERS(include/Config/config.h)
More information about the llvm-commits
mailing list