Search
lxdream.org :: lxdream/acinclude.m4 :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename acinclude.m4
changeset 985:52e64faac752
prev977:8514fb4bc101
next1147:e04e4af64626
author nkeynes
date Tue Feb 24 11:47:41 2009 +0000 (10 years ago)
permissions -rw-r--r--
last change Set the source-type flags to -D__EXTENSIONS__ -U__STRICT_ANSI__ - this seems
to work correctly on all the platforms we care about at the moment.
Tweak the gcc-detection slightly (it was getting it wrong on some gcc builds)
file annotate diff log raw
1.1 --- a/acinclude.m4 Mon Feb 02 01:40:13 2009 +0000
1.2 +++ b/acinclude.m4 Tue Feb 24 11:47:41 2009 +0000
1.3 @@ -56,15 +56,15 @@
1.4 # different optimization flags. Currently recognizes gcc and icc
1.5 # ---------------
1.6 AC_DEFUN([AC_CC_VERSION], [
1.7 -_GCC_VERSION=`$CC --version | $SED -ne '/(GCC)/p'`
1.8 +_GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
1.9 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
1.10 AC_MSG_CHECKING([CC version])
1.11 -if test -n "$_GCC_VERSION"; then
1.12 +if test -n "$_ICC_VERSION"; then
1.13 + AC_MSG_RESULT([ICC])
1.14 + [ $2 ]
1.15 +elif test -n "$_GCC_VERSION"; then
1.16 AC_MSG_RESULT([GCC])
1.17 - [ $1 ]
1.18 -elif test -n "$_ICC_VERSION"; then
1.19 - AC_MSG_RESULT([ICC])
1.20 - [ $2 ]
1.21 + [ $1 ]
1.22 else
1.23 AC_MSG_RESULT([Unknown])
1.24 [ $3 ]
.