Commit e64e61ca requires the AX_GCC_FUNC_ATTRIBUTE macro, which requires autoconf-archive, and might be too new for some distros we want to support. Distribute it ourselves. Also, some fixes to the makefile and acinclude.m4