If you build boost externally then you could point ADOL-C to it (--with-boost="${BOOST_DIR}”) and deal.II (-DBOOST_DIR=${BOOST_DIR}) as well.
I would also highly encourage you to build ADOL-C with the
--enable-traceless-refcounting flag enabled if you plan on using their tapeless type. We are in the process of adding some classes to help make using AD in the context of finite elements easier. The ADOL-C developers recently removed a whole bunch of error checking in the interest of speed, and when this flag is enabled it reinstates these error checking capabilities and allows us to ensure that the ADOL-C environment is being initialised correctly.
Best,
Jean-Paul