configure.ac 595 B

12345678910111213141516171819202122232425
  1. AC_PREREQ(2.59)
  2. AC_INIT(glplatform, [0.4])
  3. AC_CONFIG_MACRO_DIRS([m4])
  4. AC_CANONICAL_SYSTEM
  5. AM_INIT_AUTOMAKE([foreign subdir-objects])
  6. PKG_CHECK_MODULES(FREETYPE2,freetype2 >= 2.53,,AC_MSG_ERROR([Could not find libX11]))
  7. AS_IF([ test $host_os = 'linux-gnu' ],
  8. [AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Could not find libX11]))
  9. AC_CHECK_LIB([GL],[glXGetProcAddress],,AC_MSG_ERROR([Could not find libGL]))])
  10. AM_CONDITIONAL([WINDOWS], [ test $host_os = mingw32 ])
  11. AM_CONDITIONAL([LINUX_GNU], [ test $host_os = linux-gnu ])
  12. LT_INIT()
  13. AC_PROG_CC
  14. AC_CONFIG_FILES(Makefile)
  15. AC_OUTPUT