]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix autopoint-3 test failure on macOS.
authorBruno Haible <bruno@clisp.org>
Fri, 7 Mar 2025 21:14:42 +0000 (22:14 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 7 Mar 2025 21:14:42 +0000 (22:14 +0100)
* gettext-tools/tests/autopoint-3 (MAKE): Set to 'gmake' only if gmake exists.

gettext-tools/tests/autopoint-3

index f2f26e32a53fb78752fe912798d35b8d31d5e868..d0ec54964afa92afba901a4f2a59fe5cb0bba619 100755 (executable)
@@ -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; }