]> git.sesse.net Git - vlc/commitdiff
Fix compilation without Xlib
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Jan 2013 14:35:31 +0000 (16:35 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 13 Jan 2013 14:35:31 +0000 (16:35 +0200)
configure.ac

index 41a43a9d866556d7f88cc754a9424c7c16003b96..566a9f1b569854eaf8c74e6b5958690fabaec477 100644 (file)
@@ -2981,15 +2981,15 @@ have_vdpau="no"
 AS_IF([test "${enable_vdpau}" != "no"], [
   PKG_CHECK_MODULES([VDPAU], [vdpau], [
     have_vdpau="yes"
+    AS_IF([test "${no_x}" = "yes"], [
+      AC_MSG_ERROR([VDPAU requires Xlib (X11).])
+    ])
     AC_MSG_NOTICE([VDPAU acceleration activated])
   ], [
     AS_IF([test -n "${enable_vdpau}"], [
       AC_MSG_ERROR([${VDPAU_PKG_ERRORS}.])
     ])
   ])
-  AS_IF([test "${no_x}" = "yes"], [
-    AC_MSG_ERROR([VDPAU requires Xlib (X11).])
-  ])
 ])
 dnl AM_CONDITIONAL([HAVE_VDPAU], [test "${have_vdpau}" = "yes"])