])
dnl
-dnl Allow runing as root (usefull for people runing on embedded platforms)
+dnl Allow running as root (useful for people running on embedded platforms)
dnl
AC_ARG_ENABLE(run-as-root,
-[ --enable-run-as-root allow runing VLC as root (default disabled)])
+[ --enable-run-as-root allow running VLC as root (default disabled)])
AS_IF([test "${enable_run_as_root}" = "yes"],[
AC_DEFINE(ALLOW_RUN_AS_ROOT, 1,
- [Define to 1 to allow runing VLC as root (uid 0).])
+ [Define to 1 to allow running VLC as root (uid 0).])
])
dnl
VLC_ADD_PLUGIN([dvdnav])
VLC_ADD_CFLAGS([dvdnav],[`${DVDNAV_CONFIG} --cflags`])
VLC_ADD_LIBS([dvdnav],[`${DVDNAV_CONFIG} --libs`])
+ AC_CHECK_LIB(dvdnav, dvdnav_get_video_resolution,
+ AC_DEFINE(HAVE_DVDNAV_GET_VIDEO_RESOLUTION, 1, [Define if you have dvdnav_get_video_resolution.]),
+ [], [${LIBS_dvdnav}])
fi
fi
])
])
],[
- AC_MSG_ERROR([The development package for SDL is not present or too old.
- You need 1.2.10. Alternatively you can also configure with
- --disable-sdl.])
+ AC_MSG_WARN([The development package for SDL is not present or too old.
+ You need 1.2.10. Alternatively you can also configure with
+ --disable-sdl.])
])
fi
dnl
dnl Pulseaudio module
dnl
-PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
-AS_IF([ test "$have_x" = yes],[
- VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
+AS_IF([test "${no_x}" = "yes"], [
+ AS_IF([test "${enable_pulse}" = "yes"], [
+ AC_MSG_ERROR([Xlib is required for VLC PulseAudio support
+(see http://www.pulseaudio.org/ticket/799 for further reference).])
+ ])
+], [
+ PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
+ VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
])
+
dnl
dnl Portaudio module
dnl
],[
AC_MSG_ERROR([Please install the libXpm and libXt development files.])
])
+ AS_IF([test "${have_xcb_keysyms}" != "yes"], [
+ AC_MSG_ERROR([Please install xcb-keysyms from xcb-utils.])
+ ])
])
])
VLC_ADD_CPPFLAGS([mozilla],[${CPPFLAGS} ${XPM_CFLAGS}])
[[${X_LIBS} ${X_PRE_LIBS} -lX11 -lSM -lICE -lXpm]
])
AC_CHECK_HEADERS(X11/xpm.h,,AC_MSG_ERROR([Please install libXpm-devel library for required X11/xpm.h]))
+ AS_IF([test "${have_xcb_keysyms}" != "yes"], [
+ AC_MSG_ERROR([Please install xcb-keysyms from xcb-utils.])
+ ])
LDFLAGS="${LDFLAGS_save}"
fi