X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_version.m4;fp=m4%2Fpandora_version.m4;h=3a62798a4a9e034f611e26fe3f1d060236118c38;hb=67e1b61bd9840daef731de3159d06875eed93c9e;hp=0000000000000000000000000000000000000000;hpb=8dd458ed6369c78de103a19511f3319ee583607c;p=awesomized%2Flibmemcached diff --git a/m4/pandora_version.m4 b/m4/pandora_version.m4 new file mode 100644 index 00000000..3a62798a --- /dev/null +++ b/m4/pandora_version.m4 @@ -0,0 +1,11 @@ +dnl Copyright (C) 2009 Sun Microsystems +dnl This file is free software; Sun Microsystems +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([PANDORA_VERSION],[ + + PANDORA_HEX_VERSION=`echo $VERSION | sed 's|[\-a-z0-9]*$||' | \ + awk -F. '{printf "0x%0.2d%0.3d%0.3d", $[]1, $[]2, $[]3}'` + AC_SUBST([PANDORA_HEX_VERSION]) +])