Skip to content

Commit b50ea90

Browse files
committed
Merge 10.2 into 10.3
2 parents 6190a02 + 742b3a0 commit b50ea90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+403
-222
lines changed

CMakeLists.txt

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ IF (NOT CPACK_GENERATOR)
140140
ENDIF(WIN32)
141141
ENDIF(NOT CPACK_GENERATOR)
142142

143+
INCLUDE(FeatureSummary)
143144
INCLUDE(misc)
144145
INCLUDE(mysql_version)
145146
INCLUDE(cpack_source_ignore_files)
@@ -434,12 +435,15 @@ ADD_SUBDIRECTORY(sql/share)
434435
IF(NOT WITHOUT_SERVER)
435436
ADD_SUBDIRECTORY(tests)
436437
ADD_SUBDIRECTORY(sql)
437-
OPTION (WITH_EMBEDDED_SERVER "Compile MySQL with embedded server" OFF)
438-
IF(WITH_EMBEDDED_SERVER)
439-
ADD_SUBDIRECTORY(libmysqld)
440-
ADD_SUBDIRECTORY(libmysqld/examples)
441-
ADD_SUBDIRECTORY(unittest/embedded)
438+
OPTION (WITH_EMBEDDED_SERVER "Compile MariaDB with embedded server" OFF)
439+
IF(WITH_EMBEDDED_SERVER)
440+
ADD_SUBDIRECTORY(libmysqld)
441+
ADD_SUBDIRECTORY(libmysqld/examples)
442+
ADD_SUBDIRECTORY(unittest/embedded)
442443
ENDIF(WITH_EMBEDDED_SERVER)
444+
IF(NOT WIN32)
445+
ADD_FEATURE_INFO(EMBEDDED_SERVER WITH_EMBEDDED_SERVER "Embedded MariaDB Server Library")
446+
ENDIF()
443447

444448
IF(WITH_WSREP)
445449
ADD_SUBDIRECTORY(wsrep)
@@ -540,6 +544,13 @@ IF(WIN32 AND SIGNCODE)
540544
INSTALL(SCRIPT ${PROJECT_BINARY_DIR}/sign.cmake)
541545
ENDIF()
542546

