Ok... This took a little to figure out...
Basically in order for Gentoo to to deal with multiple slots (or
versions) it appends the major-minor revision on the end of the
boost_python library. The configuration script only checks for lib
names which are installed only once. Since there is potentially a WHOLE
raft of stuff that are tested against, I very uneligantly hacked
something that would set a version string and then rerun all the choices
it tried before.
Patch appended, but someone more versed way want a cleanup on isle
config-script-fu
EBo --
--- configure.in 2012-11-14 21:32:51.598719116 -0600
+++ configure.in 2012-11-14 21:33:41.258718470 -0600
@@ -72,15 +72,22 @@
ax_boost_python_lib=boost_python-$with_boost_python
fi])
AC_MSG_CHECKING([for boost::python shared library])
- for ax_lib in "$ax_python_lib" "$ax_boost_python_lib" boost_python
+
+ # a hack around not including the version
+ PVER=`python-config --libs | sed -e 's/.*python\([0-9]\)*/\1/'`
+
+ for PV in "" "-${PVER}" "${PVER}"
do
- # Note that this requires LIBPYTHON from configure.in
- LIBS="$saved_LIBS -l$LIBPYTHON -l$ax_lib"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([[#include <boost/python.hpp>]], [[boost::python::object test_object;]])],
- [BOOST_PYTHON_LIBS="-l$ax_lib"; break])
+ for ax_lib in "$ax_python_lib" "$ax_boost_python_lib" boost_python
+ do
+ # Note that this requires LIBPYTHON from configure.in
+ LIBS="$saved_LIBS -l$LIBPYTHON -l$ax_lib$PV"
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[#include <boost/python.hpp>]], [[boost::python::object test_object;]])],
+ [BOOST_PYTHON_LIBS="-l$ax_lib$PV"; break])
+ done
+ AS_IF([test "x$BOOST_PYTHON_LIBS" != x], [ax_result=$BOOST_PYTHON_LIBS]; break, [ax_result=])
done
- AS_IF([test "x$BOOST_PYTHON_LIBS" != x], [ax_result=$BOOST_PYTHON_LIBS], [ax_result=])
AC_MSG_RESULT([$ax_result])
])
CPPFLAGS=$saved_CPPFLAGS
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers