summaryrefslogtreecommitdiff
path: root/media-libs/libfame/files/libfame-0.9.1-mmx-configure.ac.patch
blob: ff4e7327ce2f7934940200c33f134449420f3d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: libfame-0.9.1/configure.in
===================================================================
--- libfame-0.9.1.orig/configure.in
+++ libfame-0.9.1/configure.in
@@ -101,12 +101,9 @@ if test x$ac_cv_prog_gcc = xyes; then
 	CFLAGS="$CFLAGS -Wall -fexpensive-optimizations -funroll-loops -ffast-math"
 
 dnl -fstrict-aliasing doesn't seem to be supported by gcc < 2.95
-	gcc_major_version=`$CC --version | \
-	   sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
-    	gcc_minor_version=`$CC --version | \
-	   sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
-	gcc_micro_version=`$CC --version | \
-	   sed -e 's,[[^0-9.]],,g' -e 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+	gcc_major_version=`${CC} -dumpversion | cut -f1 -d.`
+    	gcc_minor_version=`${CC} -dumpversion | cut -f2 -d.`
+	gcc_micro_version=`${CC} -dumpversion | cut -f3 -d.`
 
 	dnl ok, I must admit I don't know how to do or/and ;)
 	if test $gcc_major_version -eq 2; then