Remove configure test for boost/function.hpp.

It is no longer used, all code using boost::function was changed to use
std::function from <functional> a while back.