collectdctl: prefix may be undefined as well
[collectd.git] / src / collectdctl.c
index 5978b5e..8c88479 100644 (file)
 
 #include "libcollectdclient/collectd/client.h"
 
+#ifndef PREFIX
+# define PREFIX "/opt/" PACKAGE_NAME
+#endif
+
 #ifndef LOCALSTATEDIR
 # define LOCALSTATEDIR PREFIX "/var"
 #endif