We may want to make this code adaptation-method-agnostic, but it is not
clear whether hiding adaptation methods from main() is worth the trouble.
#include "MemPool.h"
#include "ICMPSquid.h"
+#if ICAP_CLIENT
+#include "ICAP/ICAPConfig.h"
+#endif
+#if USE_ADAPTATION
+#include "adaptation/Config.h"
+#endif
+
#if USE_WIN32_SERVICE
#include "squid_windows.h"
memCheckInit();
+#if ICAP_CLIENT
+ TheICAPConfig.finalize(); // must be after we load modules
+#endif
+#if USE_ADAPTATION
+ Adaptation::Config::Finalize(); // must be last adaptation-related finalize
+#endif
+
+
debugs(1, 1, "Ready to serve requests.");
if (!configured_once) {