> config.status:901: creating config.h
> config.status:1175: executing chmod commands
> configure:32712: === configuring in lib/bind
> (/opt/bind9/bind-9.5.0-P2/lib/bind)
> configure:32815: running /bin/bash ./configure '--prefix=/usr/local'
> --cache-file=/dev/null --src
> dir=.
> configure:32820: error: ./configure failed for lib/bind



Maybe look at lib/bind/config.log also?