add AUTO_LIB variable to activate primitive auto lib detection