Fix bugs showing up on Solaris.
authorScott Cantor <cantor.2@osu.edu>
Wed, 16 Nov 2011 21:34:02 +0000 (21:34 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 16 Nov 2011 21:34:02 +0000 (21:34 +0000)
m4/boost.m4

index 6a9294c..99072df 100644 (file)
@@ -211,7 +211,7 @@ AC_LANG_POP([C++])dnl
 boost-lib-version = BOOST_LIB_VERSION],
     [boost_cv_lib_version=`cat conftest.i`])])
     # e.g. "134" for 1_34_1 or "135" for 1_35
-    boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
+    boost_major_version=`echo "$boost_cv_lib_version" | $SED 's/_//;s/_.*//;s/ //'`
     case $boost_major_version in #(
       '' | *[[!0-9]]*)
         AC_MSG_ERROR([invalid value: boost_major_version=$boost_major_version])