b521659f |
1 | dnl -*- mode: autoconf -*- |
2 | dnl |
3 | dnl $Id$ |
4 | dnl template for the configuration script for the Alice HLT |
5 | dnl framework and components |
6 | dnl |
7 | dnl ------------------------------------------------------------------ |
738c049f |
8 | AC_INIT([Alice High Level Trigger] , [0.2], [Matthias.Richter@ift.uib.no], alice-hlt) |
b521659f |
9 | |
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 |
13 | dnl directory |
14 | if test "`dirname $0`" = "." ; then |
15 | AC_ERROR([please run the script from a separate build directory]) |
16 | fi |
17 | |
18 | dnl ------------------------------------------------------------------ |
19 | AC_CANONICAL_SYSTEM |
20 | AC_PREFIX_DEFAULT(${PWD}) |
21 | AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx) |
22 | AM_INIT_AUTOMAKE |
23 | AC_PROG_CC |
24 | AC_PROG_CXX |
25 | AC_PROG_LIBTOOL |
26 | |
27 | AC_DEBUG |
28 | AC_OPTIMIZATION |
29 | |
30 | dnl ------------------------------------------------------------------ |
31 | dnl |
32 | dnl Check for ROOT |
33 | 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" ) |
36 | |
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) |
45 | AC_DEFINE(use_root) |
46 | CPPFLAGS="$CPPFLAGS -DROOTVERSION=`${ROOTCONF} --version`" |
47 | CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=0" |
48 | CPPFLAGS="$CPPFLAGS -I${ROOTINCDIR}" |
49 | |
50 | dnl ------------------------------------------------------------------ |
51 | AC_MSG_CHECKING([whether to compile sample library]) |
52 | AH_TEMPLATE([HLT_SAMPLE],[hlt sample library]) |
53 | AC_ARG_ENABLE(sample, |
54 | [AC_HELP_STRING([--enable-sample], |
55 | [compile the sample library ])], |
56 | [],[enable_sample=yes]) |
57 | if test "x$enable_sample" = "xyes" ; then |
58 | AC_DEFINE(HLT_SAMPLE) |
59 | fi |
60 | AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes) |
61 | AC_MSG_RESULT([$enable_sample]) |
62 | |
63 | dnl ------------------------------------------------------------------ |
64 | AC_MSG_CHECKING([whether to compile tpc library]) |
65 | AH_TEMPLATE([HLT_TPC],[hlt tpc library]) |
66 | AC_ARG_ENABLE(tpc, |
67 | [AC_HELP_STRING([--enable-tpc], |
68 | [compile the tpc library ])], |
69 | [],[enable_tpc=yes]) |
70 | if test "x$enable_tpc" = "xyes" ; then |
71 | AC_DEFINE(HLT_TPC) |
72 | fi |
73 | AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes) |
74 | AC_MSG_RESULT([$enable_tpc]) |
75 | |
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], |
81 | [enable logging])], |
82 | [],[enable_logging=yes]) |
83 | if test "x$enable_logging" != "xyes" ; then |
84 | AC_DEFINE(NOLOGGING) |
85 | fi |
86 | AC_MSG_RESULT([$enable_logging]) |
87 | |
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 |
96 | AC_DEFINE(DOMC) |
97 | fi |
98 | AC_MSG_RESULT([$enable_mc_saving]) |
99 | |
100 | dnl ------------------------------------------------------------------ |
101 | # TODO: get AliRoot version during configure |
102 | #Switch on ALIROOT version detection by cvs command |
103 | #ifeq ($(ALIHLT_ALIDETECT),true) |
104 | #USECVS = 1 |
105 | #endif |
106 | |
107 | dnl ------------------------------------------------------------------ |
108 | AC_MSG_CHECKING([whether to enable AliRoot NEWIO]) |
109 | AH_TEMPLATE([use_newio],[AliRoot NEWIO]) |
110 | AC_ARG_ENABLE(newio, |
111 | [AC_HELP_STRING([--enable-newio], |
112 | [enable AliRoot NEWIO ])], |
113 | [],[enable_newio=yes]) |
114 | if test "x$enable_newio" = "xyes" ; then |
115 | AC_DEFINE(use_newio) |
116 | fi |
117 | AC_MSG_RESULT([$enable_newio]) |
118 | |
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], |
125 | [use ROWHOUGH ])], |
126 | [],[enable_rowhough=no]) |
127 | if test "x$enable_rowhough" = "xyes" ; then |
128 | AC_DEFINE(USEROWHOUGH) |
129 | fi |
130 | AC_MSG_RESULT([$enable_rowhough]) |
131 | |
132 | dnl ------------------------------------------------------------------ |
133 | dnl |
134 | dnl Documentation |
135 | 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") |
140 | HAVE_DOT=NO |
141 | DOT_PATH= |
142 | AC_PATH_PROG(DOT, dot) |
143 | if ! test "x$DOT" = "x" ; then |
144 | HAVE_DOT=YES |
145 | DOT_PATH=`dirname $DOT` |
146 | fi |
147 | AC_SUBST([HAVE_DOT]) |
148 | AC_SUBST([DOT_PATH]) |
149 | |
150 | dnl ------------------------------------------------------------------ |
151 | AC_CONFIG_FILES([Makefile |
152 | BASE/Makefile |
153 | SampleLib/Makefile |
154 | TPCLib/Makefile |
155 | TPCLib/Ref/Makefile |
156 | src/Makefile |
157 | doc/Makefile |
158 | doc/doxygen.conf]) |
159 | |
160 | |
161 | AC_OUTPUT |
162 | dnl |
163 | dnl EOF |
164 | dnl |
165 | |