autotools: build issue with PIM Manager + boost-locale
On current Debian Testing, boost libraries are installed in /usr/lib/<arch> directories where they are not found by the Boost m4 macros. This breaks the boost-locale detection because it only tries linking against libs that it finds in the file system first. To fix this, at least try linking with -lboost-locale and use that if it works.
This commit is contained in:
parent
10acea4a6d
commit
c99d93372b
|
@ -89,7 +89,7 @@ AC_DEFUN([AX_BOOST_LOCALE],
|
|||
[link_locale="no"])
|
||||
done
|
||||
if test "x$link_locale" != "xyes"; then
|
||||
for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` ; do
|
||||
for libextension in `ls $BOOSTLIBDIR/boost_locale*.dll* $BOOSTLIBDIR/boost_locale*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_locale.*\)\.dll.*$;\1;' -e 's;^\(boost_locale.*\)\.a.*$;\1;'` boost_locale; do
|
||||
ax_lib=${libextension}
|
||||
AC_CHECK_LIB($ax_lib, exit,
|
||||
[BOOST_LOCALE_LIB="-l$ax_lib"; AC_SUBST(BOOST_LOCALE_LIB) link_locale="yes"; break],
|
||||
|
|
Loading…
Reference in New Issue