Changeset 1506


Ignore:
Timestamp:
Apr 23, 2010 12:50:38 AM (10 years ago)
Author:
tkr
Message:

More bug fixes for the case where arguments are missing...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r1505 r1506  
    307307
    308308#Set the project's version number
    309 AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION), ["$PACKAGE_VERSION"], [Version number of project])
     309if test "x$1" != x; then
     310  AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION), ["$PACKAGE_VERSION"], [Version number of project])
     311fi
    310312
    311313#Set the project's SVN revision number
    312314AC_CHECK_PROG([have_svnversion],[svnversion],[yes],[no])
    313 if test x$have_svnversion = xyes; then
     315if test "x$have_svnversion" = xyes && test "x$1" != x; then
    314316  AC_SUBST(m4_toupper($1_SVN_REV))
    315317  m4_toupper($1_SVN_REV)=`cd $srcdir/$m4_tolower(coin_has_$1) ; svnversion`
Note: See TracChangeset for help on using the changeset viewer.