mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
5adac980ce
commit
cf4ddb2ed5
@ -321,8 +321,17 @@ AC_DEFUN([LYX_USE_INCLUDED_BOOST],[
|
||||
AM_CONDITIONAL(USE_INCLUDED_BOOST, test x$lyx_cv_with_included_boost = xyes)
|
||||
AC_MSG_RESULT([$lyx_cv_with_included_boost])
|
||||
if test x$lyx_cv_with_included_boost != xyes ; then
|
||||
AC_CHECK_LIB(boost_signals, main, [lyx_boost_underscore=yes], [], [-lm])
|
||||
AC_CHECK_LIB(boost_signals-mt, main, [lyx_boost_underscore_mt=yes], [], [-lm $LIBTHREAD])
|
||||
AC_LANG_PUSH(C++)
|
||||
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
|
||||
BOOST_MT="-mt"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user