First stab att Autoconf-stuff. Don't really understand what I'm doing.