+ # CBD library is present since AliRoot version v4-05-00 (02.06.2006)
+ LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lSTEER"
+ CHECKLIB=CDB
+ AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
+
+ LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
+ CHECKLIB=STEER
+ AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"],[have_aliroot=no])
+
+ dnl
+ dnl check whether AliLog supports notification callback
+ 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)])
+ AC_MSG_RESULT([$have_alilog_notification])
+ fi
+
+ if test "x$have_aliroot" = "xno" ; then
+ # 2007-08-18 dont reset ALIROOT_CPPFLAGS in order to allow compilation
+ # but library dependencies might not be resolved completely
+ #ALIROOT_CPPFLAGS=
+ AC_MSG_WARN([some of the AliRoot library dependencies are not resolved.
+ This can happen from time to time due to development in AliRoot. You can
+ force compilation of detector libs by --enable-<detector>, but be aware
+ of unresolved references at runtime.])
+ AC_MSG_WARN([ ------------------------------------------ ])
+ AC_MSG_WARN([ Report this to $PACKAGE_BUGREPORT ])
+ AC_MSG_WARN([ please include config.log ])
+ AC_MSG_WARN([ ------------------------------------------ ])
+ ALIROOT_LDFLAGS=
+ ALIROOT_LIBS=
+ fi
+