From: Paul Eggert Date: Mon, 20 May 2024 17:10:07 +0000 (-0700) Subject: byteswap: fix problem on macOS X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c1ec4642f6fd982168b1cdf09d85766a0fb90c19;p=gnulib.git byteswap: fix problem on macOS * m4/byteswap.m4 (gl_BYTESWAP): Quote a variable that might not be defined (or the user may have defined it to something with spaces!). Problem reported by Mattias Engdegård for Emacs on macOS. --- diff --git a/ChangeLog b/ChangeLog index ea799492a1..88258bec2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2024-05-20 Paul Eggert + byteswap: fix problem on macOS + * m4/byteswap.m4 (gl_BYTESWAP): Quote a variable that might not + be defined (or the user may have defined it to something with spaces!). + Problem reported by Mattias EngdegÃ¥rd for Emacs on macOS. + linkat-tests: fix up assertion-failure changes * tests/test-linkat.c (main): Don’t lose the failure results of earlier tests. Problem found by Coverity. diff --git a/m4/byteswap.m4 b/m4/byteswap.m4 index 3185bab763..e91da97b95 100644 --- a/m4/byteswap.m4 +++ b/m4/byteswap.m4 @@ -1,5 +1,5 @@ # byteswap.m4 -# serial 6 +# serial 7 dnl Copyright (C) 2005, 2007, 2009-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -33,7 +33,7 @@ AC_DEFUN([gl_BYTESWAP], [gl_cv_header_working_byteswap_h=no]) ]) fi - if test $gl_cv_header_working_byteswap_h = yes; then + if test "$gl_cv_header_working_byteswap_h" = yes; then GL_GENERATE_BYTESWAP_H=false else GL_GENERATE_BYTESWAP_H=true