mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Fix gperformance-tools setup and apply it to src/engine/tests.
This commit is contained in:
+1
-1
@@ -757,7 +757,7 @@ enable_google_profile=no
|
||||
AC_ARG_ENABLE( google-profiler,
|
||||
[AS_HELP_STRING([--enable-google-profiler], [link in Google Performance Tools profiler; allows enabling profiling by setting $CPUPROFILE=/path/to/logfile.])],
|
||||
[AC_MSG_CHECKING([Google PerfTools Profiler])
|
||||
AC_CHECK_LIB([profiler], [enable_google_profile=yes],
|
||||
AC_CHECK_LIB([profiler], [ProfilerEnable], [enable_google_profile=yes],
|
||||
[AC_MSG_WARN([Google Profiling Enabled but the library was not found.])])
|
||||
])
|
||||
AM_CONDITIONAL(WITH_GOOGLE_PROFILER, [test x$enable_google_profile = xyes])
|
||||
|
||||
@@ -81,6 +81,10 @@ test_link_LDADD = ../libgncmod-engine.la \
|
||||
${top_builddir}/src/libqof/qof/libgnc-qof.la \
|
||||
${top_builddir}/src/core-utils/libgnc-core-utils.la
|
||||
|
||||
if WITH_GOOGLE_PROFILER
|
||||
LDADD += -lprofiler
|
||||
endif
|
||||
|
||||
EXTRA_DIST += \
|
||||
test-create-account \
|
||||
test-create-account.scm \
|
||||
|
||||
Reference in New Issue
Block a user