2006-02-20 12:32:04 +00:00
|
|
|
##############################################################################
|
2006-12-10 23:35:07 -06:00
|
|
|
# MOO_DEFINE_VERSIONS(pkg,major,minor,micro)
|
2006-02-20 12:32:04 +00:00
|
|
|
#
|
|
|
|
AC_DEFUN([MOO_DEFINE_VERSIONS],[
|
2006-12-10 23:35:07 -06:00
|
|
|
m4_toupper($1)_VERSION=\"$2.$3.$4\"
|
|
|
|
m4_toupper($1)_VERSION_UNQOTED=$2.$3.$4
|
2006-12-05 01:30:20 -06:00
|
|
|
|
2006-12-10 23:35:07 -06:00
|
|
|
m4_toupper($1)_VERSION_MAJOR=$2
|
|
|
|
m4_toupper($1)_VERSION_MINOR=$3
|
|
|
|
m4_toupper($1)_VERSION_MICRO=$4
|
2006-02-20 12:32:04 +00:00
|
|
|
|
2006-12-10 23:35:07 -06:00
|
|
|
AC_SUBST(m4_toupper($1)_VERSION)
|
|
|
|
AC_SUBST(m4_toupper($1)_VERSION_UNQUOTED)
|
|
|
|
AC_SUBST(m4_toupper($1)_VERSION_MAJOR)
|
|
|
|
AC_SUBST(m4_toupper($1)_VERSION_MINOR)
|
|
|
|
AC_SUBST(m4_toupper($1)_VERSION_MICRO)
|
|
|
|
|
|
|
|
AC_DEFINE(m4_toupper($1)_VERSION, ["$2.$3.$4"], "$1 version")
|
|
|
|
AC_DEFINE(m4_toupper($1)_VERSION_MAJOR, [$2], "$1 major version")
|
|
|
|
AC_DEFINE(m4_toupper($1)_VERSION_MINOR, [$3], "$1 minor version")
|
|
|
|
AC_DEFINE(m4_toupper($1)_VERSION_MICRO, [$4], "$1 micro version")
|
|
|
|
])
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# MOO_DEFINE_MODULE_VERSIONS(major,minor)
|
|
|
|
#
|
|
|
|
AC_DEFUN([MOO_DEFINE_MODULE_VERSIONS],[
|
|
|
|
MOO_MODULE_VERSION=\"$1.$2\"
|
|
|
|
MOO_MODULE_VERSION_MAJOR=$1
|
|
|
|
MOO_MODULE_VERSION_MINOR=$2
|
2007-01-02 05:07:30 -06:00
|
|
|
AC_SUBST(MOO_MODULE_VERSION)
|
2006-12-05 01:30:20 -06:00
|
|
|
AC_SUBST(MOO_MODULE_VERSION_MAJOR)
|
|
|
|
AC_SUBST(MOO_MODULE_VERSION_MINOR)
|
2006-12-10 23:35:07 -06:00
|
|
|
AC_DEFINE(MOO_MODULE_VERSION_MAJOR, [$1], "libmoo module system major version")
|
|
|
|
AC_DEFINE(MOO_MODULE_VERSION_MINOR, [$2], "libmoo module system major version")
|
2006-02-20 12:32:04 +00:00
|
|
|
])
|