Changeset 1503


Ignore:
Timestamp:
Apr 22, 2010 4:48:02 PM (11 years ago)
Author:
tkr
Message:

Setting variable for SVN revision number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r1502 r1503  
    309309AC_DEFINE_UNQUOTED(m4_toupper(${PACKAGE_NAME}_VERSION), "$PACKAGE_VERSION", "Project version string")
    310310
     311AC_CHECK_PROG([have_svnversion],[svnversion],[yes],[no])
     312if test x$have_svnversion = xyes; then
     313  AC_SUBST(m4_toupper($1_SVN_REV))
     314  m4_toupper($1_SVN_REV)=`cd $srcdir/$m4_tolower(coin_has_$1) ; svnversion`
     315  if test $m4_toupper($1_SVN_REV) != exported; then
     316    AC_DEFINE_UNQUOTED(m4_toupper($1_SVN_REV), $m4_toupper($1_SVN_REV), [SVN revision number of project])
     317  fi
     318fi
     319
    311320# We set the following variable so that we know later in AC_COIN_FINALIZE
    312321# that we are in a project main directory
     
    25342543  AC_SUBST(m4_toupper($1DOCDIR))
    25352544  m4_toupper($1DOCDIR)=$abs_lib_dir/../share/doc/coin/$1
    2536   AC_CHECK_PROG([have_svnversion],[svnversion],[yes],[no])
    2537   if test x$have_svnversion = xyes; then
    2538     AC_SUBST(m4_toupper($1_SVN_REV))
    2539     m4_toupper($1_SVN_REV)=`cd $srcdir/$m4_tolower(coin_has_$1) ; svnversion`
    2540     if test $m4_toupper($1_SVN_REV) != exported; then
    2541       AC_DEFINE_UNQUOTED(m4_toupper($1_SVN_REV), $m4_toupper($1_SVN_REV), [SVN revision number of project])
    2542     fi
    25432545fi
    25442546
Note: See TracChangeset for help on using the changeset viewer.