49 Commits

Author SHA1 Message Date
f85f63cec6 build/CI/packaging: modernize autotools files
Fix warnings about obsolete/deprecated features reported by modern
autotools. Also updates third-party m4 macros.
2025-03-09 15:13:38 +03:00
74f3b6b27e Merge branch '1.0' 2019-09-13 14:51:22 +03:00
9ffd5873cf build/CI/packaging: Support MIPS64 builds.
This adds support for building for mips64* architectures by using the
--use-cc-builtins configure option for ConcurrencyKit. Which is a
temporary workaround until proper MIPS supported is implemented in CK
upstream.

Closes GH-318.
2019-09-13 14:49:12 +03:00
0fcd22cc44 Merge branch 'gh-287' 2019-01-16 16:33:04 +03:00
f30a30c875 Fix #287: Issue of MYSQL_OPT_SSL_MODE
In drv_mysql.c do not assume MYSQL_OPT_SSL_MODE to be a preprocessor
define. It is an mysql_option enum value with all MySQL
versions. Instead, do a configure-time check if that value is defined in
mysql.h.
2019-01-16 14:57:37 +03:00
f1d948772d Merge branch '1.0' 2018-01-14 15:14:08 +03:00
1927dd319e Define compatibility m4 macros early to fix CentOS 6 builds. 2018-01-14 14:46:45 +03:00
28bec1f201 Remove Autoconf 2.64 requirement mistakenly re-introduced by commit 4a8973e. 2018-01-14 14:01:13 +03:00
4a8973e703 Merge autoconf-archive macros from upstream. 2018-01-14 13:48:37 +03:00
1fdc5f4705 Merge branch '1.0' 2017-12-09 14:50:56 +03:00
71a459496d Fix a comment typo. 2017-12-09 14:50:29 +03:00
0195495277 Merge branch '1.0' 2017-10-29 08:07:57 +03:00
035457a0dc GH-174: (Undefined symbol "db_destroy" on FreeBSD)
Add -rdynamic to default linker flags on FreeBSD.
2017-10-29 08:06:10 +03:00
df0403a19c Merge branch '1.0' 2017-09-17 23:33:26 +03:00
f5fa7800cb A better version of the fix for #172. 2017-09-17 23:32:38 +03:00
de8c40f52d Merge branch '1.0' 2017-09-17 22:27:33 +03:00
cd13882cb6 Fix #172: sysbench 1.0.9 doesn't build with mariadb 10.2.8
Add a configure check for <server/mysql_version.h> which appears to be
the most portable way to fix MariaDB builds (see MDEV-13773).
2017-09-17 22:23:30 +03:00
6bb15d736d Merge branch '1.0' 2017-04-12 00:26:29 +03:00
1a73781a16 Force --platform=i587 for bundled CK for i486 and i586 targets. 2017-04-10 07:03:55 +03:00
94e48982c8 Force --platform=i686 for bundled CK to avoid its own autodetection. 2017-04-09 23:44:38 +03:00
899f7be669 Fix typo. 2017-03-28 20:33:24 +03:00
ed2bb3df4b Merge branch '1.0' 2017-02-27 21:49:18 +03:00
db1da5b1d8 Pull ax_gcc_archgflag.m4 from upstream. 2017-02-27 21:48:14 +03:00
a49c652b29 Remove old DocBook-based documentation. 2017-02-15 08:33:48 +03:00
24fa9b2a04 Do not require Autoconf 2.64, as CentOS 6 provides 2.63.
The only required bit from Autoconf 2.64 is AS_VAR_IF. Which is in fact
provided, but just in case there is now a fallback implementation in
m4/sb_autoconf_compat.m4.
2017-02-13 21:55:23 +03:00
4bf268b089 Do not require Autoconf 2.64, as CentOS 6 provides 2.63.
The only required bit from Autoconf 2.64 is AS_VAR_IF. Which is in fact
provided, but just in case there is now a fallback implementation in
m4/sb_autoconf_compat.m4.
2017-02-13 21:53:35 +03:00
ef79b6629b Merge ax_gcc_archflag.m4 from upstream. 2017-01-06 20:35:22 +03:00
daa763adba -ldl belongs to LDADD, not LDFLAGS. 2017-01-05 07:49:29 +03:00
51ff4d685d Add -ldl and -rdynamic to LDFLAGS when building with system Luajit as well. 2017-01-05 07:44:44 +03:00
8ae115c63b Add -rdynamic to linker flags on Linux for bundled LuaJIT. 2017-01-04 21:13:36 +03:00
2aed6df4d5 Assume 128-byte cache line on AArch64 and PowerPC. 2016-12-30 11:35:10 +03:00
cf2ce71141 Autodetect the most optimal -march GCC flag for the target architecture.
Use ax_gcc_archflag.m4 to try to guess the most optimal -march value for
the target architecture, unless cross-compiling, or the value is set
explicitly with --with-gcc-arch.

