From 7c025040b48f6948f3ca2bb6d31d8f1f0937f37c Mon Sep 17 00:00:00 2001 From: louib Date: Sat, 2 Nov 2019 19:14:59 -0400 Subject: [PATCH] Fix AutoConf deprecated warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following AC warning: ``` configure.ac:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:6: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation ``` As per the deprecation notice, using `AM_INIT_AUTOMAKE` for setting the version is mostly obsolete because the package and version can be obtained from Autoconf’s `AC_INIT` macro. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 54426e1..82582eb 100644 --- a/configure.ac +++ b/configure.ac @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.64]) -AC_INIT(nwipe, 0.26, git@brumit.nl) -AM_INIT_AUTOMAKE(nwipe, 0.26) +AC_INIT([nwipe], [0.26], [git@brumit.nl]) +AM_INIT_AUTOMAKE AC_OUTPUT(Makefile src/Makefile man/Makefile) AC_CONFIG_SRCDIR([src/nwipe.c]) AC_CONFIG_HEADERS([config.h])