autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

detection of gcc version


From: Vincent Torri
Subject: detection of gcc version
Date: Sun, 11 Jan 2009 07:09:15 +0100 (CET)


Hey,

I would like to detect the major version of gcc in configure.ac. A guy told me to use sed like that:

GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`

Is there a better way to do that with autoconf macros ?

thank you

Vincent Torri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]