X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=816e1f5b24ebe60ee09750f6ef8b5191ca0a3039;hb=1e31c2960f7a9fc61119237d8a35b0516d6accca;hp=540ec3e64bdc711e9a8a6fe33b34548246587173;hpb=1bf79d5dc5f57ef5c8d67fe54f2d58cb22db0b32;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 540ec3e..816e1f5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1327,4 +1327,13 @@ case "$1" in esac ]) +# LIBRARY_VERSION(lib) +# -------------------------------- +# Gets the version number of a library. +# If $1 is ghc-prim, then we define LIBRARY_ghc_prim_VERSION as 1.2.3 +AC_DEFUN([LIBRARY_VERSION],[ +LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"` +AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION) +]) + # LocalWords: fi