While building with --with-jemalloc, I keep getting the error message configure: error: jemalloc has bogus version. After some digging I found that this started happening after commit 3412c4f
After that commit, if I specify both --with-openssl and --with-jemalloc options, I get the error message, if I only specify --with-jemalloc everything works as expected.