summaryrefslogtreecommitdiffstats
path: root/m4/posix_spawn.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--m4/posix_spawn.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/m4/posix_spawn.m4 b/m4/posix_spawn.m4
index 0a0dfe7..0066a45 100644
--- a/m4/posix_spawn.m4
+++ b/m4/posix_spawn.m4
@@ -1,5 +1,5 @@
-# posix_spawn.m4 serial 23
-dnl Copyright (C) 2008-2023 Free Software Foundation, Inc.
+# posix_spawn.m4 serial 25
+dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -36,7 +36,8 @@ AC_DEFUN([gl_POSIX_SPAWN_BODY],
if test $ac_cv_func_posix_spawn = yes; then
m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR],
[dnl Module 'posix_spawn_file_actions_addchdir' is present.
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir_np])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addchdir_np = no; then
dnl In order to implement the posix_spawn_file_actions_addchdir
dnl function, we need to replace the entire posix_spawn facility.
@@ -45,7 +46,8 @@ AC_DEFUN([gl_POSIX_SPAWN_BODY],
])
m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR],
[dnl Module 'posix_spawn_file_actions_addfchdir' is present.
- AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir_np])
+ gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addfchdir_np],
+ [[#include <spawn.h>]])
if test $ac_cv_func_posix_spawn_file_actions_addfchdir_np = no; then
dnl In order to implement the posix_spawn_file_actions_addfchdir
dnl function, we need to replace the entire posix_spawn facility.
@@ -588,7 +590,7 @@ int main ()
*-musl* | midipix*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
solaris*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
# Guess no on native Windows.
- mingw*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
+ mingw* | windows*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing no" ;;
*) gl_cv_func_posix_spawn_file_actions_addclose_works="guessing yes" ;;
esac
])
@@ -632,7 +634,7 @@ int main ()
*-musl* | midipix*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
solaris*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no";;
# Guess no on native Windows.
- mingw*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no" ;;
+ mingw* | windows*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing no" ;;
*) gl_cv_func_posix_spawn_file_actions_adddup2_works="guessing yes";;
esac
])
@@ -678,7 +680,7 @@ int main ()
*-musl* | midipix*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
solaris*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no";;
# Guess no on native Windows.
- mingw*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no" ;;
+ mingw* | windows*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing no" ;;
*) gl_cv_func_posix_spawn_file_actions_addopen_works="guessing yes";;
esac
])