Clarify the dependencies on libm.
[gnulib.git] / m4 / frexpl.m4
index e3162c2..ca67add 100644 (file)
@@ -54,8 +54,10 @@ AC_DEFUN([gl_FUNC_FREXPL],
     dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in <math.h>.
     AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [#include <math.h>])
   else
+    HAVE_DECL_FREXPL=0
     AC_LIBOBJ([frexpl])
   fi
+  AC_SUBST([FREXPL_LIBM])
 ])
 
 dnl Test whether frexpl() works on finite numbers (this fails on AIX 5.1) and
@@ -68,6 +70,7 @@ AC_DEFUN([gl_FUNC_FREXPL_WORKS],
     [
       AC_TRY_RUN([
 #include <math.h>
+extern long double frexpl (long double, int *);
 int main()
 {
   volatile long double x;