I tried to compile version 1.5.0 but the build fails in ximage.c line 81.
ximage.c:81:25: error: 'x_does_shm_fd' undeclared (first use in this function); did you mean 'x_does_shm'?
x_does_shm = x_does_shm_fd = 0; /* Disable SHM entirely */ ^~~~~~~~~~~~~
If HAVE_X11_SHM_FD is not defined then x_does_shm_fd is not declared. Apparently this feature is automatically detected:
checking whether to enable X11 MIT-SHM FD-passing support... auto
checking for X_SHM_FD... no