AC_CHECK_LIB(boost_thread, main, [],[
AC_MSG_NOTICE([boost thread library not found.])
AC_MSG_ERROR([Install libboost-thread-dev (or similar)])
AC_CHECK_LIB(boost_thread, main, [],[
AC_MSG_NOTICE([boost thread library not found.])
AC_MSG_ERROR([Install libboost-thread-dev (or similar)])