mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Re-format/comment build options as we decide which ones are still relevant.
This commit is contained in:
parent
dbb9562ce9
commit
02808b0a92
2 changed files with 42 additions and 24 deletions
|
@ -4,37 +4,51 @@
|
||||||
# #
|
# #
|
||||||
#--------------------------------------------------------------------#
|
#--------------------------------------------------------------------#
|
||||||
|
|
||||||
|
##
|
||||||
|
## Installation Settings
|
||||||
|
##
|
||||||
|
|
||||||
# The installation directory
|
# The installation directory
|
||||||
|
# TODO: add to configure wrapper as '--prefix'
|
||||||
set(CMAKE_INSTALL_PREFIX /usr/local
|
set(CMAKE_INSTALL_PREFIX /usr/local
|
||||||
CACHE STRING "Installation directory" FORCE)
|
CACHE STRING "Installation directory" FORCE)
|
||||||
|
|
||||||
# The installation subdirectory for Bro policy files
|
# The installation subdirectory for Bro policy files
|
||||||
|
# TODO: add to configure wrapper as '--datadir'
|
||||||
set(DATADIR share/bro
|
set(DATADIR share/bro
|
||||||
CACHE STRING "Installation subdirectory for Bro policy files" FORCE)
|
CACHE STRING "Installation subdirectory for Bro policy files" FORCE)
|
||||||
|
|
||||||
# Enable active mapping processing
|
##
|
||||||
set(ACTIVE_MAPPING false
|
## Optional Features
|
||||||
CACHE STRING "enable active mapping processing" FORCE)
|
##
|
||||||
|
|
||||||
# Enable IPv6 processing
|
# TODO: add to configure wrapper as '--bro-v6'
|
||||||
|
# Eventually, this should be always on and won't be needed as an option
|
||||||
set(BROv6 false
|
set(BROv6 false
|
||||||
CACHE STRING "enable IPv6 processing" FORCE)
|
CACHE STRING "enable IPv6 processing" FORCE)
|
||||||
|
|
||||||
# Enable DFA state expiration
|
set(USE_INT64 true
|
||||||
set(EXPIRE_DFA_STATES false
|
CACHE STRING "enable use of int64 (long long) for integers" FORCE)
|
||||||
CACHE STRING "enable DFA state expiration" FORCE)
|
|
||||||
|
|
||||||
# Enable select-based mainloop
|
# TODO: add to configure wrapper as '--enable-debug'
|
||||||
set(USE_SELECT_LOOP false
|
# TODO: make this option do stuff
|
||||||
|
set(ENABLE_DEBUG false
|
||||||
|
CACHE STRING "No compiler optimizations" FORCE)
|
||||||
|
|
||||||
|
set(USE_SELECT_LOOP true
|
||||||
CACHE STRING "enable select-based main loop" FORCE)
|
CACHE STRING "enable select-based main loop" FORCE)
|
||||||
|
|
||||||
# Enable non-blocking DNS support
|
# TODO: add to configure wrapper as '--enable-perftools'
|
||||||
set(USE_NB_DNS false
|
# TODO: make this option do stuff
|
||||||
CACHE STRING "enable non-blocking DNS support" FORCE)
|
set(ENABLE_PERFTOOLS false
|
||||||
|
CACHE STRING "use Google's perftools" FORCE)
|
||||||
|
|
||||||
# Enable use of int64 (long long) for integers
|
set(USE_NB_DNS true
|
||||||
set(USE_INT64 false
|
CACHE BOOL "Use non-blocking DNS support" FORCE)
|
||||||
CACHE STRING "enable use of int64 (long long) for integers" FORCE)
|
|
||||||
|
##
|
||||||
|
## Configure Dependencies for Non-Standard Paths
|
||||||
|
##
|
||||||
|
|
||||||
# Uncomment to specify a custom prefix that contains the libpcap installation.
|
# Uncomment to specify a custom prefix that contains the libpcap installation.
|
||||||
#set(PCAP_ROOT path/to/your/pcap)
|
#set(PCAP_ROOT path/to/your/pcap)
|
||||||
|
@ -45,6 +59,15 @@ set(USE_INT64 false
|
||||||
# Uncomment to specify a custom directory that contains the libpcap library.
|
# Uncomment to specify a custom directory that contains the libpcap library.
|
||||||
#set(PCAP_LIBRARYDIR path/to/your/pcap/lib)
|
#set(PCAP_LIBRARYDIR path/to/your/pcap/lib)
|
||||||
|
|
||||||
# Attempt to use non-blocking DNS support by default
|
# TODO: more dependencies:
|
||||||
set(USE_NB_DNS true
|
# Flex
|
||||||
CACHE BOOL "Use non-blocking DNS support" FORCE)
|
# Bison
|
||||||
|
# BIND8
|
||||||
|
# Perl?
|
||||||
|
# BinPAC
|
||||||
|
#
|
||||||
|
# OpenSSL
|
||||||
|
# Libmagic
|
||||||
|
# LibGeoIP
|
||||||
|
# Libz
|
||||||
|
# Endace's DAG tools
|
||||||
|
|
|
@ -45,19 +45,14 @@ find_package(BISON REQUIRED)
|
||||||
find_package(PCAP REQUIRED)
|
find_package(PCAP REQUIRED)
|
||||||
include_directories(BEFORE ${PCAP_INCLUDE_DIR})
|
include_directories(BEFORE ${PCAP_INCLUDE_DIR})
|
||||||
|
|
||||||
# TODO: find libpcap from system or use shipped version
|
|
||||||
# TODO: find bind8 lib?
|
# TODO: find bind8 lib?
|
||||||
# TODO: optional OpenSSL
|
# TODO: require OpenSSL
|
||||||
# TODO: optional libmagic
|
# TODO: optional libmagic
|
||||||
# TODO: optional libGeoIP
|
# TODO: optional libGeoIP
|
||||||
# TODO: optional libz
|
# TODO: optional libz
|
||||||
# TODO: optional Endace's DAG tools
|
# TODO: optional Endace's DAG tools
|
||||||
# TODO: optional Google perftools
|
# TODO: optional Google perftools
|
||||||
# TODO: what's the equivalent of these configure settings:
|
|
||||||
# TODO: compiler warning flags
|
# TODO: compiler warning flags
|
||||||
# --disable-dependency-tracking speeds up one-time build
|
|
||||||
# --enable-dependency-tracking do not reject slow dependency extractors
|
|
||||||
# --disable-largefile omit support for large files
|
|
||||||
|
|
||||||
include(TestBigEndian)
|
include(TestBigEndian)
|
||||||
test_big_endian(WORDS_BIGENDIAN)
|
test_big_endian(WORDS_BIGENDIAN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue