strverscmp: migrate from "strverscmp.h" to <string.h>
[gnulib.git] / m4 / strverscmp.m4
1 # strverscmp.m4 serial 6
2 dnl Copyright (C) 2002, 2005, 2006, 2007, 2008 Free Software
3 dnl Foundation, 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_STRVERSCMP],
9 [
10   dnl Persuade glibc <string.h> to declare strverscmp().
11   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
12
13   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
14   AC_REPLACE_FUNCS(strverscmp)
15   if test $ac_cv_func_strverscmp = no; then
16     gl_PREREQ_STRVERSCMP
17     HAVE_STRVERSCMP=0
18   fi
19 ])
20
21 # Prerequisites of lib/strverscmp.c.
22 AC_DEFUN([gl_PREREQ_STRVERSCMP], [
23   :
24 ])