$OpenBSD: patch-examples_ldns-signzone_c,v 1.2 2017/06/29 10:31:06 sthen Exp $
Index: examples/ldns-signzone.c
--- examples/ldns-signzone.c.orig
+++ examples/ldns-signzone.c
@@ -40,8 +40,10 @@ usage(FILE *fp, const char *prog) {
 	fprintf(fp, "  -v\t\tprint version and exit\n");
 	fprintf(fp, "  -A\t\tsign DNSKEY with all keys instead of minimal\n");
 	fprintf(fp, "  -U\t\tSign with every unique algorithm in the provided keys\n");
+#ifdef HAVE_ENGINE_LOAD_CRYPTODEV
 	fprintf(fp, "  -E <name>\tuse <name> as the crypto engine for signing\n");
 	fprintf(fp, "           \tThis can have a lot of extra options, see the manual page for more info\n");
+#endif
 	fprintf(fp, "  -k <id>,<int>\tuse key id with algorithm int from engine\n");
 	fprintf(fp, "  -K <id>,<int>\tuse key id with algorithm int from engine as KSK\n");
 	fprintf(fp, "\t\tif no key is given (but an external one is used through the engine support, it might be necessary to provide the right algorithm number.\n");
@@ -446,6 +448,7 @@ main(int argc, char *argv[])
 		case 'A':
 			signflags |= LDNS_SIGN_DNSKEY_WITH_ZSK;
 			break;
+#ifdef HAVE_ENGINE_LOAD_CRYPTODEV
 		case 'E':
 			ENGINE_load_builtin_engines();
 			ENGINE_load_dynamic();
@@ -472,6 +475,7 @@ main(int argc, char *argv[])
 				ENGINE_set_default(engine, 0);
 			}
 			break;
+#endif
 		case 'k':
 			eng_key_l = strchr(optarg, ',');
 			if (eng_key_l && strlen(eng_key_l) > 1) {
