diff --git a/RTCP/Storage/src/Storage_main.cc b/RTCP/Storage/src/Storage_main.cc
index af1d046ac01282900febb10a9e9b64246c2f257f..481c51b217017aad4bb712c50b8b29b12565aa90 100644
--- a/RTCP/Storage/src/Storage_main.cc
+++ b/RTCP/Storage/src/Storage_main.cc
@@ -122,7 +122,7 @@ int main(int argc, char *argv[])
   traceProp.setProperty("log4cplus.appender.STDOUT.layout.ConversionPattern", "%-5p|%x|%m%n");
   
   PropertyConfigurator(traceProp).configure();
-#elif !defined LOG4CXX
+#elif defined HAVE_LOG4CXX
   Context::initialize();
   setLevel("Global",8);
 #endif