-dnl Copyright © 2020 Nick Bowler
+dnl Copyright © 2020-2022 Nick Bowler
dnl License GPLv2+: GNU General Public License version 2 or any later version.
dnl This is free software: you are free to change and redistribute it.
dnl There is NO WARRANTY, to the extent permitted by law.
AT_KEYWORDS([option])dnl
AT_CHECK([gob2 invalid-file.gob --version --invalid-option], [0], [stdout])
-AT_CHECK([awk 'NR == 1 { print $NF }' stdout], [0], [AT_PACKAGE_VERSION
+AT_CHECK([$AWK 'NR == 1 { print $NF }' stdout], [0], [AT_PACKAGE_VERSION
])
AT_CLEANUP
}
]])
-# --no-gnu is currently busted for the get_type function declaration.
-AT_XFAIL_IF([:])
-
AT_CHECK([gob2 test.gob])
AT_CHECK([cat test*.h test.c | grep '_GNUC_' >/dev/null], [0])
[0], [], [experr])
AT_CHECK([test -f m4-test.c])
+set x $gob_m4_args; shift
+for arg
+do
+ shift
+ AS_CASE([$arg], [filename], [], [*], [set x "$@" "$arg"; shift])
+done
+
+cat >experr <<EOF
+$* -- filename
+EOF
+AT_CHECK([gob2 --m4 -- filename], [0], [], [experr])
+
AT_CLEANUP
dnl Check that the --m4 option shells out to m4 and passes through