diff --git a/dune/fufem/assemblers/localassemblers/adolclocalenergy.hh b/dune/fufem/assemblers/localassemblers/adolclocalenergy.hh
index de61570a08a364dd90b8c491d2c92ce5db034da0..36b8d9067274697aeb20d90832728315ef7f4fac 100644
--- a/dune/fufem/assemblers/localassemblers/adolclocalenergy.hh
+++ b/dune/fufem/assemblers/localassemblers/adolclocalenergy.hh
@@ -3,15 +3,16 @@
 #ifndef DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
 #define DUNE_FUFEM_ASSEMBLERS_LOCALASSEMBLERS_ADOLCLOCALENERGY_HH
 
-#include <dune/fufem/utilities/adolcnamespaceinjections.hh>
 
 // Includes for the ADOL-C automatic differentiation library
 // Need to come before (almost) all others.
 #ifdef HAVE_ADOLC
+
+#include <dune/fufem/utilities/adolcnamespaceinjections.hh>
+
 #include <adolc/adolc.h>
 #include <adolc/drivers/drivers.h>    // use of "Easy to Use" drivers
 #include <adolc/taping.h>
-#endif
 
 #include <dune/common/fvector.hh>
 
@@ -108,4 +109,7 @@ static typename Lfe::Traits::LocalBasisType::Traits::RangeFieldType tapeEnergy(
 }
 
 }
+
+#endif // HAVE_ADOLC
+
 #endif