From 3a96e4ffd99ec3f125e1891155ecb751b6e313a1 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 5 Apr 2003 10:04:04 +0000 Subject: 2003-04-05 Havoc Pennington * Makefile.am (coverage-report.txt): add target "coverage-report.txt" * test/decode-gcov.c: hack up a little program to suck data out of gcov files. Yes this is sort of silly. * configure.in: define something in config.h and do an AM_CONDITIONAL when gcov is enabled --- configure.in | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 0238282e..3bc177b3 100644 --- a/configure.in +++ b/configure.in @@ -123,7 +123,13 @@ else fi fi -#### Assorted checks +if test x$enable_gcov = xyes; then + ## so that config.h changes when you toggle gcov support + AC_DEFINE_UNQUOTED(DBUS_GCOV_ENABLED, 1, [Defined if gcov is enabled to force a rebuild due to config.h changing]) +fi +AM_CONDITIONAL(DBUS_GCOV_ENABLED, test x$enable_gcov = xyes) + +#### Integer sizes AC_CHECK_SIZEOF(char) AC_CHECK_SIZEOF(short) @@ -133,6 +139,24 @@ AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(long long) AC_CHECK_SIZEOF(__int64) +### this is only used in decode-gcov.c right now +case 8 in +$ac_cv_sizeof_int) + dbusint64=int + ;; +$ac_cv_sizeof_long) + dbusint64=long + ;; +$ac_cv_sizeof_long_long) + dbusint64='long long' + ;; +$ac_cv_sizeof___int64) + dbusint64=__int64 + ;; +esac + +AC_DEFINE_UNQUOTED(DBUS_INT64_TYPE, $dbusint64, [64-bit integer type]) + ## byte order AC_C_BIGENDIAN -- cgit