+2003-02-12 Havoc Pennington <hp@pobox.com>
+
+ * dbus/Makefile.am: remove break-loader from the build, since it
+ moved.
+
+ * configure.in: add --enable-gcov to turn on coverage profiling
+ flags and disable optimization
+
2003-02-10 Havoc Pennington <hp@pobox.com>
* dbus/dbus-auth-script.c, dbus/dbus-auth-script.h: sync
AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=yes)
AC_ARG_ENABLE(asserts, [ --enable-asserts include assertion checks],enable_asserts=$enableval,enable_asserts=yes)
+AC_ARG_ENABLE(gcov, [ --enable-gcov compile with coverage profiling instrumentation (gcc only)],enable_gcov=$enableval,enable_gcov=no)
dnl DBUS_BUILD_TESTS controls unit tests built in to .c files
dnl and also some stuff in the test/ subdir
AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
fi
-changequote(,)dnl
if test "x$GCC" = "xyes"; then
+ changequote(,)dnl
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
*) CFLAGS="$CFLAGS -pedantic" ;;
esac
fi
+ if test x$enable_gcov = xyes; then
+ case " $CFLAGS " in
+ *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
+ esac
+ case " $CFLAGS " in
+ *[\ \ ]-ftest-coverage[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -ftest-coverage" ;;
+ esac
+
+ ## remove optimization
+ CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
+ fi
+ changequote([,])dnl
+else
+ if test x$enable_gcov = xyes; then
+ AC_MSG_ERROR([--enable-gcov can only be used with gcc])
+ fi
fi
-changequote([,])dnl
+
+
AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(short)
prefix: ${prefix}
source code location: ${srcdir}
compiler: ${CC}
+ cflags: ${CFLAGS}
Maintainer mode: ${USE_MAINTAINER_MODE}
+ gcc coverage profiling: ${enable_gcov}
Building unit tests: ${enable_tests}
Building verbose mode: ${enable_verbose_mode}
Building assertions: ${enable_asserts}
if test x$enable_tests = xyes; then
echo "NOTE: building with unit tests increases the size of the installed library"
fi
+if test x$enable_gcov = xyes; then
+ echo "NOTE: building with coverage profiling is definitely for developers only"
+fi
if test x$enable_verbose_mode = xyes; then
echo "NOTE: building with verbose mode increases library size, but is probably a good idea anyway."
fi