added fluctuations in multiplicity in fixed range
[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)
35AM_INIT_AUTOMAKE
36AC_PROG_CC
37AC_PROG_CXX
38AC_PROG_LIBTOOL
39
40AC_DEBUG
41AC_OPTIMIZATION
dc8f7cb7 42AM_CONDITIONAL(STANDALONE_SAMPLELIB, test 0 )
43
44dnl ------------------------------------------------------------------
45dnl A warning posted into the auto-generated files
46dnl Does NOT concern this file ;-)
47AUTOGENERATED_WARNING="!!!!!!! DO NOT EDIT THIS FILE !!!!!!"
48AC_SUBST([AUTOGENERATED_WARNING])
b521659f 49
50dnl ------------------------------------------------------------------
51dnl
52dnl Check for ROOT
53dnl
54ROOT_PATH(, [have_root=1], [AC_ERROR([Stop! The HLT package needs ROOT.])])
55AM_CONDITIONAL(HAVE_ROOT, test "x$have_root" = "x1" )
53feaef5 56AC_SUBST([ROOTSYS])
dc8f7cb7 57ROOTBINDIR=`dirname $ROOTEXEC`
58AC_SUBST([ROOTBINDIR])
59
dfaa582a 60dnl test for additional required root libraries and headers
61LIBS='-ldl'
62if test "x$have_root" = "x1"; then
63 AC_LANG_PUSH(C++)
64 save_CPPFLAGS=$CPPFLAGS
65 save_LDFLAGS=$LDFLAGS
66 save_LIBS=$LIBS
67 CPPFLAGS=`echo $save_CPPFLAGS; for i in ${ROOTINCDIR}; do echo -n "-I$i " ; done`
68
dc8f7cb7 69 # we check for the libSTEER library which is linked to
70 # - the ROOT libs libGeom libMinuit libVMC libEG
71 # - the AliRoot libESD libRAWData (libRAWDatarec from v4-04-Rev-07)
72 # - ROOT libCint needs also libdl
73 # - from Nov 1 2006 TTreeFormula is needed by AliTagAnalysis and requires
74 # libTreePlayer.so
75 # - from Jan 07 libESD also depends on libXMLIO
fbf4d793 76 # - libSTEER depends on libProofPlayer since Oct 2007 (after v4-07-Release)
0776a74c 77 # - libCDB.so depends on libXMLParser since Mar 11 2009 r 31411
78 ROOT_CHECKLIBS='Geom Minuit EG VMC TreePlayer XMLIO Thread Proof ProofPlayer XMLParser'
dc8f7cb7 79 for CHECKLIB in $ROOT_CHECKLIBS ; do
dc8f7cb7 80 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR}"
81 LIBS="$save_LIBS $ROOTLIBS $ADD_ROOTLIBS"
82 AC_CHECK_LIB([$CHECKLIB],[_init], [ADD_ROOTLIBS="$ADD_ROOTLIBS -l$CHECKLIB"])
83 done
dfaa582a 84
85 # TBuffer.h has been made pure virtual in root v5-15-02 and one
86 # has to derive from TBufferFile.h (needed for BASE/AliHLTMessage.h)
ba4b0dd7 87 AC_CHECK_HEADER([TBufferFile.h], [], [HAVE_NOT_TBUFFERFILE])
dfaa582a 88
0b6c2560 89 # TView.h has been made pure virtual right after root v5-15-02 and one
90 # has to derive from TView3D.h (needed for TPCLib/OnlineDisplay/AliHLTTPCDisplay3D)
ba4b0dd7 91 AC_CHECK_HEADER([TView3D.h], [], [HAVE_NOT_TVIEW3D])
0b6c2560 92
dc8f7cb7 93 CPPFLAGS=$save_CPPFLAGS
94 LDFLAGS=$save_LDFLAGS
95 LIBS=$save_LIBS
dfaa582a 96 AC_LANG_POP(C++)
dc8f7cb7 97fi
b521659f 98
99dnl ------------------------------------------------------------------
100# TODO: make this configurable through arguments
101#Define whether you want to run with ALIROOT or only ROOT
102AH_TEMPLATE([ALIHLT_USEPACKAGE],[running environment])
103ALIHLT_USEPACKAGE=ALIROOT
104#ALIHLT_USEPACKAGE=ROOT
105#ALIHLT_USEPACKAGE=STANDALONE
106AC_DEFINE(use_aliroot)
107AC_DEFINE(use_root)
85869391 108CPPFLAGS="$CPPFLAGS ${ROOTCFLAGS}"
7233bc62 109save_CPPFLAGS=$CPPFLAGS
110save_LDFLAGS=$LDFLAGS
111save_LIBS=$LIBS
85869391 112
113dnl ------------------------------------------------------------------
74c73e5a 114dnl check for AliRoot features
115AC_LANG_PUSH(C++)
74c73e5a 116have_aliroot=no
2bbbadd1 117AC_ARG_WITH(aliroot,[ --with-aliroot top of the AliRoot installation],
118 [test -d $with_aliroot && ALICE_ROOT=$with_aliroot],
119 [])
120
121if test "x$ALICE_ROOT" != "x" && test -d $ALICE_ROOT ; then
122 dnl ------------------------------------------------------------------
123 dnl Try to estimate the system architecture
124 case $host_os:$host_cpu in
125 linux*:x86_64*) alice_target='linuxx8664gcc' ;;
126 linux*) alice_target='linux' ;;
127 *) alice_target='unknown' ;;
128 esac
129 if test "x$alice_target" = "xunknown" ; then
130 if test -z $ALICE_TARGET ; then
131 AC_MSG_ERROR([Can not estimate system architecture.
132 To avoid the problem, set the ALICE_TARGET variable appropriately.
133 Please send the following information to Matthias.Richter@ift.uib.no:
134 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
135 else
136 AC_MSG_NOTICE([Unknown system architecture.
137 Please send the following information to Matthias.Richter@ift.uib.no:
138 ${PACKAGE}: no AliRoot target definition for os=$host_os and cpu=$host_cpu ])
139 fi
140 else
141 if test "x$ALICE_TARGET" != "x" && test "x$ALICE_TARGET" != "x$alice_target" ; then
142 AC_MSG_WARN([The ALICE_TARGET variable does not match your current system
143 overriding $ALICE_TARGET by $alice_target])
144 fi
145 ALICE_TARGET=$alice_target
146 fi
dc8f7cb7 147 ALIROOTBINDIR=${ALICE_ROOT}/bin/tgt_${ALICE_TARGET}
74c73e5a 148 ALIROOTLIBDIR=${ALICE_ROOT}/lib/tgt_${ALICE_TARGET}
149 ALIROOTINCDIR=${ALICE_ROOT}/include
dc8f7cb7 150 test -d ${ALIROOTBINDIR} || AC_MSG_WARN([can not find AliRoot binary directory $ALIROOTBINDIR])
2bbbadd1 151 test -d ${ALIROOTLIBDIR} || AC_MSG_WARN([can not find AliRoot library directory $ALIROOTLIBDIR])
152 test -d ${ALIROOTINCDIR} || AC_MSG_WARN([can not find AliRoot include directory $ALIROOTINCDIR])
74c73e5a 153fi
2bbbadd1 154
155AC_MSG_CHECKING([for AliRoot])
74c73e5a 156if test "x$ALICE_ROOT" != "x" \
dc8f7cb7 157 && test -d ${ALIROOTBINDIR} \
74c73e5a 158 && test -d ${ALIROOTLIBDIR} \
159 && test -d ${ALIROOTINCDIR}; then
160 have_aliroot=$ALICE_ROOT
161else
dc8f7cb7 162 ALIROOTBINDIR=
74c73e5a 163 ALIROOTLIBDIR=
164 ALIROOTINCDIR=
165fi
166AC_MSG_RESULT([$have_aliroot])
167
168if test ! "x$have_aliroot" = "xno" ; then
74c73e5a 169 ALIROOT_CPPFLAGS="-I${ALIROOTINCDIR} -I${ALICE_ROOT}/RAW"
170 ALIROOT_LDFLAGS="-L${ALIROOTLIBDIR}"
cef8ce36 171 ALIROOT_LIBS="$ADD_ROOTLIBS"
74c73e5a 172 save_CPPFLAGS=$CPPFLAGS
173 save_LDFLAGS=$LDFLAGS
174 save_LIBS=$LIBS
175 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
db16520a 176 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
2bbbadd1 177
f8c5e339 178 # check for certain AliRoot libraries/files/features
c018a1bd 179 # libSTEERBase present since Aug 7 2007
1df31a70 180 # ###########################################
181 # temporary workaround for circular dependency libSTEERbase libSTEER
182 # https://savannah.cern.ch/bugs/index.php?49914
183 # disable the sequence of checks and load libraries in parallel
184 ALIROOT_LIBS="$ALIROOT_LIBS -lAOD -lCDB -lRAWDatabase -lRAWDatarec -lESD -lSTEER"
98a0e47f 185 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
c018a1bd 186 CHECKLIB=STEERBase
187 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
188
98a0e47f 189 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
f5bf5fc3 190 CHECKLIB=AOD
191 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
192
cef8ce36 193 # CBD library is present since AliRoot version v4-05-00 (02.06.2006)
98a0e47f 194 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
cef8ce36 195 CHECKLIB=CDB
196 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
197
2bbbadd1 198 # splitted RAW libraries since AliRoot version v4-04-Rev-07 (09.08.2006)
199 have_alirawdata=no
200 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
201 CHECKLIB=RAWDatabase
202 AC_CHECK_LIB([$CHECKLIB],[_init],
203 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
cef8ce36 204 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lESD -lSTEER"
2bbbadd1 205 CHECKLIB=RAWDatarec
206 AC_CHECK_LIB([$CHECKLIB],[_init],
207 [ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"
2bbbadd1 208 have_alirawdata=$CHECKLIB])],
209 [# second pass with -RAWData
210 CHECKLIB="-lRAWData"
211 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $CHECKLIB -lSTEER"
212 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>
213 #include <AliRawReaderFile.h>
214 #include <AliRawReaderDate.h>
215 #include <AliRawReaderRoot.h>],
216 [AliRawReaderMemory mreader;
217 AliRawReaderFile freader;
218 AliRawReaderDate dreader(NULL,0);
219 AliRawReaderRoot rreader(NULL,0);])],
e962f438 220 [ALIROOT_LIBS="$ALIROOT_LIBS $CHECKLIB"
2bbbadd1 221 have_alirawdata=$CHECKLIB],
222 [have_alirawdata=no])
223 ]) dnl AC_CHECK_LIB RAWDatabase
fa274626 224 AC_MSG_CHECKING([for AliRawReader classes in RAWData libraries])
225 AC_MSG_RESULT([$have_alirawdata])
226
fbf4d793 227 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS -lSTEER"
cef8ce36 228 CHECKLIB=ESD
fbf4d793 229 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"])
230
231 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
232 CHECKLIB=STEER
233 AC_CHECK_LIB([$CHECKLIB],[_init],[ALIROOT_LIBS="$ALIROOT_LIBS -l$CHECKLIB"],[have_aliroot=no])
234
235 dnl
236 dnl check whether AliLog supports notification callback
237 dnl
238 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
239 have_alilog_notification=no
240 if test ! "x$have_aliroot" = "xno" ; then
241 AC_MSG_CHECKING([whether AliLog supports notification callback])
242 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliLog.h>],
243 [AliLog::AliLogNotification fct])],
244 [have_alilog_notification=yes],
245 [AC_DEFINE(NO_ALILOG_NOTIFICATION)])
246 AC_MSG_RESULT([$have_alilog_notification])
247 fi
248
249 if test "x$have_aliroot" = "xno" ; then
250 # 2007-08-18 dont reset ALIROOT_CPPFLAGS in order to allow compilation
251 # but library dependencies might not be resolved completely
252 #ALIROOT_CPPFLAGS=
253 AC_MSG_WARN([some of the AliRoot library dependencies are not resolved.
254 This can happen from time to time due to development in AliRoot. You can
255 force compilation of detector libs by --enable-<detector>, but be aware
256 of unresolved references at runtime.])
257 AC_MSG_WARN([ ------------------------------------------ ])
258 AC_MSG_WARN([ Report this to $PACKAGE_BUGREPORT ])
259 AC_MSG_WARN([ please include config.log ])
260 AC_MSG_WARN([ ------------------------------------------ ])
261 ALIROOT_LDFLAGS=
262 ALIROOT_LIBS=
263 fi
264
f5bf5fc3 265 dnl
f527516f 266 dnl ESD supports non-std content
267 dnl
268 have_esd_nonstd=no
269 AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>
270 #include <AliExternalTrackParam.h>
271 #include <TTree.h>
272 #include <TClonesArray.h>],
273 [AliESDEvent esd;
274 esd.CreateStdContent();
275 TTree* tree=new TTree("esdTree", "Tree with HLT ESD objects");
f527516f 276 TClonesArray* a=new TClonesArray("AliExternalTrackParam");
277 a->SetName("SomeObject");
278 esd.AddObject(a);
50a3793d 279 esd.WriteToTree(tree);
f527516f 280 if (!tree->FindBranch("SomeObject")) return 1;
281 return 0;])],
282 [have_esd_nonstd=yes],
283 [AC_DEFINE(HAVE_NOT_ESD_NONSTD)])
284 AC_MSG_CHECKING(whether ESD supports non standard content)
285 AC_MSG_RESULT([$have_esd_nonstd])
286
287 dnl
83cb7e1d 288 dnl ESD copy function added May 9 2008 rev 25667
289 dnl
f527516f 290 if test "x$have_esd_nonstd" != "xyes"; then
83cb7e1d 291 have_esd_copy=no
292 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliESDEvent.h>],
293 [AliESDEvent esd1;
294 AliESDEvent esd2;
295 esd2=esd1;])],
9877121c 296 [have_esd_copy=yes],
297 [AC_DEFINE(HAVE_NOT_ESD_COPY)])
83cb7e1d 298 AC_MSG_CHECKING(for ESD assignment operator)
299 AC_MSG_RESULT([$have_esd_copy])
f527516f 300 fi
83cb7e1d 301
302 dnl
296b5188 303 dnl AliRawReaderMemory support for multiple buffers added
c03e064d 304 dnl revision 26829 Jun 2008
296b5188 305 dnl
306 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/RAW"
307 have_rawreadermemory_multbuffers=no
308 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRawReaderMemory.h>],
309 [AliRawReaderMemory rr;
310 rr.AddBuffer(NULL, 0, 0);])],
311 [have_rawreadermemory_multbuffers=yes],
312 [AC_DEFINE(HAVE_NOT_ALIRAWREADERMEMORY_ADDBUFFER)])
c03e064d 313 AC_MSG_CHECKING(AliRawReaderMemory support for multiple buffers)
296b5188 314 AC_MSG_RESULT([$have_rawreadermemory_multbuffers])
315
316 dnl
a553c904 317 dnl Changes in the magnetic field implementation
318 dnl revision 30848 Feb 1 2009
319 dnl
320 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/STEER"
321 have_alimagf30848=no
322 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMagF.h>],
323 [int test=AliMagF::k5kG;])],
324 [have_alimagf30848=yes],
325 [AC_DEFINE(HAVE_NOT_ALIMAGF30848)])
326 AC_MSG_CHECKING(AliMagF contains field definitions)
327 AC_MSG_RESULT([$have_alimagf30848])
328
329 dnl
330 dnl Cleanup of the RunLoader implementation
331 dnl revision 30859 Feb 2 2009
332 dnl
333 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/STEER"
334 have_alirunloader30859=no
335 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliRunLoader.h>],
336 [AliRunLoader* rl=AliRunLoader::Instance();])],
337 [have_alirunloader30859=yes],
338 [AC_DEFINE(HAVE_NOT_ALIRUNLOADER30859)])
339 AC_MSG_CHECKING(AliRunLoader::Instance)
340 AC_MSG_RESULT([$have_alirunloader30859])
341
342 dnl
fbf4d793 343 dnl required header files and libraries for modules
f5bf5fc3 344 dnl
04dbc9e4 345
f59fee6d 346 dnl
347 dnl Check for the interface of AliExternalTrackParam which has been changed
348 dnl in revision 1.17 of AliExternalTrackParam.h (AliRoot version v4-05-04
349 dnl or higher)
350 externaltrackparam_version=1
351 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliExternalTrackParam.h>],
352 [AliExternalTrackParam trackparam;
353 Double_t param[[5]]; Double_t covar[[15]];
354 trackparam.Set(0., 0., param, covar);])],
355 [externaltrackparam_version=2],
356 [AC_DEFINE(EXTERNALTRACKPARAM_V1)])
357 AC_MSG_CHECKING(for version of AliExternalTrackParam)
358 AC_MSG_RESULT($externaltrackparam_version)
359
4646c6e3 360 dnl The AliShuttleInterface was changed in rev 29388. Some return types
361 dnl had been const, now changed according to gcc 4.3 warnings
362 AC_MSG_CHECKING(for version of AliShuttleInterface.h)
363 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/"
364 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
365 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
366 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliShuttleInterface.h>],
367 [class dummy : public AliShuttleInterface {
368 public:
369 const UInt_t GetStartTimeDCSQuery() {;}
370 };])],
371 [AC_DEFINE(SHUTTLE_PRE_REV29388_INTERFACE)
372 alishuttleinterface_version=pre.rev.29388],
373 [alishuttleinterface_version=up.to.date])
374 AC_MSG_RESULT([$alishuttleinterface_version])
375
74c73e5a 376 CPPFLAGS=$save_CPPFLAGS
377 LDFLAGS=$save_LDFLAGS
378 LIBS=$save_LIBS
7233bc62 379fi # if test ! "x$have_aliroot" = "xno"
f59fee6d 380
74c73e5a 381AC_LANG_POP(C++)
5f5b708b 382AC_SUBST([ALICE_ROOT])
74c73e5a 383AC_SUBST([ALIROOT_CPPFLAGS])
384AC_SUBST([ALIROOT_LDFLAGS])
dc8f7cb7 385AC_SUBST([ALIROOTBINDIR])
53feaef5 386AC_SUBST([ALIROOTLIBDIR])
74c73e5a 387AC_SUBST([ALIROOT_LIBS])
0f51f5b8 388AM_CONDITIONAL(USE_TPC_MAPPING, test x$have_tpc_mapping = xyes)
85869391 389
6c1a9d9e 390HLTBASE_CPPFLAGS='-I${top_srcdir}/BASE'
391HLTBASE_LDFLAGS=
392AC_SUBST([HLTBASE_CPPFLAGS])
393AC_SUBST([HLTBASE_LDFLAGS])
394
85869391 395dnl ------------------------------------------------------------------
78b557c2 396dnl check for the HLT PubSub Framework
f8c5e339 397dnl namely for the existence of the HOMER library
398dnl from Sep 2007, the HOMER lib has been incorporated into the alice-hlt
399dnl package. It os though possible to choose an external. library
400dnl In order to make the origni of the HOMER lib clear, the one in AliRoot
401dnl got the name libAliHLTHOMER
78b557c2 402AC_MSG_CHECKING([for HLT PubSub Framework])
403AC_ARG_WITH(pubsub, [installation path of the HLT PubSub framework],
404 [],
405 [ test -n $ALIHLT_DC_DIR && with_pubsub=$ALIHLT_DC_DIR ])
406if test -z $with_pubsub || ! test -d $with_pubsub ; then
407 with_pubsub=no
408fi
409AC_MSG_RESULT([$with_pubsub])
f8c5e339 410HOMER_VERSION=2
5f1685a0 411HOMER_LIBS=
78b557c2 412
413AH_TEMPLATE([HAVE_HOMERREADER],[the HLT PubSub Homer Reader interface])
414if test "x$with_pubsub" != "xno" ; then
415 save_CPPFLAGS=$CPPFLAGS
416 save_LDFLAGS=$LDFLAGS
417 save_LIBS=$LIBS
4a6b4894 418 # currently the different versions of the HLT PubSub framework have a different
419 # directory layout
20b6dd9a 420 if test -d ${with_pubsub}/include/HOMER ; then
5235c3e9 421 # the 'early' location of the include files with separated HOMER sub dirs
9ce4bf4a 422 HOMER_INCDIRS="${with_pubsub}/include/HOMER ${with_pubsub}/include/HOMER/reader"
5235c3e9 423 elif test -d ${with_pubsub}/include/Util/HOMER ; then
424 # location for HLT Framework versions after Sep 2006
9ce4bf4a 425 HOMER_INCDIRS="${with_pubsub}/include/Util/HOMER"
5235c3e9 426 elif test -d ${with_pubsub}/src/Util/HOMER/include ; then
427 # fall back if include files were not installed (versions after Sep 06)
9ce4bf4a 428 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/include"
4a6b4894 429 else
5235c3e9 430 # fall back if include files were not installed (versions before Sep 06)
9ce4bf4a 431 HOMER_INCDIRS="${with_pubsub}/src/Util/HOMER/reader/include ${with_pubsub}/src/Util/HOMER/data/include"
4a6b4894 432 fi
9ce4bf4a 433 HOMER_CPPFLAGS=`for i in ${HOMER_INCDIRS}; do echo -n "-I$i " ; done`
5894eaa5 434
435 AC_ARG_ENABLE(pubsub-debug,
436 [AC_HELP_STRING([--disable-pubsub-debug],
437 [force the production version of the PubSub framework])],
438 [],[enable_pubsub_debug=yes])
439 homer_type="none"
440 HOMER_TARGET="`uname -s`-`uname -m`"
441 AC_MSG_CHECKING([for HLT PubSub Framework release type])
442 if test -d "${with_pubsub}/lib/${HOMER_TARGET}-release" ; then
443 homer_type="production"
444 HOMER_TARGET="${HOMER_TARGET}-release"
445 elif test "x$enable_pubsub_debug" = "xyes" && test -d "${with_pubsub}/lib/${HOMER_TARGET}-debug" ; then
446 homer_type="debug"
447 HOMER_TARGET="${HOMER_TARGET}-debug"
448 fi
449 AC_MSG_RESULT([${homer_type}])
f8c5e339 450 HOMERREADER_HEADER=HOMERReader.h
5894eaa5 451 HOMER_BINDIR="${with_pubsub}/bin/${HOMER_TARGET}"
452 HOMER_LIBDIR="${with_pubsub}/lib/${HOMER_TARGET}"
53feaef5 453 HOMER_LDFLAGS="-L${HOMER_LIBDIR}"
78b557c2 454 CPPFLAGS="$save_CPPFLAGS $HOMER_CPPFLAGS"
455 LDFLAGS="$save_LDFLAGS $HOMER_LDFLAGS"
456 LIBS="$save_LIBS "
457 with_homer=no
458 AC_LANG_PUSH(C++)
f8c5e339 459 AC_CHECK_HEADER([$HOMERREADER_HEADER],
5f1685a0 460 [ AC_CHECK_LIB([HOMER],[_init],
461 [with_homer=yes
462 HOMER_LIBS="-lHOMER"],
463 [ AC_CHECK_LIB([HOMERReader],[_init],
464 [with_homer=yes
465 HOMER_LIBS="-lHOMERReader"])])
466 LIBS="$LIBS $HOMER_LIBS"
9ce4bf4a 467 AC_MSG_CHECKING([version of HOMER library])
5f1685a0 468 dnl The Homer library has no versioning, so we do our own
469 dnl version description
470 dnl ----------------------------------------------------------------------
471 dnl 1 inintial version
472 dnl 2 GetBlockStatusFlags added to the interface
473 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <HOMERReader.h>],
474 [HOMERReader reader("dummy", 0);
475 reader.GetBlockStatusFlags(0);])],
f8c5e339 476 [],
477 [HOMER_VERSION=1])
5f1685a0 478 AC_MSG_RESULT([$HOMER_VERSION])
f8c5e339 479 ],
480 [HOMERREADER_HEADER=]) #AC_CHECK_HEADER([$HOMERREADER_HEADER])
78b557c2 481 AC_LANG_POP(C++)
f8c5e339 482 HOMER_INBUILT_LIB=
483else
484dnl no pubsub version defined, check if the HOMER lib is available in AliRoot
485 topdir=`dirname $0`
486 HOMER_CPPFLAGS="-I`(cd $topdir; pwd)`/BASE/HOMER"
487 HOMERREADER_HEADER=AliHLTHOMERReader.h
488 HOMER_INBUILT_LIB=`pwd`/BASE/HOMER/libAliHLTHOMER.la
489 HOMER_BINDIR=
490 HOMER_LIBDIR=
491 HOMER_LDFLAGS=
492fi
493
78b557c2 494 if test "x$with_homer" = "xno" ; then
495 HOMER_CPPFLAGS=
496 HOMER_LDFLAGS=
5f1685a0 497 HOMER_LIBS=
78b557c2 498 else
5f1685a0 499 HOMER_CPPFLAGS="$HOMER_CPPFLAGS -DHOMER_VERSION=$HOMER_VERSION"
78b557c2 500 AC_DEFINE(HAVE_HOMERREADER)
501 fi
502 CPPFLAGS="$save_CPPFLAGS"
503 LDFLAGS="$save_LDFLAGS"
504 LIBS="$save_LIBS"
f8c5e339 505
506AC_SUBST([HOMERREADER_HEADER])
507AC_SUBST([HOMER_INBUILT_LIB])
78b557c2 508AC_SUBST([HOMER_CPPFLAGS])
509AC_SUBST([HOMER_LDFLAGS])
53feaef5 510AC_SUBST([HOMER_LIBDIR])
511AC_SUBST([HOMER_BINDIR])
5f1685a0 512AC_SUBST([HOMER_LIBS])
78b557c2 513
514dnl ------------------------------------------------------------------
7233bc62 515AC_ARG_ENABLE(all,
516 [AC_HELP_STRING([--disable-all],
517 [disable all detector modules, individual modules can be switched on by --enable-det])],
518 [disable_all=yes],[])
519
520dnl ------------------------------------------------------------------
85869391 521AC_MSG_CHECKING([whether to impose strict coding conventions])
522AC_ARG_ENABLE(strict,
2028353f 523 [AC_HELP_STRING([--disable-strict],
524 [disable coding convention checks ])],
525 [],[enable_strict=yes])
85869391 526if test "x$enable_strict" = "xyes" ; then
f7561f8d 527 CPPFLAGS="$CPPFLAGS -W -Weffc++ -Wall -Wshadow"
85869391 528fi
529AC_MSG_RESULT([$enable_strict])
b521659f 530
531dnl ------------------------------------------------------------------
5b6ab198 532AC_MSG_CHECKING([whether to enable component statistics])
533AC_ARG_ENABLE(component-stat,
534 [AC_HELP_STRING([--enable-component-stat],
535 [enable component statistics ])],
536 [],[enable_component_stat=no])
537if test "x$enable_component_stat" = "xyes" ; then
538 AC_DEFINE(HLT_COMPONENT_STATISTICS)
539fi
540AC_MSG_RESULT([$enable_component_stat])
541
542dnl ------------------------------------------------------------------
cad2d06c 543dnl ---- module checks
544dnl ------------------------------------------------------------------
545save_CPPFLAGS=$CPPFLAGS
546save_LDFLAGS=$LDFLAGS
547save_LIBS=$LIBS
548
549dnl ------------------------------------------------------------------
b521659f 550AC_MSG_CHECKING([whether to compile sample library])
551AH_TEMPLATE([HLT_SAMPLE],[hlt sample library])
552AC_ARG_ENABLE(sample,
c018a1bd 553 [AC_HELP_STRING([--disable-sample],
b521659f 554 [compile the sample library ])],
2e742d30 555 [],
556 [if test "x$have_aliroot" = "xno" ; then
557 enable_sample="no...requires.AliRoot"
558 else
559 enable_sample=yes
560 fi
561 ])
562
b521659f 563if test "x$enable_sample" = "xyes" ; then
564 AC_DEFINE(HLT_SAMPLE)
565fi
566AM_CONDITIONAL(EN_HLT_SAMPLE, test x$enable_sample = xyes)
567AC_MSG_RESULT([$enable_sample])
568
569dnl ------------------------------------------------------------------
c018a1bd 570AC_MSG_CHECKING([whether to compile util library])
571AH_TEMPLATE([HLT_UTIL],[HLT utility library])
572AC_ARG_ENABLE(util,
573 [AC_HELP_STRING([--disable-util],
574 [compile the util library ])],
2e742d30 575 [],
576 [if test "x$have_aliroot" = "xno" ; then
577 enable_util="no...requires.AliRoot"
578 else
579 enable_util=yes
580 fi
581 ])
c018a1bd 582
583if test "x$enable_util" = "xyes" ; then
584 AC_DEFINE(HLT_UTIL)
585fi
586AM_CONDITIONAL(EN_HLT_UTIL, test x$enable_util = xyes)
587AC_MSG_RESULT([$enable_util])
588
589dnl ------------------------------------------------------------------
b521659f 590AH_TEMPLATE([HLT_TPC],[hlt tpc library])
f59fee6d 591
e642ae99 592ALITPC_LIBS=
f59fee6d 593CHECK_HLTMODULE([tpc],
e962f438 594 [AliTPCRawStream.h],
595 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/TPC],
70d00903 596 [Gui ANALYSIS STAT], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
e642ae99 597 [TPCbase TPCrec TPCcalib], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
f59fee6d 598 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
599
c6b46c3f 600if test "x$enable_module" = "xmissheader"; then
601 enable_module="no...missing.headers"
50a3793d 602 enable_tpc=$enable_module
c6b46c3f 603elif test "x$enable_module" = "xforce"; then
604 enable_tpc="yes"
f59fee6d 605else
606 enable_tpc=$enable_module
607fi
2e742d30 608
b521659f 609if test "x$enable_tpc" = "xyes" ; then
e642ae99 610 AC_LANG_PUSH(C++)
b521659f 611 AC_DEFINE(HLT_TPC)
e642ae99 612 ALITPC_LIBS=$ALIHLTMODULE_LIBS
613 dnl
614 dnl Check for functionality in the TPC reconstruction required for online
615 dnl processing
616 dnl
617 have_tpc_hltoffline_rec=no
618 AC_MSG_CHECKING(for on-line features of TPC offline reconstruction)
619 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/TPC"
620 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
621 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALITPC_LIBS"
622 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliTPCtrackerMI.h>
623 #include <AliTPCclustererMI.h>
624 #include <TObjArray.h>],
625 [AliTPCtrackerMI tracker;
626 TObjArray* array=NULL;
627 tracker.LoadClusters(array);
628 AliTPCclustererMI cl(NULL, NULL);
89c2e505 629 cl.GetOutputClonesArray();])],
e642ae99 630 [have_tpc_hltoffline_rec=yes],
631 [AC_DEFINE(HAVE_NOT_TPCOFFLINE_REC)])
cad2d06c 632 LIBS=$save_LIBS
e642ae99 633 AC_MSG_RESULT([$have_tpc_hltoffline_rec])
634
635 AC_CHECK_HEADER([AliTPCCalibPulser.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPULSER)])
636 AC_CHECK_HEADER([AliTPCCalibPedestal.h], [], [AC_DEFINE(HAVE_NOT_ALITPCCALIBPEDESTAL)])
a553c904 637 AC_CHECK_HEADER([AliAltroRawStreamV3.h], [], [AC_DEFINE(HAVE_NOT_ALTRORAWSTREAMV3)])
e642ae99 638
639 have_tpc_mapping=no
640 if test ! "x$have_aliroot" = "xno" ; then
641 # the TPCLib/AliHLTTPCRawReader needs the actual Pad layout of the TPC
642 # which is stored in the TPC/mapping/Patchx.data files from
643 # AliRoot version v4-04-Release (May 2006)
644 AH_TEMPLATE([HAVE_TPC_MAPPING],[TPC pad mapping available])
645 TPC_PAD_MAPPING_PATH=$have_aliroot/TPC/mapping
646 AC_CHECK_FILE( [$TPC_PAD_MAPPING_PATH/Patch0.data],
647 [have_tpc_mapping=yes
648 AC_SUBST(TPC_PAD_MAPPING_PATH)
649 AC_DEFINE(HAVE_TPC_MAPPING)],
650 [])
651
652 fi
653 AC_MSG_CHECKING([for TPC mapping layout])
654 AC_MSG_RESULT([$have_tpc_mapping])
655 AC_LANG_POP(C++)
656
adec4ad4 657else
658 enable_module=$enable_tpc
b521659f 659fi
660AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
d6e2c707 661AC_MSG_CHECKING([whether to compile TPC library])
c6b46c3f 662AC_MSG_RESULT([$enable_module])
f59fee6d 663AC_SUBST([ALITPC_LIBS])
b521659f 664
665dnl ------------------------------------------------------------------
5e3820e2 666AH_TEMPLATE([HLT_RCU],[hlt rcu library])
667
668CHECK_HLTMODULE([rcu],
669 [AliAltroDecoder.h],
670 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/RAW],
671 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
672 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
673 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
674
675if test "x$enable_module" = "xmissheader"; then
676 enable_module="no...missing.headers"
50a3793d 677 enable_rcu=$enable_module
5e3820e2 678elif test "x$enable_module" = "xforce"; then
679 enable_rcu="yes"
680else
681 AC_LANG_PUSH(C++)
5e3820e2 682 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
683 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
684 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS"
685 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliAltroDecoder.h>],
686 [AliAltroDecoder decoder;
687 decoder.CopyBackward(NULL, 0);])],
688 [enable_rcu=$enable_module],
689 [enable_module="no...requires.AliRoot>v4-10-Release"
690 enable_rcu="no...requires.AliRoot>v4-10-Release"])
691 CPPFLAGS=$save_CPPFLAGS
692 LDFLAGS=$save_LDFLAGS
693 LIBS=$save_LIBS
694 AC_LANG_POP(C++)
695fi
696
697if test "x$enable_rcu" = "xyes" ; then
698 AC_DEFINE(HLT_RCU)
adec4ad4 699else
700 enable_module=$enable_rcu
5e3820e2 701fi
702AM_CONDITIONAL(EN_HLT_RCU, test x$enable_rcu = xyes)
d6e2c707 703AC_MSG_CHECKING([whether to compile RCU library])
5e3820e2 704AC_MSG_RESULT([$enable_module])
705AC_SUBST([ALIRCU_LIBS])
706
707dnl ------------------------------------------------------------------
c160eda8 708AH_TEMPLATE([HLT_PHOS],[hlt phos library])
f59fee6d 709
710ALIPHOS_LIBS=
711CHECK_HLTMODULE([phos],
712 [], [$ALIROOT_CPPFLAGS],
713 [RAWDatasim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS],
70979a80 714 [PHOSUtils PHOSbase PHOSrec PHOSsim PHOSshuttle], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
f59fee6d 715 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
716
c6b46c3f 717if test "x$enable_module" = "xmissheader"; then
718 enable_module="no...requires.AliRoot>v4-05-07"
50a3793d 719 enable_phos=$enable_module
c6b46c3f 720elif test "x$enable_module" = "xforce"; then
721 enable_phos="yes"
f59fee6d 722else
723 have_alicalorawstream=no
724 if test ! "x$have_aliroot" = "xno" ; then
725 AC_LANG_PUSH(C++)
726 save_CPPFLAGS="$CPPFLAGS"
727 # this can not be used as AliCaloRawStream.h indirectly depends on TString.h
728 #AC_CHECK_HEADERS([AliCaloRawStream.h], [have_alicalorawstream=yes])
56584e00 729 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/PHOS"
f59fee6d 730 AC_MSG_CHECKING([for AliCaloRawStream.h usability])
731 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <TString.h>
732 #include <AliCaloRawStream.h>],
733 [int i])],
734 [AC_DEFINE(HAVE_ALICALORAWSTREAM)
735 have_alicalorawstream=yes],
736 [])
ae1c1854 737 AC_MSG_RESULT([$have_aliphosrecoparam])
738 AC_MSG_CHECKING([for required EMC functionality in AliPHOSRecoParam.h ])
739 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliPHOSRecoParam.h>],
740 [AliPHOSRecoParam param;
741 param.GetEMCClusteringThreshold()])],
742 [have_aliphosrecoparam=yes],
743 [AC_DEFINE(HAVE_NOT_PHOSRECOPARAMEMC)])
f59fee6d 744 AC_MSG_RESULT([$have_alicalorawstream])
745 AC_LANG_POP(C++)
746 CPPFLAGS="$save_CPPFLAGS"
747 fi
748 if test "x$have_alicalorawstream" != "xyes"; then
749 enable_phos="no...requires.AliRoot>v4-05-07"
750 else
751 enable_phos=$enable_module
752 fi
753fi
2e742d30 754
c160eda8 755if test "x$enable_phos" = "xyes" ; then
756 AC_DEFINE(HLT_PHOS)
f59fee6d 757 ALIPHOS_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 758else
759 enable_module=$enable_phos
c160eda8 760fi
761AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
d6e2c707 762AC_MSG_CHECKING([whether to compile PHOS library])
c6b46c3f 763AC_MSG_RESULT([$enable_module])
f59fee6d 764AC_SUBST([ALIPHOS_LIBS])
c160eda8 765
c6b46c3f 766dnl ------------------------------------------------------------------
767AH_TEMPLATE([HLT_TRD],[hlt trd library])
768
f59fee6d 769ALITRD_LIBS=
770CHECK_HLTMODULE([trd],
771 [], [],
b3f74118 772 [MLP XMLParser], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
f59fee6d 773 [TRDbase TRDrec TRDsim], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
774 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
775
c6b46c3f 776if test "x$enable_module" = "xmissheader"; then
777 enable_module="no...requires.AliRoot>v4-07-Release"
50a3793d 778 enable_trd=$enable_module
c6b46c3f 779elif test "x$enable_module" = "xforce"; then
780 enable_trd="yes"
f59fee6d 781else
782 enable_trd=$enable_module
783 if test "x$enable_trd" = "xyes" ; then
784 AC_LANG_PUSH(C++)
785 save_CPPFLAGS="$CPPFLAGS"
786 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/TRD"
adec4ad4 787 # AliTRDclusterizer::SetRawVersion() requires >v4-07-Release
788 # changed to AliTRDrecoParam::SetSeedingOn() due to revision 26327, Mon Jun 2 2008
0d66dbf5 789 # changed to AliTRDReconstructor::SetStreamLevel() due to revision 27797, Tue Aug 5 2008
ae5bf1dd 790 # changed to AliTRDReconstructor::SetClusters() according to revision 28069, Mon Aug 18 2008
cef8ce36 791 # changed to AliTRDCluster according to revision 30461, Thu Dec 18 2008
792 AC_MSG_CHECKING([for required functions in AliTRDCluster])
793 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliTRDcluster.h>],
794 [AliTRDcluster c;
795 c.SetDetector(0)])],
f59fee6d 796 [],
cef8ce36 797 [enable_trd="no...requires.AliRoot>v4-16-Release"])
f59fee6d 798 AC_MSG_RESULT([$enable_trd])
799 AC_LANG_POP(C++)
800 CPPFLAGS="$save_CPPFLAGS"
801 fi
802fi
2e742d30 803
0f51f5b8 804if test "x$enable_trd" = "xyes" ; then
805 AC_DEFINE(HLT_TRD)
f59fee6d 806 ALITRD_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 807else
808 enable_module=$enable_trd
0f51f5b8 809fi
810AM_CONDITIONAL(EN_HLT_TRD, test x$enable_trd = xyes)
d6e2c707 811AC_MSG_CHECKING([whether to compile TRD library])
c6b46c3f 812AC_MSG_RESULT([$enable_module])
f59fee6d 813AC_SUBST([ALITRD_LIBS])
0f51f5b8 814
815dnl ------------------------------------------------------------------
629266d1 816AH_TEMPLATE([HLT_FMD],[hlt fmd library])
817
818ALIFMD_LIBS=$ALIHLTMODULE_LIBS
819CHECK_HLTMODULE([fmd],
820 [], [],
821 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
50a3793d 822 [FMDbase FMDrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
629266d1 823 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
824
825if test "x$enable_module" = "xmissheader"; then
50a3793d 826 enable_module="no...missing.headers"
827 enable_fmd=$enable_module
629266d1 828elif test "x$enable_module" = "xforce"; then
829 enable_fmd="yes"
830else
831 enable_fmd=$enable_module
629266d1 832fi
833
834if test "x$enable_fmd" = "xyes" ; then
835 AC_DEFINE(HLT_FMD)
836 ALIFMD_LIBS=$ALIHLTMODULE_LIBS
837else
838 enable_module=$enable_fmd
839fi
840AM_CONDITIONAL(EN_HLT_FMD, test x$enable_fmd = xyes)
841AC_MSG_CHECKING([whether to compile FMD library])
842AC_MSG_RESULT([$enable_module])
843AC_SUBST([ALIFMD_LIBS])
844
629266d1 845dnl ------------------------------------------------------------------
94cc9aab 846AH_TEMPLATE([HLT_MUON],[hlt dimuon library])
2e742d30 847
f59fee6d 848ALIMUON_LIBS=
e89e6b23 849CHECK_HLTMODULE([dimuon],
41f99620 850 [AliMpExMap.h AliMUONTriggerIO.h],
851 [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/MUON -I$ALICE_ROOT/MUON/mapping],
b3f74118 852 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
853 [MUONcore MUONraw MUONbase MUONgeometry MUONmapping MUONcalib MUONsim MUONtrigger MUONevaluation MUONrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
f59fee6d 854 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
855
856if test "x$enable_module" = "xmissheader"; then
a853a794 857 enable_module="no...requires.AliRoot>=v4-08-Release"
50a3793d 858 enable_muon=$enable_module
c6b46c3f 859elif test "x$enable_module" = "xforce"; then
860 enable_muon="yes"
f59fee6d 861else
862 enable_muon=$enable_module
863fi
864
865if test "x$enable_muon" = "xyes" ; then
94cc9aab 866 AC_DEFINE(HLT_MUON)
f59fee6d 867 ALIMUON_LIBS=$ALIHLTMODULE_LIBS
6ed1b948 868 AC_LANG_PUSH(C++)
accd4c8f 869 save_CPPFLAGS="$CPPFLAGS"
870
6ed1b948 871 dnl
872 dnl Check for functionality GetRawStream AliMUONDigitMaker.h
873 dnl
874 have_muon_digitmaker_getrawstream=no
875 AC_MSG_CHECKING(for GetRawStream methods of AliMUONDigitMaker)
876 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I${ALICE_ROOT}/MUON"
877 LDFLAGS="$save_LDFLAGS -L${ROOTLIBDIR} $ALIROOT_LDFLAGS"
878 LIBS="$save_LIBS $ROOTLIBS $ALIROOT_LIBS $ALIMUON_LIBS"
879 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <AliMUONDigitMaker.h>],
880 [AliMUONDigitMaker dm;
881 dm.GetRawStreamTracker();])],
882 [have_muon_digitmaker_getrawstream=yes],
883 [AC_DEFINE(HAVE_NOT_MUON_DIGITMAKER_GETRAWSTREAM)])
884 LIBS=$save_LIBS
885 AC_MSG_RESULT([$have_muon_digitmaker_getrawstream])
accd4c8f 886 CPPFLAGS="$save_CPPFLAGS"
6ed1b948 887
888 AC_LANG_POP(C++)
adec4ad4 889else
890 enable_module=$enable_muon
94cc9aab 891fi
f59fee6d 892AM_CONDITIONAL(EN_HLT_MUON, test x$enable_muon = xyes)
d6e2c707 893AC_MSG_CHECKING([whether to compile MUON library])
c6b46c3f 894AC_MSG_RESULT([$enable_module])
f59fee6d 895AC_SUBST([ALIMUON_LIBS])
94cc9aab 896
897dnl ------------------------------------------------------------------
d6e2c707 898AH_TEMPLATE([HLT_TRIGGER],[hlt trigger library])
899
900ALITRIGGER_LIBS=
901CHECK_HLTMODULE([trigger],
902 [], [$ALIROOT_CPPFLAGS],
903 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
904 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
905 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
906
907if test "x$enable_module" = "xmissheader"; then
908 enable_module="no...header.missing"
50a3793d 909 enable_trigger=$enable_module
d6e2c707 910elif test "x$enable_module" = "xforce"; then
911 enable_trigger="yes"
912else
913 enable_trigger=$enable_module
914fi
915
916if test "x$enable_trigger" = "xyes" ; then
917 AC_DEFINE(HLT_TRIGGER)
918 ALITRIGGER_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 919else
920 enable_module=$enable_trigger
d6e2c707 921fi
922AM_CONDITIONAL(EN_HLT_TRIGGER, test x$enable_trigger = xyes)
923AC_MSG_CHECKING([whether to compile Trigger library])
924AC_MSG_RESULT([$enable_module])
925AC_SUBST([ALITRIGGER_LIBS])
926
927dnl ------------------------------------------------------------------
ec6160d5 928AH_TEMPLATE([HLT_GLOBAL],[hlt global library])
929
930ALIGLOBAL_LIBS=
931CHECK_HLTMODULE([global],
932 [], [$ALIROOT_CPPFLAGS],
933 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
934 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
935 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
936
937if test "x$enable_module" = "xmissheader"; then
938 enable_module="no...header.missing"
939 enable_global=$enable_module
940elif test "x$enable_module" = "xforce"; then
941 enable_global="yes"
942else
943 enable_global=$enable_module
944 if test "x$enable_global" = "xyes" ; then
945 AC_LANG_PUSH(C++)
946 save_CPPFLAGS="$CPPFLAGS"
947 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS"
948 AC_MSG_CHECKING([for required functions in AliESDtrack])
949 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliESDtrack.h>],
950 [AliESDtrack t;
951 t.SetGlobalChi2(0)])],
952 [],
953 [enable_global="no...requires.AliRoot>v4-17-Release"])
954 AC_MSG_RESULT([$enable_global])
955 AC_LANG_POP(C++)
956 CPPFLAGS="$save_CPPFLAGS"
957 fi
958fi
959
960if test "x$enable_global" = "xyes" ; then
961 AC_DEFINE(HLT_GLOBAL)
962 ALIGLOBAL_LIBS=$ALIHLTMODULE_LIBS
963else
964 enable_module=$enable_global
965fi
966AM_CONDITIONAL(EN_HLT_GLOBAL, test x$enable_global = xyes)
967AC_MSG_CHECKING([whether to compile Global library])
968AC_MSG_RESULT([$enable_module])
969AC_SUBST([ALIGLOBAL_LIBS])
970
971dnl ------------------------------------------------------------------
33daad3d 972AH_TEMPLATE([HLT_JET],[hlt jet library])
973
04cbe3ac 974ALIFASTJET_HEADER=
975ALIFASTJET_INCFLAGS=
976ALIFASTJET_LIBS=
977ALIFASTJET_LDFLAGS=
978AC_ARG_WITH(fastjet, [installation path of the FASTJET package],
979 [ test "x$with_fastjet" != "xno" && export FASTJET=$with_fastjet],
980 [ test -n $FASTJET && with_fastjet=$FASTJET ])
981
982if test "x$with_fastjet" != "x" && test "x$with_fastjet" != "xno" ; then
983 ALIFASTJET_INCFLAGS="-I${with_fastjet}/include"
984 ALIFASTJET_HEADER="PseudoJet.hh"
985 ALIFASTJET_LDFLAGS="-L${with_fastjet}/lib"
986 ALIFASTJET_LIBS="CGAL fastjet"
33daad3d 987else
04cbe3ac 988 with_fastjet=no
33daad3d 989fi
990
04cbe3ac 991CHECK_HLTMODULE([jet],
992 [$ALIFASTJET_HEADER], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/JETAN $ALIFASTJET_INCFLAGS],
993 [$ALIFASTJET_LIBS], [-L$ROOTLIBDIR $ALIFASTJET_LDFLAGS], [$ROOTLIBS $ADD_ROOTLIBS],
994 [AOD ESD ANALYSIS ANALYSISalice JETAN JETANMC],
995 [-L$ROOTLIBDIR $ALIROOT_LDFLAGS -L$ALICE_ROOT/lib/tgt_$ALICE_TARGET],
996 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
33daad3d 997
998if test "x$enable_module" = "xmissheader"; then
999 enable_module="no...header.missing"
1000 enable_jet=$enable_module
1001elif test "x$enable_module" = "xforce"; then
1002 enable_jet="yes"
1003else
1004 enable_jet=$enable_module
1005fi
1006
04cbe3ac 1007if test "x$enable_jet" = "xyes" ; then
33daad3d 1008 AC_DEFINE(HLT_JET)
1009 ALIJET_LIBS="$ALIHLTMODULE_LIBS"
04cbe3ac 1010
1011 if test "x$with_fastjet" != "xno"; then
1012 AC_DEFINE(HAVE_FASTJET)
1013 AC_DEFINE(WITHFASTJET)
1014 ALIJET_LIBS="$ALIJET_LIBS -L$FASTJET_LDFLAGS"
1015 fi
1016 AC_MSG_CHECKING([compilation with FASTJET package])
1017 AC_MSG_RESULT($with_fastjet)
1018
33daad3d 1019else
1020 enable_module=$enable_jet
1021fi
1022
33daad3d 1023AM_CONDITIONAL(EN_HLT_JET, test x$enable_jet = xyes)
1024AC_MSG_CHECKING([whether to compile Jet library])
1025AC_MSG_RESULT([$enable_module])
1026AC_SUBST([ALIJET_LIBS])
1027
1028dnl ------------------------------------------------------------------
d6e2c707 1029AH_TEMPLATE([HLT_ITS],[hlt its library])
1030
1031ALIITS_LIBS=
1032CHECK_HLTMODULE([its],
ae5bf1dd 1033 [AliITSCompressRawDataSDD.h], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS],
cad2d06c 1034 [Gui RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1035 [ITSbase ITSrec], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
d6e2c707 1036 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1037
1038if test "x$enable_module" = "xmissheader"; then
1039 enable_module="no...header.missing"
50a3793d 1040 enable_its=$enable_module
d6e2c707 1041elif test "x$enable_module" = "xforce"; then
1042 enable_its="yes"
1043else
1044 enable_its=$enable_module
adec4ad4 1045 if test "x$enable_its" = "xyes" ; then
1046 AC_LANG_PUSH(C++)
1047 save_CPPFLAGS="$CPPFLAGS"
1048 CPPFLAGS="$save_CPPFLAGS $ALIROOT_CPPFLAGS -I$ALICE_ROOT/ITS"
1049 # changes in the AliVertexer base class revision 26414, Thu Jun 5 15:36:18 2008
1050 # require AliVertexer::GetNominalPos()
1051 AC_MSG_CHECKING([for required functions in AliITSVertexer])
1052 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <AliITSVertexerZ.h>],
1053 [AliITSVertexerZ v;
1054 v.GetNominalPos()])],
1055 [],
1056 [enable_its="no...requires.AliRoot>v4-13-Release"])
1057 AC_MSG_RESULT([$enable_its])
1058 AC_LANG_POP(C++)
1059 CPPFLAGS="$save_CPPFLAGS"
1060 fi
d6e2c707 1061fi
1062
1063if test "x$enable_its" = "xyes" ; then
1064 AC_DEFINE(HLT_ITS)
1065 ALIITS_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 1066else
1067 enable_module=$enable_its
d6e2c707 1068fi
1069AM_CONDITIONAL(EN_HLT_ITS, test x$enable_its = xyes)
1070AC_MSG_CHECKING([whether to compile ITS library])
1071AC_MSG_RESULT([$enable_module])
1072AC_SUBST([ALIITS_LIBS])
1073
1074dnl ------------------------------------------------------------------
5dded172 1075AH_TEMPLATE([HLT_EMCAL],[hlt emcal library])
1076
1077ALIEMCAL_LIBS=
1078CHECK_HLTMODULE([emcal],
1079 [], [$ALIROOT_CPPFLAGS -I$ALICE_ROOT/EMCAL],
accd4c8f 1080 [RAWDatasim], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1081 [EMCALrec EMCALsim EMCALbase], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
5dded172 1082 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1083
1084if test "x$enable_module" = "xmissheader"; then
1085 enable_module="no...header.missing"
1086 enable_emcal=$enable_module
1087elif test "x$enable_module" = "xforce"; then
1088 enable_emcal="yes"
1089else
1090 enable_emcal=$enable_module
1091fi
1092
1093if test "x$enable_emcal" = "xyes" ; then
1094 AC_DEFINE(HLT_EMCAL)
1095 ALIEMCAL_LIBS=$ALIHLTMODULE_LIBS
1096else
1097 enable_module=$enable_emcal
1098fi
1099AM_CONDITIONAL(EN_HLT_EMCAL, test x$enable_emcal = xyes)
1100AC_MSG_CHECKING([whether to compile EMCAL library])
1101AC_MSG_RESULT([$enable_module])
1102AC_SUBST([ALIEMCAL_LIBS])
1103
1104dnl ------------------------------------------------------------------
e89e6b23 1105AH_TEMPLATE([HLT_COMP],[hlt comp library])
1106
1107ALICOMP_LIBS=
1108CHECK_HLTMODULE([comp],
1109 [], [$ALIROOT_CPPFLAGS],
1110 [], [-L$ROOTLIBDIR], [$ROOTLIBS $ADD_ROOTLIBS],
1111 [], [-L$ROOTLIBDIR $ALIROOT_LDFLAGS],
1112 [$ROOTLIBS $ADD_ROOTLIBS $ALIROOT_LIBS])
1113
1114if test "x$enable_module" = "xmissheader"; then
c6b46c3f 1115 enable_module="no...header.missing"
50a3793d 1116 enable_comp=$enable_module
c6b46c3f 1117elif test "x$enable_module" = "xforce"; then
1118 enable_comp="yes"
e89e6b23 1119else
1120 enable_comp=$enable_module
1121fi
1122
1123if test "x$enable_comp" = "xyes" ; then
1124 AC_DEFINE(HLT_COMP)
1125 ALICOMP_LIBS=$ALIHLTMODULE_LIBS
adec4ad4 1126else
1127 enable_module=$enable_comp
e89e6b23 1128fi
1129AM_CONDITIONAL(EN_HLT_COMP, test x$enable_comp = xyes)
1130AC_MSG_CHECKING([whether to compile comp library])
c6b46c3f 1131AC_MSG_RESULT([$enable_module])
e89e6b23 1132AC_SUBST([ALICOMP_LIBS])
1133
1134dnl ------------------------------------------------------------------
fc455fba 1135AC_MSG_CHECKING([whether to disable AliRoot logging])
1136AH_TEMPLATE([NOALIROOT_LOGGING],[disable AliRoot logging])
1137AC_ARG_ENABLE(aliroot-logging,
1138 [AC_HELP_STRING([--disable-aliroot-logging],
1139 [disable logging through AliRoot logging methods])],
1140 [],[enable_aliroot_logging=no])
c018a1bd 1141if test "x$have_aliroot" = "xno" ; then
1142 enable_aliroot_logging=yes # this means 'disable'
1143fi
fc455fba 1144if test "x$enable_aliroot_logging" != "xno" ; then
1145 AC_DEFINE(NOALIROOT_LOGGING)
b521659f 1146fi
fc455fba 1147AM_CONDITIONAL(NOALIROOT_LOGGING, test x$enable_aliroot_logging != no)
1148AC_MSG_RESULT([$enable_aliroot_logging])
b521659f 1149
1150dnl ------------------------------------------------------------------
1151AC_MSG_CHECKING([whether to enable saving MC data through the chain])
1152AH_TEMPLATE([DOMC],[MC saving])
1153AC_ARG_ENABLE(mc-saving,
1154 [AC_HELP_STRING([--enable-mc-saving],
1155 [enable saving MC data through the chain])],
1156 [],[enable_mc_saving=no])
1157if test "x$enable_mc_saving" = "xyes" ; then
1158 AC_DEFINE(DOMC)
1159fi
1160AC_MSG_RESULT([$enable_mc_saving])
1161
1162dnl ------------------------------------------------------------------
b521659f 1163dnl certainly something old, but we keep the define
1164AC_MSG_CHECKING([whether to use ROWHOUGH])
1165AH_TEMPLATE([USEROWHOUGH],[HLT ROWHOUGH])
1166AC_ARG_ENABLE(rowhough,
1167 [AC_HELP_STRING([--enable-rowhough],
1168 [use ROWHOUGH ])],
1169 [],[enable_rowhough=no])
1170if test "x$enable_rowhough" = "xyes" ; then
1171 AC_DEFINE(USEROWHOUGH)
1172fi
1173AC_MSG_RESULT([$enable_rowhough])
1174
1175dnl ------------------------------------------------------------------
53feaef5 1176dnl The ROOTVERSION and ALIROOTVERSION defines were used by the old
1177dnl stand-alone build system. This is most likely something old we can
1178dnl get rid off later, or do something more reasonable. Since the define
1179dnl needs the quotes they have to be escaped. This works well for the
1180dnl Makefile but not for the configure script. So we have to add the
1181dnl defines after all the other checks.
1182CPPFLAGS="$CPPFLAGS -DROOTVERSION=\\\"`${ROOTCONF} --version`\\\""
1183if test ! "x$have_aliroot" = "xno" ; then
1184 CPPFLAGS="$CPPFLAGS -DALIROOTVERSION=\\\"Unknown\\\""
1185fi
1186
1187dnl ------------------------------------------------------------------
b521659f 1188dnl
1189dnl Documentation
1190dnl
1191AC_ARG_VAR(DOXYGEN, The Documentation Generator)
1192AC_PATH_PROG(PERL, perl)
1193AC_PATH_PROG(DOXYGEN, doxygen)
5894eaa5 1194AC_ARG_ENABLE(dot,
1195 [AC_HELP_STRING([--enable-dot],
1196 [enable dot documentation generator])],
1197 [],[enable_dot=no])
b521659f 1198HAVE_DOT=NO
1199DOT_PATH=
1200AC_PATH_PROG(DOT, dot)
5894eaa5 1201if test "x$DOT" != "x" && test "x$enable_dot" = "xyes" ; then
b521659f 1202 HAVE_DOT=YES
1203 DOT_PATH=`dirname $DOT`
1204fi
ae1c1854 1205
1206AC_MSG_CHECKING([for documentation mode])
1207AC_ARG_ENABLE(doc,
1208 [AC_HELP_STRING([--disable-doc],
1209 [disable documentation build; monolithic build --enable-doc=mono ])],
1210 [],[enable_doc=modules])
fb345ed7 1211
ae1c1854 1212if test "x$DOXYGEN" = "x" ; then
1213 enable_doc=no.doxygen
fb345ed7 1214elif test "x$enable_doc" = "xyes" ; then
1215 enable_doc=yes
ae1c1854 1216elif test ! "x$enable_doc" = "xmono" && \
1217 test ! "x$enable_doc" = "xmodules" && \
1218 test ! "x$enable_doc" = "xno"; then
1219 enable_doc=no
1220 AC_MSG_WARN([unknown option])
1221fi
1222if test "x$enable_doc" = "xno" ; then
1223 enable_doc=off
1224 DOXYGEN=
1225fi
1226
1227AC_MSG_RESULT([$enable_doc])
1228AM_CONDITIONAL(MONOLITHIC_DOC, test "x$enable_doc" = "xmono")
1229AM_CONDITIONAL(HAVE_DOXYGEN, test ! "x$DOXYGEN" = "x")
b521659f 1230AC_SUBST([HAVE_DOT])
1231AC_SUBST([DOT_PATH])
1232
90ebac25 1233dnl HAVE_SRC_SUBDIR=${abs_top_srcdir}/src
1234dnl echo $HAVE_SRC_SUBDIR
1235dnl if ! test -d $HAVE_SRC_SUBDIR; then
1236dnl HAVE_SRC_SUBDIR=
1237dnl fi
1238dnl AC_SUBST([HAVE_SRC_SUBDIR])
1239
b521659f 1240dnl ------------------------------------------------------------------
7233bc62 1241AC_MSG_NOTICE([---------------------------------------------- ])
1242AC_MSG_NOTICE([ build summary ])
1243AC_MSG_NOTICE([---------------------------------------------- ])
1244
b521659f 1245AC_CONFIG_FILES([Makefile
1246 BASE/Makefile
53feaef5 1247 BASE/setenv.sh
1248 BASE/setenv.csh
2be16a33 1249 BASE/HOMER/Makefile
242bb794 1250 BASE/util/Makefile
4b31e06b 1251 BASE/util/test/Makefile
d098ebd4 1252 BASE/interface/Makefile
853121af 1253 BASE/test/Makefile
1a21074a 1254 BASE/interface/test/Makefile
b521659f 1255 doc/Makefile
2efb85be 1256 doc/doxygen.conf
1257 doc/doxymodule.conf])
b521659f 1258
7233bc62 1259dnl AliRoot and installation directory for libraries
1260dnl
1261AC_MSG_NOTICE([AliRoot: $have_aliroot])
1262AM_CONDITIONAL(HAVE_ALIROOT, test "x$have_aliroot" != "xno" )
1263if test "x$have_aliroot" != "xno"; then
1264 AC_CONFIG_FILES([sim/Makefile
1265 rec/Makefile
652cf9d2 1266 rec/test/Makefile
436c2d0c 1267 rec/startAliEVE-barrel-tracks.sh
7233bc62 1268 shuttle/Makefile
ff4edcee 1269 pendolino/Makefile
ce5f90bf 1270 benchmark/Makefile
7233bc62 1271 ])
1272fi
1273if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then
1274libdir=\${exec_prefix}/lib/tgt_$ALICE_TARGET
1275AC_MSG_NOTICE([libdir set to $libdir])
1276fi
1277
1278AC_MSG_NOTICE([compile sample library: $enable_sample])
1279if test "x$enable_sample" = "xyes"; then
1280 AC_CONFIG_FILES([SampleLib/Makefile])
1281fi
1282
652cf9d2 1283AC_MSG_NOTICE([compile RCU library: $enable_rcu])
1284if test "x$enable_rcu" = "xyes"; then
1285 AC_CONFIG_FILES([RCU/Makefile
1286 RCU/test/Makefile
1287 ])
1288fi
1289
7233bc62 1290AC_MSG_NOTICE([compile TPC library: $enable_tpc])
1291if test "x$enable_tpc" = "xyes"; then
1292 AC_CONFIG_FILES([TPCLib/Makefile
1293 TPCLib/test/Makefile
1294 TPCLib/mapping2array.cxx
b658d7e4 1295 TPCLib/EVE/Makefile
7233bc62 1296 ])
1297fi
1298
7233bc62 1299AC_MSG_NOTICE([compile PHOS library: $enable_phos])
1300if test "x$enable_phos" = "xyes"; then
1301 AC_CONFIG_FILES([PHOS/Makefile])
1302fi
1303
1304AC_MSG_NOTICE([compile TRD library: $enable_trd])
1305if test "x$enable_trd" = "xyes"; then
1306 AC_CONFIG_FILES([TRD/Makefile])
1307fi
1308
50a3793d 1309AC_MSG_NOTICE([compile FMD library: $enable_fmd])
1310if test "x$enable_fmd" = "xyes"; then
1311 AC_CONFIG_FILES([FMD/Makefile])
1312fi
1313
7233bc62 1314AC_MSG_NOTICE([compile MUON library: $enable_muon])
1315if test "x$enable_muon" = "xyes"; then
1316 AC_CONFIG_FILES([MUON/Makefile])
1317fi
1318
1319AC_MSG_NOTICE([compile ITS library: $enable_its])
1320if test "x$enable_its" = "xyes"; then
1321 AC_CONFIG_FILES([ITS/Makefile])
1322fi
1323
5dded172 1324AC_MSG_NOTICE([compile EMCAL library: $enable_emcal])
1325if test "x$enable_emcal" = "xyes"; then
1326 AC_CONFIG_FILES([EMCAL/Makefile])
1327fi
1328
7233bc62 1329AC_MSG_NOTICE([compile trigger library: $enable_trigger])
1330if test "x$enable_trigger" = "xyes"; then
0a76630e 1331 AC_CONFIG_FILES([trigger/Makefile
1332 trigger/test/Makefile])
7233bc62 1333fi
1334
ec6160d5 1335AC_MSG_NOTICE([compile global library: $enable_global])
1336if test "x$enable_global" = "xyes"; then
1337 AC_CONFIG_FILES([global/Makefile])
1338fi
1339
33daad3d 1340AC_MSG_NOTICE([compile jet library: $enable_jet])
1341if test "x$enable_jet" = "xyes"; then
1342 AC_CONFIG_FILES([JET/Makefile])
1343fi
1344
7233bc62 1345AC_MSG_NOTICE([compile comp library: $enable_comp])
1346if test "x$enable_comp" = "xyes"; then
1347 AC_CONFIG_FILES([comp/Makefile])
1348fi
b521659f 1349
1350AC_OUTPUT
1351dnl
1352dnl EOF
1353dnl
1354