## Copyright (c) 2009 Openismus GmbH <http://www.openismus.com/> ## ## This file is part of mm-common. ## ## mm-common is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published ## by the Free Software Foundation, either version 2 of the License, ## or (at your option) any later version. ## ## mm-common is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with mm-common. If not, see <http://www.gnu.org/licenses/>. #serial 20091228 ## _MM_INIT_MODULE_VERSION(basename, BASENAME, [major], [minor], [micro]) ## m4_define([_MM_INIT_MODULE_VERSION], [dnl m4_ifval([$3], [AC_SUBST([$2][_MAJOR_VERSION], [$3]) AC_DEFINE([$2][_MAJOR_VERSION], [$3], [Major version number of $1.]) ])[]dnl m4_ifval([$4], [AC_SUBST([$2][_MINOR_VERSION], [$4]) AC_DEFINE([$2][_MINOR_VERSION], [$4], [Minor version number of $1.]) ])[]dnl m4_ifval([$5], [AC_SUBST([$2][_MICRO_VERSION], [$5]) AC_DEFINE([$2][_MICRO_VERSION], [$5], [Micro version number of $1.]) ])[]dnl ]) ## _MM_INIT_MODULE_SUBST(module-name, module-version, basename, api-version, BASENAME) ## m4_define([_MM_INIT_MODULE_SUBST], [dnl AC_SUBST([$5][_MODULE_NAME], ['$1']) AC_SUBST([$5][_VERSION], ['$2']) m4_ifval([$4], [AC_SUBST([$5][_API_VERSION], ['$4']) ])[]dnl _MM_INIT_MODULE_VERSION([$3], [$5], m4_bpatsubst([$2], [[^0123456789]+], [,]))[]dnl ]) ## _MM_INIT_MODULE_BASENAME(module-name, module-version, basename, api-version) ## m4_define([_MM_INIT_MODULE_BASENAME], [_MM_INIT_MODULE_SUBST([$1], [$2], [$3], [$4], m4_quote(AS_TR_CPP(m4_quote(m4_translit([$3], [+], [X])))))]) ## MM_INIT_MODULE(module-name, [module-version]) ## ## Set up substitution variables and macro definitions for a module with ## the specified pkg-config <module-name> and <module-version> triplet. ## If no <module-version> is specified, it defaults to the expansion of ## AC_PACKAGE_VERSION. ## ## Substitutions: <BASENAME>_MODULE_NAME <module-name> ## <BASENAME>_VERSION <module-version> ## <BASENAME>_API_VERSION <api-version> ## <BASENAME>_MAJOR_VERSION <major> ## <BASENAME>_MINOR_VERSION <minor> ## <BASENAME>_MICRO_VERSION <micro> ## ## Macro defines: <BASENAME>_MAJOR_VERSION <major> ## <BASENAME>_MINOR_VERSION <minor> ## <BASENAME>_MICRO_VERSION <micro> ## ## Where: <BASENAME> AS_TR_CPP(<basename> =~ tr/+/X/) ## <basename>[-<api-version>] <module-name> ## <major>.<minor>.<micro>[.*] <module-version> ## AC_DEFUN([MM_INIT_MODULE], [dnl m4_assert([$# >= 1])[]dnl AC_REQUIRE([_MM_PRE_INIT])[]dnl AC_REQUIRE([MM_CHECK_GNU_MAKE])[]dnl _MM_INIT_MODULE_BASENAME([$1], m4_quote(m4_ifval([$2], [$2], m4_defn([AC_PACKAGE_VERSION]))), m4_quote(m4_bpatsubst([$1], [[-.0123456789]+$])), m4_quote(m4_bregexp([$1], [-?\([.0123456789]+\)$], [\1])))[]dnl ])
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
appdata-xml.m4 | File | 3.11 KB | 0644 |
|
appstream-xml.m4 | File | 2.94 KB | 0644 |
|
expat.m4 | File | 1.41 KB | 0644 |
|
gettext.m4 | File | 14.15 KB | 0644 |
|
glib-2.0.m4 | File | 8.17 KB | 0644 |
|
glib-gettext.m4 | File | 15.38 KB | 0644 |
|
gpg-error.m4 | File | 7.98 KB | 0644 |
|
gpgrt.m4 | File | 3.99 KB | 0644 |
|
gsettings.m4 | File | 3.5 KB | 0644 |
|
gtk-3.0.m4 | File | 8.03 KB | 0644 |
|
host-cpu-c-abi.m4 | File | 21.91 KB | 0644 |
|
iconv.m4 | File | 9.5 KB | 0644 |
|
intlmacosx.m4 | File | 3.15 KB | 0644 |
|
introspection.m4 | File | 5.01 KB | 0644 |
|
lib-ld.m4 | File | 5.24 KB | 0644 |
|
lib-link.m4 | File | 33.99 KB | 0644 |
|
lib-prefix.m4 | File | 11.66 KB | 0644 |
|
libcurl.m4 | File | 10.91 KB | 0644 |
|
libgcrypt.m4 | File | 6.1 KB | 0644 |
|
libtool.m4 | File | 299.85 KB | 0644 |
|
libxml2.m4 | File | 7.72 KB | 0644 |
|
ltargz.m4 | File | 2.61 KB | 0644 |
|
ltdl.m4 | File | 29.36 KB | 0644 |
|
ltoptions.m4 | File | 14.18 KB | 0644 |
|
ltsugar.m4 | File | 4.29 KB | 0644 |
|
ltversion.m4 | File | 714 B | 0644 |
|
lt~obsolete.m4 | File | 6.01 KB | 0644 |
|
mm-ax_cxx_compile_stdcxx.m4 | File | 19.1 KB | 0644 |
|
mm-ax_cxx_compile_stdcxx_11.m4 | File | 5.66 KB | 0644 |
|
mm-common.m4 | File | 1.64 KB | 0644 |
|
mm-dietlib.m4 | File | 4.57 KB | 0644 |
|
mm-doc.m4 | File | 10.27 KB | 0644 |
|
mm-module.m4 | File | 3.25 KB | 0644 |
|
mm-pkg.m4 | File | 3.87 KB | 0644 |
|
mm-warnings.m4 | File | 4.56 KB | 0644 |
|
nls.m4 | File | 1.21 KB | 0644 |
|
nspr.m4 | File | 2.76 KB | 0644 |
|
pkg.m4 | File | 10.01 KB | 0644 |
|
po.m4 | File | 18.39 KB | 0644 |
|
progtest.m4 | File | 3.02 KB | 0644 |
|
vala.m4 | File | 4.46 KB | 0644 |
|
vapigen.m4 | File | 3.4 KB | 0644 |
|
wayland-scanner.m4 | File | 428 B | 0644 |
|
xtrans.m4 | File | 6.38 KB | 0644 |
|