[FFmpeg-cvslog] configure: Check for CommandLineToArgvW

Ronald S. Bultje git at videolan.org
Mon Jul 16 01:54:16 CEST 2012

ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Mon Jun 25 08:43:14 2012 +0300| [b4675d0fbf6606ab737e81c3c0fe6a05c8764334] | committer: Martin Storsjö

configure: Check for CommandLineToArgvW

The actual result of the check isn't used anywhere (since we
use this function unconditionally within #ifdef _WIN32), but it
makes sure we explicitly link to shell32 (which is linked in
implictly on mingw).

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4675d0fbf6606ab737e81c3c0fe6a05c8764334

 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index 2dc87ee..4973b1b 100755
--- a/configure
+++ b/configure
@@ -1063,6 +1063,7 @@ HAVE_LIST="
+    CommandLineToArgvW
@@ -2887,6 +2888,7 @@ check_func  sysconf
 check_func  sysctl
 check_func  usleep
 check_func_headers io.h setmode
+check_lib2 "windows.h shellapi.h" CommandLineToArgvW -lshell32
 check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
 check_func_headers windows.h GetProcessAffinityMask
 check_func_headers windows.h GetProcessTimes

More information about the ffmpeg-cvslog mailing list