Patch from Raphael Kubo de Costa to fix build on FreeBSD.

http://marc.info/?l=lyx-devel&m=131586604331711&w=2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39768 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-09-26 15:51:28 +00:00
parent 5adac980ce
commit cf4ddb2ed5

View File

@ -321,8 +321,17 @@ AC_DEFUN([LYX_USE_INCLUDED_BOOST],[
AM_CONDITIONAL(USE_INCLUDED_BOOST, test x$lyx_cv_with_included_boost = xyes) AM_CONDITIONAL(USE_INCLUDED_BOOST, test x$lyx_cv_with_included_boost = xyes)
AC_MSG_RESULT([$lyx_cv_with_included_boost]) AC_MSG_RESULT([$lyx_cv_with_included_boost])
if test x$lyx_cv_with_included_boost != xyes ; then if test x$lyx_cv_with_included_boost != xyes ; then
AC_CHECK_LIB(boost_signals, main, [lyx_boost_underscore=yes], [], [-lm]) AC_LANG_PUSH(C++)
AC_CHECK_LIB(boost_signals-mt, main, [lyx_boost_underscore_mt=yes], [], [-lm $LIBTHREAD]) SAVED_LDFLAGS=$LDFLAGS
LDFLAGS="$SAVED_LDFLAGS -lboost_signals -lm"
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_underscore=yes], [])
LDFLAGS="$SAVED_LDFLAGS -lboost_signals-mt -lm $LIBTHREAD"
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_underscore_mt=yes], [])
LDFLAGS=$SAVED_LDFLAGS
AC_LANG_POP(C++)
if test x$lyx_boost_underscore_mt = xyes ; then if test x$lyx_boost_underscore_mt = xyes ; then
BOOST_MT="-mt" BOOST_MT="-mt"
else else