X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2Fconfigure.ac;h=eeb35ea827b4e225adc4483e84f443d578781f71;hb=95ea76b58762ac018faa46302420a3e0f388dcc8;hp=35df141001bd5fc83363410957c509642a04dc09;hpb=a553c90493a9e8f472fd2d029bb2f275605adde7;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/configure.ac b/HLT/configure.ac index 35df141001b..eeb35ea827b 100644 --- a/HLT/configure.ac +++ b/HLT/configure.ac @@ -32,7 +32,7 @@ dnl ------------------------------------------------------------------ AC_CANONICAL_SYSTEM AC_PREFIX_DEFAULT(${PWD}) AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([-Wno-portability]) AC_PROG_CC AC_PROG_CXX AC_PROG_LIBTOOL @@ -339,6 +339,11 @@ if test ! "x$have_aliroot" = "xno" ; then AC_MSG_CHECKING(AliRunLoader::Instance) AC_MSG_RESULT([$have_alirunloader30859]) + have_aliqav1=no + AC_CHECK_HEADER([AliQAv1.h], [have_aliqav1=yes], []) + AM_CONDITIONAL(EN_HLT_QA, test x$have_aliqav1 = xyes) + AC_CHECK_HEADER([AliESDHLTDecision.h], [], [AC_DEFINE(HAVE_NOT_ALIESDHLTDECISION)]) + dnl dnl required header files and libraries for modules dnl @@ -384,6 +389,8 @@ AC_SUBST([ALIROOT_CPPFLAGS]) AC_SUBST([ALIROOT_LDFLAGS]) AC_SUBST([ALIROOTBINDIR]) AC_SUBST([ALIROOTLIBDIR]) + +ALIROOT_LIBS="$ALIROOT_LIBS $ADD_ROOTLIBS" AC_SUBST([ALIROOT_LIBS]) AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes) @@ -546,6 +553,17 @@ save_CPPFLAGS=$CPPFLAGS save_LDFLAGS=$LDFLAGS save_LIBS=$LIBS +dnl ------------------------------------------------------------------ +AC_MSG_NOTICE([-------------------------------------------------]) +AC_MSG_NOTICE([checking dependencies for HLTbase library]) +HLTBASE_CHECKLIBS='XMLParser' +for CHECKLIB in $HLTBASE_CHECKLIBS ; do + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}" + LIBS="$save_LIBS $ROOTLIBS $ALIHLTBASE_LIBS" + AC_CHECK_LIB([$CHECKLIB],[_init], [ALIHLTBASE_LIBS="$ALIHLTBASE_LIBS -l$CHECKLIB"]) +done +AC_SUBST([ALIHLTBASE_LIBS]) + dnl ------------------------------------------------------------------ AC_MSG_CHECKING([whether to compile sample library]) AH_TEMPLATE([HLT_SAMPLE],[hlt sample library]) @@ -567,24 +585,31 @@ AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes) AC_MSG_RESULT([$enable_sample]) dnl ------------------------------------------------------------------ -AC_MSG_CHECKING([whether to compile util library]) AH_TEMPLATE([HLT_UTIL],[HLT utility library]) -AC_ARG_ENABLE(util, - [AC_HELP_STRING([--disable-util], - [compile the util library ])], - [], - [if test "x$have_aliroot" = "xno" ; then - enable_util="no...requires.AliRoot" - else - enable_util=yes - fi - ]) +ALIUTIL_LIBS= +CHECK_HLTMODULE([util], + [], + [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/STEER -I$ALICE_ROOT/RAW -I$ALICE_ROOT/PYTHIA6], + [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS], + [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) +if test "x$enable_module" = "xmissheader"; then + enable_module="no...missing.headers" + enable_util=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_util="yes" +else + enable_util=$enable_module +fi if test "x$enable_util" = "xyes" ; then AC_DEFINE(HLT_UTIL) + ALIUTIL_LIBS=$ALIHLTMODULE_LIBS fi AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes) -AC_MSG_RESULT([$enable_util]) +AC_MSG_CHECKING([whether to compile Util library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALIUTIL_LIBS]) dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_TPC],[hlt tpc library]) @@ -704,6 +729,58 @@ AC_MSG_CHECKING([whether to compile RCU library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALIRCU_LIBS]) +dnl ------------------------------------------------------------------ +AH_TEMPLATE([HLT_CALO],[hlt calo(rimeter) library]) + +ALICALO_LIBS= +CHECK_HLTMODULE([calo], + [], [$ALIROOT_CPPFLAGS], + [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS], + [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) + +if test "x$enable_module" = "xmissheader"; then + enable_module="no...missing.headers" + enable_calo=$enable_module +elif test "x$enable_module" = "xforce"; then + enable_calo="yes" +else + have_alicalorawstream=no + if test ! "x$have_aliroot" = "xno" ; then + AC_LANG_PUSH(C++) + save_CPPFLAGS="$CPPFLAGS" + # this can not be used as AliCaloRawStream.h indirectly depends on TString.h + #AC_CHECK_HEADERS([AliCaloRawStream.h], [have_alicalorawstream=yes]) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/PHOS" + AC_MSG_CHECKING([for AliCaloRawStream.h usability]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include + #include ], + [int i])], + [AC_DEFINE(HAVE_ALICALORAWSTREAM) + have_alicalorawstream=yes], + []) + AC_MSG_RESULT([$have_alicalorawstream]) + AC_LANG_POP(C++) + CPPFLAGS="$save_CPPFLAGS" + fi + if test "x$have_alicalorawstream" != "xyes"; then + enable_calo="no...requires.AliRoot>v4-05-07" + else + enable_calo=$enable_module + fi +fi + +if test "x$enable_calo" = "xyes" ; then + AC_DEFINE(HLT_CALO) + ALICALO_LIBS=$ALIHLTMODULE_LIBS +else + enable_module=$enable_calo +fi +AM_CONDITIONAL(EN_HLT_CALO, test x$enable_calo = xyes) +AC_MSG_CHECKING([whether to compile CALO library]) +AC_MSG_RESULT([$enable_module]) +AC_SUBST([ALICALO_LIBS]) + dnl ------------------------------------------------------------------ AH_TEMPLATE([HLT_PHOS],[hlt phos library]) @@ -734,14 +811,14 @@ else [AC_DEFINE(HAVE_ALICALORAWSTREAM) have_alicalorawstream=yes], []) - AC_MSG_RESULT([$have_aliphosrecoparam]) + AC_MSG_RESULT([$have_alicalorawstream]) AC_MSG_CHECKING([for required EMC functionality in AliPHOSRecoParam.h ]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], [AliPHOSRecoParam param; param.GetEMCClusteringThreshold()])], [have_aliphosrecoparam=yes], [AC_DEFINE(HAVE_NOT_PHOSRECOPARAMEMC)]) - AC_MSG_RESULT([$have_alicalorawstream]) + AC_MSG_RESULT([$have_aliphosrecoparam]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" fi @@ -763,6 +840,36 @@ AC_MSG_CHECKING([whether to compile PHOS library]) AC_MSG_RESULT([$enable_module]) AC_SUBST([ALIPHOS_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 EMCALUtils], [-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_TRD],[hlt trd library]) @@ -789,13 +896,27 @@ else # 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)])], + # changed to AliTRDclusterizer::GetAddedClusters according to revision 31299, Wed Mar 4 2009 + AC_MSG_CHECKING([for required functions in AliTRDclusterizer]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliTRDclusterizer c; + c.GetAddedClusters()])], [], [enable_trd="no...requires.AliRoot>v4-16-Release"]) AC_MSG_RESULT([$enable_trd]) + + if test "x$enable_trd" = "xyes" ; then + have_alitrdrecoparam_r34995=no + AC_MSG_CHECKING([checking for AliTRDrecoParam r34995]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AliTRDrecoParam param; + param.SetPIDNeuralNetwork(kFALSE)]);], + [have_alitrdrecoparam_r34995=yes], + [AC_DEFINE(HAVE_NOT_ALITRDRECOPARAM_r34995)]) + AC_MSG_RESULT([$have_alitrdrecoparam_r34995]) + + fi + AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" fi @@ -883,6 +1004,25 @@ if test "x$enable_muon" = "xyes" ; then [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)]) LIBS=$save_LIBS AC_MSG_RESULT([$have_muon_digitmaker_getrawstream]) + + dnl + dnl Check for AliMpPad::GetPositionX/Y + dnl change of implementation in MUON code + dnl revision 31769, Wed Apr 1 2009 + dnl + have_muon_alimppad_getposition=no + AC_MSG_CHECKING(for GetPosition methods of AliMpPad) + CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON/mapping" + LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS" + LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS" + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], + [AliMpPad pad; + pad.GetPositionX();])], + [have_muon_alimppad_getposition=yes], + [AC_DEFINE(HAVE_NOT_MUON_ALIMPPAD_GETPOSITION)]) + LIBS=$save_LIBS + AC_MSG_RESULT([$have_muon_alimppad_getposition]) + CPPFLAGS="$save_CPPFLAGS" AC_LANG_POP(C++) @@ -931,7 +1071,7 @@ ALIGLOBAL_LIBS= CHECK_HLTMODULE([global], [], [$ALIROOT_CPPFLAGS], [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], - [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [PHOSUtils ], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then @@ -991,7 +1131,7 @@ 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], + [AOD ESD ANALYSIS ANALYSISalice JETAN], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) @@ -1032,7 +1172,7 @@ ALIITS_LIBS= CHECK_HLTMODULE([its], [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS], [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS], - [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], + [ITSbase ITSrec ITSsim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS]) if test "x$enable_module" = "xmissheader"; then @@ -1071,36 +1211,6 @@ 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]) @@ -1268,6 +1378,7 @@ if test "x$have_aliroot" != "xno"; then shuttle/Makefile pendolino/Makefile benchmark/Makefile + QA/Makefile ]) fi if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then @@ -1293,14 +1404,26 @@ if test "x$enable_tpc" = "xyes"; then TPCLib/test/Makefile TPCLib/mapping2array.cxx TPCLib/EVE/Makefile + TPCLib/calibration/Makefile ]) fi +AC_MSG_NOTICE([compile CALO library: $enable_calo]) +if test "x$enable_calo" = "xyes"; then + AC_CONFIG_FILES([CALO/Makefile + CALO/test/Makefile]) +fi + AC_MSG_NOTICE([compile PHOS library: $enable_phos]) if test "x$enable_phos" = "xyes"; then AC_CONFIG_FILES([PHOS/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 TRD library: $enable_trd]) if test "x$enable_trd" = "xyes"; then AC_CONFIG_FILES([TRD/Makefile]) @@ -1321,11 +1444,6 @@ 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