build-system: Use AS_IF macro for configure output