mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
417d2c8f95
Rework the git version detection script to handle some issues that have been pointed out. 1/ Make it work properly with objdir builds 2/ Don't try to work out if the tree is dirty if git describe failed 3/ Use the configured VERSION as a fallback if we can't obtain proper version information during a make Change-Id: I39494e1c18cf4eacbb55386334da7128fbe96310 Reviewed-on: http://gerrit.openafs.org/2283 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Tested-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
28 lines
608 B
Plaintext
28 lines
608 B
Plaintext
AC_PRERQ([2.60])
|
|
AC_INIT([OpenAFS], m4_esyscmd([build-tools/git-version .]))
|
|
AC_CONFIG_SRCDIR(src/libafs/Makefile.common.in)
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_HEADER(src/config/afsconfig.h)
|
|
MACOS_VERSION=1.5.74f1
|
|
LINUX_PKGVER=1.5.74.1
|
|
#LINUX_PKGREL=0.pre3
|
|
LINUX_PKGREL=1.1
|
|
|
|
AC_SUBST(MACOS_VERSION)
|
|
AC_SUBST(LINUX_PKGVER)
|
|
AC_SUBST(LINUX_PKGREL)
|
|
|
|
AC_PROG_CC
|
|
OPENAFS_CONFIGURE_COMMON
|
|
|
|
AC_OUTPUT( \
|
|
Makefile \
|
|
src/config/Makefile \
|
|
src/config/Makefile.config \
|
|
src/config/Makefile.version-CML \
|
|
src/config/Makefile.version-NOCML \
|
|
src/libafs/Makefile.common \
|
|
src/libafs/MakefileProto \
|
|
)
|