A criterion for absolute continuity with respect to the law of fractional Brownian motion