Also, AArch64/ThunderX-specific updates to ax_gcc_archflag.m4.

In sb_concurrency_kit.m4, add --enable-lse to CK build flags if LSE
instructions are supported by the target.
2016-12-30 09:53:56 +03:00
6bf78c6132 Initial Concurrency Kit import. 2016-10-16 22:57:37 +03:00
ff5cc25e1b Manually merge branch '1.0' into luajit. 2016-10-09 17:56:05 +02:00
8ac5bd6720 Fix --with-mysql-libs for MySQL 5.7.
Don't use the hard-coded libmysqlclient_r name for the client library,
because it is obsolete in 5.7. Instead, if the client library path is
specified explicitly with --with-mysql-libs, try both libmysqlclient_r
and libmysqlclient in that order.
2016-05-15 23:51:14 +03:00
db9df06050 Add __attribute__((format...)) to printf-like function declarations.
The SB_ATTRIBUTE_FORMAT() now expands to __attribute__((format...) on
platforms that support it. Fixed a number of inconsistencies between
format string and arguments revealed by the format attribute.
2016-03-26 22:43:48 +03:00
6e7ff366e6 Add -ldl to LUAJIT_LDFLAGS when building with bundled LuaJIT on Linux. 2016-03-20 16:29:42 +03:00
b7358eb6a0 Don't build bundled LuaJIT when --with-system-luajit was passed to configure. 2016-03-20 15:07:49 +03:00
4b6c388a4d Autoconf cleanups. 2016-03-20 14:18:15 +03:00
bf94de28f6 Support building with bundled LuaJIT. 2016-03-20 01:38:36 +03:00
1184aff06b Merge branch '1.0' into luajit 2016-03-09 23:45:39 +03:00
4ad92418c6 Fix compatibility with Autoconf 2.63 broken by adding ax_tls.m4. 2016-02-25 18:00:46 +08:00
e24a028409 Fixes #18: lrand48() is not thread-safe
and
LP#1412488: lrand48() doesn't scale well on highly concurrent platforms

Use re-entrant versions of standard RNG functions with thread-local
states. Seed thread-local RNGs from the RNG of the thread invoking
sb_thread_create() (i.e. the main thread).

The main thread RNG is now always seeded from timer, unless --rand-seed
is specified. Which obsoletes --rand-init, so it has been removed.
2016-02-24 00:26:30 +08:00
11603c917d Initial LuaJIT support: build with system libluajit. 2016-02-21 21:12:45 +08:00
057e143b27 Use mysql_config --libs_r instead of mysql_config --libs | sed. 2015-11-03 00:11:51 +03:00
3d63e69a69 More descriptive configure message when MySQL client library is not found. 2015-09-30 19:22:05 +03:00
a24fa26f0f Bug #1415750: --with-pgsql-libs is ignored
Merged a contributed patch.
2015-03-01 21:18:51 +03:00
7de7f37551 Bug #1415746: mysql include path was set in PGSQL_CFLAGS
Merged a contributed patch.
2015-03-01 21:14:41 +03:00
ff225a7490 Fixed LP bug #671684: build broken in lp:sysbench/0.4
Backported autotools-related fixes from trunk.
2010-11-06 15:37:17 +03:00