1dnl as-version.m4 0.1.0
2
3dnl autostars m4 macro for versioning (modified)
4
5dnl Thomas Vander Stichele <thomas at apestaart dot org>
6dnl David Schleef <ds@schleef.org>
7
8dnl $Id: as-nano.m4,v 1.2 2007-03-16 23:30:02 ds Exp $
9
10dnl AS_VERSION(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
11
12AC_DEFUN([AS_NANO],
13[
14  AC_MSG_CHECKING(nano version)
15
16  NANO=$(echo AC_PACKAGE_VERSION | sed ['s/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.*//'])
17  AC_SUBST(NANO)
18
19  if test x"$NANO" = x || test "x$NANO" = "x0" ; then
20    AC_MSG_RESULT([0 (release)])
21    NANO=0
22    ifelse([$1], , :, [$1])
23  else
24    AC_MSG_RESULT($NANO)
25    ifelse([$2], , :, [$2])
26  fi
27])
28