5e032345d778ddf14b53fe6e0aeb2a241410d8ca
[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([GLEW], [glew])
11
12 # Needed for unit tests and the demo app.
13 PKG_CHECK_MODULES([SDL], [sdl])
14
15 # These are only needed for the demo app.
16 with_demo_app=yes
17 PKG_CHECK_MODULES([SDL_image], [SDL_image], [], [with_demo_app=no; AC_MSG_WARN([SDL_image not found, demo program will not be built])])
18 PKG_CHECK_MODULES([libpng], [libpng12], [], [with_demo_app=no; AC_MSG_WARN([libpng12 not found, demo program will not be built])])
19
20 AC_SUBST([with_demo_app])
21
22 with_coverage=no
23 AC_ARG_ENABLE([coverage], [  --enable-coverage       build with information needed to compute test coverage], [with_coverage=yes])
24 AC_SUBST([with_coverage])
25
26 AC_CONFIG_FILES([Makefile movit.pc])
27 AC_OUTPUT