m4_case([$4], [], [], [ignore], [],
[AT_CHECK([[mv stderr stderr-raw &&
sed 's/^[^:]*m4[-.ex0-9]*: *\([^:]*:\) *\([0-9][0-9]*: \)/m4:\1\2/
- s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[-.ex0-9]*: /m4:\1\2 /
- s/: C\(annot open \)\([^`'\'':]*\):/: c\1'\''\2'\'':/
- s/: include:\( cannot open\)/:\1/
- s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /
- s/^autom4te: error: [^ ]*m4[.ex]* /autom4te: error: m4 /
+ s/^\([^:]*:\) *\([0-9][0-9]*:\)[^:]*m4[-.ex0-9]*: /m4:\1\2 /
+ s/: include: [cC]\(annot open\)/: c\1/
+ s/: [cC]\(annot open \)[`'\'']*\([^'\'':]*\)'\''*:/: c\1'\''\2'\'':/
+ s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 /
+ s/^autom4te: error: [^ ]*m4[.ex]* /autom4te: error: m4 /
s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *!\1.m4: !
s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *[0-9][0-9]*: *!\1.m4: !
- s/ (E[A-Z]*)$//
+ s/ (E[A-Z]*)$//
' stderr-raw >&2]], [0], [], [$4])])
])
# We moved a file: it should fail
mkdir sub
mv foo sub
-case `$M4 no/such/file 2>&1` in
- *\`no/such/file*)
- AT_CHECK_M4SUGAR([], [1], [],
-[m4:script.4s:1: cannot open `foo': No such file or directory
-autom4te: error: m4 failed with exit status: 1
-])
- ;;
- *)
- AT_CHECK_M4SUGAR([], [1], [],
+AT_CHECK_M4SUGAR([], [1], [],
[m4:script.4s:1: cannot open 'foo': No such file or directory
autom4te: error: m4 failed with exit status: 1
])
- ;;
-esac
# But if we change the main file, then we should no longer complain of
# missing files.