automake: Check for 'indent' and fall back to 'cat' if not found.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 May 2012 23:03:05 +0000 (16:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 May 2012 20:39:30 +0000 (13:39 -0700)
commit2224fb6047dd96cbc11d7f2093319e5eb49c0b6b
tree2211e99d4ca3017b2bc2fccf357b470f1f1f89f4
parentff3eef1affd0d3b56d4ce689947947be97c5d0f6
automake: Check for 'indent' and fall back to 'cat' if not found.

The glapi generator code uses indent to produce more readable code.
However, we don't want to make GNU indent a hard build dependency; check
for it in configure.ac and fall back to 'cat' if it's not available.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50484
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
configs/autoconf.in
configure.ac