X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/aec623761eb5cb6ad797259594664fa8aa3d3424..11dfda46d8834955846372602441bbcec6a9047f:/m4/am-compat.m4 diff --git a/m4/am-compat.m4 b/m4/am-compat.m4 index 46b2edf..ec14819 100644 --- a/m4/am-compat.m4 +++ b/m4/am-compat.m4 @@ -1,6 +1,6 @@ -dnl Copyright © 2012 Nick Bowler +dnl Copyright © 2012, 2021 Nick Bowler dnl -dnl Definitions to help maintain compatibility with older versions of Automake. +dnl Definitions to help maintain compatibility with multiple Automake versions. dnl dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2. dnl This is free software: you are free to do what the fuck you want to. @@ -50,7 +50,7 @@ cat >conftest.sed <<'EOF' p } EOF -if sed -nf conftest.sed Makefile.in >conftest.out 2>/dev/null; then +if sed -nf conftest.sed "$srcdir/Makefile.in" >conftest.out 2>/dev/null; then read dx_genline /dev/null || + grep '[[$]](am__maybe_remake_depfiles)' "$srcdir/Makefile.in" >/dev/null], + [dx_cv_am_depfiles='make am--depfiles'], + [dx_cv_am_depfiles='config.status'])]) +AS_CASE([$dx_cv_am_depfiles], + ['make am--depfiles'], [dx_include_marker=' @%:@ am--include-marker'], + [dx_include_marker='']) +AC_SUBST([dx_depfiles_target], [am--depfiles]) +AC_SUBST([dx_include_marker]) +AM_SUBST_NOTMAKE([dx_depfiles_target]) +AM_SUBST_NOTMAKE([dx_include_marker]) + ])