From: Dmitry V. Levin Date: Mon, 15 Jul 2019 12:04:48 +0000 (+0000) Subject: configure.ac: honor exit status of commands run by m4_esyscmd X-Git-Tag: v5.3~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8198664c6a2ecca48bdcc351b1ed10dd2288fef8;p=strace configure.ac: honor exit status of commands run by m4_esyscmd If the command run by m4_esyscmd exits with non-zero exit status, autom4te shall terminate. * m4/st_esyscmd_s.m4: New file. * configure.ac: Replace m4_esyscmd with st_esyscmd_s. References: https://github.com/strace/strace/issues/105 --- diff --git a/configure.ac b/configure.ac index a973c2b2..5441295f 100644 --- a/configure.ac +++ b/configure.ac @@ -12,12 +12,12 @@ AC_PREREQ(2.57) AC_INIT([strace], - m4_esyscmd([./git-version-gen .tarball-version]), + st_esyscmd_s([./git-version-gen .tarball-version]), [strace-devel@lists.strace.io], [strace], [https://strace.io]) -m4_define([copyright_year], m4_esyscmd([./copyright-year-gen .year])) -m4_define([manpage_date], m4_esyscmd([./file-date-gen strace.1.in])) +m4_define([copyright_year], st_esyscmd_s([./copyright-year-gen .year])) +m4_define([manpage_date], st_esyscmd_s([./file-date-gen strace.1.in])) AC_COPYRIGHT([Copyright (c) 1999-]copyright_year[ The strace developers.]) AC_CONFIG_SRCDIR([strace.c]) AC_CONFIG_AUX_DIR([.]) diff --git a/m4/st_esyscmd_s.m4 b/m4/st_esyscmd_s.m4 new file mode 100644 index 00000000..df1302c9 --- /dev/null +++ b/m4/st_esyscmd_s.m4 @@ -0,0 +1,10 @@ +#!/usr/bin/m4 +# +# Copyright (c) 2019 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: LGPL-2.1-or-later + +AC_DEFUN([st_esyscmd_s], [dnl +m4_esyscmd_s([$1])dnl +m4_assert(m4_sysval == 0)])