configure: fix gcc detection for v2.95
authorMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 17:25:42 +0000 (17:25 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 17:25:42 +0000 (17:25 +0000)
Originally committed as revision 19619 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index e55cfdc..865b590 100755 (executable)
--- a/configure
+++ b/configure
@@ -1508,7 +1508,7 @@ filter_cflags=echo
 filter_cppflags=echo
 filter_asflags=echo
 
-if   $cc --version 2>/dev/null | grep -qi gcc; then
+if   $cc -v 2>&1 | grep -qi ^gcc; then
     cc_type=gcc
     CC_DEPFLAGS='-MMD'
     AS_DEPFLAGS='-MMD'