aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2017-10-28 21:57:42 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-10-31 08:22:15 +0100
commit814949be25dffaffa5d6354ce3aaf61f9d3dbbaa (patch)
treea609bef908efedc4b54aa2544a25fc9159b50322 /configure.ac
parent482c52f946af4c6b16efa63a35790d92fb65326c (diff)
libv4l2: SDL test application
Add support for simple SDL test application. Allows taking jpeg snapshots, and is meant to run on phone with touchscreen. Not particulary useful on PC with webcam, but should work. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: added -lm -ldl -lrt to LDFLAGS]
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f3691be3..f6540c26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -439,6 +439,9 @@ AC_ARG_ENABLE(gconv,
esac]
)
+PKG_CHECK_MODULES([SDL2], [sdl2 SDL2_image], [sdl_pc=yes], [sdl_pc=no])
+AM_CONDITIONAL([HAVE_SDL], [test x$sdl_pc = xyes])
+
# Check if backtrace functions are defined
AC_SEARCH_LIBS([backtrace], [execinfo], [
AC_DEFINE(HAVE_BACKTRACE, [1], [glibc has functions to provide stack backtrace])
@@ -507,6 +510,7 @@ compile time options summary
pthread : $have_pthread
QT version : $QT_VERSION
ALSA support : $USE_ALSA
+ SDL support : $sdl_pc
build dynamic libs : $enable_shared
build static libs : $enable_static

Privacy Policy