--- yoda/configure.in 2004/07/17 20:03:16 1.4 +++ yoda/configure.in 2004/09/21 20:22:59 1.7 @@ -71,7 +71,6 @@ ROOTSYS=$with_root,) ROOT_LIBRARY="${ROOTSYS}/lib" - ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl" ROOT_INCLUDES="-I${ROOTSYS}/include" @@ -80,9 +79,22 @@ ROOTCINT=${ROOTSYS}/bin/rootcint AC_SUBST(ROOTCINT) -AC_ARG_WITH(log4cppp, - [--with-log4cpp=path Use the specified directroy for log4cpp], - LOG4CPP=$with_log4cpp,) +AC_MSG_CHECKING(for gprof) +AC_ARG_ENABLE(gprof, +[--enable-gprof enable memory profiling with gprof], +gprof=$enableval,gprof=no) +if test "$gprof" != no +then + CFLAGS="-pg $CFLAGS" + AC_MSG_RESULT(enabled) +else + AC_MSG_RESULT(no) +fi + +AC_ARG_WITH(log4cxx, + [--with-log4cxx=path Use the specified directroy for log4cxx], + LOG4CXX=$with_log4cxx,) +LOG4CXX_INCLUDES="-I${LOG4CXX}/include" dnl Checks for header files. AC_HEADER_STDC @@ -104,20 +116,19 @@ event/physics/tracker/Makefile \ event/physics/anticounter/Makefile \ event/physics/calorimeter/Makefile \ + event/physics/neutronDetector/Makefile \ dnl ------------------makes for Packets and SubPackets---------------- dnl ------------------makes for Techmodel Data---------------- techmodel/Makefile \ - techmodel/forroutines/Makefile \ techmodel/forroutines/tracker/Makefile \ techmodel/forroutines/tracker/readraw/Makefile \ techmodel/forroutines/anticounter/Makefile \ techmodel/forroutines/calorimeter/Makefile \ + techmodel/forroutines/Makefile \ techmodel/physics/Makefile \ dnl ------------------makes for Techmodel Data---------------- - - )