dnl Copyright © 2021 Nick Bowler
+dnl
dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
dnl This is free software, you are free to do what the fuck you want to.
dnl There is NO WARRANTY, to the extent permitted by law.
[dx_cv_bison_found=:
AC_PATH_PROGS_FEATURE_CHECK([BISON], [bison],
[_DX_BISON_DO_TEST([$ac_path_BISON],
-[bison_relcmd=${ac_path_BISON##*/}
-bison_bypath=`command -v "$bison_relcmd"` #''
+[DX_BASENAME([bison_relcmd], ["$ac_path_BISON"])
+bison_bypath=`{ command -v "$bison_relcmd"; } 2>/dev/null` #''
ac_cv_path_BISON=$ac_path_BISON
test x"$bison_bypath" = x"$ac_path_BISON" && ac_cv_path_BISON=$bison_relcmd
ac_path_BISON_found=: