Fix for build with automake v1.13.1
Bart Polot
bart at net.in.tum.de
Thu Mar 21 13:52:26 CET 2013
Hi all,
I tried to build libgcrypt on a Linux Arch system, which ships aclocal (automake)
version 1.13.1. This results in the following error (and many subsequent ones):
[...]
Running aclocal -I m4 ...
configure.ac:75: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
The proposed change fixed the problem. In case it helps here is the diff:
diff --git a/configure.ac b/configure.ac
index 7504d76..e67ec69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,7 +72,7 @@ VERSION=$PACKAGE_VERSION
AC_CONFIG_SRCDIR([src/libgcrypt.vers])
AM_INIT_AUTOMAKE([])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_LIBOBJ_DIR([compat])
AC_CANONICAL_HOST
With this change the build process succeeds and the tests pass. On a debian
system with automake 1.11.6 the change does not seem to break anything.
Happy hacking,
Bart Polot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20130321/b1fc7d71/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20130321/b1fc7d71/attachment-0001.sig>
More information about the Gcrypt-devel
mailing list