getlogin: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 10:15:52 +0000 (12:15 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:06 +0000 (00:06 +0200)
* m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
here...
* modules/getlogin (configure.ac): ... to here.

ChangeLog
m4/getlogin.m4
modules/getlogin

index cda5621640e232e913af68723ab09e6047869e90..83c6bfbd81fe6eb15af4f0c707dedc7671df9f9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       getlogin: Move AC_LIBOBJ invocations to module description.
+       * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
+       here...
+       * modules/getlogin (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
        getloadavg: Move AC_LIBOBJ invocations to module description.
index 6200181084f65b135104ba4852255df30b1f0a74..f4140ac11553ce5ba618b9b1705f8348783b9faa 100644 (file)
@@ -1,4 +1,4 @@
-# getlogin.m4 serial 2
+# getlogin.m4 serial 3
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,6 @@ AC_DEFUN([gl_FUNC_GETLOGIN],
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_CHECK_FUNCS_ONCE([getlogin])
   if test $ac_cv_func_getlogin = no; then
-    AC_LIBOBJ([getlogin])
     HAVE_GETLOGIN=0
   fi
 ])
index 4507743b37edf7cb11854cf6b63eb1f055d3a4ec..379052af72c84545b9751897a76aa4bc7d367bad 100644 (file)
@@ -10,6 +10,9 @@ unistd
 
 configure.ac:
 gl_FUNC_GETLOGIN
+if test $HAVE_GETLOGIN = 0; then
+  AC_LIBOBJ([getlogin])
+fi
 gl_UNISTD_MODULE_INDICATOR([getlogin])
 
 Makefile.am: