aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-11-17 21:20:53 +0000
committerWerner Koch <[email protected]>2000-11-17 21:20:53 +0000
commitfabce92fe3c2fc0a902db0f89d791bedb1c38c43 (patch)
treeaef23cfc435dc68e0fcf94030c0bad9961cd8e34 /acinclude.m4
parentReleased 0.0.0 (diff)
downloadgpgme-fabce92fe3c2fc0a902db0f89d791bedb1c38c43.tar.gz
gpgme-fabce92fe3c2fc0a902db0f89d791bedb1c38c43.zip
configuration changes
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 00000000..296639b5
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,23 @@
+dnl Macros to configure gpgme
+
+dnl GNUPG_FIX_HDR_VERSION(FILE, NAME)
+dnl (wk 2000-11-17)
+AC_DEFUN(GNUPG_FIX_HDR_VERSION,
+ [ sed "s/^#define $2 \".*/#define $2 \"$VERSION\"/" $srcdir/$1 > $srcdir/$1.tmp
+ if cmp -s $srcdir/$1 $srcdir/$1.tmp 2>/dev/null; then
+ rm -f $srcdir/$1.tmp
+ else
+ rm -f $srcdir/$1
+ if mv $srcdir/$1.tmp $srcdir/$1 ; then
+ :
+ else
+ AC_MSG_ERROR([[
+*** Failed to fix the version string macro $2 in $1.
+*** The old file has been saved as $1.tmp
+ ]])
+ fi
+ AC_MSG_WARN([fixed the $2 macro in $1])
+ fi
+ ])
+
+