]> git.sesse.net Git - vlc/commitdiff
* configure.in: fix for the mingw32 build. We check if we need to explicitly
authorGildas Bazin <gbazin@videolan.org>
Sat, 12 Oct 2002 19:47:39 +0000 (19:47 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sat, 12 Oct 2002 19:47:39 +0000 (19:47 +0000)
   link with the mingwex library (needed for dirent support with new mingw32
   runtimes).

configure.in

index 9a24b934fa8f19b7238b2177ed04203d1eefe882..a45c9222cd73ed9d15c3b949fc5ea7a4e6fb5785 100644 (file)
@@ -106,6 +106,14 @@ if test x"${SYS}" != xmingw32; then
   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
 fi
 
+dnl Check for the need to include the mingwex lib for mingw32
+if test x$SYS = xmingw32
+then
+    AC_CHECK_LIB(mingwex,opendir,
+        AC_CHECK_LIB(kernel32,opendir,,vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex")
+    )
+fi
+
 dnl The -DSYS_FOO flag
 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"