BIND 10 trac898, updated. f19b88ac7109f31f1820f0eb7079638936aa8644 [trac898] If --with-log4cplus not specified, try some common paths.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon May 16 18:40:34 UTC 2011


The branch, trac898 has been updated
       via  f19b88ac7109f31f1820f0eb7079638936aa8644 (commit)
      from  f32ba66c9735d0605808a356b654effef0a66327 (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 f19b88ac7109f31f1820f0eb7079638936aa8644
Author: Jeremy C. Reed <jreed at ISC.org>
Date:   Thu May 12 21:11:19 2011 -0500

    [trac898]  If --with-log4cplus not specified, try some common paths.

-----------------------------------------------------------------------

Summary of changes:
 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index da47b7e..f170036 100644
--- a/configure.ac
+++ b/configure.ac
@@ -458,6 +458,17 @@ if test "${log4cplus_path}" == "no" ; then
 elif test "${log4cplus_path}" != "yes" ; then
   LOG4CPLUS_INCLUDES="-I${log4cplus_path}/include"
   LOG4CPLUS_LDFLAGS="-L${log4cplus_path}/lib"
+else
+# If not specified, try some common paths.
+	log4cplusdirs="/usr/local /usr/pkg /opt /opt/local"
+	for d in $log4cplusdirs
+	do
+		if test -f $d/include/log4cplus/logger.h; then
+			LOG4CPLUS_INCLUDES="-I$d/include"
+			LOG4CPLUS_LDFLAGS="-L$d/lib"
+			break
+		fi
+	done
 fi
 
 AC_SUBST(LOG4CPLUS_LDFLAGS)
@@ -934,6 +945,8 @@ dnl includes too
   Boost:         ${BOOST_INCLUDES}
   Botan:         ${BOTAN_INCLUDES}
                  ${BOTAN_LDFLAGS}
+  Log4cplus:     ${LOG4CPLUS_INCLUDES}
+                 ${LOG4CPLUS_LDFLAGS}
   SQLite:        $SQLITE_CFLAGS
                  $SQLITE_LIBS
 




More information about the bind10-changes mailing list