X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fregex.m4;h=0017507edf03ecd43cbbae382ba785f0078b2dd7;hb=02e3bf2a532498c860f248a9bd81869dbf514404;hp=f546dd7bcdc5ae6e98fc0c918acea197fdcb4f21;hpb=bcfcc8bed2f411bbeb7978a2f8cf4e9c96affb68;p=gnulib.git diff --git a/m4/regex.m4 b/m4/regex.m4 index f546dd7bc..0017507ed 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,11 +1,11 @@ -#serial 10 +#serial 12 dnl Initially derived from code in GNU grep. dnl Mostly written by Jim Meyering. dnl Usage: jm_INCLUDED_REGEX([lib/regex.c]) dnl -AC_DEFUN(jm_INCLUDED_REGEX, +AC_DEFUN([jm_INCLUDED_REGEX], [ dnl Even packages that don't use regex.c can use this macro. dnl Of course, for them it doesn't do anything. @@ -30,10 +30,7 @@ AC_DEFUN(jm_INCLUDED_REGEX, const char *s; struct re_registers regs; re_set_syntax (RE_SYNTAX_POSIX_EGREP); - /* These two brackets, `[[' and the one in the comment below serve - to quote the brackets (unbalanced) in the following line. */ - s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex); - /* This bracket `]' helps quote the unbalanced expression above. */ + [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] /* This should fail with _Invalid character class name_ error. */ if (!s) exit (1);