From ae10369658f49ca588649c01cca5b4b9c561f5c5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 17 Sep 2020 22:52:00 +0200 Subject: [PATCH] sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25). * m4/gnulib-common.m4 (GL_TMP_FD): New macro. (gl_SILENT): Use 'exec', not a compound statement, to redirect AS_MESSAGE_FD. --- ChangeLog | 7 +++++++ m4/gnulib-common.m4 | 13 +++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3a8ab1e22..a489d5fa7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2020-09-17 Bruno Haible + + sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25). + * m4/gnulib-common.m4 (GL_TMP_FD): New macro. + (gl_SILENT): Use 'exec', not a compound statement, to redirect + AS_MESSAGE_FD. + 2020-09-17 Paul Eggert intprops, xalloc: avoid __builtin_mul_overflow_p with Clang diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 33e56faa98..35be4d3c43 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 57 +# gnulib-common.m4 serial 58 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -630,13 +630,18 @@ AC_DEFUN([gl_BIGENDIAN], AC_C_BIGENDIAN ]) +# A temporary file descriptor. +# Must be less than 10, because dash 0.5.8 does not support redirections +# with multi-digit file descriptors. +m4_define([GL_TMP_FD], 9) + # gl_SILENT(command) # executes command, but without the normal configure output. AC_DEFUN([gl_SILENT], [ - { - $1 - } AS_MESSAGE_FD>/dev/null + exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null + $1 + exec AS_MESSAGE_FD>&GL_TMP_FD AS_MESSAGE_FD>&- ]) # gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) -- 2.39.5