m4 makros to select memory optimizations