From d3a0c8dce9380e77734e41becd9aa35618030352 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 26 Sep 2005 16:48:28 +0000 Subject: Prevent threaded python build on BSD's, where it fails. Marko Kreen --- configure | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 23071b03041..e58189c81ba 100755 --- a/configure +++ b/configure @@ -4743,6 +4743,26 @@ echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6 +# threaded python is not supported on bsd's +echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5 +echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6 +pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"` +if test "$pythreads" = "1"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + case $host_os in + openbsd*|freebsd*) + { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5 +echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;} + { (exit 1); exit 1; }; } + ;; + esac +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi -- cgit v1.2.3