Don't use --gnu, use -g. Both m4 implementations understand that.