Commit Graph

20 Commits

Author SHA1 Message Date
Monty Taylor f19e38dab5 Simplify build
We only compile for a single platform, the one inside our container.
Since we do that, we can massively simplify this build.

Change-Id: Ic7d088fd85f2cf88838cb83524aaf1c8b2e858bf
2020-07-15 12:03:05 -05:00
Monty Taylor a4c1ce615a Remove stray " 2019-02-11 18:52:29 +00:00
Monty Taylor 5b57763831 Remove ax_cxx_check_lib and use autoconf-archive
We don't need this local lib check macro. We can use AX_CHECK_LIBRARY
from autoconf-archive.
2019-02-11 18:35:15 +00:00
Monty Taylor 5a36c4a3eb Use boost::optional and drop std back to 14
boost::optional works on stretch and doesn't add any depends. The
c++17 support in gcc isn't complete anyway.
2019-02-11 15:27:50 +00:00
Monty Taylor 7c55682e08 Use autoconf archive for boost and openssl 2019-02-11 14:53:57 +00:00
Monty Taylor c9245f61ec Add consts to LRU and use std::optional
c++17 (which our compiler supports) has std::optional<T> that can
be used for thigns that return a value or nothing (like this) Use
that.

add in some consts and pass parameters by const reference.

use std::uint32_t instead of uint. Initialize it with the constructor
initializer list instead of in the body of the constructor, and use
uniform initialization syntax to do so.

Initialize the cache instantiation using uniform initialization.

Use a few more autos so that we don't have to type const as much.
2019-02-10 19:17:38 +00:00
Monty Taylor 80d56bccb3 Re-add -Werror
Accidentally lost this in the autoconf refactor.
2019-02-10 19:15:51 +00:00
Monty Taylor 31d726c6e6 Overhaul warnings, debug and optimize settings
There's a ton of stuff in here that's holdovers from the days of
Drizzle, such as intel c compiler and solaris support, that can
just flat go away. There's also support for being able to turn off
a bunch of various things with m4 parameters that were there to let
us deal with legacy MySQL code. We don't need any of those. We can
also just depend on autoconf archive for more functions and align
with the behavior there rather than carrying local logic.

While we're at it, rename both pandora and zuul prefixed things to
opendev. pandora-build is what we were calling the collection of
autoconf stuff 10 years ago, but is a long-dead project. That said,
none of this is specific to zuul, but might still be useful for
general C++ "I want to build things cleanly and stricly like
Drizzle did". Use opendev for now, with the thought that perhaps
we'll extract these into their own repo to be used by people
should they choose.

Perhaps a better prefix choice would be "DRIZZLE_" - since these
are "build things inspired by Drizzle" - but maybe that implies
a provenance that doesn't exist.

Update copyright for the files that have essentially been rewritten.
For the ones that are still legitimately based on the original code,
add a Red Hat header line.
2019-02-10 17:31:33 +00:00
Monty Taylor b1063b17e0 Remove vendored copies of m4 files
These can be consumed directly via gnulib and autoconf-archive
packages these days. (yay!) Remove the copies from the tree and
add gnulib and autoconf-archive to bindep.

As part of doing this, switch to using the autoconf-archive version
of debug flag handling, AX_CHECK_ENABLE_DEBUG.
2019-02-10 15:31:12 +00:00
Monty Taylor 5302413002 Get rid of -Wmissing-declaration
The extra line just looks weird.
2019-02-09 21:48:47 +00:00
Monty Taylor d58179dba7 Strip more autoconf stuff we don't need
We're not building on solaris.
2019-02-09 21:39:17 +00:00
Monty Taylor 2cabe5501c Simplify library searching
Use AX_CXX_CHECK_LIB from autoconf archive instead of
AC_LIB_HAVE_LINKFLAGS which is from gettext and causes a bunch of
other stuff to need to be copied in.
2019-02-09 21:39:17 +00:00
Monty Taylor a608f98b4f Clean up a few more warning settings
We had a few things turned off in drizzle because of the inherited
codebase and the pain of cleaning them up. Turn them back on.

Also, we don't actually need the additional lib settings in the
libcpprest test.
2019-02-09 18:39:04 +00:00
Monty Taylor 52ba519ce2 Test for cpprest with pthreads 2019-02-09 18:25:19 +00:00
Monty Taylor 486397aa29 Remove lib-link and lib-prefix and depend on gettext 2019-02-09 18:08:51 +00:00
Monty Taylor 2068850455 Add lib-link 2019-02-09 18:01:38 +00:00
Monty Taylor 6ac4ff1602 Add lib-prefix
This should be added by other things, will want to figure that out.
2019-02-09 17:58:04 +00:00
Monty Taylor 52487147b2 Switch to cpprest and add support for it 2019-02-09 17:51:06 +00:00
Monty Taylor ca18b09f26 Fix warnings in build
These had been turned off in oaktree because of protobuf. Turn them
back on. And then fix the unused parameter issue.
2019-02-09 16:08:41 +00:00
Monty Taylor 754c66a53c Initial commit 2019-02-09 15:55:31 +00:00