make: In configure.ac, add liblog4cxx if HAVE_LOG4CXX. Refs #1846.