Using `AC_SUBST` and `AM_CONDITIONAL` seems a bit too complicated. What do you think about using `AC_DEFINE_UNQUOTED` instead? We could then add something like this to `src/collectd.h`:

```c
#ifndef COLLECTD_USERAGENT
# define COLLECTD_USERAGENT PACKAGE_NAME"/"PACKAGE_VERSION
#endif
```