[vlc-devel] [PATCH] configure.ac: Print a warning if xcb-keysyms is missing.

Jan Janak jan at ryngle.com
Fri Jul 9 07:02:43 CEST 2010


Modules xcb_window and globalhotkeys won't be compiled if the
library xcb-keysyms is not installed. Rather than disabling the
modules silently the configure script should print a warning so
that the users know which library they need to install if the need
the two vlc modules.
---
 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9308cc5..5151a5d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3346,7 +3346,8 @@ AS_IF([test "${enable_xcb}" != "no"], [
     VLC_ADD_PLUGIN([xcb_window globalhotkeys])
     VLC_ADD_CFLAGS([globalhotkeys], [${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}])
     VLC_ADD_LIBS([globalhotkeys], [${XCB_KEYSYMS_LIBS} ${XCB_LIBS}])
-  ])
+  ],
+  [AC_MSG_WARN([Library xcb keysyms needed for modules xcb_window and globalhotkeys was not found])])
   VLC_ADD_PLUGIN([xdg_screensaver])
 ])
 
-- 
1.7.1




More information about the vlc-devel mailing list