From 27272a704d4017ff4abc1c840a221a3f62d1f346 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 19 May 2016 22:46:24 +0200 Subject: [PATCH] Fix Ruby bindings build on Mac OS X and FreeBSD. Using "\s*" on BSD sed doesn't work the same way as on GNU sed, thus yielding e.g. " 3.0.8" instead of "3.0.8" in a ./configure check, which later prevents the Ruby bindings from being built. Fix this by simply using exactly one space in the sed invocation, since swig seems to always use just one space there anyway. Tested on Mac OS X, FreeBSD, and Linux. This closes bug #800. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e6a719b8..c5089f1d 100644 --- a/configure.ac +++ b/configure.ac @@ -395,7 +395,7 @@ AS_IF([test "x$HAVE_PYMOD_NUMPY" != xyes], AC_CHECK_PROGS([SWIG], [swig swig3.0 swig2.0]) AS_IF([test "x$SWIG" != x], AC_MSG_CHECKING([for $SWIG version]) - [SWIG_VERSION=`$SWIG -version 2>&1 | sed -n 's/SWIG Version\s*//p'`] + [SWIG_VERSION=`$SWIG -version 2>&1 | sed -n 's/SWIG Version //p'`] AC_MSG_RESULT([$SWIG_VERSION])) AS_IF([test "x$SWIG" = x], [SR_APPEND([sr_python_missing], [', '], [SWIG])])