mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
configure: only set NEED_GLOB on Windows
Only set NEED_GLOB on Windows, as currently this has the effect of compiling win32-only code - and even if that compiled it would not be used anyway, since mf.c uses glob under "#if defined(HAVE_GLOB) || defined(__MINGW32__)". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33587 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1054f89404
commit
27a718d920
7
configure
vendored
7
configure
vendored
@ -3504,12 +3504,15 @@ echores "$_gettimeofday"
|
|||||||
echocheck "glob()"
|
echocheck "glob()"
|
||||||
_glob=no
|
_glob=no
|
||||||
statement_check glob.h 'glob("filename", 0, 0, 0)' && _glob=yes
|
statement_check glob.h 'glob("filename", 0, 0, 0)' && _glob=yes
|
||||||
|
need_glob=no
|
||||||
if test "$_glob" = yes ; then
|
if test "$_glob" = yes ; then
|
||||||
def_glob='#define HAVE_GLOB 1'
|
def_glob='#define HAVE_GLOB 1'
|
||||||
need_glob=no
|
|
||||||
else
|
else
|
||||||
def_glob='#undef HAVE_GLOB'
|
def_glob='#undef HAVE_GLOB'
|
||||||
need_glob=yes
|
# HACK! need_glob currently enables compilation of a
|
||||||
|
# win32-specific glob()-replacement.
|
||||||
|
# Other OS neither need it nor can they use it (mf:// is disabled for them).
|
||||||
|
win32 && need_glob=yes
|
||||||
fi
|
fi
|
||||||
echores "$_glob"
|
echores "$_glob"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user