From: Nick Bowler Date: Sat, 1 Jul 2023 21:26:08 +0000 (-0400) Subject: Fix TEST_NEED_PROGRAM to work on old Solaris /bin/sh. X-Git-Tag: v1.3~143 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/77923149528a1a661a9a816fa10d78d1c679564f Fix TEST_NEED_PROGRAM to work on old Solaris /bin/sh. Solaris /bin/sh does not support ${x##y} expansions. For this macro we can almost as easily use a case statement instead. --- diff --git a/testsuite.at b/testsuite.at index 30b1be6..9533e66 100644 --- a/testsuite.at +++ b/testsuite.at @@ -46,7 +46,7 @@ m4_divert_pop([PREPARE_TESTS]) m4_define([TEST_NEED_PROGRAM], [AT_KEYWORDS([$1])dnl AT_CHECK([for arg in $check_PROGRAMS; do -test x"${arg##*/}" != x"$1$EXEEXT" || exit 0 +progexe="$1$EXEEXT"; case $arg in "$progexe"|*/"$progexe") exit 0 ;; esac done exit 77])])