]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/configure.ac
- added the PHOS library to the autotools configuration
[u/mrichter/AliRoot.git] / HLT / configure.ac
index 6833bb85131043b8695363717eeb9f66ae69efce..0593ee2731ecb8bef5c67d50de8f625af34d32e5 100644 (file)
@@ -320,6 +320,22 @@ fi
 AM_CONDITIONAL(EN_HLT_TPC, test x$enable_tpc = xyes)
 AC_MSG_RESULT([$enable_tpc])
 
+dnl ------------------------------------------------------------------
+AC_MSG_CHECKING([whether to compile phos library])
+AH_TEMPLATE([HLT_PHOS],[hlt phos library])
+AC_ARG_ENABLE(phos,
+  [AC_HELP_STRING([--enable-phos],
+      [compile the phos library ])],
+  [],[enable_phos=yes])
+if test "x$have_aliroot" = "xno" ; then
+   enable_phos="no...requires.AliRoot"
+fi
+if test "x$enable_phos" = "xyes" ; then 
+  AC_DEFINE(HLT_PHOS)
+fi
+AM_CONDITIONAL(EN_HLT_PHOS, test x$enable_phos = xyes)
+AC_MSG_RESULT([$enable_phos])
+
 dnl ------------------------------------------------------------------
 AC_MSG_CHECKING([whether to enable HLT logging])
 AH_TEMPLATE([NOLOGGING],[disable hlt logging])
@@ -401,6 +417,7 @@ AC_CONFIG_FILES([Makefile
                 TPCLib/Makefile
                 TPCLib/mapping2array.cxx
                 TPCLib/OnlineDisplay/Makefile
+                PHOS/Makefile
                 doc/Makefile
                 doc/doxygen.conf])