AC_ARG_ENABLE([upnp], ...) makes sense here (after the dependency is moved to AC_ARG_WITH)