69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews#!/bin/sh
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2011, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
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/.
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrewsif $PERL -e 'use Net::DNS;' 2>/dev/null
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrewsthen
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION >= 0.69 && $Net::DNS::VERSION <= 0.74);' 2>/dev/null
576009560152f135a54862c2d9620872b9434f60Evan Hunt then
576009560152f135a54862c2d9620872b9434f60Evan Hunt :
576009560152f135a54862c2d9620872b9434f60Evan Hunt else
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews echo "I:Net::DNS versions 0.69 to 0.74 have bugs that cause this test to fail: please update." >&2
576009560152f135a54862c2d9620872b9434f60Evan Hunt exit 1
576009560152f135a54862c2d9620872b9434f60Evan Hunt fi
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrewselse
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews echo "I:This test requires the Net::DNS library." >&2
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrews exit 1
69e617cf887e3dd232dc47154a7d43f9698763afMark Andrewsfi