diff --git a/configure b/configure
index 6f12fd246e454b56102d946eefa61bbd5ab4d69d..e268c320a1bc4e85786f4125c2a14e6e898a4759 100755
--- a/configure
+++ b/configure
@@ -1708,7 +1708,7 @@ v4l_indev_deps="linux_videodev_h"
 v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h"
 vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
 vfwcap_indev_extralibs="-lavicap32"
-x11_grab_device_indev_deps="x11grab XShmCreateImage"
+x11_grab_device_indev_deps="x11grab"
 
 # protocols
 bluray_protocol_deps="libbluray"