[llvm-commits] CVS: llvm/autoconf/configure.ac
Reid Spencer
reid at x10sys.com
Thu Apr 6 15:00:49 PDT 2006
Changes in directory llvm/autoconf:
configure.ac updated: 1.213 -> 1.214
---
Log message:
For support of new GCC v4, obtain the full and major versions of the
llvm-gcc command. This will help distinguish which version is being used
so the makefiles can accommodate.
---
Diffs of the changes: (+4 -0)
configure.ac | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.213 llvm/autoconf/configure.ac:1.214
--- llvm/autoconf/configure.ac:1.213 Thu Mar 23 17:21:29 2006
+++ llvm/autoconf/configure.ac Thu Apr 6 17:00:36 2006
@@ -592,6 +592,10 @@
AC_SUBST(LLVMCC1PLUS,$llvmcc1pluspath)
llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
AC_SUBST(LLVMGCCDIR,$llvmgccdir)
+ llvmgccversion=[`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`]
+ llvmgccmajvers=[`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`]
+ AC_SUBST(LLVMGCC_VERSION,$llvmgccversion)
+ AC_SUBST(LLVMGCC_MAJVERS,$llvmgccmajvers)
fi
dnl Propagate the shared library extension that the libltdl checks did to
More information about the llvm-commits
mailing list