autotools: set XA versions in configure.ac and configure header file
authorDylan Baker <dylan@pnwbakers.com>
Mon, 30 Oct 2017 23:52:29 +0000 (16:52 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 17 Nov 2017 00:16:29 +0000 (16:16 -0800)
commit65fc16c97413edeef508e0bfc4b0ceb4e430c1fe
tree997846c3ded0b0816dd9e83a9f6869041f9fe6c4
parentf274687413cadb5f7cf2242f85e27c11c5753dfa
autotools: set XA versions in configure.ac and configure header file

Currently the versions are set in the header, and then sed is used to
extract them, so that autotools can use them elsewhere.

This is odd. Autotools is perfectly capable of configuring the header
with the versions, and then they don't need to be extracted from the
the header. This is cleaner and more obvious.

Tested with make distcheck.

v2: - Split tiny -> patch change
    - Drop temporary variables
    - change XA_VERSION_* -> XA_*
v3: - Finish splitting the tiny -> patch change

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Emil Velikov <emli.velikov@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com> (v2)
configure.ac
src/gallium/state_trackers/xa/xa_tracker.h [deleted file]
src/gallium/state_trackers/xa/xa_tracker.h.in [new file with mode: 0644]