changeset 14961:cbd754f1928f

getdtablesize: Move AC_LIBOBJ invocations to module description. * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ invocation from here... * modules/getdtablesize (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 May 2011 11:43:03 +0200
parents e04076de7206
children e64f06363f01
files ChangeLog m4/getdtablesize.m4 modules/getdtablesize
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	getdtablesize: Move AC_LIBOBJ invocations to module description.
+	* m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
+	invocation from here...
+	* modules/getdtablesize (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	getdomainname: Move AC_LIBOBJ invocations to module description.
--- a/m4/getdtablesize.m4
+++ b/m4/getdtablesize.m4
@@ -1,4 +1,4 @@
-# getdtablesize.m4 serial 1
+# getdtablesize.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@
   AC_CHECK_FUNCS_ONCE([getdtablesize])
   if test $ac_cv_func_getdtablesize != yes; then
     HAVE_GETDTABLESIZE=0
-    AC_LIBOBJ([getdtablesize])
   fi
 ])
--- a/modules/getdtablesize
+++ b/modules/getdtablesize
@@ -10,6 +10,9 @@
 
 configure.ac:
 gl_FUNC_GETDTABLESIZE
+if test $HAVE_GETDTABLESIZE = 0; then
+  AC_LIBOBJ([getdtablesize])
+fi
 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
 
 Makefile.am: