summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-30 19:46:02 +0200
committerwm4 <wm4@nowhere>2015-03-30 19:49:24 +0200
commit39f6f6b104ea51848ab99dd08e33745a9ad976eb (patch)
treecb16ad0a478d0808f0695c2f20cc9ac58840ac88 /wscript
parentebef5da074b7bfd1cf3a9f6e110d71e87eaa1901 (diff)
downloadmpv-39f6f6b104ea51848ab99dd08e33745a9ad976eb.tar.bz2
mpv-39f6f6b104ea51848ab99dd08e33745a9ad976eb.tar.xz
build: make posix_spawn() mandatory
It was already accidentally used unconditionally by command.c. Apparently this worked well for us, so don't change anything about, but should it be unavailable, fail at configure time instead of compile time.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript b/wscript
index 5d42446b93..bba7e3996d 100644
--- a/wscript
+++ b/wscript
@@ -213,7 +213,13 @@ iconv support use --disable-iconv.",
'name': 'posix-spawn',
'desc': 'POSIX spawnp()/kill()',
'func': check_statement(['spawn.h', 'signal.h'],
- 'posix_spawnp(0,0,0,0,0,0); kill(0,0)')
+ 'posix_spawnp(0,0,0,0,0,0); kill(0,0)'),
+ 'deps_neg': ['mingw'],
+ }, {
+ 'name': 'subprocess',
+ 'desc': 'posix_spawnp() or MinGW',
+ 'func': check_true,
+ 'deps_any': ['posix-spawn', 'mingw'],
}, {
'name': 'glob',
'desc': 'glob()',