1 dnl -*- mode: autoconf -*-
4 dnl template for the configuration script for the Alice HLT
5 dnl framework and components
7 dnl ------------------------------------------------------------------
8 AC_INIT([Alice High Level Trigger] , [0.1], [Matthias.Richter@ift.uib.no], alice-hlt)
10 dnl ------------------------------------------------------------------
11 dnl the package from CVS contains the old Makefiles as well. In order to
12 dnl prevent them from becoming overwritten, we require a separate build
14 if test "`dirname $0`" = "." ; then
15 AC_ERROR([please run the script from a separate build directory])
18 dnl ------------------------------------------------------------------
20 AC_PREFIX_DEFAULT(${PWD})
21 AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx)
30 dnl ------------------------------------------------------------------
34 ROOT_PATH(, [have_root=1], [AC_ERROR([Stop! The HLT package needs ROOT.])])
35 AM_CONDITIONAL(HAVE_ROOT, test "x$have_root" = "x1" )
37 dnl ------------------------------------------------------------------
38 # TODO: make this configurable through arguments
39 #Define whether you want to run with ALIROOT or only ROOT
40 AH_TEMPLATE([ALIHLT_USEPACKAGE],[running environment])
41 ALIHLT_USEPACKAGE=ALIROOT
42 #ALIHLT_USEPACKAGE=ROOT
43 #ALIHLT_USEPACKAGE=STANDALONE
44 AC_DEFINE(use_aliroot)
46 CPPFLAGS="$CPPFLAGS -DROOTVERSION=`${ROOTCONF} --version`"
47 CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=0"
48 CPPFLAGS="$CPPFLAGS -I${ROOTINCDIR}"
50 dnl ------------------------------------------------------------------
51 AC_MSG_CHECKING([whether to compile sample library])
52 AH_TEMPLATE([HLT_SAMPLE],[hlt sample library])
54 [AC_HELP_STRING([--enable-sample],
55 [compile the sample library ])],
56 [],[enable_sample=yes])
57 if test "x$enable_sample" = "xyes" ; then
60 AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes)
61 AC_MSG_RESULT([$enable_sample])
63 dnl ------------------------------------------------------------------
64 AC_MSG_CHECKING([whether to compile tpc library])
65 AH_TEMPLATE([HLT_TPC],[hlt tpc library])
67 [AC_HELP_STRING([--enable-tpc],
68 [compile the tpc library ])],
70 if test "x$enable_tpc" = "xyes" ; then
73 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
74 AC_MSG_RESULT([$enable_tpc])
76 dnl ------------------------------------------------------------------
77 AC_MSG_CHECKING([whether to enable HLT logging])
78 AH_TEMPLATE([NOLOGGING],[disable hlt logging])
79 AC_ARG_ENABLE(logging,
80 [AC_HELP_STRING([--enable-logging],
82 [],[enable_logging=yes])
83 if test "x$enable_logging" != "xyes" ; then
86 AC_MSG_RESULT([$enable_logging])
88 dnl ------------------------------------------------------------------
89 AC_MSG_CHECKING([whether to enable saving MC data through the chain])
90 AH_TEMPLATE([DOMC],[MC saving])
91 AC_ARG_ENABLE(mc-saving,
92 [AC_HELP_STRING([--enable-mc-saving],
93 [enable saving MC data through the chain])],
94 [],[enable_mc_saving=no])
95 if test "x$enable_mc_saving" = "xyes" ; then
98 AC_MSG_RESULT([$enable_mc_saving])
100 dnl ------------------------------------------------------------------
101 # TODO: get AliRoot version during configure
102 #Switch on ALIROOT version detection by cvs command
103 #ifeq ($(ALIHLT_ALIDETECT),true)
107 dnl ------------------------------------------------------------------
108 AC_MSG_CHECKING([whether to enable AliRoot NEWIO])
109 AH_TEMPLATE([use_newio],[AliRoot NEWIO])
111 [AC_HELP_STRING([--enable-newio],
112 [enable AliRoot NEWIO ])],
113 [],[enable_newio=yes])
114 if test "x$enable_newio" = "xyes" ; then
117 AC_MSG_RESULT([$enable_newio])
119 dnl ------------------------------------------------------------------
120 dnl certainly something old, but we keep the define
121 AC_MSG_CHECKING([whether to use ROWHOUGH])
122 AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH])
123 AC_ARG_ENABLE(rowhough,
124 [AC_HELP_STRING([--enable-rowhough],
126 [],[enable_rowhough=no])
127 if test "x$enable_rowhough" = "xyes" ; then
128 AC_DEFINE(USEROWHOUGH)
130 AC_MSG_RESULT([$enable_rowhough])
132 dnl ------------------------------------------------------------------
136 AC_ARG_VAR(DOXYGEN, The Documentation Generator)
137 AC_PATH_PROG(PERL, perl)
138 AC_PATH_PROG(DOXYGEN, doxygen)
139 AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x")
142 AC_PATH_PROG(DOT, dot)
143 if ! test "x$DOT" = "x" ; then
145 DOT_PATH=`dirname $DOT`
150 dnl ------------------------------------------------------------------
151 AC_CONFIG_FILES([Makefile