From 602ea14c30f0b5f0281d11273100d4bed06351f3 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 10 2021 20:54:44 +0000 Subject: build system: configure: automatically detect make mode if not already set. --- diff --git a/configure b/configure index ff05411..9224416 100755 --- a/configure +++ b/configure @@ -611,6 +611,15 @@ common_defaults() if [ -z "$mb_makemode" ]; then mb_makemode='posix' + + printf '%s\n%s\n%s\n\n%s\n\n' \ + 'ifeq (a,b)' \ + 'VAR = val' \ + 'endif' \ + 'all:' \ + | ${mb_make} -s -f - 2>/dev/null \ + && mb_makemode='modern' + fi # shell