bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] jm_FUNC_GETGROUPS calling-convention change (merge from cor


From: Paul Eggert
Subject: [Bug-gnulib] jm_FUNC_GETGROUPS calling-convention change (merge from coreutils)
Date: 16 Aug 2003 01:37:42 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I installed this merge from coreutils.  It changes the calling
convention for jm_FUNC_GETGROUPS.  I'll soon install a patch to
jm-macros that is required by (and depends on) this change.

2003-08-16  Jim Meyering  <address@hidden>

        * getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
        and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.

Index: getgroups.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getgroups.m4,v
retrieving revision 1.12
retrieving revision 1.13
diff -p -u -r1.12 -r1.13
--- getgroups.m4        31 Dec 2002 13:43:06 -0000      1.12
+++ getgroups.m4        16 Aug 2003 08:33:45 -0000      1.13
@@ -1,22 +1,18 @@
-#serial 6
+#serial 8
 
 dnl From Jim Meyering.
-dnl
-dnl Invoking code should check $GETGROUPS_LIB something like this:
-dnl  jm_FUNC_GETGROUPS
-dnl  test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
-dnl
+dnl A wrapper around AC_FUNC_GETGROUPS.
 
 AC_DEFUN([jm_FUNC_GETGROUPS],
 [
   AC_REQUIRE([AC_FUNC_GETGROUPS])
-  AC_SUBST([GETGROUPS_LIB])
   if test $ac_cv_func_getgroups_works = no; then
     AC_LIBOBJ(getgroups)
     AC_DEFINE(getgroups, rpl_getgroups,
       [Define as rpl_getgroups if getgroups doesn't work right.])
     gl_PREREQ_GETGROUPS
   fi
+  test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
 ])
 
 # Prerequisites of lib/getgroups.c.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]