Auto detection for HAVE_SKEY. Not tested.