From 67c9d37700d09ec64944be942270fe71d96e1443 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 Oct 2023 12:19:08 -0700 Subject: [PATCH] totalorder: speed up configuration * m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER) (gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS, since the information is already available in shell vars. --- ChangeLog | 5 +++++ m4/totalorder.m4 | 15 +++------------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index bf205bd23f..3ace239450 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2023-10-05 Paul Eggert + totalorder: speed up configuration + * m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER) + (gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS, + since the information is already available in shell vars. + totalorderl: minor porting fixes * lib/totalorderl.c (LDBL_SIGNBIT_WORD): Define to -1 if not defined. (totalorderl): Avoid unused local zu by preferring ‘if’ to ‘ifdef’. diff --git a/m4/totalorder.m4 b/m4/totalorder.m4 index 95aab65f19..02c01fcd1a 100644 --- a/m4/totalorder.m4 +++ b/m4/totalorder.m4 @@ -19,10 +19,7 @@ AC_DEFUN([gl_FUNC_TOTALORDERF], ]) AS_IF([test $gl_cv_func_totalorderf_no_libm != yes && test $gl_cv_func_totalorderf_in_libm != yes], - [gl_saved_LIBS=$LIBS - AC_SEARCH_LIBS([totalorderf], [m]) - LIBS=$gl_saved_LIBS - if test "$ac_cv_search_totalorderf" = no; then + [if test $gl_cv_func_totalorderf_in_libm != yes; then HAVE_TOTALORDERF=0 else REPLACE_TOTALORDERF=1 @@ -46,10 +43,7 @@ AC_DEFUN([gl_FUNC_TOTALORDER], ]) AS_IF([test $gl_cv_func_totalorder_no_libm != yes && test $gl_cv_func_totalorder_in_libm != yes], - [gl_saved_LIBS=$LIBS - AC_SEARCH_LIBS([totalorder], [m]) - LIBS=$gl_saved_LIBS - if test "$ac_cv_search_totalorder" = no; then + [if test $gl_cv_func_totalorder_in_libm != yes; then HAVE_TOTALORDER=0 else REPLACE_TOTALORDER=1 @@ -73,10 +67,7 @@ AC_DEFUN([gl_FUNC_TOTALORDERL], ]) AS_IF([test $gl_cv_func_totalorderl_no_libm != yes && test $gl_cv_func_totalorderl_in_libm != yes], - [gl_saved_LIBS=$LIBS - AC_SEARCH_LIBS([totalorderl], [m]) - LIBS=$gl_saved_LIBS - if test "$ac_cv_search_totalorderl" = no; then + [if test $gl_cv_func_totalorderl_in_libm != yes; then HAVE_TOTALORDERL=0 else REPLACE_TOTALORDERL=1 -- 2.39.5