Now we are able to compile the W32 stuff - don't now whether it works; I have
[gpgme.git] / acinclude.m4
1 dnl Macros to configure gpgme
2
3
4 dnl GNUPG_FIX_HDR_VERSION(FILE, NAME)
5 dnl (wk 2000-11-17)
6 AC_DEFUN(GNUPG_FIX_HDR_VERSION,
7   [ sed "s/^#define $2 \".*/#define $2 \"$VERSION\"/" $srcdir/$1 > $srcdir/$1.tmp
8     if cmp -s $srcdir/$1 $srcdir/$1.tmp 2>/dev/null; then
9         rm -f $srcdir/$1.tmp
10     else
11         rm -f $srcdir/$1
12         if mv $srcdir/$1.tmp $srcdir/$1 ; then
13             :
14         else
15             AC_MSG_ERROR([[
16 *** Failed to fix the version string macro $2 in $1.
17 *** The old file has been saved as $1.tmp
18                          ]])
19         fi
20         AC_MSG_WARN([fixed the $2 macro in $1])
21     fi
22   ])
23
24
25
26
27