use PACKAGE_TARNAME and PACKAGE_STRING

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11170 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-08-20 15:49:58 +00:00
parent 689846cca5
commit 89b9e9606c

View File

@@ -3,11 +3,11 @@ dnl
dnl
dnl output a C header-file with some version strings
dnl
AC_DEFUN(AC_KRB_VERSION,[
dnl AC_OUTPUT_COMMANDS([
cat > include/newversion.h.in <<FOOBAR
const char *${PACKAGE}_long_version = "@(#)\$Version: $PACKAGE-$VERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
const char *${PACKAGE}_version = "$PACKAGE-$VERSION";
const char *${PACKAGE_TARNAME}_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
const char *${PACKAGE_TARNAME}_version = "$PACKAGE_STRING";
FOOBAR
if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
@@ -21,5 +21,4 @@ else
mv -f include/newversion.h.in include/version.h.in
sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
fi
dnl ],host=$host PACKAGE=$PACKAGE VERSION=$VERSION)
])