bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH 1/2] m4/getloadavg.m4: restrict AIX specific test on AIX
@ 2020-02-24 12:56 Jens Rehsack
  2020-02-24 12:56 ` [PATCH 2/2] modules: fcntl: allow being detected by importing projects Jens Rehsack
  2020-02-24 20:20 ` [PATCH 1/2] m4/getloadavg.m4: restrict AIX specific test on AIX Bruno Haible
  0 siblings, 2 replies; 4+ messages in thread
From: Jens Rehsack @ 2020-02-24 12:56 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Jens Rehsack

When cross compiling for a system without getloadavg, do not try add
additional linker paths unless it's absolutely necessary.

Signed-off-by: Jens Rehsack <sno@netbsd.org>
---
 m4/getloadavg.m4 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4
index 3bd2a142e..696c5de90 100644
--- a/m4/getloadavg.m4
+++ b/m4/getloadavg.m4
@@ -42,6 +42,8 @@ AC_CHECK_FUNC([getloadavg], [],
    fi
 
    if test $gl_func_getloadavg_done = no; then
+     AS_CASE([$host_os],
+             [aix*], [
      # There is a commonly available library for RS/6000 AIX.
      # Since it is not a standard part of AIX, it might be installed locally.
      gl_getloadavg_LIBS=$LIBS
@@ -49,6 +51,7 @@ AC_CHECK_FUNC([getloadavg], [],
      AC_CHECK_LIB([getloadavg], [getloadavg],
                   [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes],
                   [LIBS=$gl_getloadavg_LIBS])
+       ], [:])
    fi
 
    # Set up the replacement function if necessary.
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-24 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24 12:56 [PATCH 1/2] m4/getloadavg.m4: restrict AIX specific test on AIX Jens Rehsack
2020-02-24 12:56 ` [PATCH 2/2] modules: fcntl: allow being detected by importing projects Jens Rehsack
2020-02-24 20:08   ` Bruno Haible
2020-02-24 20:20 ` [PATCH 1/2] m4/getloadavg.m4: restrict AIX specific test on AIX Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).