X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/a525f18001c5d6339d125548c403df0bcd044f2b..e218d4445fa5a2015163cf50d847980ff3240b36:/m4/bison.m4?ds=sidebyside diff --git a/m4/bison.m4 b/m4/bison.m4 index 18274aa..b3569f3 100644 --- a/m4/bison.m4 +++ b/m4/bison.m4 @@ -38,8 +38,8 @@ AC_CACHE_CHECK([for bison], [ac_cv_path_BISON], [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=: