From b7f31973b52cd33e530df837b57ea646a43c5495 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 17:09:28 +0200 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ m4/posix_spawn.m4 | 7 +++---- modules/posix_spawn | 3 ++- modules/posix_spawnp | 3 ++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 951ff389b..cad7c70e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-05-21 Bruno Haible + 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 + popen: Move AC_LIBOBJ invocations to module description. * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN invocations from here... diff --git a/m4/posix_spawn.m4 b/m4/posix_spawn.m4 index 63e947368..1d17050fb 100644 --- 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 @@ main (int argc, char *argv[]) ]) ]) -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]) ]) diff --git a/modules/posix_spawn b/modules/posix_spawn index 54e08d841..ec8eac182 100644 --- a/modules/posix_spawn +++ b/modules/posix_spawn @@ -13,7 +13,8 @@ configure.ac: 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]) diff --git a/modules/posix_spawnp b/modules/posix_spawnp index ec6accb82..7e52c674c 100644 --- a/modules/posix_spawnp +++ b/modules/posix_spawnp @@ -13,7 +13,8 @@ configure.ac: 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]) -- 2.11.0