diff options
author | Jan Ekström <jeebjp@gmail.com> | 2017-08-05 00:47:16 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2017-08-05 01:51:29 +0300 |
commit | 1a0d92aeca573bab24928f5e5471b247d46ce9d6 (patch) | |
tree | f65cf0ed2db7c6518e2c2f5878cdb130149cc9ca /wscript | |
parent | 69650851f8963ed93326601d6b16869e994fcb34 (diff) | |
download | mpv-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`
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)'), |