--enable-gprof-profile enable gprof profiling options (developers only)
--disable-snort-profiler
disable snort performance profiling (cpu and memory) (developers only)
- --enable-memory-overloads
- overload new and delete
--enable-memory-profiler
enable memory profiler
--enable-rule-profiler enable rule keyword profiler (developers only)
--enable-jemalloc enable using jemalloc for dynamic memory management
--enable-jemalloc-static
same as --enable-jemalloc but linked statically
+ --enable-luajit-static enable luajit linked statically
--enable-appid-third-party
enable third party appid
--enable-unit-tests build unit tests
- --enable-piglet build piglet test harness
--enable-ccache enable ccache support
--disable-static-daq link static DAQ modules
--disable-html-docs don't create the HTML documentation
libhs library directory
--with-atomic-libraries=DIR
atomic library directory
- --with-flatbuffers-includes=DIR
- flatbuffers include directory
- --with-flatbuffers-libraries=DIR
- flatbuffers library directory
--with-flex-prefix=DIR
flex prefix directory
--with-flex-includes=DIR
libuuid include directory
--with-uuid-libraries=DIR
libuuid library directory
+ --with-libml-includes=DIR
+ libml include directory
+ --with-libml-libraries=DIR
+ libml library directory
+ --without-libml build Snort ML with mock of LibML
Some influential variable definitions:
SIGNAL_SNORT_RELOAD=<int>
--disable-snort-profiler)
append_cache_entry DISABLE_SNORT_PROFILER BOOL false
;;
- --enable-memory-overloads)
- append_cache_entry ENABLE_MEMORY_OVERLOADS BOOL true
- ;;
--enable-memory-profiler)
append_cache_entry ENABLE_MEMORY_PROFILER BOOL true
;;
;;
--enable-tcmalloc)
append_cache_entry ENABLE_TCMALLOC BOOL true
+ tcm=1
;;
--disable-tcmalloc)
append_cache_entry ENABLE_TCMALLOC BOOL false
--enable-jemalloc)
append_cache_entry ENABLE_JEMALLOC BOOL true
append_cache_entry STATIC_JEMALLOC BOOL false
+ jem=1
;;
--disable-jemalloc)
append_cache_entry ENABLE_JEMALLOC BOOL false
append_cache_entry ENABLE_JEMALLOC BOOL true
append_cache_entry STATIC_JEMALLOC BOOL true
;;
+ --enable-luajit-static)
+ append_cache_entry STATIC_LUAJIT BOOL true
+ ;;
--disable-jemalloc-static)
append_cache_entry ENABLE_JEMALLOC BOOL false
;;
--disable-benchmark-tests)
append_cache_entry ENABLE_BENCHMARK_TESTS BOOL false
;;
- --enable-piglet)
- append_cache_entry ENABLE_PIGLET BOOL true
- ;;
- --disable-piglet)
- append_cache_entry ENABLE_PIGLET BOOL false
- ;;
--enable-ccache)
append_cache_entry CMAKE_CXX_COMPILER_LAUNCHER STRING ccache
append_cache_entry CMAKE_C_COMPILER_LAUNCHER STRING ccache
--with-atomic-libraries=*)
append_cache_entry ATOMIC_LIBRARIES_DIR_HINT PATH $optarg
;;
- --with-flatbuffers-includes=*)
- append_cache_entry FLATBUFFERS_INCLUDE_DIR_HINT PATH $optarg
- ;;
- --with-flatbuffers-libraries=*)
- append_cache_entry FLATBUFFERS_LIBRARIES_DIR_HINT PATH $optarg
- ;;
--with-flex-prefix=*)
append_cache_entry CMAKE_PREFIX_PATH PATH $optarg
;;
--with-uuid-libraries=*)
append_cache_entry UUID_LIBRARIES_DIR_HINT PATH $optarg
;;
+ --with-toolchain=*)
+ append_cache_entry CMAKE_TOOLCHAIN_FILE PATH $optarg
+ ;;
+ --with-libml-includes=*)
+ append_cache_entry ML_INCLUDE_DIR_HINT PATH $optarg
+ ;;
+ --with-libml-libraries=*)
+ append_cache_entry ML_LIBRARIES_DIR_HINT PATH $optarg
+ ;;
+ --without-libml)
+ append_cache_entry ENABLE_KAIZEN_MOCK BOOL true
+ ;;
SIGNAL_SNORT_RELOAD=*)
append_cache_entry SIGNAL_SNORT_RELOAD STRING $optarg
;;
shift
done
+if [ "$tcm" -eq 1 -a "$jem" -eq 1 ] ; then
+ echo "--enable-jemalloc and --enable-tcmalloc are mutually exclusive; enable at most one"
+ exit 2
+fi
+
if [ -d $builddir ]; then
# If build directory exists, check if it has a CMake cache
if [ -f $builddir/CMakeCache.txt ]; then