aboutsummaryrefslogtreecommitdiffstats
path: root/gl/m4/strsep.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/strsep.m4')
-rw-r--r--gl/m4/strsep.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/gl/m4/strsep.m4 b/gl/m4/strsep.m4
new file mode 100644
index 000000000..40a087b3d
--- /dev/null
+++ b/gl/m4/strsep.m4
@@ -0,0 +1,17 @@
+# strsep.m4 serial 3
+dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_FUNC_STRSEP],
+[
+ dnl Persuade glibc <string.h> to declare strsep().
+ AC_REQUIRE([AC_GNU_SOURCE])
+
+ AC_REPLACE_FUNCS(strsep)
+ gl_PREREQ_STRSEP
+])
+
+# Prerequisites of lib/strsep.c.
+AC_DEFUN([gl_PREREQ_STRSEP], [:])