configure: do not fork off grep subprocess in probe_cc
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Mon, 24 Aug 2015 19:38:18 +0000 (15:38 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 24 Aug 2015 22:31:25 +0000 (00:31 +0200)
commit060102389e572abb2beaed3b9f5e1036aeea43f1
treeb3bef135bdfb57cefc09c81652224e1e2daab951
parentfa9af304f0a167f187a26cc9a0a0ba6a4db08cbe
configure: do not fork off grep subprocess in probe_cc

grep is not required for the functionality in this instance.
This avoids an unnecessary fork, and also avoids a duplicated dumpversion call.
Furthermore, it also corrects behavior when no minor version number is present, see e.g
https://github.com/joyent/node/pull/25671.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
configure