configure.ac, Makefile.am, pcre.c, regexp.c: Overhaul conditional building.
[anag] / anag.h
diff --git a/anag.h b/anag.h
index 0223c54..6763d0f 100644 (file)
--- a/anag.h
+++ b/anag.h
@@ -95,8 +95,12 @@ extern node *subgram(const char *const */*av*/);
 extern node *wildcard(const char *const */*av*/);
 extern node *trackword(const char *const */*av*/);
 extern node *mono(const char *const */*av*/);
-extern node *regexp(const char *const */*av*/);
-extern node *pcrenode(const char *const */*av*/);
+#ifdef HAVE_REGCOMP
+  extern node *regexp(const char *const */*av*/);
+#endif
+#ifdef HAVE_PCRE
+  extern node *pcrenode(const char *const */*av*/);
+#endif
 extern node *longest(const char *const */*av*/);
 extern node *shortest(const char *const */*av*/);