Commit b7375650 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

build: Add a PACKAGE_BRANCH substitution

It works both with trunk or x.y.z versions, resulting in trunk for the
former and x.y for the latter.
parent f7b11f03
......@@ -9,6 +9,11 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_USE_SYSTEM_EXTENSIONS
PACKAGE_BRANCH=${PACKAGE_VERSION%.*}
AC_SUBST([PACKAGE_BRANCH])
AC_DEFINE_UNQUOTED([PACKAGE_BRANCH], ["$PACKAGE_BRANCH"],
[Define the branch of this package.])
# save command line CFLAGS for use in VCC_CC (to pass through things like -m64)
# and make distcheck configure
OCFLAGS="$CFLAGS"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment