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



commit 83b0f8a37d5f3236780d87a1ca466c5e44ae2bc0
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 1260536..0cc920b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,7 +145,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]