getdomainname: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 09:41:07 +0000 (11:41 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:04 +0000 (00:06 +0200)
* m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
gl_PREREQ_GETDOMAINNAME invocations from here...
* modules/getdomainname (configure.ac): ... to here.

ChangeLog
m4/getdomainname.m4
modules/getdomainname

index 53ecded..8c14b0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       getdomainname: Move AC_LIBOBJ invocations to module description.
+       * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
+       gl_PREREQ_GETDOMAINNAME invocations from here...
+       * modules/getdomainname (configure.ac): ... to here.
+
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
        getline: Move AC_LIBOBJ invocations to module description.
        * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
        invocations from here...
index db7d480..9e93fc9 100644 (file)
@@ -1,4 +1,4 @@
-# getdomainname.m4 serial 6
+# getdomainname.m4 serial 7
 dnl Copyright (C) 2002-2003, 2008-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,
@@ -82,11 +82,6 @@ AC_DEFUN([gl_FUNC_GETDOMAINNAME],
      || test "$gl_cv_func_getdomainname_in_libnsl" = yes; then
     REPLACE_GETDOMAINNAME=1
   fi
-
-  if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then
-    AC_LIBOBJ([getdomainname])
-    gl_PREREQ_GETDOMAINNAME
-  fi
 ])
 
 # Prerequisites of lib/getdomainname.c.
index c7f77b0..457de31 100644 (file)
@@ -13,6 +13,10 @@ sys_socket      [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAM
 
 configure.ac:
 gl_FUNC_GETDOMAINNAME
+if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then
+  AC_LIBOBJ([getdomainname])
+  gl_PREREQ_GETDOMAINNAME
+fi
 gl_UNISTD_MODULE_INDICATOR([getdomainname])
 
 Makefile.am: