gst/parse: define pure-parser depending on bison version
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 26 Aug 2019 10:48:28 +0000 (12:48 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 5 Nov 2019 11:55:08 +0000 (12:55 +0100)
commit78041a77488a7db8a45db5bc9fff49079e3ab30e
tree60aa726323d88f0e3ad194909af0e37c45f60a1a
parente8c782d119eccf364fa24812cdc90c40f60d65d6
gst/parse: define pure-parser depending on bison version

After release bison 2.5 the declaration %pure-parser was deprecated
in favor of %define api.pure

Nonetheless, until bison 3.4, the declaration was treated as backward
compatibility, but now bison shows a warning:

  warning: deprecated directive, use ‘%define api.pure’

The patch's approach is to handle both directives according with the
used bison's version, by string replacement at source configuration
stage.
gst/parse/grammar.y.in [moved from gst/parse/grammar.y with 99% similarity]
gst/parse/meson.build