configure: cleanup lex/yacc tests
authorSitsofe Wheeler <sitsofe@yahoo.com>
Mon, 31 Aug 2020 13:59:59 +0000 (14:59 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 12 Sep 2020 10:54:19 +0000 (11:54 +0100)
commit63c25ff810bbd3bc960b5954e7894d3a5e9a2ff2
tree6a843032c0a457d2e84a24e0d7f9c431f17c9801
parent32b0e8c3ba9a5c59e556d9a550fd21029a4510f1
configure: cleanup lex/yacc tests

- Switch to prebuilt function for finding executable
- Search for the fl library from flex too
- Test lex command output directly

This allows lexing to be more likely to be found (e.g. MSYS2 but sadly
not MSYS2 Mingw-w64).

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
configure