unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
[gnulib.git] / modules / unistr / u8-chr
index 2e04f56..a337b0f 100644 (file)
@@ -5,13 +5,17 @@ Files:
 lib/unistr/u8-chr.c
 
 Depends-on:
+memchr
 unistr/base
 unistr/u8-uctomb
 
 configure.ac:
-gl_LIBUNISTRING_LIBSOURCE([0.9], [unistr/u8-chr.c])
+gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-chr])
 
 Makefile.am:
+if LIBUNISTRING_COMPILE_UNISTR_U8_CHR
+lib_SOURCES += unistr/u8-chr.c
+endif
 
 Include:
 "unistr.h"