]> git.ipfire.org Git - thirdparty/snort3.git/blobdiff - configure_cmake.sh
Pull request #4336: appid: appid cpu profiler table rows limit and totals
[thirdparty/snort3.git] / configure_cmake.sh
index 6d901de1a3873cd3136b67e4769110b952bdb0fb..9b312d6c5e79e84f18854fad104425b0f5724886 100755 (executable)
@@ -54,8 +54,6 @@ Optional Features:
     --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)
@@ -70,10 +68,10 @@ Optional Features:
     --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
@@ -110,10 +108,6 @@ Optional Packages:
                             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
@@ -126,6 +120,11 @@ Optional Packages:
                             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>
@@ -264,9 +263,6 @@ while [ $# -ne 0 ]; do
         --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
             ;;
@@ -329,6 +325,7 @@ while [ $# -ne 0 ]; do
             ;;
         --enable-tcmalloc)
             append_cache_entry ENABLE_TCMALLOC          BOOL true
+            tcm=1
             ;;
         --disable-tcmalloc)
             append_cache_entry ENABLE_TCMALLOC          BOOL false
@@ -336,6 +333,7 @@ while [ $# -ne 0 ]; do
         --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
@@ -344,6 +342,9 @@ while [ $# -ne 0 ]; do
             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
             ;;
@@ -361,12 +362,6 @@ while [ $# -ne 0 ]; do
         --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
@@ -452,12 +447,6 @@ while [ $# -ne 0 ]; do
         --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
             ;;
@@ -476,6 +465,18 @@ while [ $# -ne 0 ]; do
         --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
             ;;
@@ -499,6 +500,11 @@ while [ $# -ne 0 ]; do
     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