Mesa (master): configure: fix gcc version check

Brian Paul brianp at kemper.freedesktop.org
Thu Jul 14 08:55:31 PDT 2011


Module: Mesa
Branch: master
Commit: fa013419deec41c2771bf4744e0f8a2bca3346d2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa013419deec41c2771bf4744e0f8a2bca3346d2

Author: Marcin Baczyński <marbacz at gmail.com>
Date:   Wed Jul 13 21:26:50 2011 +0200

configure: fix gcc version check

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Brian Paul <brianp at vmware.com>

---

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 74144ca..949faa4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,7 +85,7 @@ if test "x$GCC" = xyes -a "x$CLANG" = xno; then
     GCC_VERSION=`$CC -dumpversion`
     if test $? -eq 0; then
         major=`echo $GCC_VERSION | cut -d. -f1`
-        minor=`echo $GCC_VERSION | cut -d. -f1`
+        minor=`echo $GCC_VERSION | cut -d. -f2`
     fi
 
     if test $major -lt 3 -o $major -eq 3 -a $minor -lt 3 ; then



More information about the mesa-commit mailing list