• Bruno Haible's avatar
    ilogbl: Ensure replacement on Haiku. · 625f7aea
    Bruno Haible authored
    * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
    REPLACE_ILOGBL if ilogbl does not work.
    (gl_FUNC_ILOGBL_WORKS): New macro.
    * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
    * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
    * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
    * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
    * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
    625f7aea