summaryrefslogtreecommitdiff
path: root/modules/posix_spawn_file_actions_addfchdir
diff options
context:
space:
mode:
Diffstat (limited to 'modules/posix_spawn_file_actions_addfchdir')
-rw-r--r--modules/posix_spawn_file_actions_addfchdir8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/posix_spawn_file_actions_addfchdir b/modules/posix_spawn_file_actions_addfchdir
index cd9cb99f2f..4f15fdf2df 100644
--- a/modules/posix_spawn_file_actions_addfchdir
+++ b/modules/posix_spawn_file_actions_addfchdir
@@ -13,12 +13,14 @@ posix_spawn_file_actions_init [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX
configure.ac:
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR
-if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 1; then
- AC_LIBOBJ([spawn_faction_addfchdir])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_SPAWN_FACTION_ADDFCHDIR],
+ [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1 || test $HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR = 1])
gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addfchdir])
Makefile.am:
+if GL_COND_OBJ_SPAWN_FACTION_ADDFCHDIR
+lib_SOURCES += spawn_faction_addfchdir.c
+endif
Include:
<spawn.h>