Modify configure.ac to fix --with-sasl.

Fixes MESOS-1839.

Review: https://reviews.apache.org/r/26133