Imported at 75cd24fc2f2c from https://bitbucket.org/ww/goautoneg.