-dnl Copyright © 2020 Nick Bowler
+dnl Copyright © 2020-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.
AC_PATH_PROGS_FEATURE_CHECK([GOB2], [gob2],
[rm -f conftest.c
$ac_path_GOB2 conftest.gob >&AS_MESSAGE_LOG_FD 2>&1 && test -f conftest.c && {
- gob_relcmd=${ac_path_GOB2##*/}
- gob_bypath=`command -v "$gob_relcmd"` # ''
+ DX_BASENAME([gob_relcmd], ["$ac_path_GOB2"])
+ gob_bypath=`{ command -v "$gob_relcmd"; } 2>/dev/null` # ''
ac_cv_path_GOB2=$ac_path_GOB2
test x"$gob_bypath" = x"$ac_path_GOB2" && ac_cv_path_GOB2=$gob_relcmd
ac_path_GOB2_found=: