/jansson/configure.ac

http://github.com/nicolasff/webdis · m4 · 49 lines · 34 code · 10 blank · 5 comment · 0 complexity · c3b57970293f88bd14c7a8f1777c38fa MD5 · raw file

  1. AC_PREREQ([2.60])
  2. AC_INIT([jansson], [2.0pre], [petri@digip.org])
  3. AM_INIT_AUTOMAKE([1.10 foreign])
  4. AC_CONFIG_SRCDIR([src/value.c])
  5. AC_CONFIG_HEADERS([config.h])
  6. # Checks for programs.
  7. AC_PROG_CC
  8. AC_PROG_LIBTOOL
  9. AM_CONDITIONAL([GCC], [test x$GCC = xyes])
  10. # Checks for libraries.
  11. # Checks for header files.
  12. # Checks for typedefs, structures, and compiler characteristics.
  13. AC_TYPE_INT32_T
  14. AC_TYPE_LONG_LONG_INT
  15. case $ac_cv_type_long_long_int in
  16. yes) json_have_long_long=1;;
  17. *) json_have_long_long=0;;
  18. esac
  19. AC_SUBST([json_have_long_long])
  20. AC_C_INLINE
  21. case $ac_cv_c_inline in
  22. yes) json_inline=inline;;
  23. no) json_inline=;;
  24. *) json_inline=$ac_cv_c_inline;;
  25. esac
  26. AC_SUBST([json_inline])
  27. # Checks for library functions.
  28. AC_CONFIG_FILES([
  29. jansson.pc
  30. Makefile
  31. doc/Makefile
  32. src/Makefile
  33. src/jansson_config.h
  34. test/Makefile
  35. test/bin/Makefile
  36. test/suites/Makefile
  37. test/suites/api/Makefile
  38. ])
  39. AC_OUTPUT