From: Bruno Haible Date: Fri, 7 Mar 2025 21:14:42 +0000 (+0100) Subject: tests: Fix autopoint-3 test failure on macOS. X-Git-Tag: v0.25~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f79d8866ef4f7bee0648494f449929f2f12725d;p=thirdparty%2Fgettext.git tests: Fix autopoint-3 test failure on macOS. * gettext-tools/tests/autopoint-3 (MAKE): Set to 'gmake' only if gmake exists. --- diff --git a/gettext-tools/tests/autopoint-3 b/gettext-tools/tests/autopoint-3 index f2f26e32a..d0ec54964 100755 --- a/gettext-tools/tests/autopoint-3 +++ b/gettext-tools/tests/autopoint-3 @@ -137,10 +137,18 @@ ${CONFIG_SHELL} ./configure >/dev/null 2>autopoint.err test $? = 0 || { cat autopoint.err; Exit 1; } # The po/Makefile requires GNU make on specific platforms. -case "$host_os" in - darwin* | solaris* | aix*) : ${MAKE=gmake} ;; - *) : ${MAKE=make} ;; -esac +if test -z "${MAKE}"; then + case "$host_os" in + darwin* | solaris* | aix*) + if (gmake --version >/dev/null) 2>/dev/null; then + MAKE=gmake + else + MAKE=make + fi + ;; + *) MAKE=make ;; + esac +fi ${MAKE} >/dev/null 2>autopoint.err test $? = 0 || { cat autopoint.err; Exit 1; }