547+
FEATURE_SUMMARY(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES VAR MARIADB_FEATURE_SUMMARY)
548+
549+
OPTION(FEATURE_SUMMARY "Print feature summary at the end of configure step" ON)
550+
IF (FEATURE_SUMMARY)
551+
MESSAGE_ONCE(SUMMARY "${MARIADB_FEATURE_SUMMARY}")
552+
ENDIF()
553+
543554
IF(NON_DISTRIBUTABLE_WARNING)
544555
MESSAGE(WARNING "
545556
You have linked MariaDB with ${NON_DISTRIBUTABLE_WARNING} libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with the Free Software Foundation.")

cmake/jemalloc.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ MACRO (CHECK_JEMALLOC)
3737
IF (NOT LIBJEMALLOC AND NOT WITH_JEMALLOC STREQUAL "auto")
3838
MESSAGE(FATAL_ERROR "jemalloc is not found")
3939
ENDIF()
40+
ADD_FEATURE_INFO(JEMALLOC LIBJEMALLOC "Use the JeMalloc memory allocator")
4041
ENDIF()
4142
ENDMACRO()

cmake/numa.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ MACRO (MYSQL_CHECK_NUMA)
3333
ENDIF()
3434
ENDIF()
3535

36+
ADD_FEATURE_INFO(NUMA HAVE_LIBNUMA "NUMA memory allocation policy")
3637
IF(WITH_NUMA_LOWERCASE STREQUAL "auto" AND HAVE_LIBNUMA)
3738
MESSAGE_ONCE(numa "WITH_NUMA=AUTO: NUMA memory allocation policy enabled")
3839
ELSEIF(WITH_NUMA_LOWERCASE STREQUAL "auto" AND NOT HAVE_LIBNUMA)

cmake/plugin.cmake

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ MACRO(MYSQL_ADD_PLUGIN)
4949
LIST(REMOVE_AT SOURCES 0)
5050
STRING(TOUPPER ${plugin} plugin)
5151
STRING(TOLOWER ${plugin} target)
52-
52+
5353
IF (ARG_MANDATORY)
5454
UNSET(PLUGIN_${plugin} CACHE)
5555
SET(PLUGIN_${plugin} "YES")
@@ -110,11 +110,11 @@ MACRO(MYSQL_ADD_PLUGIN)
110110
SET(with_var "WITH_${plugin}")
111111
ENDIF()
112112
UNSET(${with_var} CACHE)
113-
113+
114114
IF(NOT ARG_DEPENDENCIES)
115115
SET(ARG_DEPENDENCIES)
116116
ENDIF()
117-
117+
118118
IF(NOT ARG_MODULE_OUTPUT_NAME)
119119
IF(ARG_STORAGE_ENGINE)
120120
SET(ARG_MODULE_OUTPUT_NAME "ha_${target}")
@@ -256,6 +256,16 @@ MACRO(MYSQL_ADD_PLUGIN)
256256
INSTALL_MYSQL_TEST("${CMAKE_CURRENT_SOURCE_DIR}/mysql-test/" "plugin/${subpath}")
257257
ENDIF()
258258

259+
GET_TARGET_PROPERTY(plugin_type ${target} TYPE)
260+
STRING(REGEX REPLACE "_LIBRARY$" "" plugin_type ${plugin_type})
261+
STRING(REGEX REPLACE "^NO$" "" plugin_type ${plugin_type})
262+
IF(ARG_STORAGE_ENGINE)
263+
ADD_FEATURE_INFO(${plugin} PLUGIN_${plugin} "Storage Engine ${plugin_type}")
264+
ELSEIF(ARG_CLIENT)
265+
ADD_FEATURE_INFO(${plugin} PLUGIN_${plugin} "Client plugin ${plugin_type}")
266+
ELSE()
267+
ADD_FEATURE_INFO(${plugin} PLUGIN_${plugin} "Server plugin ${plugin_type}")
268+
ENDIF()
259269
ENDIF(NOT WITHOUT_SERVER OR ARG_CLIENT)
260270
ENDMACRO()
261271

cmake/readline.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MACRO (MYSQL_CHECK_MULTIBYTE)
5252
ENDMACRO()
5353

5454
MACRO (FIND_CURSES)
55-
FIND_PACKAGE(Curses)
55+
FIND_PACKAGE(Curses REQUIRED)
5656
MARK_AS_ADVANCED(CURSES_CURSES_H_PATH CURSES_FORM_LIBRARY CURSES_HAVE_CURSES_H)
5757
IF(NOT CURSES_FOUND)
5858
SET(ERRORMSG "Curses library not found. Please install appropriate package,

cmake/ssl.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ MACRO (MYSQL_CHECK_SSL)
126126
ENDIF()
127127
ENDIF()
128128
FIND_PACKAGE(OpenSSL)
129+
SET_PACKAGE_PROPERTIES(OpenSSL PROPERTIES TYPE RECOMMENDED)
129130
IF(OPENSSL_FOUND)
130131
SET(OPENSSL_LIBRARY ${OPENSSL_SSL_LIBRARY})
131132
INCLUDE(CheckSymbolExists)

cmake/systemd.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ MACRO(CHECK_SYSTEMD)
6565
ELSEIF(NOT WITH_SYSTEMD STREQUAL "no")
6666
MESSAGE(FATAL_ERROR "Invalid value for WITH_SYSTEMD. Must be 'yes', 'no', or 'auto'.")
6767
ENDIF()
68+
ADD_FEATURE_INFO(SYSTEMD LIBSYSTEMD "Systemd scripts and notification support")
6869
ENDIF()
6970
ENDMACRO()

cmake/wsrep.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ SET(WSREP_PROC_INFO ${WITH_WSREP})
4141
IF(WITH_WSREP)
4242
SET(WSREP_PATCH_VERSION "wsrep_${WSREP_VERSION}")
4343
ENDIF()
44+
IF (NOT WIN32)
45+
ADD_FEATURE_INFO(WSREP WITH_WSREP "WSREP replication API (to use, e.g. Galera Replication library)")
46+
ENDIF()

configure.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ IF(UNIX)
170170
SET(LIBWRAP "wrap")
171171
ENDIF()
172172
ENDIF()
173+
ADD_FEATURE_INFO(LIBWRAP HAVE_LIBWRAP "Support for tcp wrappers")
173174
ENDIF()
174175

175176
#

0 commit comments

Comments
 (0)