Only test mkl library with --with-libmkl

If we do not make the test conditionally and use --without-libmkl during configure,
we end up with -Lno in LDFLAGS.

Signed-off-by: Justin Lecher <jlec@gentoo.org>