summaryrefslogtreecommitdiff
path: root/m4/strsep.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2004-10-05 17:44:44 +0000
committerBruno Haible <bruno@clisp.org>2004-10-05 17:44:44 +0000
commit44fd637accbdb4f21edb7cc5194f5cf0848eac62 (patch)
treeb87288d696c831d8d06577d1175e3802f772fb96 /m4/strsep.m4
parentb2b958b255816add4ad7233a6b60903915a26e79 (diff)
downloadgnulib-44fd637accbdb4f21edb7cc5194f5cf0848eac62.tar.gz
Don't redeclare strsep if the system already has it.
Diffstat (limited to 'm4/strsep.m4')
-rw-r--r--m4/strsep.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/strsep.m4 b/m4/strsep.m4
index 430a25805f..cfcb06fb9e 100644
--- a/m4/strsep.m4
+++ b/m4/strsep.m4
@@ -1,4 +1,4 @@
-# strsep.m4 serial 1
+# strsep.m4 serial 2
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -8,8 +8,10 @@ dnl the same distribution terms as the rest of that program.
AC_DEFUN([gl_FUNC_STRSEP],
[
+ dnl Persuade glibc <string.h> to declare strsep().
+ AC_REQUIRE([AC_GNU_SOURCE])
+
AC_REPLACE_FUNCS(strsep)
- AC_CHECK_DECLS_ONCE(strsep)
gl_PREREQ_STRSEP
])