m4/gcc_version.m4 : Fix XIPH_GCC_VERSION macro.

Macro was misbehaving with OpenBSD's sed.
This commit is contained in:
Erik de Castro Lopo 2013-03-09 20:07:31 +11:00
parent 2860f1780c
commit b555ec1a6c

View File

@ -20,8 +20,8 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
AC_MSG_RESULT($GCC_VERSION)
changequote(,)dnl
GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/$GCC_MAJOR_VERSION\.//" | sed "s/\..*//"`
changequote([,])dnl
fi