Programmable real-time audio signal processing application
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

configure.ac 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #
  2. # Use "autoreconf --force --install" to update depedent files after changing
  3. # this configure.ac or any of the Makefile.am files.
  4. #
  5. AC_INIT([kc],[1.0],[kc@larke.org])
  6. AC_CONFIG_AUX_DIR([build-aux]) # put aux files in build-aux
  7. AM_INIT_AUTOMAKE([1.9 -Wall foreign subdir-objects]) # subdir-objects needed for non-recursive make
  8. AC_CONFIG_SRCDIR([src/kc/kcMain.cpp])
  9. AC_CONFIG_HEADERS([config.h])
  10. AC_CONFIG_MACRO_DIR([m4])
  11. LT_INIT
  12. # Check for programs
  13. AC_PROG_CC
  14. AC_PROG_CXX
  15. # AC_PROG_RANLIB # required for static librarires
  16. # Checks for libraries.
  17. AC_CHECK_LIB([cairo],[cairo_debug_reset_static_data],[AC_MSG_RESULT([The 'cairo' library was found.])],[AC_MSG_ERROR([The 'cairo' library was not found.])])
  18. #TODO: add more library checks
  19. # Checks for header files.
  20. AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h mach/mach.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termios.h unistd.h])
  21. # Checks for typedefs, structures, and compiler characteristics.
  22. AC_HEADER_STDBOOL
  23. AC_C_INLINE
  24. AC_TYPE_OFF_T
  25. AC_TYPE_SSIZE_T
  26. AC_TYPE_UINT64_T
  27. # Checks for library functions.
  28. AC_FUNC_ERROR_AT_LINE
  29. AC_FUNC_FORK
  30. AC_FUNC_FSEEKO
  31. AC_FUNC_MALLOC
  32. AC_FUNC_REALLOC
  33. AC_FUNC_STRTOD
  34. AC_CHECK_FUNCS([clock_gettime floor memmove memset mkdir pow rint select socket sqrt strcasecmp strchr strcspn strerror strspn strstr strtol])
  35. # The following is a custom macro in ./m4/os_type.m4
  36. # be sure to also set "ACLOCAL_AMFLAGS = -I m4" in ./Makefile.am
  37. # Defines the config.h variable OS_LINUX or OS_OSX
  38. AX_FUNC_OS_TYPE
  39. AX_FUNC_OS_64
  40. # ac_cv_os_type is set by AX_FUNC_OS_TYPE
  41. AM_CONDITIONAL([OS_LINUX],[test x"${ax_cv_os_type}" = xLinux])
  42. AM_CONDITIONAL([OS_OSX],[test x"${ax_cv_os_type}" = xDarwin])
  43. echo "OS='${ax_cv_os_type}'"
  44. AM_CONDITIONAL([OS_64],[test x"${ax_cv_os_64}" == xx86_64])
  45. echo "ptr width='${ax_cv_os_64}'"
  46. AC_ARG_ENABLE([debug],
  47. [ --enable-debug Turn on debugging],
  48. [case "${enableval}" in
  49. yes) debug=true ;;
  50. no) debug=false ;;
  51. *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
  52. esac],[debug=false])
  53. echo "debug=${debug}"
  54. AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
  55. if test x$debug = xfalse; then
  56. AC_DEFINE([NDEBUG], 1,[Debugging off.])
  57. fi
  58. AC_ARG_ENABLE([vectop],
  59. [ --enable-vectop Turn on use of Lapack and Atlas vector/matrix operations. ],
  60. [case "${enableval}" in
  61. yes) vectop=true ;;
  62. no) vectop=false ;;
  63. *) AC_MSG_ERROR([bad value ${enableval} for --enable-vectop]) ;;
  64. esac],[vectop=true])
  65. echo "vectop=${vectop}"
  66. # if --enable-vectop then #define CM_VECTOP = 1 in config.h otherwise CM_VECTOP is undefined.
  67. if test x"$vectop" = xtrue; then
  68. AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
  69. fi
  70. AC_ARG_ENABLE([memalign],
  71. [ --enable-memalign Turn on memory alignment on dynamic memory allocations. ],
  72. [case "${enableval}" in
  73. yes) memalign=true ;;
  74. no) memalign=false ;;
  75. *) AC_MSG_ERROR([bad value ${enableval} for --enable-memalign]) ;;
  76. esac],[memalign=true])
  77. echo "memalign=${memalign}"
  78. # if --enable-vectop then #define CM_MEMALIGN = 1 in config.h otherwise CM_MEMALIGN is undefined.
  79. if test x"$memalign" = xtrue; then
  80. AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
  81. fi
  82. AC_CONFIG_FILES([ Makefile ])
  83. AC_OUTPUT