X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2Fconfigure.ac;h=22ce4291ebc45784bad4be38b269c6057b2bc0ae;hb=99be538ebec999a933ca845c4ce13a2d5ee707eb;hp=6f7e203d8e2ca9953733311a64948ccaa1068fe9;hpb=6ed1b948b376b318a7f8f714e08a0189198e0b9d;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/configure.ac b/HLT/configure.ac index 6f7e203d8e2..22ce4291ebc 100644 --- a/HLT/configure.ac +++ b/HLT/configure.ac @@ -74,7 +74,8 @@ if test "x$have_root" = "x1"; then # libTreePlayer.so # - from Jan 07 libESD also depends on libXMLIO # - libSTEER depends on libProofPlayer since Oct 2007 (after v4-07-Release) - ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer' + # - libCDB.so depends on libXMLParser since Mar 11 2009 r 31411 + ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer XMLParser' for CHECKLIB in $ROOT_CHECKLIBS ; do LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}" LIBS="$save_LIBS $ROOTLIBS $ADD_ROOTLIBS" @@ -167,7 +168,7 @@ AC_MSG_RESULT([$have_aliroot]) if test ! "x$have_aliroot" = "xno" ; then ALIROOT_CPPFLAGS="-I${ALIROOTINCDIR} -I${ALICE_ROOT}/RAW" ALIROOT_LDFLAGS="-L${ALIROOTLIBDIR}" - ALIROOT_LIBS="-lESD $ADD_ROOTLIBS" + ALIROOT_LIBS="$ADD_ROOTLIBS" save_CPPFLAGS=$CPPFLAGS save_LDFLAGS=$LDFLAGS save_LIBS=$LIBS @@ -184,13 +185,18 @@ if test ! "x$have_aliroot" = "xno" ; then CHECKLIB=AOD AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"]) + # CBD library is present since AliRoot version v4-05-00 (02.06.2006) + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS" + CHECKLIB=CDB + AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"]) + # splitted RAW libraries since AliRoot version v4-04-Rev-07 (09.08.2006) have_alirawdata=no LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS" CHECKLIB=RAWDatabase AC_CHECK_LIB([$CHECKLIB],[_init], [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB" - LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lESD -lSTEER" CHECKLIB=RAWDatarec AC_CHECK_LIB([$CHECKLIB],[_init], [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB" @@ -213,9 +219,8 @@ if test ! "x$have_aliroot" = "xno" ; then AC_MSG_CHECKING([for AliRawReader classes in RAWData libraries]) AC_MSG_RESULT([$have_alirawdata]) - # CBD library is present since AliRoot version v4-05-00 (02.06.2006) LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lSTEER" - CHECKLIB=CDB + CHECKLIB=ESD AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"]) LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS" @@ -252,9 +257,32 @@ if test ! "x$have_aliroot" = "xno" ; then ALIROOT_LIBS= fi + dnl + dnl ESD supports non-std content + dnl + have_esd_nonstd=no + AC_RUN_IFELSE([AC_LANG_PROGRAM([#include + #include + #include + #include ], + [AliESDEvent esd; + esd.CreateStdContent(); + TTree* tree=new TTree("esdTree", "Tree with HLT ESD objects"); + TClonesArray* a=new TClonesArray("AliExternalTrackParam"); + a->SetName("SomeObject"); + esd.AddObject(a); + esd.WriteToTree(tree); + if (!tree->FindBranch("SomeObject")) return 1; + return 0;])], + [have_esd_nonstd=yes], + [AC_DEFINE(HAVE_NOT_ESD_NONSTD)]) + AC_MSG_CHECKING(whether ESD supports non standard content) + AC_MSG_RESULT([$have_esd_nonstd]) + dnl dnl ESD copy function added May 9 2008 rev 25667 dnl + if test "x$have_esd_nonstd" != "xyes"; then have_esd_copy=no AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], [AliESDEvent esd1; @@ -264,6 +292,7 @@ if test ! "x$have_aliroot" = "xno" ; then [AC_DEFINE(HAVE_NOT_ESD_COPY)]) AC_MSG_CHECKING(for ESD assignment operator) AC_MSG_RESULT([$have_esd_copy]) + fi dnl dnl AliRawReaderMemory support for multiple buffers added @@ -297,6 +326,22 @@ if test ! "x$have_aliroot" = "xno" ; then AC_MSG_CHECKING(for version of AliExternalTrackParam) AC_MSG_RESULT($externaltrackparam_version) + dnl The AliShuttleInterface was changed in rev 29388. Some return types + dnl had been const, now changed according to gcc 4.3 warnings + AC_MSG_CHECKING(for version of AliShuttleInterface.h) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/" + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS" + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [class dummy : public AliShuttleInterface { + public: + const UInt_t GetStartTimeDCSQuery() {;} + };])], + [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE) + alishuttleinterface_version=pre.rev.29388], + [alishuttleinterface_version=up.to.date]) + AC_MSG_RESULT([$alishuttleinterface_version]) + CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS @@ -523,7 +568,7 @@ CHECK_HLTMODULE([tpc], if test "x$enable_module" = "xmissheader"; then enable_module="no...missing.headers" - enable_tpc="no...missing.headers" + enable_tpc=$enable_module elif test "x$enable_module" = "xforce"; then enable_tpc="yes" else @@ -597,7 +642,7 @@ CHECK_HLTMODULE([rcu], if test "x$enable_module" = "xmissheader"; then enable_module="no...missing.headers" - enable_rcu="no...missing.headers" + enable_rcu=$enable_module elif test "x$enable_module" = "xforce"; then enable_rcu="yes" else @@ -634,12 +679,12 @@ ALIPHOS_LIBS= CHECK_HLTMODULE([phos], [], [$ALIROOT_CPPFLAGS], [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS], - [PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>v4-05-07" - enable_phos="no...requires.AliRoot>v4-05-07" + enable_phos=$enable_module elif test "x$enable_module" = "xforce"; then enable_phos="yes" else @@ -698,7 +743,7 @@ CHECK_HLTMODULE([trd], if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>v4-07-Release" - enable_trd="no...requires.AliRoot>v4-07-Release" + enable_trd=$enable_module elif test "x$enable_module" = "xforce"; then enable_trd="yes" else @@ -709,12 +754,15 @@ else CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/TRD" # AliTRDclusterizer::SetRawVersion() requires >v4-07-Release # changed to AliTRDrecoParam::SetSeedingOn() due to revision 26327, Mon Jun 2 2008 - AC_MSG_CHECKING([for required functions in AliTRDrecoParam]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], - [AliTRDrecoParam p; - p.SetSeeding(0)])], + # changed to AliTRDReconstructor::SetStreamLevel() due to revision 27797, Tue Aug 5 2008 + # changed to AliTRDReconstructor::SetClusters() according to revision 28069, Mon Aug 18 2008 + # changed to AliTRDCluster according to revision 30461, Thu Dec 18 2008 + AC_MSG_CHECKING([for required functions in AliTRDCluster]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliTRDcluster c; + c.SetDetector(0)])], [], - [enable_trd="no...requires.AliRoot>v4-13-Release"]) + [enable_trd="no...requires.AliRoot>v4-16-Release"]) AC_MSG_RESULT([$enable_trd]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" @@ -732,6 +780,36 @@ AC_MSG_CHECKING([whether to compile TRD library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALITRD_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_FMD],[hlt fmd library]) + +ALIFMD_LIBS=$ALIHLTMODULE_LIBS +CHECK_HLTMODULE([fmd], + [], [], + [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [FMDbase FMDrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...missing.headers" + enable_fmd=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_fmd="yes" +else + enable_fmd=$enable_module +fi + +if test "x$enable_fmd" = "xyes" ; then + AC_DEFINE(HLT_FMD) + ALIFMD_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_fmd +fi +AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes) +AC_MSG_CHECKING([whether to compile FMD library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIFMD_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_MUON],[hlt dimuon library]) @@ -745,7 +823,7 @@ CHECK_HLTMODULE([dimuon], if test "x$enable_module" = "xmissheader"; then enable_module="no...requires.AliRoot>=v4-08-Release" - enable_muon="no...requires.AliRoot>=v4-08-Release" + enable_muon=$enable_module elif test "x$enable_module" = "xforce"; then enable_muon="yes" else @@ -756,6 +834,8 @@ if test "x$enable_muon" = "xyes" ; then AC_DEFINE(HLT_MUON) ALIMUON_LIBS=$ALIHLTMODULE_LIBS AC_LANG_PUSH(C++) + save_CPPFLAGS="$CPPFLAGS" + dnl dnl Check for functionality GetRawStream AliMUONDigitMaker.h dnl @@ -771,6 +851,7 @@ if test "x$enable_muon" = "xyes" ; then [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)]) LIBS=$save_LIBS AC_MSG_RESULT([$have_muon_digitmaker_getrawstream]) + CPPFLAGS="$save_CPPFLAGS" AC_LANG_POP(C++) else @@ -793,7 +874,7 @@ CHECK_HLTMODULE([trigger], if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_trigger="no...header.missing" + enable_trigger=$enable_module elif test "x$enable_module" = "xforce"; then enable_trigger="yes" else @@ -811,19 +892,120 @@ AC_MSG_CHECKING([whether to compile Trigger library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALITRIGGER_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_GLOBAL],[hlt global library]) + +ALIGLOBAL_LIBS= +CHECK_HLTMODULE([global], + [], [$ALIROOT_CPPFLAGS], + [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...header.missing" + enable_global=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_global="yes" +else + enable_global=$enable_module + if test "x$enable_global" = "xyes" ; then + AC_LANG_PUSH(C++) + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS" + AC_MSG_CHECKING([for required functions in AliESDtrack]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliESDtrack t; + t.SetGlobalChi2(0)])], + [], + [enable_global="no...requires.AliRoot>v4-17-Release"]) + AC_MSG_RESULT([$enable_global]) + AC_LANG_POP(C++) + CPPFLAGS="$save_CPPFLAGS" + fi +fi + +if test "x$enable_global" = "xyes" ; then + AC_DEFINE(HLT_GLOBAL) + ALIGLOBAL_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_global +fi +AM_CONDITIONAL(EN_HLT_GLOBAL, test x$enable_global = xyes) +AC_MSG_CHECKING([whether to compile Global library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIGLOBAL_LIBS]) + +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_JET],[hlt jet library]) + +ALIFASTJET_HEADER= +ALIFASTJET_INCFLAGS= +ALIFASTJET_LIBS= +ALIFASTJET_LDFLAGS= +AC_ARG_WITH(fastjet, [installation path of the FASTJET package], + [ test "x$with_fastjet" != "xno" && export FASTJET=$with_fastjet], + [ test -n $FASTJET && with_fastjet=$FASTJET ]) + +if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then + ALIFASTJET_INCFLAGS="-I${with_fastjet}/include" + ALIFASTJET_HEADER="PseudoJet.hh" + ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib" + ALIFASTJET_LIBS="CGAL fastjet" +else + with_fastjet=no +fi + +CHECK_HLTMODULE([jet], + [$ALIFASTJET_HEADER], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/JETAN $ALIFASTJET_INCFLAGS], + [$ALIFASTJET_LIBS], [-L$ROOTLIBDIR $ALIFASTJET_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS], + [AOD ESD ANALYSIS ANALYSISalice JETAN JETANMC], + [-L$ROOTLIBDIR $ALIROOT_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...header.missing" + enable_jet=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_jet="yes" +else + enable_jet=$enable_module +fi + +if test "x$enable_jet" = "xyes" ; then + AC_DEFINE(HLT_JET) + ALIJET_LIBS="$ALIHLTMODULE_LIBS" + + if test "x$with_fastjet" != "xno"; then + AC_DEFINE(HAVE_FASTJET) + AC_DEFINE(WITHFASTJET) + ALIJET_LIBS="$ALIJET_LIBS -L$FASTJET_LDFLAGS" + fi + AC_MSG_CHECKING([compilation with FASTJET package]) + AC_MSG_RESULT($with_fastjet) + +else + enable_module=$enable_jet +fi + +AM_CONDITIONAL(EN_HLT_JET, test x$enable_jet = xyes) +AC_MSG_CHECKING([whether to compile Jet library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIJET_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_ITS],[hlt its library]) ALIITS_LIBS= CHECK_HLTMODULE([its], - [], [$ALIROOT_CPPFLAGS], + [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS], [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_its="no...header.missing" + enable_its=$enable_module elif test "x$enable_module" = "xforce"; then enable_its="yes" else @@ -857,6 +1039,36 @@ AC_MSG_CHECKING([whether to compile ITS library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALIITS_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_EMCAL],[hlt emcal library]) + +ALIEMCAL_LIBS= +CHECK_HLTMODULE([emcal], + [], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/EMCAL], + [RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], + [EMCALrec EMCALsim EMCALbase], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...header.missing" + enable_emcal=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_emcal="yes" +else + enable_emcal=$enable_module +fi + +if test "x$enable_emcal" = "xyes" ; then + AC_DEFINE(HLT_EMCAL) + ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_emcal +fi +AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes) +AC_MSG_CHECKING([whether to compile EMCAL library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIEMCAL_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_COMP],[hlt comp library]) @@ -869,7 +1081,7 @@ CHECK_HLTMODULE([comp], if test "x$enable_module" = "xmissheader"; then enable_module="no...header.missing" - enable_comp="no...header.missing" + enable_comp=$enable_module elif test "x$enable_module" = "xforce"; then enable_comp="yes" else @@ -964,8 +1176,11 @@ AC_ARG_ENABLE(doc, [AC_HELP_STRING([--disable-doc], [disable documentation build; monolithic build --enable-doc=mono ])], [],[enable_doc=modules]) + if test "x$DOXYGEN" = "x" ; then enable_doc=no.doxygen +elif test "x$enable_doc" = "xyes" ; then + enable_doc=yes elif test ! "x$enable_doc" = "xmono" && \ test ! "x$enable_doc" = "xmodules" && \ test ! "x$enable_doc" = "xno"; then @@ -1001,6 +1216,7 @@ AC_CONFIG_FILES([Makefile BASE/setenv.csh BASE/HOMER/Makefile BASE/util/Makefile + BASE/util/test/Makefile BASE/interface/Makefile BASE/test/Makefile BASE/interface/test/Makefile @@ -1016,8 +1232,10 @@ if test "x$have_aliroot" != "xno"; then AC_CONFIG_FILES([sim/Makefile rec/Makefile rec/test/Makefile + rec/startAliEVE-barrel-tracks.sh shuttle/Makefile pendolino/Makefile + benchmark/Makefile ]) fi if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then @@ -1042,7 +1260,7 @@ if test "x$enable_tpc" = "xyes"; then AC_CONFIG_FILES([TPCLib/Makefile TPCLib/test/Makefile TPCLib/mapping2array.cxx - TPCLib/OnlineDisplay/Makefile + TPCLib/EVE/Makefile ]) fi @@ -1056,6 +1274,11 @@ if test "x$enable_trd" = "xyes"; then AC_CONFIG_FILES([TRD/Makefile]) fi +AC_MSG_NOTICE([compile FMD library: $enable_fmd]) +if test "x$enable_fmd" = "xyes"; then + AC_CONFIG_FILES([FMD/Makefile]) +fi + AC_MSG_NOTICE([compile MUON library: $enable_muon]) if test "x$enable_muon" = "xyes"; then AC_CONFIG_FILES([MUON/Makefile]) @@ -1066,9 +1289,25 @@ if test "x$enable_its" = "xyes"; then AC_CONFIG_FILES([ITS/Makefile]) fi +AC_MSG_NOTICE([compile EMCAL library: $enable_emcal]) +if test "x$enable_emcal" = "xyes"; then + AC_CONFIG_FILES([EMCAL/Makefile]) +fi + AC_MSG_NOTICE([compile trigger library: $enable_trigger]) if test "x$enable_trigger" = "xyes"; then - AC_CONFIG_FILES([trigger/Makefile]) + AC_CONFIG_FILES([trigger/Makefile + trigger/test/Makefile]) +fi + +AC_MSG_NOTICE([compile global library: $enable_global]) +if test "x$enable_global" = "xyes"; then + AC_CONFIG_FILES([global/Makefile]) +fi + +AC_MSG_NOTICE([compile jet library: $enable_jet]) +if test "x$enable_jet" = "xyes"; then + AC_CONFIG_FILES([JET/Makefile]) fi AC_MSG_NOTICE([compile comp library: $enable_comp])