]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: fix sed regex in Lua macro
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 8 Dec 2022 11:35:03 +0000 (12:35 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 8 Dec 2022 11:39:17 +0000 (12:39 +0100)
Using `\s` to match whitespace is not portable, use `[[:space:]]`
instead.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
m4/ax_lua.m4

index dde24eaf89a94ee0bf047d8cc06a577961d2a686..f4236cf08ac55b202619605d8bc2d8e965f0111e 100644 (file)
@@ -519,7 +519,7 @@ AC_DEFUN([AX_LUA_HEADERS],
         [
           ax_cv_lua_header_version=`echo LUA_VERSION | \
             $CC -P -E $LUA_INCLUDE -imacros lua.h - | \
-                $SED -e 's%"\s*"%%g' -e 's%^\s*%%' | \
+                $SED -e 's%"@<:@@<:@:space:@:>@@:>@*"%%g' -e 's%^@<:@@<:@:space:@:>@@:>@*%%' | \
                 tr -d '"\n' | \
                     $SED -n "s|^Lua \(@<:@0-9@:>@\{1,\}\.@<:@0-9@:>@\{1,\}\).\{0,\}|\1|p"`
         ])