}
}
+#ifndef BUILD_HYPERSCAN
+ if ((mpm_algo != NULL) && (strcmp(mpm_algo, "hs") == 0)) {
+ FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for mpm-algo is "
+ "not compiled into Suricata.");
+ }
+#endif
SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY, "Invalid mpm algo supplied "
"in the yaml conf file: \"%s\"", mpm_algo);
exit(EXIT_FAILURE);
}
}
+#ifndef BUILD_HYPERSCAN
+ if ((spm_algo != NULL) && (strcmp(spm_algo, "hs") == 0)) {
+ FatalError(SC_ERR_INVALID_VALUE, "Hyperscan (hs) support for spm-algo is "
+ "not compiled into Suricata.");
+ }
+#endif
SCLogError(SC_ERR_INVALID_YAML_CONF_ENTRY,
"Invalid spm algo supplied "
"in the yaml conf file: \"%s\"",