changeset 15047:01d4631f17cc

mkfifoat: Move AC_LIBOBJ invocations to module description. * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from here... * modules/mkfifoat (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 15:50:21 +0200
parents ad594afe1811
children fe27dd198576
files ChangeLog m4/mkfifoat.m4 modules/mkfifoat
diffstat 3 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	mkfifoat: Move AC_LIBOBJ invocations to module description.
+	* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
+	here...
+	* modules/mkfifoat (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	mkfifo: Respect rules for use of AC_LIBOBJ.
--- a/m4/mkfifoat.m4
+++ b/m4/mkfifoat.m4
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
 # See if we need to provide mkfifoat/mknodat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -18,7 +18,5 @@
     # No known system has mkfifoat but not mknodat
     HAVE_MKFIFOAT=0
     HAVE_MKNODAT=0
-    AC_LIBOBJ([mkfifoat])
-    AC_LIBOBJ([mknodat])
   fi
 ])
--- a/modules/mkfifoat
+++ b/modules/mkfifoat
@@ -16,6 +16,12 @@
 
 configure.ac:
 gl_FUNC_MKFIFOAT
+if test $HAVE_MKFIFOAT = 0; then
+  AC_LIBOBJ([mkfifoat])
+fi
+if test $HAVE_MKNODAT = 0; then
+  AC_LIBOBJ([mknodat])
+fi
 gl_UNISTD_MODULE_INDICATOR([mkfifoat])
 gl_UNISTD_MODULE_INDICATOR([mknodat])