configure.ac 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.68])
  4. AC_INIT([interactive-collision], [0.1], [[email protected]])
  5. AC_CONFIG_SRCDIR([src/main.cpp])
  6. AC_CONFIG_HEADERS([config.h])
  7. AM_INIT_AUTOMAKE
  8. LT_INIT
  9. # Checks for programs.
  10. AC_PROG_CC
  11. AC_PROG_CXX
  12. PKG_PROG_PKG_CONFIG
  13. AC_LANG(C++)
  14. # Checks for libraries.
  15. PKG_CHECK_MODULES(ODE, ode)
  16. PKG_CHECK_MODULES(OPENGL, gl glu)
  17. PKG_CHECK_MODULES(GLFW, libglfw, [have_glfw=true], [have_glfw=false])
  18. AM_CONDITIONAL([GLFW], [test x$have_glfw = xtrue])
  19. if test x$have_glfw = xtrue
  20. then
  21. AC_DEFINE([USE_GLFW], [1], [define if GLFW is available])
  22. fi
  23. # TODO: when I get around implementing other backends...
  24. # PKG_CHECK_MODULES(SDL, sdl, AC_DEFINE(HAVE_SDL))
  25. # PKG_CHECK_MODULES(GLUT, glut, AC_DEFINE(HAVE_GLUT))
  26. # Checks for header files.
  27. AC_CHECK_HEADERS
  28. # Checks for typedefs, structures, and compiler characteristics.
  29. # Checks for library functions.
  30. AC_CHECK_FUNCS([atexit])
  31. AC_CHECK_FUNCS([sqrt])
  32. AC_HEADER_STDBOOL
  33. AC_CONFIG_SUBDIRS([deps/AntTweakBar])
  34. AC_CONFIG_FILES([Makefile
  35. deps/Makefile
  36. src/Makefile])
  37. AC_OUTPUT