diff options
author | midipix <writeonce@midipix.org> | 2021-04-10 16:15:25 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-10 20:54:34 +0000 |
commit | 797152757760372b139925eb05090a832367c5e2 (patch) | |
tree | f6a9a81c52bbec4e44ca679dd560c080b433a521 /configure | |
parent | 1af450bc14111e107b75eafe088cba98df8dff54 (diff) | |
download | apimagic-797152757760372b139925eb05090a832367c5e2.tar.bz2 apimagic-797152757760372b139925eb05090a832367c5e2.tar.xz |
build system: configure: automatically detect make mode if not already set.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |