auto detect configuration using KERNEL_BITS and CC