add glib check. If glib is found, we will compare

our data types with glib ones in benchmarks


SVN revision: 35696
This commit is contained in:
Vincent Torri 2008-08-27 14:41:51 +00:00
parent 604a020f15
commit c7630faad9
2 changed files with 20 additions and 0 deletions

View File

@ -99,6 +99,8 @@ AC_MSG_RESULT([$enable_ememoa])
### Checks for libraries
PKG_PROG_PKG_CONFIG
# Check library for unit tests
if test "x${enable_tests}" = "xyes" ; then
@ -111,6 +113,18 @@ fi
AM_CONDITIONAL(EINA_ENABLE_TESTS, test "x${enable_tests}" = "xyes")
# Glib library for comparison in the benchmark
if test "x${enable_bench}" = "xyes" ; then
PKG_CHECK_MODULES([GLIB],
[glib-2.0],
[have_glib="yes"],
[have_glib="no"]
)
fi
AM_CONDITIONAL(EINA_HAVE_GLIB, test "x${have_glib}" = "xyes")
# Check ememoa memory pool library
if test "x${enable_ememoa}" = "xyes" ; then

View File

@ -11,6 +11,12 @@ AM_CPPFLAGS = \
-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
@CHECK_CFLAGS@
if EINA_HAVE_GLIB
AM_CPPFLAGS += -DEINA_BENCH_HAVE_GLIB
endif
if EINA_ENABLE_TESTS
check_PROGRAMS = eina_suite