diff options
author | Martyn Russell <martyn@lanedo.com> | 2011-08-03 09:41:06 +0100 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2011-08-03 09:41:06 +0100 |
commit | 45b4be2259ac6f5f5fc7773226456d2d9077554d (patch) | |
tree | 6d1fa4c17fd8411ccedf6c4eb7e99842e28208c8 /acinclude.m4 | |
parent | 5894084ce9597dd1efe660a09281adb79c6fae98 (diff) | |
download | tracker-45b4be2259ac6f5f5fc7773226456d2d9077554d.tar.gz |
build: Bump tracker_api_version to 0.12 but keep major/miner as 0.11
Add AX_DOTS_TO_UNDERSCORES macro to allow independent
TRACKER_API_VERSION_UNDERSCORES value (which is used to convert "0.12" to
"0_12".
We need this because for 0.11.x releases, we want the files to be named *0.12*
which requires changing only tracker_api_version in configure. This breaks
Makefiles which build introspection files because they use
$TRACKER_MAJOR_VERSION_$TRACKER_MINER_VERSION and that's not updated.
Additionally, $TRACKER_API_VERSION can't be used because it contains a dot not
an underscore. The only way to fix this was to do it in configure.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 82bc493dd..9a29d210d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,4 +1,10 @@ dnl ######################################################################### +AC_DEFUN([AX_DOTS_TO_UNDERSCORES], [ + $1[]_UNDERSCORES=`echo "$$1" | sed -e 's/\./_/g'` + AC_SUBST($1[]_UNDERSCORES) +]) dnl AX_DOTS_TO_UNDERSCORES + +dnl ######################################################################### AC_DEFUN([AX_COMPARE_VERSION], [ # Used to indicate true or false condition ax_compare_version=false |