[v9_10] add "configure --with-bind" option to dnsperf

4568.	[contrib]	Added a --with-bind option to the dnsperf configure
			script to specify BIND prefix path.

(cherry picked from commit adcdff94d9)
This commit is contained in:
Evan Hunt 2017-02-03 16:29:17 -08:00
parent 94f8e9b86a
commit fd9b416561
3 changed files with 1594 additions and 1847 deletions

View file

@ -1,3 +1,6 @@
4568. [contrib] Added a --with-bind option to the dnsperf configure
script to specify BIND prefix path.
4567. [port] Call getprotobyname and getservbyname prior to calling
chroot so that shared libraries get loaded. [RT #44537]

File diff suppressed because it is too large Load diff

View file

@ -58,7 +58,19 @@ AC_DEFUN(AC_SA_LEN,
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, inet_ntoa)
AC_PATH_PROG(ac_cv_isc_config, [isc-config.sh], "no")
AC_ARG_WITH(bind,
[ --with-bind=[[PATH]] Specify ISC BIND 9 prefix path],
use_bind="$withval", use_bind="yes")
AC_MSG_CHECKING(for BIND 9 libraries)
if test $use_bind = no; then
AC_MSG_ERROR(BIND 9 libraries must be installed)
elif test $use_bind = yes; then
bindpath="$PATH"
else
bindpath="$withval/bin"
fi
AC_PATH_PROG(ac_cv_isc_config, [isc-config.sh], "no", [$bindpath])
if test "$ac_cv_isc_config" = "no"; then
AC_MSG_ERROR(BIND 9 libraries must be installed)
fi