build: useful autoconf/automake functions, used in reach project