Skip to content

Commit

Permalink
fixed gthread detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jan 25, 2009
1 parent 66c0579 commit 7debdfe
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,14 @@ fi
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)
Expand Down

0 comments on commit 7debdfe

Please sign in to comment.