#
# Optionally find and configure log4cxx
#
option( KWIVER_ENABLE_LOG4CXX
  "Enable log4cxx dependent code and plugins"
  OFF
  )

if (KWIVER_ENABLE_LOG4CXX)

  find_package (Log4cxx REQUIRED)
  # find_package (ApacheRunTime REQUIRED)

else (KWIVER_ENABLE_LOG4CXX)

  unset ( Log4cxx_DIR         CACHE )
  unset ( Log4cxx_FOUND       CACHE )
  unset ( Log4cxx_INCLUDE_DIR CACHE )
  unset ( Log4cxx_LIBRARY     CACHE )

  # unset ( ApacheRunTime_FOUND       CACHE )
  # unset ( ApacheRunTime_INCLUDE_DIR CACHE )
  # unset ( ApacheRunTime_LIBRARY     CACHE )

endif (KWIVER_ENABLE_LOG4CXX)
