diff options
author | Bastien Roucariès <bastien.roucaries+debian@gmail.com> | 2017-07-25 19:05:40 +0200 |
---|---|---|
committer | Bastien Roucariès <bastien.roucaries+debian@gmail.com> | 2017-07-25 19:05:40 +0200 |
commit | 1d902a2cffb09f735a53d1a2cb4577b040745d54 (patch) | |
tree | 6ce60f6e8cf7ac4d726f123f0f0a6c7fe019c637 /m4/ax_check_gnu_make.m4 | |
parent | d31eeb8fba5c320ffec632095324f239691c0545 (diff) | |
download | autoconf-archive-1d902a2cffb09f735a53d1a2cb4577b040745d54.tar.gz |
Allow action found action not found for ax_check_gnu_make.m4
Improve action to be done
Diffstat (limited to 'm4/ax_check_gnu_make.m4')
-rw-r--r-- | m4/ax_check_gnu_make.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ax_check_gnu_make.m4 b/m4/ax_check_gnu_make.m4 index 4c761ea..ed90e18 100644 --- a/m4/ax_check_gnu_make.m4 +++ b/m4/ax_check_gnu_make.m4 @@ -4,7 +4,7 @@ # # SYNOPSIS # -# AX_CHECK_GNU_MAKE() +# AX_CHECK_GNU_MAKE([run-if-true],[run-if-false]) # # DESCRIPTION # @@ -20,6 +20,8 @@ # * If GNU Make is found, its version is extracted from the output of # `make --version` as the last field of a record of space-separated # columns and saved into the variable `ax_check_gnu_make_version`. +# * Additionally if GNU Make is found, run shell code run-if-true +# else run shell code run-if-false. # # Here is an example of its use: # @@ -61,7 +63,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 9 +#serial 10 AC_DEFUN([AX_CHECK_GNU_MAKE],dnl [AC_PROG_AWK @@ -80,5 +82,6 @@ dnl Search all the common names for GNU make dnl If there was a GNU version, then set @ifGNUmake@ to the empty string, '#' otherwise AS_VAR_IF([_cv_gnu_make_command], [""], [AS_VAR_SET([ifGNUmake], ["#"])], [AS_VAR_SET([ifGNUmake], [""])]) AS_VAR_IF([_cv_gnu_make_command], [""], [AS_UNSET(ax_cv_gnu_make_command)], [AS_VAR_SET([ax_cv_gnu_make_command], [${_cv_gnu_make_command}])]) + AS_VAR_IF([_cv_gnu_make_command], [""],[$2],[$1]) AC_SUBST([ifGNUmake]) ]) |