diff options
author | Andreas Enge <andreas.enge@inria.fr> | 2011-08-31 09:48:16 +0000 |
---|---|---|
committer | Andreas Enge <andreas.enge@inria.fr> | 2011-08-31 09:48:16 +0000 |
commit | dfcb563ed860d857edffdde1be0bce67dbecffe3 (patch) | |
tree | 59fe55fded403b5268cfad504f22425281fd0e3d /m4 | |
parent | f988cfab17cec50ec36c50ff226221da60322b52 (diff) | |
download | mpc-git-dfcb563ed860d857edffdde1be0bce67dbecffe3.tar.gz |
configure.ac, mpc.m4, Makefile.am:
do not use svn version for autoconf, but in development versions, export it
to the makefile to be used for the distribution name
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1049 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'm4')
-rw-r--r-- | m4/mpc.m4 | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -135,7 +135,7 @@ AC_DEFUN([MPC_C_CHECK_WARNINGCFLAGS], [ # SYNOPSIS # # -MPC_GMP_CC_CFLAGS +# MPC_GMP_CC_CFLAGS # # DESCRIPTION # @@ -241,3 +241,24 @@ error fi ;; ]) + + +# +# SYNOPSIS +# +# +# MPC_SVNVERSION +# +# DESCRIPTION +# +# If current version string contains "dev", substitutes svn version into +# SVNVERSION +# +AC_DEFUN([MPC_SVNVERSION], [ + if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then + AC_MSG_CHECKING([for current svn version]) + SVNVERSION=esyscmd([svnversion -n]) + AC_SUBST([SVNVERSION]) + AC_MSG_RESULT([$SVNVERSION]) + fi +]) |