qsort_r: Fix macrology for platforms that lack the function.
commitae23caf43875cd2aba829a4d5ba6f24f261fe7df
authorBruno Haible <bruno@clisp.org>
Sun, 16 Oct 2016 20:11:32 +0000 (16 22:11 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 27 Oct 2016 07:22:29 +0000 (27 09:22 +0200)
tree73c4fd3148218df441c876947da36afb211f6cc4
parent174653f46049dab7b2d78b2849a8f518b0f7aeb2
qsort_r: Fix macrology for platforms that lack the function.

* m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
(gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
* modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
* lib/stdlib.in.h (qsort_r): Provide declaration if the function does
not exist.
* m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
the function exists.
* modules/qsort_r: Add comments.
ChangeLog
lib/stdlib.in.h
m4/qsort_r.m4
m4/stdlib_h.m4
modules/qsort_r
modules/stdlib