No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / krb-version.m4
blobbed825d2c810c19c4768b7698afc5a663e48efff
1 dnl $Heimdal: krb-version.m4 13338 2004-02-12 14:21:14Z lha $
2 dnl $NetBSD$
3 dnl
4 dnl
5 dnl output a C header-file with some version strings
6 dnl
8 AC_DEFUN([AC_KRB_VERSION],[
9 cat > include/newversion.h.in <<FOOBAR
10 const char *${PACKAGE_TARNAME}_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
11 const char *${PACKAGE_TARNAME}_version = "$PACKAGE_STRING";
12 FOOBAR
14 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
15         echo "include/version.h is unchanged"
16         rm -f include/newversion.h.in
17 else
18         echo "creating include/version.h"
19         User=${USER-${LOGNAME}}
20         Host=`(hostname || uname -n) 2>/dev/null | sed 1q`
21         Date=`date`
22         mv -f include/newversion.h.in include/version.h.in
23         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h