Changeset 21067

Show
Ignore:
Timestamp:
04/15/08 22:28:02 (4 months ago)
Author:
patrick
Message:

Handle Boost 1.35 where the new library Boost.System is a dependency of
Boost.Filesystem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vapor/Makefile.inc.in

    r20974 r21067  
    373373          $(libdir)$(LIBBITSUF)/flagpoll/boost-$(BOOST_VERSION).$(ISA).fpc 
    374374        $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \ 
     375          $(topdir)/boost_system.fpc                                    \ 
     376          $(libdir)$(LIBBITSUF)/flagpoll/boost_system-$(BOOST_VERSION).$(ISA).fpc 
     377        $(INSTALL) -m $(FILE_PERMS) $(GROUP_OPT_UNIX)                   \ 
    375378          $(topdir)/boost_filesystem.fpc                                \ 
    376379          $(libdir)$(LIBBITSUF)/flagpoll/boost_filesystem-$(BOOST_VERSION).$(ISA).fpc 
  • juggler/trunk/modules/vapor/Makefile.pre.in

    r20974 r21067  
    6262vpr.fpc.in: ; 
    6363boost.fpc.in: ; 
     64boost_system.fpc.in: ; 
    6465boost_filesystem.fpc.in: ; 
    6566boost_signals.fpc.in: ; 
     
    7475Makefile: $(srcdir)/VERSION configure config.status Makefile.in         \ 
    7576          Makefile.inc.in make.defs.mk.in vpr.fpc.in boost.fpc.in       \ 
    76           boost_filesystem.fpc.in boost_signals.fpc.in 
     77          boost_system.fpc.in boost_filesystem.fpc.in boost_signals.fpc.in 
    7778        $(CFG_SHELL) $(srcdir)/configure $(CONFIGURE_ARGS) 
    7879        @$(MAKE) -f Makefile cleandepend 
  • juggler/trunk/modules/vapor/boost_filesystem.fpc.in

    r20519 r21067  
    99Version: @BOOST_VERSION_DOT@ 
    1010Provides: Boost.Filesystem boost.filesystem 
    11 Requires: boost = @BOOST_VERSION_DOT@ 
     11Requires: boost = @BOOST_VERSION_DOT@ boost.system = @BOOST_VERSION_DOT@ 
    1212Arch: @ISA@ 
    1313Cflags: @BOOST_INCLUDES@ 
  • juggler/trunk/modules/vapor/boost_system.fpc.in

    r20519 r21067  
    11# Private Variables 
    22prefix = @BOOST_ROOT@ 
    3 boost_ldflags = @BOOST_LDFLAGS@ @BOOST_FS_LINK@ 
     3boost_ldflags = @BOOST_LDFLAGS@ @BOOST_SYSTEM_LINK@ 
    44 
    55# Standard Flagpoll Variables 
    6 Name: Boost.Filesystem 
    7 Description: The Boost.Filesystem Library provides portable facilities to query and manipulate paths, files, and directories
    8 URL: http://www.boost.org/libs/filesystem/doc/index.htm 
     6Name: Boost.System 
     7Description: Operating system support, including the diagnostics support that will be part of the C++0x standard library
     8URL: http://www.boost.org/libs/system/doc/index.htm 
    99Version: @BOOST_VERSION_DOT@ 
    10 Provides: Boost.Filesystem boost.filesystem 
     10Provides: Boost.System boost.system 
    1111Requires: boost = @BOOST_VERSION_DOT@ 
    1212Arch: @ISA@ 
  • juggler/trunk/modules/vapor/configure.ac

    r21049 r21067  
    133133DPP_ABI_SETUP 
    134134 
     135AC_ARG_WITH([boost-system-lib], 
     136            [  --with-boost-system-lib=<LIB NAME> 
     137                          The name of the Boost.System 
     138                          (1.35 and newer) library 
     139                          suitable for the -l compiler 
     140                          option                          [default=Auto-detect]], 
     141            [given_boost_system_libname="$withval"], 
     142            [given_boost_system_libname='']) 
     143 
    135144AC_ARG_WITH([boost-fs-lib], 
    136145            [  --with-boost-fs-lib=<LIB NAME> 
     
    675684                             [$BOOST_LIB_VERSION], [boost_suffixes]) 
    676685 
     686if test "x$given_boost_system_libname" != "x" ; then 
     687   boost_system_name="$given_boost_system_libname" 
     688fi 
     689 
    677690if test "x$given_boost_fs_libname" != "x" ; then 
    678691   boost_fs_name="$given_boost_fs_libname" 
     
    701714DPP_LANG_CPLUSPLUS 
    702715 
     716testBoostSystem ( ) 
     717{ 
     718   libname="$1" 
     719   orig_LIBS="$2" 
     720 
     721   # NOTE: We do not need $ABI_FLAGS in $LDFLAGS since $CXXFLAGS and $LDFLAGS 
     722   # are used together by AC_TRY_LINK(). 
     723   LIBS="-l$libname $orig_LIBS" 
     724 
     725   AC_MSG_CHECKING([for boost::system::error_code::clear() in $libname in $cur_boost_libdir]) 
     726   AC_TRY_LINK([#include <boost/system/error_code.hpp>], 
     727               [boost::system::error_code ec; ec.clear();], 
     728               [vpr_have_boost_system='yes'], [vpr_have_boost_system='no']) 
     729   rm -rf ./ii_files 
     730   AC_MSG_RESULT([$vpr_have_boost_system]) 
     731 
     732   LIBS="$orig_LIBS" 
     733} 
     734 
     735for l in $libdirs ; do 
     736   cur_boost_libdir="$BOOST_ROOT/$l" 
     737   LDFLAGS="-L$cur_boost_libdir $vprsave_LDFLAGS" 
     738 
     739   if test "x$boost_system_name" != "x" ; then 
     740      testBoostSystem $boost_system_name $vprsave_LIBS 
     741   else 
     742      # The extra empty string is to allow for no suffix to be used on the 
     743      # boost_system library name. 
     744      for s in $boost_suffixes "" ; do 
     745         cur_boost_system_name="boost_system$s" 
     746 
     747         testBoostSystem $cur_boost_system_name $vprsave_LIBS 
     748 
     749         if test "$vpr_have_boost_system" = "yes" ; then 
     750            boost_system_name="$cur_boost_system_name" 
     751            break 
     752         fi 
     753      done 
     754   fi 
     755 
     756   if test "$vpr_have_boost_system" = "yes" ; then 
     757      BOOST_LIBDIR="$cur_boost_libdir" 
     758      break 
     759   fi 
     760done 
     761 
     762if test "x$vpr_have_boost_system" = "xyes" ; then 
     763   BOOST_SYSTEM_LINK="-l$boost_system_name" 
     764fi 
     765 
    703766testBoostFilesystem ( ) 
    704767{ 
     
    708771   # NOTE: We do not need $ABI_FLAGS in $LDFLAGS since $CXXFLAGS and $LDFLAGS 
    709772   # are used together by AC_TRY_LINK(). 
    710    LIBS="-l$libname $orig_LIBS" 
     773   LIBS="-l$libname $BOOST_SYSTEM_LINK $orig_LIBS" 
    711774 
    712775   AC_MSG_CHECKING([for boost::filesystem::exists() in $libname in $cur_boost_libdir]) 
     
    9671030UNIX_VPRROOT_ABS="$VPRROOT_ABS" 
    9681031 
    969 # Put together the basic information needed to compile VPR applicsignalsions. 
    970 if test "x$OS_TYPE" = "xWin32" ; then 
    971     APP_EXTRA_LIBS="$LDFLAGS $LIBS $CPPDOM_LDFLAGS $CPPDOM_LIBS $BOOST_LDFLAGS_LINK_EXE $boost_signals_name.lib $boost_fs_name.lib $NSPR_LDFLAGS_LINK_EXE $NSPR_LIB_LINK_EXE $PLC_LIB_LINK_EXE ws2_32.lib" 
    972 else 
    973     APP_EXTRA_LIBS="$LDFLAGS $CPPDOM_LDFLAGS $CPPDOM_LIBS $BOOST_LDFLAGS -l$boost_signals_name -l$boost_fs_name $PTHREAD_ARG $LIBS $NSPR_LDFLAGS $NSPR_LIB $PLC_LIB $PTHREAD_LIB $SEM_LIB $SOCKET_LIB $NS_LIB $UUID_LIB $DYN_LOAD_LIB" 
    974 fi 
     1032# Put together the basic information needed to compile VPR applications. 
     1033APP_EXTRA_LIBS="$LDFLAGS $CPPDOM_LDFLAGS $CPPDOM_LIBS $BOOST_LDFLAGS $BOOST_SIGNALS_LINK $BOOST_FS_LINK $BOOST_SYSTEM_LINK $PTHREAD_ARG $LIBS $NSPR_LDFLAGS $NSPR_LIB $PLC_LIB $PTHREAD_LIB $SEM_LIB $SOCKET_LIB $NS_LIB $UUID_LIB $DYN_LOAD_LIB" 
    9751034 
    9761035vpr_lib_name="vpr$LIBRARY_VERSION" 
     
    11331192AC_SUBST(BOOST_VERSION_DOT) 
    11341193AC_SUBST(BOOST_LIBDIR) 
     1194AC_SUBST(BOOST_SYSTEM_LINK) 
    11351195AC_SUBST(BOOST_FS_LINK) 
    1136 AC_SUBST(boost_fs_name) 
    11371196AC_SUBST(BOOST_SIGNALS_LINK) 
    1138 AC_SUBST(boost_signals_name) 
    11391197AC_SUBST(subsystem_cxxflags) 
    11401198AC_SUBST(subsystem_libs) 
     
    11581216AC_CONFIG_FILES([ 
    11591217   boost.fpc 
     1218   boost_system.fpc 
    11601219   boost_filesystem.fpc 
    11611220   boost_signals.fpc