summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4302fb1)
raw | patch | inline | side by side (parent: 4302fb1)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 13:45:21 +0000 (15:45 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 13:45:21 +0000 (15:45 +0200) |
This happends if not linking against librrd. Some people missed the summary at
the end of the configure script and the error message wasn't helping them.
the end of the configure script and the error message wasn't helping them.
src/configfile.c | patch | blob | history |
diff --git a/src/configfile.c b/src/configfile.c
index 39265868eac9dfb3eee7e2c79221c5be2c92c4d2..40b46fab2d9fb160639ddf24956fd8263c60ade8 100644 (file)
--- a/src/configfile.c
+++ b/src/configfile.c
operating_mode = MODE_SERVER;
else if (strcasecmp (value, "Local") == 0)
operating_mode = MODE_LOCAL;
+#else /* !HAVE_LIBRRD */
+ else if (strcasecmp (value, "Server") == 0)
+ {
+ fprintf (stderr, "Invalid mode `Server': "
+ "You need to link against librrd for this "
+ "mode to be available.\n");
+ syslog (LOG_ERR, "Invalid mode `Server': "
+ "You need to link against librrd for this "
+ "mode to be available.");
+ return (LC_CBRET_ERROR);
+ }
+ else if (strcasecmp (value, "Local") == 0)
+ {
+ fprintf (stderr, "Invalid mode `Local': "
+ "You need to link against librrd for this "
+ "mode to be available.\n");
+ syslog (LOG_ERR, "Invalid mode `Local': "
+ "You need to link against librrd for this "
+ "mode to be available.");
+ return (LC_CBRET_ERROR);
+ }
#endif
else if (strcasecmp (value, "Log") == 0)
operating_mode = MODE_LOG;