Configure: move the processing of predefined macros to a function