AC_PROG_LIBTOOL
AC_DEBUG
+AC_PROFILING
AC_OPTIMIZATION
AM_CONDITIONAL(STANDALONE_SAMPLELIB, test 0 )
dnl
dnl check whether AliLog supports notification callback
+ dnl 2010-03-03: revision 38921 introduces AliLog::GetRootLogger in order to make AliLog
+ dnl a pure sigleton, introduce a 2-level check here
dnl
LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
have_alilog_notification=no
if test ! "x$have_aliroot" = "xno" ; then
AC_MSG_CHECKING([whether AliLog supports notification callback])
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliLog.h>],
- [AliLog::AliLogNotification fct])],
- [have_alilog_notification=yes],
- [AC_DEFINE(NO_ALILOG_NOTIFICATION)])
+ [AliLog* logger=AliLog::GetRootLogger();])],
+ [have_alilog_notification=yes],
+ [AC_DEFINE(NO_ALILOG_GETROOTLOGGER)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliLog.h>],
+ [AliLog::AliLogNotification fct])],
+ [have_alilog_notification=yes],
+ [AC_DEFINE(NO_ALILOG_NOTIFICATION)])
+ ])
AC_MSG_RESULT([$have_alilog_notification])
fi
AC_ARG_ENABLE(component-stat,
[AC_HELP_STRING([--enable-component-stat],
[enable component statistics ])],
- [],[enable_component_stat=no])
-if test "x$enable_component_stat" = "xyes" ; then
+ [],[])
+
+dnl enable component statistics if not explicitely disabled
+if test "x$enable_component_stat" != "xno" &&
+ test "x$enable_debug" = "xyes" ; then
+ enable_component_stat=yes.debug
+fi
+
+if test "x$enable_component_stat" = "x" ; then
+ enable_component_stat=no
+fi
+
+if test "x$enable_component_stat" != "xno" ; then
AC_DEFINE(HLT_COMPONENT_STATISTICS)
fi
AC_MSG_RESULT([$enable_component_stat])
if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then
ALIFASTJET_INCFLAGS="-I${with_fastjet}/include"
- ALIFASTJET_HEADER="PseudoJet.hh"
+ ALIFASTJET_HEADER="fastjet/PseudoJet.hh"
ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib"
ALIFASTJET_LIBS="CGAL fastjet"
else
[$ALIFASTJET_HEADER], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/JETAN $ALIFASTJET_INCFLAGS],
[$ALIFASTJET_LIBS], [-L$ROOTLIBDIR $ALIFASTJET_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS],
[AOD ESD ANALYSIS ANALYSISalice JETAN],
- [-L$ROOTLIBDIR $ALIROOT_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET],
+ [-L$ROOTLIBDIR $ALIROOT_LDFLAGS $ALIFASTJET_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET],
[$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
if test "x$enable_module" = "xmissheader"; then