]> Savannah Git Hosting - gnulib.git/commitdiff
isnan: slightly simplify configuration
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2023 19:22:07 +0000 (12:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2023 19:22:47 +0000 (12:22 -0700)
* m4/isnand.m4 (gl_FUNC_ISNAND):
* m4/isnanf.m4 (gl_FUNC_ISNANF):
* m4/isnanl.m4 (gl_FUNC_ISNANL):
Slightly simplify shell ‘if’.  This should simplify future changes.

ChangeLog
m4/isnand.m4
m4/isnanf.m4
m4/isnanl.m4

index 3ace23945064dda0818f457b0f7fef8a81d7bad4..f09de5233ea527d9d1eccaee5950bbd246794c74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2023-10-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       isnan: slightly simplify configuration
+       * m4/isnand.m4 (gl_FUNC_ISNAND):
+       * m4/isnanf.m4 (gl_FUNC_ISNANF):
+       * m4/isnanl.m4 (gl_FUNC_ISNANL):
+       Slightly simplify shell ‘if’.  This should simplify future changes.
+
        totalorder: speed up configuration
        * m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER)
        (gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS,
index 95346f420b7fbd11954f2a9217effa7439644335..b106a5dce4399c390217eb024babdf79075528b8 100644 (file)
@@ -1,4 +1,4 @@
-# isnand.m4 serial 12
+# isnand.m4 serial 13
 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,8 +18,7 @@ AC_DEFUN([gl_FUNC_ISNAND],
     fi
   fi
   dnl The variable gl_func_isnand set here is used by isnan.m4.
-  if test $gl_cv_func_isnand_no_libm = yes \
-     || test $gl_cv_func_isnand_in_libm = yes; then
+  if test $gl_cv_func_isnand_no_libm = yes || test "$ISNAND_LIBM"; then
     gl_func_isnand=yes
   else
     gl_func_isnand=no
index f96e5e206084a90e84b9c0a67a2d35a24140ae35..f30893c629a6ba13daba3210f1b27c18535e80c8 100644 (file)
@@ -1,4 +1,4 @@
-# isnanf.m4 serial 19
+# isnanf.m4 serial 20
 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,8 +18,7 @@ AC_DEFUN([gl_FUNC_ISNANF],
     fi
   fi
   dnl The variable gl_func_isnanf set here is used by isnan.m4.
-  if test $gl_cv_func_isnanf_no_libm = yes \
-     || test $gl_cv_func_isnanf_in_libm = yes; then
+  if test $gl_cv_func_isnanf_no_libm = yes || test "$ISNANF_LIBM"; then
     save_LIBS="$LIBS"
     LIBS="$LIBS $ISNANF_LIBM"
     gl_ISNANF_WORKS
index 1b1c0356650a9e7a1ce03c9f8e1f81d4cbc958af..203ab325f5bd51d6de48d56947727f996bdf1ea8 100644 (file)
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 23
+# isnanl.m4 serial 24
 dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,8 +16,7 @@ AC_DEFUN([gl_FUNC_ISNANL],
     fi
   fi
   dnl The variable gl_func_isnanl set here is used by isnan.m4.
-  if test $gl_cv_func_isnanl_no_libm = yes \
-     || test $gl_cv_func_isnanl_in_libm = yes; then
+  if test $gl_cv_func_isnanl_no_libm = yes || test "$ISNANL_LIBM"; then
     save_LIBS="$LIBS"
     LIBS="$LIBS $ISNANL_LIBM"
     gl_FUNC_ISNANL_WORKS