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