allow boost as system shared libarry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6948 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-07 16:22:01 +00:00
parent 65416ed3ee
commit ac1faa8439
8 changed files with 46 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-05-07 Lars Gullik Bjønnes <larsbj@gullik.net>
* Makefile.am: allow boost as system lib
2003-04-25 Lars Gullik Bjønnes <larsbj@gullik.net>
* dummy entry

View File

@ -6,7 +6,13 @@ MAINTAINERCLEANFILES += $(srcdir)/aclocal.m4 \
$(srcdir)/configure \
$(srcdir)/acinclude.m4
DIST_SUBDIRS = config development intl po boost src sourcedoc lib
if USE_INCLUDED_BOOST
SUBDIRS = config development intl po boost src sourcedoc lib
else
SUBDIRS = config development intl po src sourcedoc lib
endif
EXTRA_DIST = ANNOUNCE INSTALL.OS2 INSTALL.autoconf README.OS2 \
UPGRADING lyx.man autogen.sh images

View File

@ -1,3 +1,10 @@
2003-05-07 Lars Gullik Bjønnes <larsbj@gullik.net>
* lyxinclude.m4 (LYX_USE_INCLUDED_BOOST): new m4 function
* configure.ac: allow boost as system lib
* common.am: ditto
2003-05-07 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxinclude213.m4 (AC_HELP_STRING): replace with a hackish but

View File

@ -8,6 +8,8 @@ AM_INSTALL_DATA_FLAGS = $(INSTALL) -m 644 -D
ETAGS_ARGS = --lang=c++
if USE_INCLUDED_BOOST
BOOST_INCLUDES = -I$(top_srcdir)/boost
endif
LIBS =

View File

@ -123,6 +123,8 @@ AC_CHECK_LIB(Aiksaurus, main,
fi
AC_SUBST(AIKSAURUS_LIBS)
LYX_USE_INCLUDED_BOOST
### Setup libtool
AC_DISABLE_SHARED
AC_LIBTOOL_WIN32_DLL
@ -339,6 +341,11 @@ int mkstemp(char*);
#define USE_BOOST_FORMAT 0
#endif
#define BOOST_DISABLE_THREADS 1
#define BOOST_NO_EXCEPTIONS 1
#define BOOST_NO_WREGEX 1
#define BOOST_NO_WSTRING 1
#endif
])

View File

@ -397,6 +397,17 @@ dnl AC_MSG_RESULT([$with_included_string])
])
dnl Usage: LYX_USE_INCLUDED_BOOST : select if the included boost should
dnl be used.
AC_DEFUN(LYX_USE_INCLUDED_BOOST,[
AC_ARG_WITH(included-boost,
[ --with-included-boost use the boost lib supplied with LyX],
[lyx_cv_with_included_boost=$withval
AC_MSG_RESULT([$with_included_boost])],
[lyx_cv_with_included_boost=yes])
AM_CONDITIONAL(USE_INCLUDED_BOOST, test x$lyx_cv_with_included_boost = xyes)
])
dnl Usage: LYX_CXX_GOOD_STD_STRING : checks whether the C++ compiler
dnl has a std::string that is close to the standard. So close that
dnl methods not found in "unstandard" std::strings are present here.

View File

@ -1,5 +1,7 @@
2003-05-07 Lars Gullik Bjønnes <larsbj@gullik.net>
* Makefile.am (BOOST_LIBS): allow boost as system lib.
* text2.C (changeDepth): parlist cleanup
(getColumnNearX): ditto

View File

@ -13,8 +13,12 @@ LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
graphics/libgraphics.la \
support/libsupport.la
if USE_INCLUDED_BOOST
BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
../boost/libs/signals/src/libboostsignals.la
else
BOOST_LIBS = -lboost_regex -lboost_signals
endif
lyx_LDADD = $(LYX_CONV_LIBS) $(BOOST_LIBS) $(INTLLIBS) \
$(AIKSAURUS_LIBS) @LIBS@