// define LOG4CPP_DLL for dll use


#if  defined(_DLL) && defined(LOG4CPP_DLL)
#	define LOG4CPP_PREFIX "lib" 
#elif defined(LOG4CPP_DLL)
#	error "Log4cpp dynamic mode and staticaly linked runtime is incompatible!"
#else
#	define LOG4CPP_PREFIX
#endif

#if defined (_DLL)
#	define LOG4CPP_RUNTIME_SUFFIX	"-Dyn"
#else
#	define LOG4CPP_RUNTIME_SUFFIX	"-Sta"
#endif

#if defined (_DEBUG)
#	define LOG4CPP_DEBUG_SUFFIX	"-Deb"
#else
#	define LOG4CPP_DEBUG_SUFFIX	"-Rel"
#endif


#pragma comment (lib, LOG4CPP_PREFIX "log4cpp" LOG4CPP_DEBUG_SUFFIX LOG4CPP_RUNTIME_SUFFIX ".lib")