configure: LM32 Milkymist Texture Mapping Unit (tmu2) also depends of X11
commit99e1a93bbf602f16efacac7d392f355892328e2a
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 30 Jan 2019 12:00:03 +0000 (30 13:00 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 1 Feb 2019 10:58:50 +0000 (1 11:58 +0100)
treec39338275c96bc92e1d5692a1de999ae1c9e7dcf
parent3a831fc0dfa5620cbd2ba1d66e8aa3a83bf475ef
configure: LM32 Milkymist Texture Mapping Unit (tmu2) also depends of X11

Commit 5f9b1e35060b8 remove the dependency between OpenGL and X11.
However the milkymist-tmu2 device do require X11.
When using SDL, the configure script sets need_x11=yes, so the X11
flags are populated to the makefiles.
When building without SDL, X11 is not pulled and populated, leading
to a link failure:

    LINK    lm32-softmmu/qemu-system-lm32
  hw/lm32/milkymist.o: In function `milkymist_tmu2_create':
  hw/lm32/milkymist-hw.h:114: undefined reference to `XOpenDisplay'
  hw/lm32/milkymist-hw.h:140: undefined reference to `XFree'
  hw/lm32/milkymist-hw.h:141: undefined reference to `XCloseDisplay'
  hw/lm32/milkymist-hw.h:130: undefined reference to `XCloseDisplay'
  ../hw/display/milkymist-tmu2.o: In function `tmu2_glx_init':
  hw/display/milkymist-tmu2.c:112: undefined reference to `XOpenDisplay'
  hw/display/milkymist-tmu2.c:123: undefined reference to `XFree'
  collect2: error: ld returned 1 exit status
  gmake[1]: *** [Makefile:199: qemu-system-lm32] Error 1

Enforce the X11 dependency when the LM32 target is built.
This will allow us to build QEMU without SDL.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190130120005.23123-3-philmd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure