use ifdef HAVE_LAPACK instead