summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.y
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-27 14:21:27 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-27 14:21:27 +0300
commita83e5f18a2b6d9dc3196045867bcd842cfea3323 (patch)
tree5272d1159063abc10b92033f0a914aa2d36d06d2 /src/cfg_file.y
parentfdccb337ed73f14b204721cf464ca03a7eca49b6 (diff)
downloadrspamd-a83e5f18a2b6d9dc3196045867bcd842cfea3323.tar.gz
rspamd-a83e5f18a2b6d9dc3196045867bcd842cfea3323.zip
* Add ability to build rspamd without perl support
* Fix creating of uinx socket * Improve some build issues
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r--src/cfg_file.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y
index 7e86c3d9f..a12e047c4 100644
--- a/src/cfg_file.y
+++ b/src/cfg_file.y
@@ -385,6 +385,7 @@ requirebody:
requirecmd:
MODULE EQSIGN QUOTEDSTRING {
+#ifndef WITHOUT_PERL
struct stat st;
struct perl_module *cur;
if (stat ($3, &st) == -1) {
@@ -398,6 +399,10 @@ requirecmd:
}
cur->path = $3;
LIST_INSERT_HEAD (&cfg->perl_modules, cur, next);
+#else
+ yyerror ("require command is not available when perl support is not compiled");
+ YYERROR;
+#endif
}
;