Revision: 1351
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1351&view=rev
Author:   nadvornik
Date:     2009-01-25 16:58:19 +0000 (Sun, 25 Jan 2009)

Log Message:
-----------
fixed gthread detection

Modified Paths:
--------------
    trunk/configure.in

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in  2009-01-25 09:27:27 UTC (rev 1350)
+++ trunk/configure.in  2009-01-25 16:58:19 UTC (rev 1351)
@@ -177,19 +177,15 @@
 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)
         GLIB_CFLAGS="$GTHREAD_CFLAGS"


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to