--- yoda/configure.in 2004/07/20 13:04:50 1.5 +++ yoda/configure.in 2004/12/09 13:17:22 2.3 @@ -65,6 +65,7 @@ AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) + dnl Process the different options AC_ARG_WITH(root, [--with-root=path Use the specified ROOT directory], @@ -72,7 +73,27 @@ 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_LDFLAGS=" \ +${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \ +${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libHist.so \ +${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libGraf.so \ +${ROOT_LIBRARY}/libGraf3d.so ${ROOT_LIBRARY}/libGpad.so \ +${ROOT_LIBRARY}/libGui.so ${ROOT_LIBRARY}/libMinuit.so \ +${ROOT_LIBRARY}/libHistPainter.so ${ROOT_LIBRARY}/libTreePlayer.so \ +${ROOT_LIBRARY}/libTreeViewer.so ${ROOT_LIBRARY}/libProof.so \ +${ROOT_LIBRARY}/libProofGui.so ${ROOT_LIBRARY}/libPhysics.so \ +${ROOT_LIBRARY}/libRint.so ${ROOT_LIBRARY}/libHtml.so \ +${ROOT_LIBRARY}/libEG.so ${ROOT_LIBRARY}/libGeom.so \ +${ROOT_LIBRARY}/libGeomPainter.so ${ROOT_LIBRARY}/libVMC.so \ +${ROOT_LIBRARY}/libFumili.so ${ROOT_LIBRARY}/libMLP.so \ +${ROOT_LIBRARY}/libGedOld.so ${ROOT_LIBRARY}/libGed.so \ +${ROOT_LIBRARY}/libQuadp.so \ +${ROOT_LIBRARY}/libGX11.so ${ROOT_LIBRARY}/libGX11TTF.so \ +${ROOT_LIBRARY}/libX3d.so \ +${ROOT_LIBRARY}/libRGL.so ${ROOT_LIBRARY}/libASImage.so \ +${ROOT_LIBRARY}/libThread.so ${ROOT_LIBRARY}/libRXML.so \ + -ldl" + ROOT_INCLUDES="-I${ROOTSYS}/include" AC_SUBST(ROOT_INCLUDES) @@ -80,9 +101,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 + CXXFLAGS="-pg $CXXFLAGS" + 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,6 +138,8 @@ event/physics/tracker/Makefile \ event/physics/anticounter/Makefile \ event/physics/calorimeter/Makefile \ + event/physics/neutronDetector/Makefile \ + event/physics/S4/Makefile \ dnl ------------------makes for Packets and SubPackets----------------