b4_defines_if([],
[b4_fatal([b4_skeleton[: using %%defines is mandatory]])])
-# Backward compatibility.
-m4_define([b4_location_constructors])
-m4_include(b4_pkgdatadir/[location.cc])
+b4_percent_define_ifdef([[location_type]], [],
+ [# Backward compatibility.
+ m4_define([b4_location_constructors])
+ m4_include(b4_pkgdatadir/[location.cc])])
# We do want M4 expansion after # for CPP macros.
m4_changecom()
#include <string>
#include <iostream>
-#include "location.hh"
#include "stack.hh"
+]b4_percent_define_ifdef([[location_type]], [],
+ [[#include "location.hh"]])[
/* Enabling traces. */
#ifndef YYDEBUG
typedef YYSTYPE semantic_type;
#endif
/// Symbol locations.
- typedef ]b4_percent_define_get([[location_type]])[ location_type;
+ typedef ]b4_percent_define_get([[location_type]],
+ [[location]])[ location_type;
/// Tokens.
struct token
{