[gha] Fix MacOS workflows failing with undefined macro errors mk2

The macros shipped with Homebrew's gettext are no longer installed to
$(brew --prefix)/share/aclocal, so aclocal can't find them, resulting
in autoreconf failing.

Fixes issue #1889
This commit is contained in:
ejurgensen 2025-05-19 23:43:02 +02:00
parent 4b1617971e
commit 3c7e5d404b

View File

@ -58,6 +58,7 @@ jobs:
# We configure a non-privileged setup, since how to add a "owntone" system
# user in macOS isn't clear to me (useradd etc. isn't available)
run: |
export ACLOCAL_PATH="$(brew --prefix)/share/gettext/m4:$ACLOCAL_PATH"
export CFLAGS="-I$(brew --prefix)/include -I$(brew --prefix sqlite)/include"
export LDFLAGS="-L$(brew --prefix)/lib -L$(brew --prefix sqlite)/lib"
autoreconf -fi