correct autotool avahi libs references and remove unneeded explicit extra -lX11
PKG_CHECK_MODULES invokes AC_SUBST itself since 2004
AC_INIT will set PACKAGE_URL if when passed a URL
try to not step on user variables like CFLAGS, and simplify automake
remove autotools CXX, because why?