mirror of https://github.com/getdnsapi/getdns.git
Expose file paths as options.
This commit is contained in:
parent
07e617579d
commit
b5f260376e
|
@ -99,16 +99,6 @@ endif ()
|
||||||
test_big_endian(TARGET_IS_BIG_ENDIAN)
|
test_big_endian(TARGET_IS_BIG_ENDIAN)
|
||||||
set(HAVE_TARGET_ENDIANNESS 1)
|
set(HAVE_TARGET_ENDIANNESS 1)
|
||||||
|
|
||||||
# File locations
|
|
||||||
set(TRUST_ANCHOR_FILE "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/unbound/getdns-root.key")
|
|
||||||
set(GETDNS_FN_RESOLVCONF "/etc/resolv.conf")
|
|
||||||
if (WIN32)
|
|
||||||
# BUG! Don't hardcode the Windows directory and drive.
|
|
||||||
set(GETDNS_FN_HOSTS "C:/Windows/System32/Drivers/etc/hosts")
|
|
||||||
else ()
|
|
||||||
set(GETDNS_FN_HOSTS "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/hosts")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Options.
|
# Options.
|
||||||
option(ENABLE_SHARED "Build shared libraries." ON)
|
option(ENABLE_SHARED "Build shared libraries." ON)
|
||||||
option(ENABLE_STATIC "Build static libraries." ON)
|
option(ENABLE_STATIC "Build static libraries." ON)
|
||||||
|
@ -116,9 +106,19 @@ if ((NOT ENABLE_SHARED) AND (NOT ENABLE_STATIC))
|
||||||
message(FATAL_ERROR "You must build either static or shared libraries.")
|
message(FATAL_ERROR "You must build either static or shared libraries.")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# Options variables.
|
||||||
set(DNSSEC_ROADBLOCK_AVOIDANCE ON CACHE BOOL "Enable/disable DNSSEC roadblock avoidance.")
|
set(DNSSEC_ROADBLOCK_AVOIDANCE ON CACHE BOOL "Enable/disable DNSSEC roadblock avoidance.")
|
||||||
set(FD_SETSIZE "" CACHE STRING "Set maximum file descriptor number that can be used by select.")
|
set(FD_SETSIZE "" CACHE STRING "Set maximum file descriptor number that can be used by select.")
|
||||||
set(MAX_UDP_BACKOFF 1000 CACHE STRING "Set the maximum number of messages that can be sent to other upstreams before the upstream which has previously timed out will be tried again.")
|
set(MAX_UDP_BACKOFF 1000 CACHE STRING "Set the maximum number of messages that can be sent to other upstreams before the upstream which has previously timed out will be tried again.")
|
||||||
|
if (WIN32)
|
||||||
|
# BUG! Don't hardcode the Windows directory and drive.
|
||||||
|
set(hostsfile "C:/Windows/System32/Drivers/etc/hosts")
|
||||||
|
else ()
|
||||||
|
set(hostsfile "${CMAKE_INSTALL_FULL_SYSCONFDIR}/hosts")
|
||||||
|
endif ()
|
||||||
|
set(PATH_HOSTS "${hostsfile}" CACHE STRING "Set the static table lookup for hostnames path.")
|
||||||
|
set(PATH_RESOLVCONF "/etc/resolv.conf" CACHE STRING "Set the resolver configuration file path. Not used on Windows, where values are retrieved via GetNetworkParams().")
|
||||||
|
set(PATH_TRUST_ANCHOR_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/unbound/getdns-root.key" CACHE STRING "Default location of the trust anchor file.")
|
||||||
set(STUB_NATIVE_DNSSEC ON CACHE BOOL "Enable/disable native stub DNSSEC support.")
|
set(STUB_NATIVE_DNSSEC ON CACHE BOOL "Enable/disable native stub DNSSEC support.")
|
||||||
|
|
||||||
# Options not exposed in autoconf.
|
# Options not exposed in autoconf.
|
||||||
|
|
|
@ -100,9 +100,9 @@
|
||||||
#cmakedefine HAVE_WINDOWS_THREADS 1
|
#cmakedefine HAVE_WINDOWS_THREADS 1
|
||||||
|
|
||||||
#cmakedefine RUNSTATEDIR "@RUNSTATEDIR@"
|
#cmakedefine RUNSTATEDIR "@RUNSTATEDIR@"
|
||||||
#cmakedefine TRUST_ANCHOR_FILE "@TRUST_ANCHOR_FILE@"
|
#cmakedefine TRUST_ANCHOR_FILE "@PATH_TRUST_ANCHOR_FILE@"
|
||||||
#cmakedefine GETDNS_FN_RESOLVCONF "@GETDNS_FN_RESOLVCONF@"
|
#cmakedefine GETDNS_FN_RESOLVCONF "@PATH_RESOLVCONF@"
|
||||||
#cmakedefine GETDNS_FN_HOSTS "@GETDNS_FN_HOSTS@"
|
#cmakedefine GETDNS_FN_HOSTS "@PATH_HOSTS@"
|
||||||
|
|
||||||
#cmakedefine DNSSEC_ROADBLOCK_AVOIDANCE 1
|
#cmakedefine DNSSEC_ROADBLOCK_AVOIDANCE 1
|
||||||
#cmakedefine STUB_NATIVE_DNSSEC 1
|
#cmakedefine STUB_NATIVE_DNSSEC 1
|
||||||
|
|
Loading…
Reference in New Issue