build: fix sed regex in Lua macro

Using `\s` to match whitespace is not portable, use `[[:space:]]`
instead.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-12-08 12:35:03 +01:00
parent 91aaed76c5
commit 9e46405ca2
1 changed files with 1 additions and 1 deletions

View 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"`
])