Either it should build (and be useless? dunno), or configure should reject --disable-wallet with an error.