Changeset 1591


Ignore:
Timestamp:
Jul 4, 2010 7:43:59 PM (9 years ago)
Author:
lou
Message:

Add code to PROJECTDIR_INIT to define XXX_VERSION. Assumes the first parameter
is the project name. Nothing is defined if the first parameter is the null
string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.5/coin.m4

    r1331 r1591  
    309309# that we are in a project main directory
    310310coin_projectdir=yes
     311
     312# Set the project's version number. Use m4_ifval here to avoid defining
     313# _VERSION when the user has not supplied a parameter.
     314m4_ifval([$1],
     315  [ # temporary hack to avoid breaking lapack 1.0.20;
     316    # do not propagate to BuildTools trunk!  --lh, 100615--
     317    if expr "$1" : '.*:.*' >/dev/null 2>&1 ; then
     318      coin_libversion="$1"
     319    else
     320      AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION), ["$PACKAGE_VERSION"],
     321                         [Version number of project])
     322    fi
     323  ],[])
    311324]) # AC_COIN_PROJECTDIR_INIT
    312325
Note: See TracChangeset for help on using the changeset viewer.