Changeset 1394 for trunk/configure.ac


Ignore:
Timestamp:
Jul 29, 2008, 4:49:16 PM (13 years ago)
Author:
Peter
Message:

AX_BOOST_BASE fails if no boost available but only gives a warning when found boost is too old. Added code so configure stops (inline with our other checks) when boost is too old.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1391 r1394  
    116116AC_SUBST(boost_version)
    117117AX_BOOST_BASE("$boost_version")
     118boost_version_check=$succeeded;
    118119CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
    119120
     
    290291fi
    291292
     293# Too old Boost is fatal -- sub-sequent compilation will fail.
     294if test "${boost_version_check}" != "yes" ; then
     295  all_reqs_ok="false"
     296  AC_MSG_WARN([
     297  Boost found but not the required version. Please install
     298  Boost version ${boost_version} or later])
     299fi
     300
    292301if (test "$all_reqs_ok" = "false") ; then
    293302  AC_MSG_FAILURE([
Note: See TracChangeset for help on using the changeset viewer.