1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
dnl INIT_PLUGINS
dnl initialise the default plugin behaviours
AC_DEFUN([ACX_INIT_PLUGINS],
[
dnl default plugin settings
DEFAULT_ENABLE_SISCONE="yes"
DEFAULT_ENABLE_CDFCONES="yes"
DEFAULT_ENABLE_PXCONE="no"
DEFAULT_ENABLE_D0RUNIICONE="no"
DEFAULT_ENABLE_NESTEDDEFS="yes"
DEFAULT_ENABLE_TRACKJET="no"
DEFAULT_ENABLE_ATLASCONE="no"
DEFAULT_ENABLE_CMSITERATIVECONE="no"
DEFAULT_ENABLE_EECAMBRIDGE="yes"
DEFAULT_ENABLE_JADE="yes"
DEFAULT_ENABLE_D0RUNICONE="no"
DEFAULT_ENABLE_GRIDJET="yes"
dnl end of default plugin settings --- don't modify this line
dnl declare the plugins for the config header
AH_TEMPLATE(ENABLE_PLUGIN_SISCONE, [checks if the SISCone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_CDFCONES, [checks if the CDFCones plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_PXCONE, [checks if the PxCone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_D0RUNIICONE, [checks if the D0RunIICone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_NESTEDDEFS, [checks if the NestedDefs plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_TRACKJET, [checks if the TrackJet plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_ATLASCONE, [checks if the ATLASCone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_CMSITERATIVECONE, [checks if the CMSIterativeCone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_EECAMBRIDGE, [checks if the EECambridge plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_JADE, [checks if the Jade plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_D0RUNICONE, [checks if the D0RunICone plugin is enabled])
AH_TEMPLATE(ENABLE_PLUGIN_GRIDJET, [checks if the GridJet plugin is enabled])
dnl end of declare the plugins for the config header --- don't modify this line
])
dnl Allow to enable all the plugins at a go
dnl Note: we do actually only change the default values, so that it allows for things like
dnl ./configure --enable-allplugins --disable-pxcone
dnl will enable everything but PxCone
dnl Note: --disable-allplugins is automatically defined by autoconf
dnl Therefore, we implement it so as it does what it is supposed to do i.e. disable
dnl all the plugins. Again, --disable-allplugins --enable-siscone shall work and
dnl just enable the SISCone plugin
AC_DEFUN([ACX_CHECK_ALLPLUGINS],
[
AC_MSG_CHECKING([whether to build all plugins])
AC_ARG_ENABLE(allplugins,
[ --enable-allplugins enables all the FastJet plugins (default=no)],
[ENABLE_ALLPLUGINS="$enableval"],
[ENABLE_ALLPLUGINS="not set"])
if [[ "x$ENABLE_ALLPLUGINS" == "xyes" ]] ; then
dnl set all default plugin settings to yes
DEFAULT_ENABLE_SISCONE="yes"
DEFAULT_ENABLE_CDFCONES="yes"
DEFAULT_ENABLE_PXCONE="yes"
DEFAULT_ENABLE_D0RUNIICONE="yes"
DEFAULT_ENABLE_NESTEDDEFS="yes"
DEFAULT_ENABLE_TRACKJET="yes"
DEFAULT_ENABLE_ATLASCONE="yes"
DEFAULT_ENABLE_CMSITERATIVECONE="yes"
DEFAULT_ENABLE_EECAMBRIDGE="yes"
DEFAULT_ENABLE_JADE="yes"
DEFAULT_ENABLE_D0RUNICONE="yes"
DEFAULT_ENABLE_GRIDJET="yes"
dnl end of set all default plugin settings to yes --- don't modify this line
fi
if [[ "x$ENABLE_ALLPLUGINS" == "xno" ]] ; then
dnl set all default plugin settings to no
DEFAULT_ENABLE_SISCONE="no"
DEFAULT_ENABLE_CDFCONES="no"
DEFAULT_ENABLE_PXCONE="no"
DEFAULT_ENABLE_D0RUNIICONE="no"
DEFAULT_ENABLE_NESTEDDEFS="no"
DEFAULT_ENABLE_TRACKJET="no"
DEFAULT_ENABLE_ATLASCONE="no"
DEFAULT_ENABLE_CMSITERATIVECONE="no"
DEFAULT_ENABLE_EECAMBRIDGE="no"
DEFAULT_ENABLE_JADE="no"
DEFAULT_ENABLE_D0RUNICONE="no"
DEFAULT_ENABLE_GRIDJET="no"
dnl end of set all default plugin settings to no --- don't modify this line
fi
AC_MSG_RESULT($ENABLE_ALLPLUGINS)
])
dnl Allow to enable all the CXX plugins at a go
dnl Note: we do actually only change the default values, so that it allows for things like
dnl ./configure --enable-allcxxplugins --disable-cdfcones
dnl will enable everything but PxCone
dnl Note: --disable-allplugins is automatically defined by autoconf
dnl Therefore, we implement it so as it does what it is supposed to do i.e. disable
dnl all the plugins. Again, --disable-allcxxplugins --enable-siscone shall work and
dnl just enable the SISCone plugin
AC_DEFUN([ACX_CHECK_ALLCXXPLUGINS],
[
AC_MSG_CHECKING([whether to build all CXX plugins])
AC_ARG_ENABLE(allcxxplugins,
[ --enable-allcxxplugins enables all the CXX FastJet plugins (default=no)],
[ENABLE_ALLCXXPLUGINS="$enableval"],
[ENABLE_ALLCXXPLUGINS="not set"])
if [[ "x$ENABLE_ALLCXXPLUGINS" == "xyes" ]] ; then
dnl set all default cxx plugin settings to yes
DEFAULT_ENABLE_SISCONE="yes"
DEFAULT_ENABLE_CDFCONES="yes"
DEFAULT_ENABLE_D0RUNIICONE="yes"
DEFAULT_ENABLE_NESTEDDEFS="yes"
DEFAULT_ENABLE_TRACKJET="yes"
DEFAULT_ENABLE_ATLASCONE="yes"
DEFAULT_ENABLE_CMSITERATIVECONE="yes"
DEFAULT_ENABLE_EECAMBRIDGE="yes"
DEFAULT_ENABLE_JADE="yes"
DEFAULT_ENABLE_D0RUNICONE="yes"
DEFAULT_ENABLE_GRIDJET="yes"
dnl end of set all default cxx plugin settings to yes --- don't modify this line
fi
if [[ "x$ENABLE_ALLCXXPLUGINS" == "xno" ]] ; then
dnl set all default cxx plugin settings to no
DEFAULT_ENABLE_SISCONE="no"
DEFAULT_ENABLE_CDFCONES="no"
DEFAULT_ENABLE_D0RUNIICONE="no"
DEFAULT_ENABLE_NESTEDDEFS="no"
DEFAULT_ENABLE_TRACKJET="no"
DEFAULT_ENABLE_ATLASCONE="no"
DEFAULT_ENABLE_CMSITERATIVECONE="no"
DEFAULT_ENABLE_EECAMBRIDGE="no"
DEFAULT_ENABLE_JADE="no"
DEFAULT_ENABLE_D0RUNICONE="no"
DEFAULT_ENABLE_GRIDJET="no"
dnl end of set all default cxx plugin settings to no --- don't modify this line
fi
AC_MSG_RESULT($ENABLE_ALLCXXPLUGINS)
])
dnl CHECK PLUGIN
dnl This script is meant to check if a plugin has to be enabled
dnl It takes the following arguments
dnl the name of the plugin (e.g. SISCone)
dnl the name in lower case (e.g. siscone)
dnl the name in upper case (e.g. SISCONE)
dnl commands to execute if enabled
dnl commands to execute if disabled
dnl it sets the following vars
dnl
AC_DEFUN([ACX_CHECK_PLUGIN],
[
AC_MSG_CHECKING([whether to build plugin $1])
AC_ARG_ENABLE($2,
[ --enable-$2 enables the $1 plugin [[default=$4]]],
[ENABLE_$3="$enableval"],
[ENABLE_$3="${DEFAULT_ENABLE_$3}"])
if [[ "x$ENABLE_$3" == "xyes" ]] ; then
AC_DEFINE(ENABLE_PLUGIN_$3, [], [The $1 plugin is enabled])
dnl set up the libs
if [[ "x$monolithic" != "xyes" ]] ; then
CONFIG_LIBS_PLUGINS=${CONFIG_LIBS_PLUGINS}" -l$1Plugin "
CONFIG_LIBS_PLUGINS_STATIC=${CONFIG_LIBS_PLUGINS_STATIC}" \${installationdir}/lib/lib$1Plugin.a "
fi
dnl check if there is some provided commands to execute
ifelse([$5],[],[:],[$5])
LIST_ALL_PLUGINS=${LIST_ALL_PLUGINS}" $1"
else
ifelse([$6],[],[:],[$6])
fi
AC_CONFIG_FILES( plugins/$1/Makefile plugins/$1/fastjet/Makefile )
AM_CONDITIONAL(BUILD_PLUGIN_$3, test x$ENABLE_$3 = xyes)
AC_MSG_RESULT(${ENABLE_$3})
])
dnl PLUGIN_SUMMARY
dnl show a brief summary of what is enabled and what is not
AC_DEFUN([AC_PLUGIN_SUMMARY],
[
dnl show the plugins summary
dnl check if there is some provided commands to execute
ifelse([$1],[],[
echo " Plugins: EECambridge "${ENABLE_EECAMBRIDGE}
echo " Jade "${ENABLE_JADE}
echo " NestedDefs "${ENABLE_NESTEDDEFS}
echo " SISCone "${ENABLE_SISCONE}
echo " CDFCones "${ENABLE_CDFCONES}
echo " D0RunICone "${ENABLE_D0RUNICONE}
echo " D0RunIICone "${ENABLE_D0RUNIICONE}
echo " ATLASCone "${ENABLE_ATLASCONE}
echo " CMSIterativeCone "${ENABLE_CMSITERATIVECONE}
echo " PxCone "${ENABLE_PXCONE}
echo " TrackJet "${ENABLE_TRACKJET}
echo " GridJet "${ENABLE_GRIDJET}
],[
CONFIG_SUMMARY+=" Plugins: EECambridge "${ENABLE_EECAMBRIDGE}"\n"
CONFIG_SUMMARY+=" Jade "${ENABLE_JADE}"\n"
CONFIG_SUMMARY+=" NestedDefs "${ENABLE_NESTEDDEFS}"\n"
CONFIG_SUMMARY+=" SISCone "${ENABLE_SISCONE}"\n"
CONFIG_SUMMARY+=" CDFCones "${ENABLE_CDFCONES}"\n"
CONFIG_SUMMARY+=" D0RunICone "${ENABLE_D0RUNICONE}"\n"
CONFIG_SUMMARY+=" D0RunIICone "${ENABLE_D0RUNIICONE}"\n"
CONFIG_SUMMARY+=" ATLASCone "${ENABLE_ATLASCONE}"\n"
CONFIG_SUMMARY+=" CMSIterativeCone "${ENABLE_CMSITERATIVECONE}"\n"
CONFIG_SUMMARY+=" PxCone "${ENABLE_PXCONE}"\n"
CONFIG_SUMMARY+=" TrackJet "${ENABLE_TRACKJET}"\n"
CONFIG_SUMMARY+=" GridJet "${ENABLE_GRIDJET}"\n"
])
dnl end of show the plugins summary --- don't modify this line
])
|