0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2000-2002, 2004, 2007, 2008, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson# "Alternative build" test.
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson# Build BIND9 with build options that are seldom tested otherwise.
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson# Specify the CVS tag or the name of a kit .tar.gz file as a
336ca4423f475d9881ff0dcb326808935be7cd19Andreas Gustafsson# command line argument.
9d22ce85ccded7790a511dbe4065723f8d4f80a6Mark Andrews *) echo "usage: $0 cvs-tag | absolute-path-to-gzipped-tar-file [tmpdir]" >&2; exit 1 ;;
58c48b3b48f0de8fa31fc913aff3b8774c1e72e7Andreas Gustafsson echo "$0: must be run from top of CVS tree";
43b9c76f5e8ad75226a2f58650b3f0be03f49994Andreas Gustafsson# Test a libtool / separate object dir / threadless build.
9224b1c0b6738407c84b61cb151af7672a201018Andreas GustafssonCFLAGS="-g -DISC_CHECK_NONE -DISC_MEM_FILL=0 -DISC_LIST_CHECKINIT" \
43b9c76f5e8ad75226a2f58650b3f0be03f49994Andreas Gustafsson sh $srcdir/bind-*/configure --with-libtool \
6cdaeb94d4d12b72b919f3c7099f7c47c172b59bEvan Hunt --disable-threads --with-openssl --prefix=$instdir
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson# Rebuild in the source tree so that the test suite
21f17c42eca9b552d516c38b66564673c60a4504Andreas Gustafsson# works, then run it.
9224b1c0b6738407c84b61cb151af7672a201018Andreas GustafssonCFLAGS="-g -DISC_CHECK_NONE -DISC_MEM_FILL=0 -DISC_LIST_CHECKINIT" \
9224b1c0b6738407c84b61cb151af7672a201018Andreas Gustafsson sh configure --with-libtool --disable-threads --prefix=$instdir
82493dc831d40482faf20cdb4d4295174879c9f9Andreas Gustafsson# Check the installed header files