<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Regenerate configure?<div><br><div><div>On Mar 31, 2009, at 9:39 PM, Nick Lewycky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Author: nicholas<br>Date: Tue Mar 31 23:39:25 2009<br>New Revision: 68187<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=68187&view=rev">http://llvm.org/viewvc/llvm-project?rev=68187&view=rev</a><br>Log:<br>Detect that we're building from a git checkout like we do for cvs and svn.<br>Based on a patch by Nicolas Trangez on the unladen-swallow mailing list!<br><br>Modified:<br>    llvm/trunk/autoconf/configure.ac<br><br>Modified: llvm/trunk/autoconf/configure.ac<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=68187&r1=68186&r2=68187&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=68187&r1=68186&r2=68187&view=diff</a><br><br>==============================================================================<br>--- llvm/trunk/autoconf/configure.ac (original)<br>+++ llvm/trunk/autoconf/configure.ac Tue Mar 31 23:39:25 2009<br>@@ -255,13 +255,13 @@<br>   AC_SUBST(LLVM_CROSS_COMPILING, [0])<br> fi<br><br>-dnl Check to see if there's a "CVS" (or .svn) directory indicating that this<br>-dnl build is being done from a checkout. This sets up several defaults for the<br>-dnl command line switches. When we build with a CVS directory, we get a<br>-dnl debug with assertions turned on. Without, we assume a source release and we<br>-dnl get an optimized build without assertions. See --enable-optimized and<br>-dnl --enable-assertions below<br>-if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then<br>+dnl Check to see if there's a "CVS" (or .svn or .git) directory indicating<br>+dnl that this build is being done from a checkout. This sets up several<br>+dnl defaults for the command line switches. When we build with a CVS directory,<br>+dnl we get a debug with assertions turned on. Without, we assume a source<br>+dnl release and we get an optimized build without assertions.<br>+dnl See --enable-optimized and --enable-assertions below<br>+if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then<br>   cvsbuild="yes"<br>   optimize="no"<br>   AC_SUBST(CVSBUILD,[[CVSBUILD=1]])<br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br></div></blockquote></div><br></div></body></html>