[v4l-utils] sdlcam: Only build if using libjpeg
Commit Message
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
---
Otherwise build fails on linking:
libtool: link: x86_64-pc-linux-gnu-gcc -march=ivybridge -ftree-vectorize -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o pixfmt-test pixfmt_test-pixfmt-test.o -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: sdlcam-sdlcam.o: undefined reference to symbol 'jpeg_set_quality@@LIBJPEG_6.2'
/usr/lib64/libjpeg.so.62: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:558: sdlcam] Error 1
Affects released v4l-utils-1.14.1.
contrib/test/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
@@ -17,8 +17,10 @@ noinst_PROGRAMS += v4l2gl
endif
if HAVE_SDL
+if HAVE_JPEG
noinst_PROGRAMS += sdlcam
endif
+endif
driver_test_SOURCES = driver-test.c
driver_test_LDADD = ../../utils/libv4l2util/libv4l2util.la