(AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
authorJim Meyering <jim@meyering.net>
Mon, 18 Sep 2000 06:37:01 +0000 (06:37 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 18 Sep 2000 06:37:01 +0000 (06:37 +0000)
Otherwise, everyone ends up linking with -lelf for some configurations.
Reported by Mike Stone.

m4/getloadavg.m4

index d0ab2b8..edcce0d 100644 (file)
@@ -99,5 +99,7 @@ if test "x$ac_save_LIBS" = x; then
 else
   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
 fi
+LIBS=$ac_save_LIBS
+
 AC_SUBST(GETLOADAVG_LIBS)dnl
 ])# AC_FUNC_GETLOADAVG