Support multi-architecture builds on same machine.

Change-Id: Idf669265f020b19d700767e2e111f5e951b9697e
Reviewed-on: http://review.couchbase.org/41630
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
MB-11060: Fixes to dep download mechanism

Change-Id: I7e0bc2761c39320feb6ae88e0eee792362e8839f
Reviewed-on: http://review.couchbase.org/41754
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
MB-12112: Improve ERL_BUILD_OTP macro

Erlang apps that follow the OTP convention can easily be build with
more hard-coded paths, less flexibility is needed. With improvements
to the ERL_BUILD_OTP macro, less code within individual CMakeLists.txt
files of OTP apps is needed.

Change-Id: I9b03b82194dc787715730d3adb2bc599af162d0a
Reviewed-on: http://review.couchbase.org/41146
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Output geocouch into the common build directory

Change-Id: Ic1cc924386e4bf807dce8b83b33f9fb0ac7ae28b
Reviewed-on: http://review.couchbase.org/41774
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
CMake script to check if PLT file is up-to-date

With the ErlangCheckPlt it is possible to check whether a dialyzer
generated PLT file is up-to-date or not. If it is not, it is deleted.

Change-Id: I1194c8db44a662821e8f55d435ee2e34d4c61707
Reviewed-on: http://review.couchbase.org/41813
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
CBD-1425:  get dependencies from non-expiring S3 bucket:

    "http://packages.couchbase.com/couchbase-server/deps"

instead of:

    "http://packages.northscale.com/deps"

Change-Id: Ic837e75e01998eb8af15939ee737f016bb4f0e0d
Reviewed-on: http://review.couchbase.org/41923
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>
Add make target to build geocouch for unit tests

geocouch needs a special build in order to run unit tests. With the
make target `geocouch-build-for-testing` this build will be created
in a subdirectory called `geocouch-for-testing`. From within this
directory you can then run `make test` to run the unit tests.

Change-Id: I0d932bd80dd31f355e48cfa15d55fc8bfa3f6b95
Reviewed-on: http://review.couchbase.org/41992
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
CBD-1438: Extensions for Sherlock builds.

Support for building Go packages, include with cgo extensions. Build
forestdb, tuqtng, and indexing if they exist.

Change-Id: I91b3f5c4624c7d3fe57923c93c8b50c220017976
Reviewed-on: http://review.couchbase.org/42120
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Chris Hillery <ceej@couchbase.com>
Add indexing build script