AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
AC_DEFINE([_FORTIFY_SOURCE], 2, [Define to '2' to get glibc warnings.])
-AC_DEFINE([_WIN32_WINNT], 0x0500, [Define to '0x0500' for Windows 2000 APIs.])
AM_PROG_CC_C_O
AC_PROG_CXX
case "${host_os}" in
*wince* | *mingwce* | *mingw32ce* | *pe*)
SYS=mingwce
+ dnl Sadly CeGCC still needs non-wince macros
+ AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows 2000 APIs.])
;;
*mingw32*)
SYS=mingw32
+ AC_DEFINE([_WIN32_WINNT], 0x0500, [Define to '0x0500' for Windows 2000 APIs.])
;;
*cygwin*)
dnl Check if we are using the mno-cygwin mode in which case we are
dnl actually dealing with a mingw32 compiler.
+ AC_DEFINE([_WIN32_WINNT], 0x0500, [Define to '0x0500' for Windows 2000 APIs.])
AC_EGREP_CPP(yes,
[#ifdef WIN32
yes
VLC_ADD_LIBS([mp4 skins2 sap mkv gme],[-lz])
] )
-AC_CHECK_HEADERS(sysfs/libsysfs.h, [
- VLC_ADD_LIBS([mp4 mkv],[-lsysfs])
-] )
+AC_ARG_ENABLE(libsysfs,
+ [ --enable-libsysfs Get user key from firewire connected iPod via libsysfs (default enabled)])
+
+AS_IF([test "${enable_libsysfs}" != "no"],[
+ AC_CHECK_HEADERS(sysfs/libsysfs.h, [
+ VLC_ADD_LIBS([mp4 mkv],[-lsysfs])
+ ] )
+])
dnl
dnl skins2 module
VLC_ADD_PLUGIN([mga])
fi ])
+dnl
+dnl OMAP Framebuffer module
+dnl
+AC_ARG_ENABLE(omapfb,
+ [ --enable-omapfb OMAP framebuffer support (default disabled)])
+ if test "${enable_omapfb}" = "yes"
+ then
+ AC_CHECK_HEADERS(asm/arch-omap/omapfb.h, [
+ VLC_ADD_PLUGIN([omapfb])
+ AC_CHECK_HEADERS(X11/Xlib.h, [
+ VLC_ADD_LIBS([omapfb],[${X_LIBS} ${X_PRE_LIBS} -lX11]) ])
+ ])
+ fi
+
dnl
dnl SVGAlib module
dnl
fi
AM_CONDITIONAL(BUILD_PDA, [test "${enable_pda}" = "yes"])
+dnl
+dnl Maemo
+dnl
+AC_ARG_ENABLE(maemo,
+ [ --enable-maemo Internet tablets based on Maemo SDK (default disabled)])
+if test "${enable_maemo}" = "yes"
+then
+ PKG_CHECK_MODULES(HILDON, [hildon-1 hildon-fm-2], [
+ VLC_ADD_CFLAGS([maemo],[${HILDON_CFLAGS}])
+ VLC_ADD_LIBS([maemo],[${HILDON_LIBS}])
+ VLC_ADD_PLUGIN([maemo])
+ VLC_ADD_PLUGIN([swscale_maemo])
+ AC_DEFINE([BUILD_MAEMO], 1, [Define if you're using Maemo interfaces])
+ ALIASES="${ALIASES} mvlc"
+ ], [
+ AS_IF([test "${enable_maemo}" = "yes"],[
+ AC_MSG_ERROR([Hildon libraries not found])
+ ])
+ enable_maemo="no"
+ ])
+fi
+AM_CONDITIONAL(BUILD_MAEMO, [test "${enable_maemo}" = "yes"])
+
dnl
dnl QT 4
dnl
dnl Tests for Osso and Xsp
AC_CHECK_LIB(osso, osso_display_blanking_pause, [
PKG_CHECK_MODULES(GLIB2, glib-2.0, [
- VLC_ADD_CPPFLAGS([x11 xvideo xvmc glx],[-DHAVE_OSSO ${DBUS_CFLAGS} ${GLIB2_CFLAGS}])
- VLC_ADD_LIBS([x11 xvideo xvmc glx],[-losso])
+ VLC_ADD_CPPFLAGS([x11 xvideo xvmc glx omapfb],[-DHAVE_OSSO ${DBUS_CFLAGS} ${GLIB2_CFLAGS}])
+ VLC_ADD_LIBS([x11 xvideo xvmc glx omapfb],[-losso])
])
])
AC_CHECK_LIB(Xsp, XSPSetPixelDoubling,[
modules/access/dvb/Makefile
modules/access/mms/Makefile
modules/access/cdda/Makefile
+ modules/access/rtp/Makefile
modules/access/rtsp/Makefile
modules/access/rtmp/Makefile
modules/access/v4l2/Makefile
modules/gui/beos/Makefile
modules/gui/pda/Makefile
modules/gui/macosx/Makefile
+ modules/gui/maemo/Makefile
modules/gui/minimal_macosx/Makefile
modules/gui/qnx/Makefile
modules/gui/qt4/Makefile