--- parser3/configure.ac 2015/09/03 18:06:00 1.2 +++ parser3/configure.ac 2016/12/23 16:29:27 1.9 @@ -1,6 +1,6 @@ dnl Autoconf initialisation AC_PREREQ(2.59) -AC_INIT(parser, 3.4.4b) +AC_INIT(parser, 3.4.5b) AC_CONFIG_SRCDIR(README) @@ -64,6 +64,21 @@ AC_ARG_WITH(build-warnings, [ --with-bu CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes" ) +AC_ARG_WITH(coverage, [ --with-coverage to enable gcov code coverage support], + AC_MSG_WARN(enabling gcov support) + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` + CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O[0-9]*//g'` + CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" + CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" + LDFLAGS="$LDFLAGS -lgcov" +) + +AC_ARG_WITH(profiler, [ --with-profiler to enable gprof code profiler support], + AC_MSG_WARN(enabling gprof support) + CFLAGS="$CFLAGS -pg" + CXXFLAGS="$CXXFLAGS -pg" +) + AC_ARG_WITH(assertions, [ --with-assertions to enable assertions], AC_MSG_WARN(enabling assertions) ,