VLC_ADD_LIBS([cdda vcdx cddax sdl_image aout_sdl vout_sdl],[-lwinmm])
VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp http stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp telnet rc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd zvbi],[-lws2_32])
VLC_ADD_LIBS([access_file], [-lshlwapi])
+ dnl
+ dnl DEP and ASLR options
+ dnl
+ AC_ARG_ENABLE(peflags,
+ [ --enable-peflags peflags use (default enabled)])
+ if test "${enable_peflags}" != "no"
+ then
+ AC_CHECK_TOOL(PEFLAGS, peflags, :)
+ fi
fi
if test "${SYS}" = "mingwce"; then
# add ws2 for closesocket, select, recv
AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"])
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce")
+AM_CONDITIONAL(USE_PEFLAGS, [test "${enable_peflags}" = "yes"])
dnl
dnl Sadly autoconf doesn't think about testing foo.exe when ask to test
then
if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"
then
- AC_ARG_WITH(directx,
- [ --with-directx=PATH Win32 DirectX headers])
- if test -z "${with_directx}"
- then
AC_CHECK_HEADERS(ddraw.h,
[ VLC_ADD_PLUGIN([directx])
VLC_ADD_PLUGIN([aout_directx])
VLC_ADD_LIBS([directx],[-lgdi32])
- ])
+ ],[AC_MSG_ERROR([Cannot find DirectX headers!])]
+ )
AC_CHECK_HEADERS(GL/gl.h,
[ VLC_ADD_PLUGIN([glwin32])
VLC_ADD_LIBS([glwin32],[-lopengl32 -lgdi32])
[ VLC_ADD_PLUGIN([direct3d])
VLC_ADD_LIBS([direct3d],[-lgdi32])
])
- else
- AC_MSG_CHECKING(for directX headers in ${with_directx})
- if test -f ${with_directx}/ddraw.h
- then
- VLC_ADD_PLUGIN([directx])
- VLC_ADD_PLUGIN([aout_directx])
- VLC_ADD_CPPFLAGS([directx aout_directx],[-I${with_directx}])
- VLC_ADD_LIBS([directx],[-lgdi32])
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([Cannot find ${with_directx}/ddraw.h!])
- fi
- fi
+ VLC_ADD_LIBS([direct3d directx glwin32],[-lole32])
+ fi
+fi
+
+dnl
+dnl win32 GDI plugin
+dnl
+AC_ARG_ENABLE(wingdi,
+ [ --enable-wingdi Win32 GDI module (default enabled on Win32)])
+if test "${enable_wingdi}" != "no"; then
+ if test "${SYS}" = "mingw32"; then
+ VLC_ADD_PLUGIN([wingdi])
+ VLC_ADD_LIBS([wingdi],[-lgdi32 -lole32])
+ fi
+ if test "${SYS}" = "mingwce"; then
+ VLC_ADD_PLUGIN([wingdi])
+ VLC_ADD_PLUGIN([wingapi])
+ VLC_ADD_LIBS([wingdi],[-laygshell])
+ VLC_ADD_LIBS([wingapi],[-laygshell])
fi
fi
+
dnl
dnl Linux framebuffer module
dnl
dnl
PKG_ENABLE_MODULES_VLC([caca], [], [caca >= 0.99.beta1], [libcaca output],[auto])
-dnl
-dnl win32 GDI plugin
-dnl
-AC_ARG_ENABLE(wingdi,
- [ --enable-wingdi Win32 GDI module (default enabled on Win32)])
-if test "${enable_wingdi}" != "no"; then
- if test "${SYS}" = "mingw32"; then
- VLC_ADD_PLUGIN([wingdi])
- VLC_ADD_LIBS([wingdi],[-lgdi32])
- fi
- if test "${SYS}" = "mingwce"; then
- VLC_ADD_PLUGIN([wingdi])
- VLC_ADD_PLUGIN([wingapi])
- VLC_ADD_LIBS([wingdi],[-laygshell])
- VLC_ADD_LIBS([wingapi],[-laygshell])
- fi
-fi
-
dnl
dnl Audio plugins
dnl