From: Michael Jeanson Date: Thu, 18 Mar 2021 21:47:39 +0000 (-0400) Subject: configure: Set autotools baseline X-Git-Tag: v0.13.0~38 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=afb6113ffba9d494ec90d773aed3e83acd299473;p=urcu.git configure: Set autotools baseline Set autotools baseline to Autoconf >= 2.69 and Automake >= 1.12 and enable error reporting. This is part of an effort to standardise our autotools setup across project to simplify maintenance. Change-Id: I1f3487d7e610b3f6f9d710ef2d1d4b7a39d7dabb Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/README.md b/README.md index 8dfd5e9..2b89ffa 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ This source tree is based on the autotools suite from GNU to simplify portability. Here are some things you should have on your system in order to compile the git repository tree : - - GNU autotools (automake >=1.10, autoconf >=2.50, autoheader >=2.50) + - GNU autotools (automake >=1.12, autoconf >=2.69) (make sure your system wide `automake` points to a recent version!) - GNU Libtool >=2.2 (for more information, go to http://www.gnu.org/software/autoconf/) diff --git a/bootstrap b/bootstrap index 2bec371..f278ad9 100755 --- a/bootstrap +++ b/bootstrap @@ -1,8 +1,10 @@ #!/bin/sh +# +# SPDX-License-Identifier: LGPL-2.1-only set -x if [ ! -d "config" ]; then mkdir config fi -autoreconf -vi +autoreconf -vi -W all,error diff --git a/configure.ac b/configure.ac index 5dc94f3..ff5a57e 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,7 @@ m4_define([urcu_lib_version], urcu_lib_version_current[:]urcu_lib_version_revisi ## Autoconf base setup ## ## ## -AC_PREREQ(2.59) +AC_PREREQ([2.69]) AC_INIT([userspace-rcu],[urcu_version],[mathieu dot desnoyers at efficios dot com],[],[http://liburcu.org/]) AC_CONFIG_HEADERS([include/config.h include/urcu/config.h]) @@ -34,11 +34,16 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_TARGET AC_CANONICAL_HOST -AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc]) + +## ## +## Automake base setup ## +## ## + +AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc -Wall -Wno-portability -Werror]) AM_MAINTAINER_MODE([enable]) -# Enable silent rules if available (Introduced in AM 1.11) -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +# Enable silent rules by default +AM_SILENT_RULES([yes]) AC_REQUIRE_AUX_FILE([tap-driver.sh])