diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-04-15 14:28:25 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-04-15 14:28:25 +0300 |
commit | 13c73c31c320877bb3a7b7035631ccdd6eee4c2a (patch) | |
tree | db2f61e2cdfb0bad0bf8929cb25fc01aa01f2504 /cmake/lzo.cmake | |
parent | 88765c3b4d7357ed5a063abb46cabf72c26e7b32 (diff) | |
download | mariadb-git-13c73c31c320877bb3a7b7035631ccdd6eee4c2a.tar.gz |
Added support for LZO compression method.
Removed: innodb_use_lz4 configuration parameter
Added: innodb_compression_algorithm configuration parameter
0 = no compression, 1 = ZLIB, 2 = LZ4, 3 = LZO
Fixed issue with incorrect trim calculations
Diffstat (limited to 'cmake/lzo.cmake')
-rw-r--r-- | cmake/lzo.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cmake/lzo.cmake b/cmake/lzo.cmake new file mode 100644 index 00000000000..596dfdcde8b --- /dev/null +++ b/cmake/lzo.cmake @@ -0,0 +1,35 @@ +# Copyright (C) 2014, SkySQL Ab. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation; version 2 of the License. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +MACRO (MYSQL_CHECK_LZO_STATIC) + +CHECK_INCLUDE_FILES(lzo/lzo1x.h HAVE_LZO_H) +CHECK_LIBRARY_EXISTS(liblzo2.a lzo1x_1_compress "" HAVE_LZO_LIB) + +IF(HAVE_LZO_LIB AND HAVE_LZO_H) + ADD_DEFINITIONS(-DHAVE_LZO=1) + LINK_LIBRARIES(liblzo2.a) +ENDIF() +ENDMACRO() + +MACRO (MYSQL_CHECK_LZO) + +CHECK_INCLUDE_FILES(lzo/lzo1x.h HAVE_LZO_H) +CHECK_LIBRARY_EXISTS(lzo2 lzo1x_1_compress "" HAVE_LZO_LIB) + +IF(HAVE_LZO_LIB AND HAVE_LZO_H) + ADD_DEFINITIONS(-DHAVE_LZO=1) + LINK_LIBRARIES(lzo2) +ENDIF() +ENDMACRO() |