diff options
Diffstat (limited to 'm4/ndim-check-sh-functions.m4')
-rw-r--r-- | m4/ndim-check-sh-functions.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/ndim-check-sh-functions.m4 b/m4/ndim-check-sh-functions.m4 index a0f5108..0b03dd7 100644 --- a/m4/ndim-check-sh-functions.m4 +++ b/m4/ndim-check-sh-functions.m4 @@ -7,8 +7,11 @@ AC_DEFUN([NDIM_CHECK_SH_FUNCTIONS],[dnl NDIM_CHECK_SH_COMMAND_SUBSTITUTION([], [dnl AC_MSG_ERROR([Sorry, POSIX sh with \$() required.])dnl ])dnl +AS_IF([test "x$ndim_sh_functions" = "x"], [dnl +AC_MSG_CHECKING([whether sh supports POSIX sh functions]) ndim_sh_functions=no test "x$(moo() { echo "meh"; }; moo)" = "xmeh" && ndim_sh_functions=yes +AC_MSG_RESULT([$ndim_sh_functions])]) m4_ifval([$1], [ if test "x$ndim_sh_functions" = "xyes"; then $1 |