From ff139a52812db1c77d80b8d19beb6216527e6a68 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 26 Mar 2007 10:24:24 +0000 Subject: [PATCH] Don't use unportable shell statement. --- ChangeLog | 6 ++++++ m4/vasnprintf.m4 | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61d5e88e9..01f2b9f3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-26 Bruno Haible + + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use + unportable shell command "if ! ...". + Reported by Ralf Wildenhues. + 2007-03-25 Bruno Haible * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original diff --git a/m4/vasnprintf.m4 b/m4/vasnprintf.m4 index a225c1c47..7cd758943 100644 --- a/m4/vasnprintf.m4 +++ b/m4/vasnprintf.m4 @@ -66,12 +66,14 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF], AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A], [ AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) - if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then - AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, - [Define if the vasnprintf implementation needs special code for - the 'a' and 'A' directives.]) - AC_CHECK_FUNCS([nl_langinfo]) - fi + case "$gl_cv_func_printf_directive_a" in + *yes) + AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, + [Define if the vasnprintf implementation needs special code for + the 'a' and 'A' directives.]) + AC_CHECK_FUNCS([nl_langinfo]) + ;; + esac ]) # Prerequisites of lib/asnprintf.c. -- 2.11.0