Use ax_compare_version to check for gcc >= 4.2.0

The old check worked, but this looks cleaner.

Awk and sed must be before ax_compare_version, so now it should be safe
to use this macro in other spots.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>