I don't have a BSD to test on, but this should do the same as what autotools did. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>