Skip to content
Snippets Groups Projects
Commit 71ec986a authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal: clean up check for swig bindings

- what was there was a hack, and one that appears to not always work on all systems.  this should do better
parent f1dda6c5
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,17 @@ AS_IF([test "x$HAVE_LAL_PTHREAD_LOCK" != "xyes"], [
AC_MSG_FAILURE([lal must be built with pthread locking enabled])
])
AX_PYTHON_MODULE([lal ; lal.LIGOTimeGPS], fatal)
AC_DEFUN([AX_PYTHON_SYMBOL], [
AC_MSG_CHECKING([python module: from $1 import $2])
AS_IF([$PYTHON -c "from $1 import $2"], [
AC_MSG_RESULT(success)
], [
AC_MSG_ERROR([fail: are swig bindings missing?])
])
])
AX_PYTHON_MODULE([lal], fatal)
AX_PYTHON_SYMBOL([lal], [LIGOTimeGPS])
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment