changeset 15062:79593f73a1ef

posix_spawn*: Move AC_LIBOBJ invocations to module description. * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here... * modules/posix_spawn (configure.ac): ... to here. * modules/posix_spawnp (configure.ac): ... and here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:09:28 +0200
parents defe3db1992f
children 98b3afcd33e1
files ChangeLog m4/posix_spawn.m4 modules/posix_spawn modules/posix_spawnp
diffstat 4 files changed, 15 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	posix_spawn*: Move AC_LIBOBJ invocations to module description.
+	* m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
+	gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
+	* modules/posix_spawn (configure.ac): ... to here.
+	* modules/posix_spawnp (configure.ac): ... and here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	popen: Move AC_LIBOBJ invocations to module description.
--- a/m4/posix_spawn.m4
+++ b/m4/posix_spawn.m4
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 8
+# posix_spawn.m4 serial 9
 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,
@@ -391,10 +391,9 @@
     ])
 ])
 
-AC_DEFUN([gl_POSIX_SPAWN_INTERNAL],
+# Prerequisites of lib/spawni.c.
+AC_DEFUN([gl_PREREQ_POSIX_SPAWN_INTERNAL],
 [
-  AC_LIBOBJ([spawni])
-  dnl Prerequisites of lib/spawni.c.
   AC_CHECK_HEADERS([paths.h])
   AC_CHECK_FUNCS([confstr sched_setparam sched_setscheduler setegid seteuid vfork])
 ])
--- a/modules/posix_spawn
+++ b/modules/posix_spawn
@@ -13,7 +13,8 @@
 gl_POSIX_SPAWN
 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   AC_LIBOBJ([spawn])
-  gl_POSIX_SPAWN_INTERNAL
+  AC_LIBOBJ([spawni])
+  gl_PREREQ_POSIX_SPAWN_INTERNAL
 fi
 gl_SPAWN_MODULE_INDICATOR([posix_spawn])
 
--- a/modules/posix_spawnp
+++ b/modules/posix_spawnp
@@ -13,7 +13,8 @@
 gl_POSIX_SPAWN
 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   AC_LIBOBJ([spawnp])
-  gl_POSIX_SPAWN_INTERNAL
+  AC_LIBOBJ([spawni])
+  gl_PREREQ_POSIX_SPAWN_INTERNAL
 fi
 gl_SPAWN_MODULE_INDICATOR([posix_spawnp])