Lines Matching refs:regex
15 gl_INCLUDED_REGEX([lib/regex.c])
18 dnl Usage: gl_INCLUDED_REGEX([lib/regex.c])
22 dnl Even packages that don't use regex.c can use this macro.
25 # Assume we'll default to using the included regex.c.
28 # However, if the system regex support is good enough that it passes the
29 # the following run test, then default to *not* using the included regex.c.
31 # regex.c. The first failing regular expression is from `Spencer ere
39 #include <regex.h>
43 static struct re_pattern_buffer regex;
47 memset (®ex, 0, sizeof (regex));
48 [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);]
54 memset (®ex, 0, sizeof (regex));
55 s = re_compile_pattern ("{1", 2, ®ex);
62 memset (®ex, 0, sizeof (regex));
63 s = re_compile_pattern ("[[an\371]]*n", 7, ®ex);
68 if (re_match (®ex, "an", 2, 0, ®s) != 2)
71 memset (®ex, 0, sizeof (regex));
72 s = re_compile_pattern ("x", 1, ®ex);
76 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
78 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
96 AC_ARG_WITH(included-regex,
97 [ --without-included-regex don't compile regex; this is the default on
103 AC_LIBOBJ(regex)
111 # Prerequisites of lib/regex.c.