Import of code from autoconf-archive