From 47d3ce4545055f9472bfe4deace8d00ea55e31c8 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 14 Jul 2024 20:38:57 +0200 Subject: [PATCH] Autotools: Quote RE2C_FLAGS argument (#14950) This enables and simplifies adding blank-or-newline-separated global re2c flags to the PHP_PROG_RE2C macro possibly at some point. Fixed just in case, so this works normally: PHP_PROG_RE2C([1.0.3], [--no-generation-date -W -foo]) --- build/php.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/php.m4 b/build/php.m4 index 185606adea9..d06375c94f3 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1740,7 +1740,7 @@ AC_DEFUN([PHP_PROG_RE2C],[ esac PHP_SUBST([RE2C]) - AS_VAR_SET([RE2C_FLAGS], [m4_normalize([$2])]) + AS_VAR_SET([RE2C_FLAGS], [m4_normalize(["$2"])]) PHP_SUBST([RE2C_FLAGS]) ])