]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Don’t assume plain ‘make’ in C unit tests
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jul 2020 22:10:33 +0000 (15:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jul 2020 22:13:34 +0000 (15:13 -0700)
Problem reported by Bruno Haible in:
https://savannah.gnu.org/support/?110273#comment6
* lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE):
* tests/autotest.at (C unit tests, C unit tests (EXEEXT)):
Prefer ‘${MAKE-make}’ to ‘make’ in shell code.

lib/autoconf/general.m4
tests/autotest.at

index e725d88ce45e6d2dcd10779e779645eddfa3dfdf..8436d8c36662bc9861ad6678bc18d9d9860e1cb7 100644 (file)
@@ -1650,7 +1650,8 @@ done
 if $ac_cache_corrupted; then
   AS_MESSAGE([error: in `$ac_pwd':], 2)
   AS_MESSAGE([error: changes in the environment can compromise the build], 2)
-  AS_ERROR([run `make distclean' and/or `rm $cache_file' and start over])
+  AS_ERROR([run `${MAKE-make} distclean' and/or `rm $cache_file'
+           and start over])
 fi])dnl
 ])# _AC_ARG_VAR_VALIDATE
 
index 7d09ae37c5909741e9b696816ed44c621e059637..d30e3df45c5d7a18427fb7cbad43ebc7d71cc0f3 100644 (file)
@@ -1935,7 +1935,7 @@ rm t/atconfig
 AT_CHECK_AUTOCONF
 AT_CHECK_CONFIGURE
 AT_CHECK([grep '^EXEEXT='\''.*'\' t/atconfig], [], [ignore])
-AT_CHECK([make], [], [ignore])
+AT_CHECK([${MAKE-make}], [], [ignore])
 AT_CHECK([cd t && $CONFIG_SHELL ./suite], [], [ignore])
 AT_CHECK([grep 1.*successful t/suite.log], [], [ignore])
 AT_CLEANUP
@@ -1996,7 +1996,7 @@ rm t/atconfig
 AT_CHECK_AUTOCONF
 AT_CHECK_CONFIGURE
 AT_CHECK([grep '^EXEEXT='\''.*'\' t/atconfig], [], [ignore])
-AT_CHECK([make], [], [ignore])
+AT_CHECK([${MAKE-make}], [], [ignore])
 AT_CHECK([cd t && $CONFIG_SHELL ./suite], [], [ignore])
 AT_CHECK([grep 1.*successful t/suite.log], [], [ignore])
 AT_CLEANUP