Commit d5841424 authored by Karl Wette's avatar Karl Wette

lalsuite_swig.m4: Octave potentially needs GSL for LAL complex number support

- refs #5594
Original: b9c17b7f110db07c0b2bd03bbb29045d0eef0d6a
parent 98f932a8
......@@ -2,7 +2,7 @@
# lalsuite_swig.m4 - SWIG configuration
# Author: Karl Wette, 2011--2017
#
# serial 99
# serial 100
AC_DEFUN([_LALSUITE_CHECK_SWIG_VERSION],[
# $0: check the version of $1, and store it in ${swig_version}
......@@ -226,6 +226,11 @@ AC_DEFUN([LALSUITE_USE_SWIG_OCTAVE],[
# $0: configure SWIG Octave bindings
LALSUITE_USE_SWIG_LANGUAGE([Octave],[C++],[
# check for GSL (potentially needed for LAL complex number support)
PKG_CHECK_MODULES([GSL],[gsl],[true],[false])
LALSUITE_ADD_FLAGS([C],[${GSL_CFLAGS}],[${GSL_LIBS}])
AC_CHECK_HEADERS([gsl/gsl_complex.h],,[AC_MSG_ERROR([could not find the gsl/gsl_complex.h header])])
# check for Octave
AC_PATH_PROGS(OCTAVE,[octave-cli octave],[],[])
AS_IF([test "x${OCTAVE}" = x],[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment