summaryrefslogtreecommitdiff
path: root/gdb/gnulib/import/m4/gnulib-comp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gnulib/import/m4/gnulib-comp.m4')
-rw-r--r--gdb/gnulib/import/m4/gnulib-comp.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gnulib/import/m4/gnulib-comp.m4 b/gdb/gnulib/import/m4/gnulib-comp.m4
index f280cf2da94..29f8f7332c2 100644
--- a/gdb/gnulib/import/m4/gnulib-comp.m4
+++ b/gdb/gnulib/import/m4/gnulib-comp.m4
@@ -101,6 +101,7 @@ AC_DEFUN([gl_EARLY],
# Code from module strnlen1:
# Code from module strstr:
# Code from module strstr-simple:
+ # Code from module strtok_r:
# Code from module sys_stat:
# Code from module sys_types:
# Code from module time:
@@ -278,6 +279,12 @@ AC_DEFUN([gl_INIT],
AC_LIBOBJ([strstr])
fi
gl_STRING_MODULE_INDICATOR([strstr])
+ gl_FUNC_STRTOK_R
+ if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
+ AC_LIBOBJ([strtok_r])
+ gl_PREREQ_STRTOK_R
+ fi
+ gl_STRING_MODULE_INDICATOR([strtok_r])
gl_HEADER_SYS_STAT_H
AC_PROG_MKDIR_P
gl_SYS_TYPES_H
@@ -496,6 +503,7 @@ AC_DEFUN([gl_FILE_LIST], [
lib/strnlen1.c
lib/strnlen1.h
lib/strstr.c
+ lib/strtok_r.c
lib/sys_stat.in.h
lib/sys_types.in.h
lib/time.in.h
@@ -566,6 +574,7 @@ AC_DEFUN([gl_FILE_LIST], [
m4/stdlib_h.m4
m4/string_h.m4
m4/strstr.m4
+ m4/strtok_r.m4
m4/sys_stat_h.m4
m4/sys_types_h.m4
m4/time_h.m4