# HG changeset patch # User nadvornik # Date 1232902699 0 # Node ID 253a6e086a8e37931f88b2bbcc3cc8e774c4e3ab # Parent 71a75a53dde7c43001838a73c954e2554bd407f2 fixed gthread detection diff -r 71a75a53dde7 -r 253a6e086a8e configure.in --- a/configure.in Sun Jan 25 09:27:27 2009 +0000 +++ b/configure.in Sun Jan 25 16:58:19 2009 +0000 @@ -177,18 +177,14 @@ AM_PATH_GLIB_2_0(2.4.0,,AC_MSG_ERROR(GLIB >= 2.4.0 not installed.)) AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.)) -have_gthread="no" +threads="auto" AC_ARG_ENABLE([threads], - AC_HELP_STRING([--disable-threads], [disable thread support]), -[ -if test "x${enableval}" != "xno"; then + AC_HELP_STRING([--disable-threads], [disable thread support]), [threads="${enableval}"]) + +have_gthread="no" +if test "x${threads}" != "xno" ; then PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")]) fi -], -dnl enable by default - PKG_CHECK_MODULES(GTHREAD, [gthread-2.0], have_gthread="yes", [AC_MSG_WARN("No thread support in glib")]) -) - if test "x$have_gthread" != "xno"; then AC_DEFINE(HAVE_GTHREAD, 1, Define if you have gthread library)