configure: add several macros suggested by `autoscan`