diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-24 08:57:07 (GMT) |
---|---|---|
committer | Ton Voon <ton.voon@opsera.com> | 2010-06-24 08:57:07 (GMT) |
commit | f789a37b057b6f34820ea4f95d63f53b5a84c980 (patch) | |
tree | 73b532f430f5e09ed8123824cf6ac852116471eb /gl/m4/strsep.m4 | |
parent | b8e2850c1add8031a11d951bec1459b203582299 (diff) | |
download | monitoring-plugins-f789a37b057b6f34820ea4f95d63f53b5a84c980.tar.gz |
Added strsep to gnulib, for check_snmp.c
Diffstat (limited to 'gl/m4/strsep.m4')
-rw-r--r-- | gl/m4/strsep.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gl/m4/strsep.m4 b/gl/m4/strsep.m4 new file mode 100644 index 0000000..fb4d396 --- /dev/null +++ b/gl/m4/strsep.m4 | |||
@@ -0,0 +1,25 @@ | |||
1 | # strsep.m4 serial 9 | ||
2 | dnl Copyright (C) 2002, 2003, 2004, 2007, 2009, 2010 Free Software Foundation, | ||
3 | dnl Inc. | ||
4 | dnl This file is free software; the Free Software Foundation | ||
5 | dnl gives unlimited permission to copy and/or distribute it, | ||
6 | dnl with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | AC_DEFUN([gl_FUNC_STRSEP], | ||
9 | [ | ||
10 | dnl Persuade glibc <string.h> to declare strsep(). | ||
11 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | ||
12 | |||
13 | dnl The strsep() declaration in lib/string.in.h uses 'restrict'. | ||
14 | AC_REQUIRE([AC_C_RESTRICT]) | ||
15 | |||
16 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) | ||
17 | AC_REPLACE_FUNCS([strsep]) | ||
18 | if test $ac_cv_func_strsep = no; then | ||
19 | HAVE_STRSEP=0 | ||
20 | gl_PREREQ_STRSEP | ||
21 | fi | ||
22 | ]) | ||
23 | |||
24 | # Prerequisites of lib/strsep.c. | ||
25 | AC_DEFUN([gl_PREREQ_STRSEP], [:]) | ||