Branch
Hash :
d4cdb40a
Author :
Date :
2025-09-10T08:33:49
regex: fix support for overriding "gnulib" Problem reported by Pádraig Brady in: https://lists.gnu.org/r/bug-gnulib/2025-09/msg00104.html * lib/regex_internal.h [!_LIBC]: Simplify by including gettext.h rather than doing things by hand and mishandling GNULIB_TEXT_DOMAIN. (gettext_noop) [!_LIBC]: Remove, since gettext.h does that now. * modules/regex (Depends-on): Add gettext-h.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
Description:
Regular expression matching.
This matches the current GNU C Library, so its interface differs from
the standalone GNU regex library which has long been decommissioned in
favor of the GNU C Library interface.
Files:
lib/regex.h
lib/regex.c
lib/regex_internal.c
lib/regex_internal.h
lib/regexec.c
lib/regcomp.c
m4/regex.m4
m4/mbstate_t.m4
Depends-on:
c99
extensions
ssize_t
vararrays
attribute [test $ac_use_included_regex = yes]
btowc [test $ac_use_included_regex = yes]
builtin-expect [test $ac_use_included_regex = yes]
gettext-h [test $ac_use_included_regex = yes]
glibc-internal/dynarray [test $ac_use_included_regex = yes]
gnulib-i18n [test $ac_use_included_regex = yes]
intprops [test $ac_use_included_regex = yes]
iswctype [test $ac_use_included_regex = yes]
langinfo-h [test $ac_use_included_regex = yes]
libc-config [test $ac_use_included_regex = yes]
limits-h [test $ac_use_included_regex = yes]
lock [test $ac_use_included_regex = yes]
malloc-gnu [test $ac_use_included_regex = yes]
memcmp [test $ac_use_included_regex = yes]
memmove [test $ac_use_included_regex = yes]
mbrtowc [test $ac_use_included_regex = yes]
mbsinit [test $ac_use_included_regex = yes]
nl_langinfo [test $ac_use_included_regex = yes]
bool [test $ac_use_included_regex = yes]
stdckdint-h [test $ac_use_included_regex = yes]
stdint-h [test $ac_use_included_regex = yes]
verify [test $ac_use_included_regex = yes]
wchar-h [test $ac_use_included_regex = yes]
wcrtomb [test $ac_use_included_regex = yes]
wctype-h [test $ac_use_included_regex = yes]
wctype [test $ac_use_included_regex = yes]
configure.ac:
gl_REGEX
gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
AM_COND_IF([GL_COND_OBJ_REGEX], [
gl_PREREQ_REGEX
])
Makefile.am:
if GL_COND_OBJ_REGEX
lib_SOURCES += regex.c
endif
Include:
<regex.h>
Link:
$(MBRTOWC_LIB)
$(LIBTHREAD)
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
License:
LGPLv2+
Maintainer:
all