(fix commit
0d0a16d)
* configure.ac [enable_gcov] (CFLAGS): Change sed regular expression
to avoid [] (as they are not properly handled during autogen), and to
also filter out -Os and -Ofast (-O0 is ignored).
if test "$enable_gcov" = "yes"; then
CFLAGS="$CFLAGS --coverage"
# Turn off code optimization to get accurate line numbers.
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
+ CFLAGS=`echo "$CFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'`
fi
AC_SUBST(PICFLAG)