BIND 10 trac898, updated. f32ba66c9735d0605808a356b654effef0a66327 [trac898] add --with-log4cplus=PATH
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri May 13 01:52:57 UTC 2011
The branch, trac898 has been updated
via f32ba66c9735d0605808a356b654effef0a66327 (commit)
from 1ce058332d84de9bc2f37344d0b49c24d3c30551 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f32ba66c9735d0605808a356b654effef0a66327
Author: Jeremy C. Reed <jreed at ISC.org>
Date: Thu May 12 20:52:22 2011 -0500
[trac898] add --with-log4cplus=PATH
Check for log4cplus at configure time. Also
compiles a very small program at configure time.
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index a2febd2..da47b7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -447,6 +447,43 @@ AC_LINK_IFELSE(
CPPFLAGS=$CPPFLAGS_SAVED
LDFLAGS=$LDFLAGS_SAVED
+# Check for log4cplus
+log4cplus_path="yes"
+AC_ARG_WITH([log4cplus],
+ AC_HELP_STRING([--with-log4cplus=PATH],
+ [specify exact directory of log4cplus library and headers]),
+ [log4cplus_path="$withval"])
+if test "${log4cplus_path}" == "no" ; then
+ AC_MSG_ERROR([Need log4cplus])
+elif test "${log4cplus_path}" != "yes" ; then
+ LOG4CPLUS_INCLUDES="-I${log4cplus_path}/include"
+ LOG4CPLUS_LDFLAGS="-L${log4cplus_path}/lib"
+fi
+
+AC_SUBST(LOG4CPLUS_LDFLAGS)
+AC_SUBST(LOG4CPLUS_INCLUDES)
+
+CPPFLAGS_SAVED=$CPPFLAGS
+CPPFLAGS="$LOG4CPLUS_INCLUDES $CPPFLAGS"
+LDFLAGS_SAVED="$LDFLAGS"
+LDFLAGS="$LOG4CPLUS_LDFLAGS $LDFLAGS"
+LIBS=" $LIBS -llog4cplus"
+
+AC_CHECK_HEADERS([log4cplus/logger.h],,AC_MSG_ERROR([Missing required header files.]))
+AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([#include <log4cplus/logger.h>
+ ],
+ [using namespace log4cplus;
+ Logger logger = Logger::getInstance("main");
+ ])],
+ [AC_MSG_RESULT([checking for log4cplus library... yes])],
+ [AC_MSG_RESULT([checking for log4cplus library... no])
+ AC_MSG_ERROR([Needs log4cplus library])]
+)
+
+CPPFLAGS=$CPPFLAGS_SAVED
+LDFLAGS=$LDFLAGS_SAVED
+
#
# Configure Boost header path
#
More information about the bind10-changes
mailing list