diff options
-rwxr-xr-x | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 277bad55..0d6e6eff 100755 --- a/configure.ac +++ b/configure.ac @@ -189,6 +189,9 @@ AC_PROG_LIBTOOL dnl ---------------------- dnl Packages configuration dnl ---------------------- +AC_ARG_WITH(pkg-extra-version, + AS_HELP_STRING([--with-pkg-extra-version=VER], [add extra version field, for packagers/distributions]), + [EXTRAVERSION=$withval],) AC_ARG_ENABLE(vtysh, [ --enable-vtysh include integrated vty shell for Quagga]) AC_ARG_ENABLE(ipv6, @@ -382,6 +385,16 @@ esac AC_SUBST(MULTIPATH_NUM) +dnl ----------------------------------- +dnl Add extra version string to package +dnl name, string and version fields. +dnl ----------------------------------- +if test "x${EXTRAVERSION}" != "x" ; then + VERSION=${VERSION}${EXTRAVERSION} + PACKAGE_VERSION=${PACKAGE_VERSION}${EXTRAVERSION} + PACKAGE_STRING=${PACKAGE_STRING}${EXTRAVERSION} +fi + dnl ------------------------------------ dnl Check C keywords and standard types dnl ------------------------------------ @@ -1636,7 +1649,7 @@ echo " Quagga configuration -------------------- quagga version : ${PACKAGE_VERSION} -host operating system : ${host_os} +host operating system : ${host_os} source code location : ${srcdir} compiler : ${CC} compiler flags : ${CFLAGS} |