Ensure that the automatic "CVS build" detection works for both
authorReid Spencer <rspencer@reidspencer.com>
Sat, 8 Apr 2006 01:41:26 +0000 (01:41 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 8 Apr 2006 01:41:26 +0000 (01:41 +0000)
objdir == srcdir and objdir != srcdir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27516 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index ec25ff89420e60d84f302adf010d61bce5a58e66..fee1c2c4becefd119cfbce131618d87bcaf55c86 100644 (file)
@@ -190,7 +190,7 @@ dnl command line switches. When we build with a CVS directory, we get a
 dnl debug with assertions turned on. Without, we assume a source release and we
 dnl get an optimized build without assertions. See --enable-optimized and
 dnl --enable-assertions below
-if test -d "CVS" ; then
+if test -d "CVS" -o -d "${srcdir}/CVS"; then
   cvsbuild="yes"
   optimize="no"
   asserts="yes"
index 4ba2da8658aa3862ec48c1017627f1112cc6e1fb..11d602027f1265fc6850b52159622d78027c78b7 100755 (executable)
--- a/configure
+++ b/configure
@@ -2968,7 +2968,7 @@ presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 esac
 
 
-if test -d "CVS" ; then
+if test -d "CVS" -o -d "${srcdir}/CVS"; then
   cvsbuild="yes"
   optimize="no"
   asserts="yes"