# HG changeset patch # User Jim Meyering # Date 1375727066 25200 # Node ID bbdfd5c3b6d38c1097d598b7d9006936cb14f6d1 # Parent bf22413cebcb8d51607c6713bcda21182662284e regex: port to non-glibc/lock-using systems Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc system with GNULIB_LOCK would fail due to absence of the included "glthread/lock.h". This would affect any package for which the "lock" module is used only by the regex module, and not explicitly used. * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21. * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]: Add a dependency on the "lock" module. diff -r bf22413cebcb -r bbdfd5c3b6d3 ChangeLog --- a/ChangeLog Tue Aug 06 10:57:33 2013 -0700 +++ b/ChangeLog Mon Aug 05 11:24:26 2013 -0700 @@ -1,3 +1,15 @@ +2013-08-05 Jim Meyering + + regex: port to non-glibc/lock-using systems + Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc + system with GNULIB_LOCK would fail due to absence of the + included "glthread/lock.h". This would affect any package + for which the "lock" module is used only by the regex module, + and not explicitly used. + * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21. + * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]: + Add a dependency on the "lock" module. + 2013-07-20 Daiki Ueno localecharset: make locale_charset thread-safe on Mac OS X diff -r bf22413cebcb -r bbdfd5c3b6d3 m4/regex.m4 --- a/m4/regex.m4 Tue Aug 06 10:57:33 2013 -0700 +++ b/m4/regex.m4 Mon Aug 05 11:24:26 2013 -0700 @@ -266,6 +266,7 @@ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) AC_REQUIRE([gl_EEMALLOC]) + AC_REQUIRE([gl_GLIBC21]) AC_CHECK_HEADERS([libintl.h]) AC_CHECK_FUNCS_ONCE([isblank iswctype wcscoll]) AC_CHECK_DECLS([isblank], [], [], [[#include ]]) diff -r bf22413cebcb -r bbdfd5c3b6d3 modules/regex --- a/modules/regex Tue Aug 06 10:57:33 2013 -0700 +++ b/modules/regex Mon Aug 05 11:24:26 2013 -0700 @@ -18,6 +18,7 @@ alloca-opt [test $ac_use_included_regex = yes] btowc [test $ac_use_included_regex = yes] gettext-h [test $ac_use_included_regex = yes] +lock [test "$ac_cv_gnu_library_2_1:$ac_use_included_regex" = no:yes] malloc-gnu [test $ac_use_included_regex = yes] memcmp [test $ac_use_included_regex = yes] memmove [test $ac_use_included_regex = yes]