From 1a0d92aeca573bab24928f5e5471b247d46ce9d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Sat, 5 Aug 2017 00:47:16 +0300 Subject: 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` --- wscript | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wscript b/wscript index cba839df14..b460f10941 100644 --- a/wscript +++ b/wscript @@ -233,12 +233,22 @@ iconv support use --disable-iconv.", 'func': check_true, '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()', -- cgit v1.2.3