diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-03-25 09:10:28 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-03-25 09:10:28 +0000 |
commit | cd70d37ee3c1c9e5299c6529efcbb9c0f70eb94b (patch) | |
tree | ff19c712ad2c478dcdf0afe96b2cc59a783bb17f /m4/regex.m4 | |
parent | f6d592cbb24413bef3db611dc3853be320986a0b (diff) | |
download | coreutils-cd70d37ee3c1c9e5299c6529efcbb9c0f70eb94b.tar.xz |
(gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
glibc names.
Diffstat (limited to 'm4/regex.m4')
-rw-r--r-- | m4/regex.m4 | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/m4/regex.m4 b/m4/regex.m4 index f8d5339f5..d59df38dd 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,4 +1,4 @@ -#serial 33 +#serial 34 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006 Free Software Foundation, Inc. @@ -42,10 +42,7 @@ AC_DEFUN([gl_REGEX], [[static struct re_pattern_buffer regex; const char *s; struct re_registers regs; - /* Use the POSIX-compliant spelling with leading REG_, - rather than the traditional GNU spelling with leading RE_, - so that we reject older libc implementations. */ - re_set_syntax (REG_SYNTAX_POSIX_EGREP); + re_set_syntax (RE_SYNTAX_POSIX_EGREP); memset (®ex, 0, sizeof (regex)); s = re_compile_pattern ("a[:@:>@:]b\n", 9, ®ex); /* This should fail with _Invalid character class name_ error. */ @@ -81,10 +78,9 @@ AC_DEFUN([gl_REGEX], exit (1); /* The version of regex.c in older versions of gnulib - ignored REG_IGNORE_CASE (which was then called RE_ICASE). - Detect that problem too. */ + ignored RE_ICASE. Detect that problem too. */ memset (®ex, 0, sizeof (regex)); - re_set_syntax (REG_SYNTAX_EMACS | REG_IGNORE_CASE); + re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); s = re_compile_pattern ("x", 1, ®ex); if (s) exit (1); |