]> git.sesse.net Git - movit/blob - configure.ac
Merge branch 'master' into epoxy
[movit] / configure.ac
1 AC_CONFIG_MACRO_DIR([m4])
2 AC_INIT(movit, git)
3 LT_INIT
4
5 AC_CONFIG_SRCDIR(effect.cpp)
6
7 AC_PROG_CC
8 AC_PROG_CXX
9 PKG_CHECK_MODULES([Eigen3], [eigen3])
10 PKG_CHECK_MODULES([epoxy], [epoxy])
11
12 # Needed for unit tests and the demo app. We prefer SDL2 if possible,
13 # but can also use classic SDL.
14 with_SDL2=no
15 with_demo_app=yes
16 PKG_CHECK_MODULES([SDL2], [sdl2], [with_SDL2=yes], [
17   PKG_CHECK_MODULES([SDL], [sdl])
18 ])
19
20 # These are only needed for the demo app.
21 if test $with_SDL2 = "yes"; then
22   PKG_CHECK_MODULES([SDL2_image], [SDL2_image], [], [with_demo_app=no; AC_MSG_WARN([SDL2_image not found, demo program will not be built])])
23 else
24   PKG_CHECK_MODULES([SDL_image], [SDL_image], [], [with_demo_app=no; AC_MSG_WARN([SDL_image not found, demo program will not be built])])
25 fi
26 PKG_CHECK_MODULES([libpng], [libpng12], [], [with_demo_app=no; AC_MSG_WARN([libpng12 not found, demo program will not be built])])
27
28 AC_SUBST([with_demo_app])
29 AC_SUBST([with_SDL2])
30
31 AC_CONFIG_FILES([Makefile movit.pc])
32 AC_OUTPUT