]> git.sesse.net Git - vlc/commitdiff
VLM depends on sout
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 16:19:32 +0000 (19:19 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 27 May 2008 16:19:32 +0000 (19:19 +0300)
configure.ac

index ddcd87d151a0153c856dc05b6e063cfd5295a5cb..0c80843c541f6da3af775905eb6e07c861d650a5 100644 (file)
@@ -1759,11 +1759,14 @@ dnl
 dnl VideoLAN manager
 dnl
 AC_ARG_ENABLE(vlm,
-  [  --enable-vlm            VideoLAN manager (default enabled)])
-if test "${enable_vlm}" != "no"
-then
-  AC_DEFINE(ENABLE_VLM, 1, Define if you want the VideoLAN manager support)
-fi
+  [  --enable-vlm            VideoLAN manager (default enabled)],,
+  [enable_vlm="${enable_sout}"])
+AS_IF([test "${enable_vlm}" != "no"], [
+  AS_IF([test "${enable_sout}" = "no"], [
+    AC_MSG_ERROR([VLM requires the stream output. Do not use --disable-sout.])
+  ])
+  AC_DEFINE(ENABLE_VLM, 1, [Define if you want the VideoLAN manager support])
+])
 
 dnl
 dnl Growl notification plugin