bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posix_spawn-internal: fix module description


From: Bruno Haible
Subject: posix_spawn-internal: fix module description
Date: Mon, 10 Jun 2019 16:07:42 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

The creation of a specific testdir fails:

$ ./gnulib-tool --create-testdir --dir=../testdir1 --single-configure 
posix_spawn posix_spawn_file_actions_addchdir
...
executing aclocal -I glm4
missing file gltests/spawni.c
configure.ac:594: error: expected source file, required through AC_LIBSOURCES, 
not found
configure.ac:31: gl_INIT is expanded from...
configure.ac:594: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1

The reason is that the module 'posix_spawn' is contained in gllib/ and the
module 'posix_spawnp' is contained in gltests/ (as a tests dependency).
So gltests/spawni.c does not exist, but gllib/spawni.c exists.

This patch fixes it.


2019-06-10  Bruno Haible  <address@hidden>

        posix_spawn-internal: Fix module description.
        * modules/posix_spawn (configure.ac): Move request to compile spawni.c
        from here...
        * modules/posix_spawnp (configure.ac): ... and here...
        * modules/posix_spawn-internal (configure.ac): ... to here.

diff --git a/modules/posix_spawn b/modules/posix_spawn
index 6bd7a44..3e2dce7 100644
--- a/modules/posix_spawn
+++ b/modules/posix_spawn
@@ -13,8 +13,6 @@ configure.ac:
 gl_POSIX_SPAWN
 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   AC_LIBOBJ([spawn])
-  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 d9ef2ec..957a144 100644
--- a/modules/posix_spawnp
+++ b/modules/posix_spawnp
@@ -13,8 +13,6 @@ configure.ac:
 gl_POSIX_SPAWN
 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
   AC_LIBOBJ([spawnp])
-  AC_LIBOBJ([spawni])
-  gl_PREREQ_POSIX_SPAWN_INTERNAL
 fi
 gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
 
diff --git a/modules/posix_spawn-internal b/modules/posix_spawn-internal
index 294b3f8..a0b57fa 100644
--- a/modules/posix_spawn-internal
+++ b/modules/posix_spawn-internal
@@ -16,6 +16,11 @@ sh-filename
 strchrnul
 
 configure.ac:
+gl_POSIX_SPAWN
+if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
+  AC_LIBOBJ([spawni])
+  gl_PREREQ_POSIX_SPAWN_INTERNAL
+fi
 
 Makefile.am:
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]