Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created June 17, 2020 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncopa/c7946c12f599db14116bdda98804e589 to your computer and use it in GitHub Desktop.
Save ncopa/c7946c12f599db14116bdda98804e589 to your computer and use it in GitHub Desktop.
- New macro XDT_VERSION_INIT(SEMVER[, TAG])
This macro takes care of setting up the version numbering.
It will define the following macros based on SEMVER and TAG:
- xdt_version
- xdt_version_major
- xdt_version_minor
- xdt_version_micro
- xdt_version_tag
- xdt_version_build
- xdt_debug_default
If TAG isn't specified, the xdt_version_tag and xdt_version_git
will be empty and xdt_debug_default will be set to "minimum",
otherwise the xdt_version_build will contain a git hash and
xdt_debug_default will be set to "yes"
Example usage:
XDT_VERSION_INIT([4.15.3],[git])
AC_INIT([xfce4-someproject], [xdt_version()])
...
XDT_FEATURE_DEBUG([xdt_debug_default])
- XDT_I18N macro will now automatically find the linguas if none are specified during the autoconf run.
- Install m4 macros in default search dir. This makes autoconf find the macros by default.
By setting version via XDT_VERSION_INIT and using XDT_I18N without arguments, thare are no longer neccessary to use a separate configure.ac.in and a plain configure.ac can be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment