diff options
author | Ian Lynagh <igloo@earth.li> | 2010-02-23 16:45:51 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-02-23 16:45:51 +0000 |
commit | cfdf2515dd5b491f8229d44b98fa33adeeac7e60 (patch) | |
tree | ed9de4b3c562215fba86787ada50e6dee847655a /aclocal.m4 | |
parent | bfd7960566a3033182087a411016a04bd74f5eed (diff) | |
download | haskell-cfdf2515dd5b491f8229d44b98fa33adeeac7e60.tar.gz |
Fix more library links in the user guide
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 275b2e4326..816e1f5b24 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1329,10 +1329,11 @@ case "$1" in # LIBRARY_VERSION(lib) # -------------------------------- -# Gets the version number of a library +# 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_$1_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"` -AC_SUBST(LIBRARY_$1_VERSION) +LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/$1/$1.cabal | sed "s/.* //"` +AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION) ]) # LocalWords: fi |