[pygobject/pygobject-2-28] check for the py3 _thread module in configure.ac if thread is not found



commit 094b355a785fbe7ebc776cbbd059e6a3d9241ce2
Author: John (J5) Palmieri <johnp redhat com>
Date:   Fri Mar 4 11:10:16 2011 -0500

    check for the py3 _thread module in configure.ac if thread is not found

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fb1f571..062eff7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,7 +146,11 @@ fi
 
 AM_CONDITIONAL(ENABLE_DOCS, test x$enable_docs != xno)
 
-AM_CHECK_PYMOD(thread,,,enable_thread=no)
+AM_CHECK_PYMOD(thread,,,enable_thread=check_for_py3_module)
+if test "x$enable_thread" = xcheck_for_py3_module; then
+  dnl Python 3 uses the _thread module so check for that
+  AM_CHECK_PYMOD(_thread,,,enable_thread=no)
+fi
 
 AC_MSG_CHECKING(whether to enable threading in pygobject)
 if test "x$enable_thread" != xno; then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]