summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2017-08-05 00:47:16 +0300
committerJan Ekström <jeebjp@gmail.com>2017-08-05 01:51:29 +0300
commit1a0d92aeca573bab24928f5e5471b247d46ce9d6 (patch)
treef65cf0ed2db7c6518e2c2f5878cdb130149cc9ca
parent69650851f8963ed93326601d6b16869e994fcb34 (diff)
downloadmpv-1a0d92aeca573bab24928f5e5471b247d46ce9d6.tar.bz2
mpv-1a0d92aeca573bab24928f5e5471b247d46ce9d6.tar.xz
build: re-add and re-structurize the glob() checks
* If we have glob() supported, we have `HAVE_GLOB = 1'. * If we have specifically POSIX glob(), we have `HAVE_GLOB_POSIX = 1`. * If we have specifically Win32 glob(), we have `HAVE_GLOB_WIN32 = 1`
-rw-r--r--wscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/wscript b/wscript
index cba839df14..b460f10941 100644
--- a/wscript
+++ b/wscript
@@ -234,12 +234,22 @@ iconv support use --disable-iconv.",
'deps': [ 'win32-desktop' ],
'deps_neg': [ 'posix' ],
}, {
+ 'name': 'glob-posix',
+ 'desc': 'glob() POSIX support',
+ 'deps_neg': [ 'os-win32', 'os-cygwin' ],
+ 'func': check_statement('glob.h', 'glob("filename", 0, 0, 0)'),
+ }, {
'name': 'glob-win32',
'desc': 'glob() win32 replacement',
'deps_neg': [ 'posix' ],
'deps_any': [ 'os-win32', 'os-cygwin' ],
'func': check_true
}, {
+ 'name': 'glob',
+ 'desc': 'any glob() support',
+ 'deps_any': [ 'glob-posix', 'glob-win32' ],
+ 'func': check_true,
+ }, {
'name': 'fchmod',
'desc': 'fchmod()',
'func': check_statement('sys/stat.h', 'fchmod(0, 0)'),