Changeset 1364

Show
Ignore:
Timestamp:
06/01/05 13:50:00 (3 years ago)
Author:
madcat
Message:

Fixes --with-boost / --with-builtin_boost configure options.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/configure.ac

    r1361 r1364  
    6666            [builtin_boost=$withval], [builtin_boost=false] 
    6767) 
     68dnl This is here and not in boost.m4 'cos otherwise it breaks when both 
     69dnl builtin_boost and with-boost args are specified. 
     70AC_ARG_WITH(boost, 
     71    AC_HELP_STRING( 
     72        [--with-boost=PATH], 
     73        [Absolute path name where the Boost C++ libraries reside]), 
     74        [BOOST_ROOT=$withval], [BOOST_ROOT="/usr"] 
     75) 
     76 
    6877AC_ARG_WITH(builtin, 
    6978        [  --with-builtin=MODULES  Modules that shall be built-in            ], 
     
    122131        RS_BOOST_PROGRAM_OPTIONS([], [builtin_boost=yes]) 
    123132fi 
    124 if test $BOOST_ROOT = "/usr"; then 
     133if test -z $BOOST_ROOT || test $BOOST_ROOT = "/usr"; then 
    125134        boost_path="$HOME/boost_1_32_0"; 
    126135else 
    127136        boost_path=$BOOST_ROOT 
     137fi 
     138if test x$builtin_boost = xyes; then 
     139        BOOST_CPPFLAGS="-I$boost_path" 
    128140fi 
    129141 
  • hydranode/m4/boost.m4

    r1341 r1364  
    1111  AC_LANG_SAVE 
    1212  AC_LANG_CPLUSPLUS 
    13  
    14 dnl Extract the path name from a --with-boost=PATH argument 
    15   AC_ARG_WITH(boost, 
    16     AC_HELP_STRING( 
    17         [--with-boost=PATH], 
    18         [Absolute path name where the Boost C++ libraries reside]), 
    19         [BOOST_ROOT=$withval], [BOOST_ROOT="/usr"] 
    20   ) 
    2113 
    2214  boost_min_version=ifelse([$1], ,1.20.0,[$1])