2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(bazar, 1.3.1, julien.pilet@epfl.ch)
9 AC_CONFIG_SRCDIR([starter/starter.h])
10 AM_CONFIG_HEADER([config.h])
12 # Checks for programs.
17 # Checks for libraries.
19 AC_CHECK_LIB(GLEW, glewInit, have_glew=yes, have_glew=no, $GLUT_LIBS)
21 # Checks for header files.
23 AC_CHECK_HEADERS([float.h stdlib.h])
24 AC_CHECK_HEADER([GL/glew.h], [], have_glew=no)
26 if test "x$have_glew" = "xyes"; then
27 GLEW_LIBS="-lGLEW $GL_LIBS"
28 AC_DEFINE(HAVE_GLEW, 1, [defined if the GL Extension Wrangler GLEW library is available])
31 AC_MSG_WARN([GL Extension Wrangler library not found. Get it from http://glew.sourceforge.net])
35 if test "x$no_gl" != "xyes"; then
36 AC_DEFINE(HAVE_GL, 1, [defined if OpenGL is available])
39 if test x$have_glew = xyes -a x$no_glut != xyes; then
44 AM_CONDITIONAL(FULLGL, test x$HAVE_FULLGL=xyes)
46 # Checks for typedefs, structures, and compiler characteristics.
51 PKG_CHECK_MODULES(OPENCV, opencv >= 0.9.6)
52 AC_SUBST(OPENCV_CFLAGS)
55 # Checks for library functions.
56 AC_CHECK_FUNCS([floor memset pow sqrt])
68 AC_MSG_NOTICE([Build OpenGL example: $HAVE_FULLGL])