Attached is a patch that correctly allows the autotools to find the
cppunit installation when it is installed in a non standard place.

BTW, is this list active? Is log4cxx active? It would be great if
someone could tell me they are at least noticing the diffs I've sent in,
even if they can't get to them for a while.

Thanks,
Bob Rossi

On Fri, Dec 15, 2006 at 12:11:42PM -0500, Bob Rossi wrote:
> Yes, 'make check' doesn't work. Anyone have any idea on how hard that
> would be to implement? I really don't want to install ant.
> 
> What's the command that ant run-unittest kicks off?
> 
> Thanks,
> Bob Rossi
> 
> On Fri, Dec 15, 2006 at 11:23:45AM -0500, Bob Rossi wrote:
> > I see. I don't have cppunit installed. This would be a good start I'm
> > sure. I'll let you know how this works out, thanks.
> > 
> > Bob Rossi
> > 
> > On Fri, Dec 15, 2006 at 10:17:30AM -0600, Curt Arnold wrote:
> > > Yes, log4cxx has an CPPUNIT based set of unit tests that roughly  
> > > correspond to log4j's JUnit unit tests.  They are run from the Ant  
> > > build by:
> > > 
> > > ant run-unittest
> > > 
> > > The build instructions in INSTALL suggest that "make check" would do  
> > > the same thing for the autotools build, but I'm not sure that that  
> > > has been implemented.
> > > 
> > > On Dec 15, 2006, at 8:33 AM, Bob Rossi wrote:
> > > 
> > > >Does log4cxx have a testsuite that I can run? If so, how?
> > > >
> > > >Thanks,
> > > >Bob Rossi
> > > 
Index: configure.in
===================================================================
--- configure.in        (revision 487559)
+++ configure.in        (working copy)
@@ -122,8 +122,18 @@
                 AC_MSG_WARN(cppunit not found !)
         fi
 
+        # save cpp and ld options
+        _save_CPPFLAGS="$CPPFLAGS"
+        _save_LIBS="$LIBS"
+
+       LIBS="$LIBS $LIBS_CPPUNIT"
+       CPPFLAGS="$CPPFLAGS $CPPFLAGS_CPPUNIT"
+
         AC_CHECK_HEADER([cppunit/TestFixture.h],,
                 enable_tests=no)
+
+       CPPFLAGS="$_save_CPPFLAGS"
+       LIBS="$_save_LIBS"
 fi
 
 AM_CONDITIONAL(TESTS, test x$enable_tests = xyes)

Reply via email to