md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git] / m4 / sqrtl.m4
index 9f65c24..0bc6ecd 100644 (file)
@@ -1,5 +1,5 @@
-# sqrtl.m4 serial 8
-dnl Copyright (C) 2010-2012 Free Software Foundation, Inc.
+# sqrtl.m4 serial 9
+dnl Copyright (C) 2010-2013 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -56,7 +56,7 @@ AC_DEFUN([gl_FUNC_SQRTL],
   if test $gl_cv_func_sqrtl_no_libm = yes \
      || test $gl_cv_func_sqrtl_in_libm = yes; then
     dnl Also check whether it's declared.
-    dnl MacOS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
+    dnl Mac OS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
     AC_CHECK_DECL([sqrtl], , [HAVE_DECL_SQRTL=0], [[#include <math.h>]])
 
     save_LIBS="$LIBS"
@@ -119,11 +119,13 @@ AC_DEFUN([gl_FUNC_SQRTL_WORKS],
         [AC_LANG_SOURCE([[
 #include <float.h>
 #include <math.h>
+#ifndef sqrtl /* for AIX */
 extern
 #ifdef __cplusplus
 "C"
 #endif
 long double sqrtl (long double);
+#endif
 static long double
 my_ldexpl (long double x, int d)
 {
@@ -152,8 +154,8 @@ int main ()
         [gl_cv_func_sqrtl_works=yes],
         [gl_cv_func_sqrtl_works=no],
         [case "$host_os" in
-           osf*) gl_cv_func_sqrtl_works="guessing no";;
-           *)    gl_cv_func_sqrtl_works="guessing yes";;
+           openbsd*) gl_cv_func_sqrtl_works="guessing no";;
+           *)        gl_cv_func_sqrtl_works="guessing yes";;
          esac
         ])
     ])