]> git.draconx.ca Git - dxcommon.git/blobdiff - m4/gob2.m4
Avoid nonportable ${x##y} substitutions in program tests.
[dxcommon.git] / m4 / gob2.m4
index 5292c5c2774e2aae75bd700b97e9ed6e9f66a2ee..3e95ab46d5ca9cbf52e954da3da2f1d8b53aa31f 100644 (file)
@@ -25,8 +25,8 @@ AC_CACHE_CHECK([for GObject Builder], [ac_cv_path_GOB2],
 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=: