explicitly removing charged kaon MIPs and showers from the kaon correction to avoid...
[u/mrichter/AliRoot.git] / HLT / configure.ac
CommitLineData
b521659f 1dnl -*- mode: autoconf -*-
2dnl
3dnl $Id$
4dnl template for the configuration script for the Alice HLT
5dnl framework and components
6dnl
7dnl ------------------------------------------------------------------
408c5899 8
9dnl Take either the AliRoot tag as version id or the current revision
10AC_INIT([Alice High Level Trigger] ,
7233bc62 11 m4_esyscmd([url=`svn info 2> /dev/null | grep "URL:" | cut -d: -f3 | sed -e 's|[/]*HLT[/]*$||' | sed -e 's|^[/]*||g' | cut -d '/' -f 4`; \
12 revision=`svn info 2> /dev/null | grep "Revision:" | cut -d ' ' -f 2 | cut -d '/' -f 4`; \
13 if test "x$url" != "x"; then echo -n $url; \
14 elif test "x$revision" != "x"; then echo -n $revision ; \
15 elif test -e .revision && test x`cat .revision` != x; then \
16 cat .revision; \
17 else \
18 echo -n invalid-version; \
19 fi]),
408c5899 20 [Matthias.Richter@ift.uib.no],
21 [alice-hlt])
b521659f 22
23dnl ------------------------------------------------------------------
24dnl the package from CVS contains the old Makefiles as well. In order to
25dnl prevent them from becoming overwritten, we require a separate build
26dnl directory
27if test "`dirname $0`" = "." ; then
28 AC_ERROR([please run the script from a separate build directory])
29fi
30
31dnl ------------------------------------------------------------------
32AC_CANONICAL_SYSTEM
33AC_PREFIX_DEFAULT(${PWD})
34AC_CONFIG_SRCDIR(BASE/AliHLTComponent.cxx)
b59c004b 35AM_INIT_AUTOMAKE([-Wno-portability])
b521659f 36AC_PROG_CC
37AC_PROG_CXX
38AC_PROG_LIBTOOL
39
40AC_DEBUG
5b1c9727 41AC_PROFILING
b521659f 42AC_OPTIMIZATION
dc8f7cb7 43AM_CONDITIONAL(STANDALONE_SAMPLELIB, test 0 )
44
45dnl ------------------------------------------------------------------
46dnl A warning posted into the auto-generated files
47dnl Does NOT concern this file ;-)
48AUTOGENERATED_WARNING="!!!!!!! DO NOT EDIT THIS FILE !!!!!!"
49AC_SUBST([AUTOGENERATED_WARNING])
b521659f 50
51dnl ------------------------------------------------------------------
52dnl
53dnl Check for ROOT
54dnl
55ROOT_PATH(, [have_root=1], [AC_ERROR([Stop! The HLT package needs ROOT.])])
56AM_CONDITIONAL(HAVE_ROOT, test "x$have_root" = "x1" )
53feaef5 57AC_SUBST([ROOTSYS])
dc8f7cb7 58ROOTBINDIR=`dirname $ROOTEXEC`
59AC_SUBST([ROOTBINDIR])
60
dfaa582a 61dnl test for additional required root libraries and headers
62LIBS='-ldl'
63if test "x$have_root" = "x1"; then
64 AC_LANG_PUSH(C++)
65 save_CPPFLAGS=$CPPFLAGS
66 save_LDFLAGS=$LDFLAGS
67 save_LIBS=$LIBS
68 CPPFLAGS=`echo $save_CPPFLAGS; for i in ${ROOTINCDIR}; do echo -n "-I$i " ; done`
69
dc8f7cb7 70 # we check for the libSTEER library which is linked to
71 # - the ROOT libs libGeom libMinuit libVMC libEG
72 # - the AliRoot libESD libRAWData (libRAWDatarec from v4-04-Rev-07)
73 # - ROOT libCint needs also libdl
74 # - from Nov 1 2006 TTreeFormula is needed by AliTagAnalysis and requires
75 # libTreePlayer.so
76 # - from Jan 07 libESD also depends on libXMLIO
fbf4d793 77 # - libSTEER depends on libProofPlayer since Oct 2007 (after v4-07-Release)
0776a74c 78 # - libCDB.so depends on libXMLParser since Mar 11 2009 r 31411
6af7322f 79 # - libCDB.so depends on libGui.so since May 14 2010 r 41238
80 ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer XMLParser Gui'
dc8f7cb7 81 for CHECKLIB in $ROOT_CHECKLIBS ; do
dc8f7cb7 82 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}"
83 LIBS="$save_LIBS $ROOTLIBS $ADD_ROOTLIBS"
84 AC_CHECK_LIB([$CHECKLIB],[_init], [ADD_ROOTLIBS="$ADD_ROOTLIBS -l$CHECKLIB"])
85 done
dfaa582a 86
87 # TBuffer.h has been made pure virtual in root v5-15-02 and one
88 # has to derive from TBufferFile.h (needed for BASE/AliHLTMessage.h)
ba4b0dd7 89 AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE])
dfaa582a 90
0b6c2560 91 # TView.h has been made pure virtual right after root v5-15-02 and one
92 # has to derive from TView3D.h (needed for TPCLib/OnlineDisplay/AliHLTTPCDisplay3D)
ba4b0dd7 93 AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D])
0b6c2560 94
dc8f7cb7 95 CPPFLAGS=$save_CPPFLAGS
96 LDFLAGS=$save_LDFLAGS
97 LIBS=$save_LIBS
dfaa582a 98 AC_LANG_POP(C++)
dc8f7cb7 99fi
b521659f 100
101dnl ------------------------------------------------------------------
102# TODO: make this configurable through arguments
103#Define whether you want to run with ALIROOT or only ROOT
104AH_TEMPLATE([ALIHLT_USEPACKAGE],[running environment])
105ALIHLT_USEPACKAGE=ALIROOT
106#ALIHLT_USEPACKAGE=ROOT
107#ALIHLT_USEPACKAGE=STANDALONE
108AC_DEFINE(use_aliroot)
109AC_DEFINE(use_root)
85869391 110CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}"
7233bc62 111save_CPPFLAGS=$CPPFLAGS
112save_LDFLAGS=$LDFLAGS
113save_LIBS=$LIBS
85869391 114
115dnl ------------------------------------------------------------------
74c73e5a 116dnl check for AliRoot features
117AC_LANG_PUSH(C++)
74c73e5a 118have_aliroot=no
2bbbadd1 119AC_ARG_WITH(aliroot,[ --with-aliroot top of the AliRoot installation],
120 [test -d $with_aliroot && ALICE_ROOT=$with_aliroot],
121 [])
122
123if test "x$ALICE_ROOT" != "x" && test -d $ALICE_ROOT ; then
124 dnl ------------------------------------------------------------------
125 dnl Try to estimate the system architecture
126 case $host_os:$host_cpu in
127 linux*:x86_64*) alice_target='linuxx8664gcc' ;;
128 linux*) alice_target='linux' ;;
129 *) alice_target='unknown' ;;
130 esac
131 if test "x$alice_target" = "xunknown" ; then
132 if test -z $ALICE_TARGET ; then
133 AC_MSG_ERROR([Can not estimate system architecture.
134 To avoid the problem, set the ALICE_TARGET variable appropriately.
135 Please send the following information to Matthias.Richter@ift.uib.no:
136 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
137 else
138 AC_MSG_NOTICE([Unknown system architecture.
139 Please send the following information to Matthias.Richter@ift.uib.no:
140 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
141 fi
142 else
143 if test "x$ALICE_TARGET" != "x" && test "x$ALICE_TARGET" != "x$alice_target" ; then
144 AC_MSG_WARN([The ALICE_TARGET variable does not match your current system
145 overriding $ALICE_TARGET by $alice_target])
146 fi
147 ALICE_TARGET=$alice_target
148 fi
dc8f7cb7 149 ALIROOTBINDIR=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET}
74c73e5a 150 ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}
151 ALIROOTINCDIR=${ALICE_ROOT}/include
dc8f7cb7 152 test -d ${ALIROOTBINDIR} || AC_MSG_WARN([can not find AliRoot binary directory $ALIROOTBINDIR])
2bbbadd1 153 test -d ${ALIROOTLIBDIR} || AC_MSG_WARN([can not find AliRoot library directory $ALIROOTLIBDIR])
154 test -d ${ALIROOTINCDIR} || AC_MSG_WARN([can not find AliRoot include directory $ALIROOTINCDIR])
74c73e5a 155fi
2bbbadd1 156
157AC_MSG_CHECKING([for AliRoot])
74c73e5a 158if test "x$ALICE_ROOT" != "x" \
dc8f7cb7 159 && test -d ${ALIROOTBINDIR} \
74c73e5a 160 && test -d ${ALIROOTLIBDIR} \
161 && test -d ${ALIROOTINCDIR}; then
162 have_aliroot=$ALICE_ROOT
163else
dc8f7cb7 164 ALIROOTBINDIR=
74c73e5a 165 ALIROOTLIBDIR=
166 ALIROOTINCDIR=
167fi
168AC_MSG_RESULT([$have_aliroot])
169
74c73e5a 170AC_LANG_POP(C++)
5f5b708b 171AC_SUBST([ALICE_ROOT])
74c73e5a 172AC_SUBST([ALIROOT_CPPFLAGS])
173AC_SUBST([ALIROOT_LDFLAGS])
dc8f7cb7 174AC_SUBST([ALIROOTBINDIR])
53feaef5 175AC_SUBST([ALIROOTLIBDIR])
593a08ea 176
177ALIROOT_LIBS="$ALIROOT_LIBS $ADD_ROOTLIBS"
74c73e5a 178AC_SUBST([ALIROOT_LIBS])
0f51f5b8 179AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
85869391 180
6c1a9d9e 181HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE'
182HLTBASE_LDFLAGS=
183AC_SUBST([HLTBASE_CPPFLAGS])
184AC_SUBST([HLTBASE_LDFLAGS])
185
85869391 186dnl ------------------------------------------------------------------
7233bc62 187AC_ARG_ENABLE(all,
188 [AC_HELP_STRING([--disable-all],
189 [disable all detector modules, individual modules can be switched on by --enable-det])],
190 [disable_all=yes],[])
191
192dnl ------------------------------------------------------------------
85869391 193AC_MSG_CHECKING([whether to impose strict coding conventions])
194AC_ARG_ENABLE(strict,
2028353f 195 [AC_HELP_STRING([--disable-strict],
196 [disable coding convention checks ])],
197 [],[enable_strict=yes])
85869391 198if test "x$enable_strict" = "xyes" ; then
f7561f8d 199 CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow"
85869391 200fi
201AC_MSG_RESULT([$enable_strict])
b521659f 202
203dnl ------------------------------------------------------------------
5b6ab198 204AC_MSG_CHECKING([whether to enable component statistics])
205AC_ARG_ENABLE(component-stat,
206 [AC_HELP_STRING([--enable-component-stat],
207 [enable component statistics ])],
24dc45d8 208 [],[])
209
210dnl enable component statistics if not explicitely disabled
211if test "x$enable_component_stat" != "xno" &&
212 test "x$enable_debug" = "xyes" ; then
213 enable_component_stat=yes.debug
214fi
215
216if test "x$enable_component_stat" = "x" ; then
217 enable_component_stat=no
218fi
219
220if test "x$enable_component_stat" != "xno" ; then
5b6ab198 221 AC_DEFINE(HLT_COMPONENT_STATISTICS)
222fi
223AC_MSG_RESULT([$enable_component_stat])
224
225dnl ------------------------------------------------------------------
cad2d06c 226dnl ---- module checks
227dnl ------------------------------------------------------------------
228save_CPPFLAGS=$CPPFLAGS
229save_LDFLAGS=$LDFLAGS
230save_LIBS=$LIBS
231
232dnl ------------------------------------------------------------------
c8500eef 233AC_MSG_NOTICE([-------------------------------------------------])
234AC_MSG_NOTICE([checking dependencies for HLTbase library])
235HLTBASE_CHECKLIBS='XMLParser'
236for CHECKLIB in $HLTBASE_CHECKLIBS ; do
237 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}"
238 LIBS="$save_LIBS $ROOTLIBS $ALIHLTBASE_LIBS"
239 AC_CHECK_LIB([$CHECKLIB],[_init], [ALIHLTBASE_LIBS="$ALIHLTBASE_LIBS -l$CHECKLIB"])
240done
241AC_SUBST([ALIHLTBASE_LIBS])
242
243dnl ------------------------------------------------------------------
b521659f 244AC_MSG_CHECKING([whether to compile sample library])
245AH_TEMPLATE([HLT_SAMPLE],[hlt sample library])
246AC_ARG_ENABLE(sample,
c018a1bd 247 [AC_HELP_STRING([--disable-sample],
b521659f 248 [compile the sample library ])],
2e742d30 249 [],
250 [if test "x$have_aliroot" = "xno" ; then
251 enable_sample="no...requires.AliRoot"
252 else
253 enable_sample=yes
254 fi
255 ])
256
b521659f 257if test "x$enable_sample" = "xyes" ; then
258 AC_DEFINE(HLT_SAMPLE)
259fi
260AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes)
261AC_MSG_RESULT([$enable_sample])
262
263dnl ------------------------------------------------------------------
c018a1bd 264AH_TEMPLATE([HLT_UTIL],[HLT utility library])
b59c004b 265ALIUTIL_LIBS=
266CHECK_HLTMODULE([util],
267 [],
48bb48b6 268 [],
269 [], [], [],
270 [], [],
271 [])
b59c004b 272
273if test "x$enable_module" = "xmissheader"; then
274 enable_module="no...missing.headers"
275 enable_util=$enable_module
276elif test "x$enable_module" = "xforce"; then
277 enable_util="yes"
278else
279 enable_util=$enable_module
280fi
c018a1bd 281if test "x$enable_util" = "xyes" ; then
282 AC_DEFINE(HLT_UTIL)
b59c004b 283 ALIUTIL_LIBS=$ALIHLTMODULE_LIBS
c018a1bd 284fi
285AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes)
b59c004b 286AC_MSG_CHECKING([whether to compile Util library])
287AC_MSG_RESULT([$enable_module])
288AC_SUBST([ALIUTIL_LIBS])
c018a1bd 289
290dnl ------------------------------------------------------------------
b521659f 291AH_TEMPLATE([HLT_TPC],[hlt tpc library])
f59fee6d 292
e642ae99 293ALITPC_LIBS=
f59fee6d 294CHECK_HLTMODULE([tpc],
48bb48b6 295 [],
296 [],
297 [], [], [],
298 [], [],
299 [])
f59fee6d 300
c6b46c3f 301if test "x$enable_module" = "xmissheader"; then
302 enable_module="no...missing.headers"
50a3793d 303 enable_tpc=$enable_module
c6b46c3f 304elif test "x$enable_module" = "xforce"; then
305 enable_tpc="yes"
f59fee6d 306else
307 enable_tpc=$enable_module
308fi
2e742d30 309
b521659f 310if test "x$enable_tpc" = "xyes" ; then
e642ae99 311 AC_LANG_PUSH(C++)
b521659f 312 AC_DEFINE(HLT_TPC)
e642ae99 313 ALITPC_LIBS=$ALIHLTMODULE_LIBS
314 dnl
315 dnl Check for functionality in the TPC reconstruction required for online
316 dnl processing
317 dnl
318 have_tpc_hltoffline_rec=no
319 AC_MSG_CHECKING(for on-line features of TPC offline reconstruction)
320 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC"
321 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
322 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
323 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliTPCtrackerMI.h>
324 #include <AliTPCclustererMI.h>
325 #include <TObjArray.h>],
326 [AliTPCtrackerMI tracker;
327 TObjArray* array=NULL;
328 tracker.LoadClusters(array);
329 AliTPCclustererMI cl(NULL, NULL);
89c2e505 330 cl.GetOutputClonesArray();])],
e642ae99 331 [have_tpc_hltoffline_rec=yes],
332 [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)])
333 AC_MSG_RESULT([$have_tpc_hltoffline_rec])
334
0f058f3e 335 have_alitpcclusterparam_r40128=no
336 AC_MSG_CHECKING([checking for AliTPCClusterParam r40128])
337 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliTPCClusterParam.h>],
338 [AliTPCClusterParam param;
339 float test=param.ParamS0Par(0,0,0)]);],
340 [have_alitpcclusterparam_r40128=yes],
341 [AC_DEFINE(HAVE_NOT_ALITPCCLUSTERPARAM_r40128)])
342 AC_MSG_RESULT([$have_alitpcclusterparam_r40128])
343
344 LIBS=$save_LIBS
345
346
e642ae99 347 AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)])
348 AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)])
a553c904 349 AC_CHECK_HEADER([AliAltroRawStreamV3.h], [], [AC_DEFINE(HAVE_NOT_ALTRORAWSTREAMV3)])
e642ae99 350
351 have_tpc_mapping=no
352 if test ! "x$have_aliroot" = "xno" ; then
353 # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC
354 # which is stored in the TPC/mapping/Patchx.data files from
355 # AliRoot version v4-04-Release (May 2006)
356 AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available])
357 TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping
358 AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data],
359 [have_tpc_mapping=yes
360 AC_SUBST(TPC_PAD_MAPPING_PATH)
361 AC_DEFINE(HAVE_TPC_MAPPING)],
362 [])
363
364 fi
365 AC_MSG_CHECKING([for TPC mapping layout])
366 AC_MSG_RESULT([$have_tpc_mapping])
367 AC_LANG_POP(C++)
368
adec4ad4 369else
370 enable_module=$enable_tpc
b521659f 371fi
372AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
d6e2c707 373AC_MSG_CHECKING([whether to compile TPC library])
c6b46c3f 374AC_MSG_RESULT([$enable_module])
f59fee6d 375AC_SUBST([ALITPC_LIBS])
b521659f 376
377dnl ------------------------------------------------------------------
5e3820e2 378AH_TEMPLATE([HLT_RCU],[hlt rcu library])
379
380CHECK_HLTMODULE([rcu],
48bb48b6 381 [],
382 [],
383 [], [], [],
384 [], [],
385 [])
5e3820e2 386
387if test "x$enable_module" = "xmissheader"; then
388 enable_module="no...missing.headers"
50a3793d 389 enable_rcu=$enable_module
5e3820e2 390elif test "x$enable_module" = "xforce"; then
391 enable_rcu="yes"
392else
48bb48b6 393 enable_rcu=$enable_module
5e3820e2 394fi
395
396if test "x$enable_rcu" = "xyes" ; then
397 AC_DEFINE(HLT_RCU)
adec4ad4 398else
399 enable_module=$enable_rcu
5e3820e2 400fi
401AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes)
d6e2c707 402AC_MSG_CHECKING([whether to compile RCU library])
5e3820e2 403AC_MSG_RESULT([$enable_module])
404AC_SUBST([ALIRCU_LIBS])
405
406dnl ------------------------------------------------------------------
fe8738cf 407AH_TEMPLATE([HLT_CALO],[hlt calo(rimeter) library])
408
409ALICALO_LIBS=
410CHECK_HLTMODULE([calo],
48bb48b6 411 [], [],
412 [], [], [],
413 [], [],
414 [])
fe8738cf 415
416if test "x$enable_module" = "xmissheader"; then
417 enable_module="no...missing.headers"
418 enable_calo=$enable_module
419elif test "x$enable_module" = "xforce"; then
420 enable_calo="yes"
421else
fe8738cf 422 enable_calo=$enable_module
fe8738cf 423fi
424
425if test "x$enable_calo" = "xyes" ; then
426 AC_DEFINE(HLT_CALO)
427 ALICALO_LIBS=$ALIHLTMODULE_LIBS
428else
429 enable_module=$enable_calo
430fi
431AM_CONDITIONAL(EN_HLT_CALO, test x$enable_calo = xyes)
432AC_MSG_CHECKING([whether to compile CALO library])
433AC_MSG_RESULT([$enable_module])
434AC_SUBST([ALICALO_LIBS])
435
436dnl ------------------------------------------------------------------
c160eda8 437AH_TEMPLATE([HLT_PHOS],[hlt phos library])
f59fee6d 438
439ALIPHOS_LIBS=
440CHECK_HLTMODULE([phos],
48bb48b6 441 [], [],
442 [], [], [],
443 [], [],
444 [])
f59fee6d 445
c6b46c3f 446if test "x$enable_module" = "xmissheader"; then
447 enable_module="no...requires.AliRoot>v4-05-07"
50a3793d 448 enable_phos=$enable_module
c6b46c3f 449elif test "x$enable_module" = "xforce"; then
450 enable_phos="yes"
f59fee6d 451else
f59fee6d 452 enable_phos=$enable_module
f59fee6d 453fi
2e742d30 454
c160eda8 455if test "x$enable_phos" = "xyes" ; then
456 AC_DEFINE(HLT_PHOS)
f59fee6d 457 ALIPHOS_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 458else
459 enable_module=$enable_phos
c160eda8 460fi
461AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
d6e2c707 462AC_MSG_CHECKING([whether to compile PHOS library])
c6b46c3f 463AC_MSG_RESULT([$enable_module])
f59fee6d 464AC_SUBST([ALIPHOS_LIBS])
c160eda8 465
c6b46c3f 466dnl ------------------------------------------------------------------
fe8738cf 467AH_TEMPLATE([HLT_EMCAL],[hlt emcal library])
468
469ALIEMCAL_LIBS=
470CHECK_HLTMODULE([emcal],
48bb48b6 471 [], [],
472 [], [], [],
473 [], [],
474 [])
fe8738cf 475
476if test "x$enable_module" = "xmissheader"; then
477 enable_module="no...header.missing"
478 enable_emcal=$enable_module
479elif test "x$enable_module" = "xforce"; then
480 enable_emcal="yes"
481else
482 enable_emcal=$enable_module
483fi
484
485if test "x$enable_emcal" = "xyes" ; then
486 AC_DEFINE(HLT_EMCAL)
487 ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS
488else
489 enable_module=$enable_emcal
490fi
491AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes)
492AC_MSG_CHECKING([whether to compile EMCAL library])
493AC_MSG_RESULT([$enable_module])
494AC_SUBST([ALIEMCAL_LIBS])
495
496dnl ------------------------------------------------------------------
c6b46c3f 497AH_TEMPLATE([HLT_TRD],[hlt trd library])
498
f59fee6d 499ALITRD_LIBS=
500CHECK_HLTMODULE([trd],
501 [], [],
48bb48b6 502 [], [], [],
503 [], [],
504 [])
f59fee6d 505
c6b46c3f 506if test "x$enable_module" = "xmissheader"; then
507 enable_module="no...requires.AliRoot>v4-07-Release"
50a3793d 508 enable_trd=$enable_module
c6b46c3f 509elif test "x$enable_module" = "xforce"; then
510 enable_trd="yes"
f59fee6d 511else
512 enable_trd=$enable_module
f59fee6d 513fi
2e742d30 514
0f51f5b8 515if test "x$enable_trd" = "xyes" ; then
516 AC_DEFINE(HLT_TRD)
f59fee6d 517 ALITRD_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 518else
519 enable_module=$enable_trd
0f51f5b8 520fi
521AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
d6e2c707 522AC_MSG_CHECKING([whether to compile TRD library])
c6b46c3f 523AC_MSG_RESULT([$enable_module])
f59fee6d 524AC_SUBST([ALITRD_LIBS])
0f51f5b8 525
526dnl ------------------------------------------------------------------
629266d1 527AH_TEMPLATE([HLT_FMD],[hlt fmd library])
528
529ALIFMD_LIBS=$ALIHLTMODULE_LIBS
530CHECK_HLTMODULE([fmd],
531 [], [],
48bb48b6 532 [], [], [],
533 [], [],
534 [])
629266d1 535
536if test "x$enable_module" = "xmissheader"; then
50a3793d 537 enable_module="no...missing.headers"
538 enable_fmd=$enable_module
629266d1 539elif test "x$enable_module" = "xforce"; then
540 enable_fmd="yes"
541else
542 enable_fmd=$enable_module
629266d1 543fi
544
545if test "x$enable_fmd" = "xyes" ; then
546 AC_DEFINE(HLT_FMD)
547 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
548else
549 enable_module=$enable_fmd
550fi
551AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes)
552AC_MSG_CHECKING([whether to compile FMD library])
553AC_MSG_RESULT([$enable_module])
554AC_SUBST([ALIFMD_LIBS])
555
629266d1 556dnl ------------------------------------------------------------------
57cd80a1 557AH_TEMPLATE([HLT_ZDC],[hlt zdc library])
558
559ALIZDC_LIBS=$ALIHLTMODULE_LIBS
560CHECK_HLTMODULE([zdc],
48bb48b6 561 [], [],
562 [], [], [],
563 [], [],
564 [])
57cd80a1 565
566if test "x$enable_module" = "xmissheader"; then
567 enable_module="no...missing.headers"
568 enable_zdc=$enable_module
569elif test "x$enable_module" = "xforce"; then
570 enable_zdc="yes"
571else
572 enable_zdc=$enable_module
573fi
574
575if test "x$enable_zdc" = "xyes" ; then
576 AC_DEFINE(HLT_ZDC)
577 ALIZDC_LIBS=$ALIHLTMODULE_LIBS
578else
579 enable_module=$enable_zdc
580fi
581AM_CONDITIONAL(EN_HLT_ZDC, test x$enable_zdc = xyes)
582AC_MSG_CHECKING([whether to compile ZDC library])
583AC_MSG_RESULT([$enable_module])
584AC_SUBST([ALIZDC_LIBS])
585
586dnl ------------------------------------------------------------------
94cc9aab 587AH_TEMPLATE([HLT_MUON],[hlt dimuon library])
2e742d30 588
f59fee6d 589ALIMUON_LIBS=
e89e6b23 590CHECK_HLTMODULE([dimuon],
48bb48b6 591 [],
592 [],
593 [], [], [],
594 [], [],
595 [])
f59fee6d 596
597if test "x$enable_module" = "xmissheader"; then
a853a794 598 enable_module="no...requires.AliRoot>=v4-08-Release"
50a3793d 599 enable_muon=$enable_module
c6b46c3f 600elif test "x$enable_module" = "xforce"; then
601 enable_muon="yes"
f59fee6d 602else
603 enable_muon=$enable_module
604fi
605
606if test "x$enable_muon" = "xyes" ; then
94cc9aab 607 AC_DEFINE(HLT_MUON)
f59fee6d 608 ALIMUON_LIBS=$ALIHLTMODULE_LIBS
6ed1b948 609 AC_LANG_PUSH(C++)
accd4c8f 610 save_CPPFLAGS="$CPPFLAGS"
611
6ed1b948 612 dnl
613 dnl Check for functionality GetRawStream AliMUONDigitMaker.h
614 dnl
615 have_muon_digitmaker_getrawstream=no
616 AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker)
617 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON"
618 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
619 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS"
620 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMUONDigitMaker.h>],
621 [AliMUONDigitMaker dm;
622 dm.GetRawStreamTracker();])],
623 [have_muon_digitmaker_getrawstream=yes],
624 [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)])
625 LIBS=$save_LIBS
626 AC_MSG_RESULT([$have_muon_digitmaker_getrawstream])
53eb3786 627
628 dnl
629 dnl Check for AliMpPad::GetPositionX/Y
630 dnl change of implementation in MUON code
631 dnl revision 31769, Wed Apr 1 2009
632 dnl
633 have_muon_alimppad_getposition=no
634 AC_MSG_CHECKING(for GetPosition methods of AliMpPad)
635 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON/mapping"
636 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
637 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS"
638 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMpPad.h>],
639 [AliMpPad pad;
640 pad.GetPositionX();])],
641 [have_muon_alimppad_getposition=yes],
642 [AC_DEFINE(HAVE_NOT_MUON_ALIMPPAD_GETPOSITION)])
643 LIBS=$save_LIBS
644 AC_MSG_RESULT([$have_muon_alimppad_getposition])
645
accd4c8f 646 CPPFLAGS="$save_CPPFLAGS"
6ed1b948 647
648 AC_LANG_POP(C++)
adec4ad4 649else
650 enable_module=$enable_muon
94cc9aab 651fi
f59fee6d 652AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes)
d6e2c707 653AC_MSG_CHECKING([whether to compile MUON library])
c6b46c3f 654AC_MSG_RESULT([$enable_module])
f59fee6d 655AC_SUBST([ALIMUON_LIBS])
94cc9aab 656
657dnl ------------------------------------------------------------------
d6e2c707 658AH_TEMPLATE([HLT_TRIGGER],[hlt trigger library])
659
660ALITRIGGER_LIBS=
661CHECK_HLTMODULE([trigger],
48bb48b6 662 [], [],
663 [], [], [],
664 [], [],
665 [])
d6e2c707 666
667if test "x$enable_module" = "xmissheader"; then
668 enable_module="no...header.missing"
50a3793d 669 enable_trigger=$enable_module
d6e2c707 670elif test "x$enable_module" = "xforce"; then
671 enable_trigger="yes"
672else
673 enable_trigger=$enable_module
674fi
675
676if test "x$enable_trigger" = "xyes" ; then
677 AC_DEFINE(HLT_TRIGGER)
678 ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 679else
680 enable_module=$enable_trigger
d6e2c707 681fi
682AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes)
683AC_MSG_CHECKING([whether to compile Trigger library])
684AC_MSG_RESULT([$enable_module])
685AC_SUBST([ALITRIGGER_LIBS])
686
687dnl ------------------------------------------------------------------
ec6160d5 688AH_TEMPLATE([HLT_GLOBAL],[hlt global library])
689
690ALIGLOBAL_LIBS=
691CHECK_HLTMODULE([global],
48bb48b6 692 [], [],
693 [], [], [],
694 [], [],
695 [])
ec6160d5 696
697if test "x$enable_module" = "xmissheader"; then
698 enable_module="no...header.missing"
699 enable_global=$enable_module
700elif test "x$enable_module" = "xforce"; then
701 enable_global="yes"
702else
703 enable_global=$enable_module
ec6160d5 704fi
705
706if test "x$enable_global" = "xyes" ; then
707 AC_DEFINE(HLT_GLOBAL)
708 ALIGLOBAL_LIBS=$ALIHLTMODULE_LIBS
709else
710 enable_module=$enable_global
711fi
712AM_CONDITIONAL(EN_HLT_GLOBAL, test x$enable_global = xyes)
713AC_MSG_CHECKING([whether to compile Global library])
714AC_MSG_RESULT([$enable_module])
715AC_SUBST([ALIGLOBAL_LIBS])
716
717dnl ------------------------------------------------------------------
33daad3d 718AH_TEMPLATE([HLT_JET],[hlt jet library])
719
04cbe3ac 720ALIFASTJET_HEADER=
721ALIFASTJET_INCFLAGS=
722ALIFASTJET_LIBS=
723ALIFASTJET_LDFLAGS=
724AC_ARG_WITH(fastjet, [installation path of the FASTJET package],
725 [ test "x$with_fastjet" != "xno" && export FASTJET=$with_fastjet],
726 [ test -n $FASTJET && with_fastjet=$FASTJET ])
727
728if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then
729 ALIFASTJET_INCFLAGS="-I${with_fastjet}/include"
3665c6c3 730 ALIFASTJET_HEADER="fastjet/PseudoJet.hh"
04cbe3ac 731 ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib"
732 ALIFASTJET_LIBS="CGAL fastjet"
33daad3d 733else
04cbe3ac 734 with_fastjet=no
33daad3d 735fi
736
04cbe3ac 737CHECK_HLTMODULE([jet],
48bb48b6 738 [], [],
739 [], [], [],
740 [],
741 [],
742 [])
33daad3d 743
744if test "x$enable_module" = "xmissheader"; then
745 enable_module="no...header.missing"
746 enable_jet=$enable_module
747elif test "x$enable_module" = "xforce"; then
748 enable_jet="yes"
749else
750 enable_jet=$enable_module
751fi
752
04cbe3ac 753if test "x$enable_jet" = "xyes" ; then
33daad3d 754 AC_DEFINE(HLT_JET)
755 ALIJET_LIBS="$ALIHLTMODULE_LIBS"
04cbe3ac 756
757 if test "x$with_fastjet" != "xno"; then
758 AC_DEFINE(HAVE_FASTJET)
759 AC_DEFINE(WITHFASTJET)
02bfa57b 760 ALIJET_LIBS="$ALIJET_LIBS $FASTJET_LDFLAGS"
04cbe3ac 761 fi
762 AC_MSG_CHECKING([compilation with FASTJET package])
763 AC_MSG_RESULT($with_fastjet)
764
33daad3d 765else
766 enable_module=$enable_jet
767fi
768
33daad3d 769AM_CONDITIONAL(EN_HLT_JET, test x$enable_jet = xyes)
770AC_MSG_CHECKING([whether to compile Jet library])
771AC_MSG_RESULT([$enable_module])
772AC_SUBST([ALIJET_LIBS])
773
774dnl ------------------------------------------------------------------
aed3e6fc 775AH_TEMPLATE([HLT_VZERO],[hlt vzero library])
776
777ALIVZERO_LIBS=
778CHECK_HLTMODULE([vzero],
48bb48b6 779 [], [],
780 [], [], [],
781 [], [],
782 [])
aed3e6fc 783
784if test "x$enable_module" = "xmissheader"; then
785 enable_module="no...header.missing"
786 enable_vzero=$enable_module
787elif test "x$enable_module" = "xforce"; then
788 enable_vzero="yes"
789else
790 enable_vzero=$enable_module
791fi
792
793if test "x$enable_vzero" = "xyes" ; then
794 AC_DEFINE(HLT_VZERO)
795 ALIVZERO_LIBS=$ALIHLTMODULE_LIBS
796else
797 enable_module=$enable_vzero
798fi
799AM_CONDITIONAL(EN_HLT_VZERO, test x$enable_vzero = xyes)
800AC_MSG_CHECKING([whether to compile VZERO library])
801AC_MSG_RESULT([$enable_module])
802AC_SUBST([ALIVZERO_LIBS])
803
804dnl ------------------------------------------------------------------
d6e2c707 805AH_TEMPLATE([HLT_ITS],[hlt its library])
806
807ALIITS_LIBS=
808CHECK_HLTMODULE([its],
48bb48b6 809 [], [],
810 [], [], [],
811 [], [],
812 [])
d6e2c707 813
814if test "x$enable_module" = "xmissheader"; then
815 enable_module="no...header.missing"
50a3793d 816 enable_its=$enable_module
d6e2c707 817elif test "x$enable_module" = "xforce"; then
818 enable_its="yes"
819else
820 enable_its=$enable_module
821fi
822
823if test "x$enable_its" = "xyes" ; then
824 AC_DEFINE(HLT_ITS)
825 ALIITS_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 826else
827 enable_module=$enable_its
d6e2c707 828fi
829AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes)
830AC_MSG_CHECKING([whether to compile ITS library])
831AC_MSG_RESULT([$enable_module])
832AC_SUBST([ALIITS_LIBS])
833
834dnl ------------------------------------------------------------------
e89e6b23 835AH_TEMPLATE([HLT_COMP],[hlt comp library])
836
837ALICOMP_LIBS=
838CHECK_HLTMODULE([comp],
48bb48b6 839 [], [],
840 [], [], [],
841 [], [],
842 [])
e89e6b23 843
844if test "x$enable_module" = "xmissheader"; then
c6b46c3f 845 enable_module="no...header.missing"
50a3793d 846 enable_comp=$enable_module
c6b46c3f 847elif test "x$enable_module" = "xforce"; then
848 enable_comp="yes"
e89e6b23 849else
850 enable_comp=$enable_module
851fi
852
853if test "x$enable_comp" = "xyes" ; then
854 AC_DEFINE(HLT_COMP)
855 ALICOMP_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 856else
857 enable_module=$enable_comp
e89e6b23 858fi
859AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes)
860AC_MSG_CHECKING([whether to compile comp library])
c6b46c3f 861AC_MSG_RESULT([$enable_module])
e89e6b23 862AC_SUBST([ALICOMP_LIBS])
863
864dnl ------------------------------------------------------------------
fc455fba 865AC_MSG_CHECKING([whether to disable AliRoot logging])
866AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging])
867AC_ARG_ENABLE(aliroot-logging,
868 [AC_HELP_STRING([--disable-aliroot-logging],
869 [disable logging through AliRoot logging methods])],
870 [],[enable_aliroot_logging=no])
c018a1bd 871if test "x$have_aliroot" = "xno" ; then
872 enable_aliroot_logging=yes # this means 'disable'
873fi
fc455fba 874if test "x$enable_aliroot_logging" != "xno" ; then
875 AC_DEFINE(NOALIROOT_LOGGING)
b521659f 876fi
fc455fba 877AM_CONDITIONAL(NOALIROOT_LOGGING, test x$enable_aliroot_logging != no)
878AC_MSG_RESULT([$enable_aliroot_logging])
b521659f 879
880dnl ------------------------------------------------------------------
881AC_MSG_CHECKING([whether to enable saving MC data through the chain])
882AH_TEMPLATE([DOMC],[MC saving])
883AC_ARG_ENABLE(mc-saving,
884 [AC_HELP_STRING([--enable-mc-saving],
885 [enable saving MC data through the chain])],
886 [],[enable_mc_saving=no])
887if test "x$enable_mc_saving" = "xyes" ; then
888 AC_DEFINE(DOMC)
889fi
890AC_MSG_RESULT([$enable_mc_saving])
891
892dnl ------------------------------------------------------------------
b521659f 893dnl certainly something old, but we keep the define
894AC_MSG_CHECKING([whether to use ROWHOUGH])
895AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH])
896AC_ARG_ENABLE(rowhough,
897 [AC_HELP_STRING([--enable-rowhough],
898 [use ROWHOUGH ])],
899 [],[enable_rowhough=no])
900if test "x$enable_rowhough" = "xyes" ; then
901 AC_DEFINE(USEROWHOUGH)
902fi
903AC_MSG_RESULT([$enable_rowhough])
904
905dnl ------------------------------------------------------------------
53feaef5 906dnl The ROOTVERSION and ALIROOTVERSION defines were used by the old
907dnl stand-alone build system. This is most likely something old we can
908dnl get rid off later, or do something more reasonable. Since the define
909dnl needs the quotes they have to be escaped. This works well for the
910dnl Makefile but not for the configure script. So we have to add the
911dnl defines after all the other checks.
912CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\""
913if test ! "x$have_aliroot" = "xno" ; then
914 CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\""
915fi
916
917dnl ------------------------------------------------------------------
b521659f 918dnl
919dnl Documentation
920dnl
921AC_ARG_VAR(DOXYGEN, The Documentation Generator)
922AC_PATH_PROG(PERL, perl)
923AC_PATH_PROG(DOXYGEN, doxygen)
5894eaa5 924AC_ARG_ENABLE(dot,
925 [AC_HELP_STRING([--enable-dot],
926 [enable dot documentation generator])],
927 [],[enable_dot=no])
b521659f 928HAVE_DOT=NO
929DOT_PATH=
930AC_PATH_PROG(DOT, dot)
5894eaa5 931if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then
b521659f 932 HAVE_DOT=YES
933 DOT_PATH=`dirname $DOT`
934fi
ae1c1854 935
936AC_MSG_CHECKING([for documentation mode])
937AC_ARG_ENABLE(doc,
938 [AC_HELP_STRING([--disable-doc],
939 [disable documentation build; monolithic build --enable-doc=mono ])],
940 [],[enable_doc=modules])
fb345ed7 941
ae1c1854 942if test "x$DOXYGEN" = "x" ; then
943 enable_doc=no.doxygen
fb345ed7 944elif test "x$enable_doc" = "xyes" ; then
945 enable_doc=yes
ae1c1854 946elif test ! "x$enable_doc" = "xmono" && \
947 test ! "x$enable_doc" = "xmodules" && \
948 test ! "x$enable_doc" = "xno"; then
949 enable_doc=no
950 AC_MSG_WARN([unknown option])
951fi
952if test "x$enable_doc" = "xno" ; then
953 enable_doc=off
954 DOXYGEN=
955fi
956
957AC_MSG_RESULT([$enable_doc])
958AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono")
53e94895 959AM_CONDITIONAL(BUILD_DOC, test ! "x$DOXYGEN" = "x")
b521659f 960AC_SUBST([HAVE_DOT])
961AC_SUBST([DOT_PATH])
962
90ebac25 963dnl HAVE_SRC_SUBDIR=${abs_top_srcdir}/src
964dnl echo $HAVE_SRC_SUBDIR
965dnl if ! test -d $HAVE_SRC_SUBDIR; then
966dnl HAVE_SRC_SUBDIR=
967dnl fi
968dnl AC_SUBST([HAVE_SRC_SUBDIR])
969
b521659f 970dnl ------------------------------------------------------------------
7233bc62 971AC_MSG_NOTICE([---------------------------------------------- ])
972AC_MSG_NOTICE([ build summary ])
973AC_MSG_NOTICE([---------------------------------------------- ])
974
b521659f 975AC_CONFIG_FILES([Makefile
976 BASE/Makefile
53feaef5 977 BASE/setenv.sh
978 BASE/setenv.csh
2be16a33 979 BASE/HOMER/Makefile
242bb794 980 BASE/util/Makefile
4b31e06b 981 BASE/util/test/Makefile
d098ebd4 982 BASE/interface/Makefile
853121af 983 BASE/test/Makefile
1a21074a 984 BASE/interface/test/Makefile
b521659f 985 doc/Makefile
2efb85be 986 doc/doxygen.conf
987 doc/doxymodule.conf])
b521659f 988
7233bc62 989dnl AliRoot and installation directory for libraries
990dnl
991AC_MSG_NOTICE([AliRoot: $have_aliroot])
992AM_CONDITIONAL(HAVE_ALIROOT, test "x$have_aliroot" != "xno" )
993if test "x$have_aliroot" != "xno"; then
994 AC_CONFIG_FILES([sim/Makefile
995 rec/Makefile
652cf9d2 996 rec/test/Makefile
436c2d0c 997 rec/startAliEVE-barrel-tracks.sh
7233bc62 998 shuttle/Makefile
ff4edcee 999 pendolino/Makefile
ce5f90bf 1000 benchmark/Makefile
ed292d06 1001 QA/Makefile
7233bc62 1002 ])
1003fi
1004if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then
1005libdir=\${exec_prefix}/lib/tgt_$ALICE_TARGET
1006AC_MSG_NOTICE([libdir set to $libdir])
1007fi
1008
1009AC_MSG_NOTICE([compile sample library: $enable_sample])
1010if test "x$enable_sample" = "xyes"; then
1011 AC_CONFIG_FILES([SampleLib/Makefile])
1012fi
1013
652cf9d2 1014AC_MSG_NOTICE([compile RCU library: $enable_rcu])
1015if test "x$enable_rcu" = "xyes"; then
1016 AC_CONFIG_FILES([RCU/Makefile
1017 RCU/test/Makefile
1018 ])
1019fi
1020
7233bc62 1021AC_MSG_NOTICE([compile TPC library: $enable_tpc])
1022if test "x$enable_tpc" = "xyes"; then
1023 AC_CONFIG_FILES([TPCLib/Makefile
1024 TPCLib/test/Makefile
1025 TPCLib/mapping2array.cxx
b658d7e4 1026 TPCLib/EVE/Makefile
32e0c022 1027 TPCLib/calibration/Makefile
7233bc62 1028 ])
1029fi
1030
fe8738cf 1031AC_MSG_NOTICE([compile CALO library: $enable_calo])
1032if test "x$enable_calo" = "xyes"; then
1033 AC_CONFIG_FILES([CALO/Makefile
1034 CALO/test/Makefile])
1035fi
1036
7233bc62 1037AC_MSG_NOTICE([compile PHOS library: $enable_phos])
1038if test "x$enable_phos" = "xyes"; then
1039 AC_CONFIG_FILES([PHOS/Makefile])
1040fi
1041
fe8738cf 1042AC_MSG_NOTICE([compile EMCAL library: $enable_emcal])
1043if test "x$enable_emcal" = "xyes"; then
1044 AC_CONFIG_FILES([EMCAL/Makefile])
1045fi
1046
7233bc62 1047AC_MSG_NOTICE([compile TRD library: $enable_trd])
1048if test "x$enable_trd" = "xyes"; then
1049 AC_CONFIG_FILES([TRD/Makefile])
1050fi
1051
50a3793d 1052AC_MSG_NOTICE([compile FMD library: $enable_fmd])
1053if test "x$enable_fmd" = "xyes"; then
1054 AC_CONFIG_FILES([FMD/Makefile])
1055fi
1056
57cd80a1 1057AC_MSG_NOTICE([compile ZDC library: $enable_zdc])
1058if test "x$enable_zdc" = "xyes"; then
1059 AC_CONFIG_FILES([ZDC/Makefile])
1060fi
1061
7233bc62 1062AC_MSG_NOTICE([compile MUON library: $enable_muon])
1063if test "x$enable_muon" = "xyes"; then
1064 AC_CONFIG_FILES([MUON/Makefile])
1065fi
1066
1067AC_MSG_NOTICE([compile ITS library: $enable_its])
1068if test "x$enable_its" = "xyes"; then
1069 AC_CONFIG_FILES([ITS/Makefile])
1070fi
1071
1072AC_MSG_NOTICE([compile trigger library: $enable_trigger])
1073if test "x$enable_trigger" = "xyes"; then
0a76630e 1074 AC_CONFIG_FILES([trigger/Makefile
1075 trigger/test/Makefile])
7233bc62 1076fi
1077
ec6160d5 1078AC_MSG_NOTICE([compile global library: $enable_global])
1079if test "x$enable_global" = "xyes"; then
1080 AC_CONFIG_FILES([global/Makefile])
1081fi
1082
33daad3d 1083AC_MSG_NOTICE([compile jet library: $enable_jet])
1084if test "x$enable_jet" = "xyes"; then
1085 AC_CONFIG_FILES([JET/Makefile])
1086fi
1087
aed3e6fc 1088AC_MSG_NOTICE([compile vzero library: $enable_vzero])
1089if test "x$enable_vzero" = "xyes"; then
1090 AC_CONFIG_FILES([VZERO/Makefile])
1091fi
1092
7233bc62 1093AC_MSG_NOTICE([compile comp library: $enable_comp])
1094if test "x$enable_comp" = "xyes"; then
1095 AC_CONFIG_FILES([comp/Makefile])
1096fi
b521659f 1097
1098AC_OUTPUT
1099dnl
1100dnl EOF
1101dnl
1102