You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.4 KiB

  1. AC_INIT([libisoburn], [0.0.1], [http://libburnia-project.org])
  2. AC_PREREQ([2.50])
  3. dnl AC_CONFIG_HEADER([config.h])
  4. AC_CANONICAL_HOST
  5. AC_CANONICAL_TARGET
  6. AM_INIT_AUTOMAKE([subdir-objects])
  7. dnl Making releases:
  8. dnl BURN_MICRO_VERSION += 1;
  9. dnl BURN_INTERFACE_AGE += 1;
  10. dnl BURN_BINARY_AGE += 1;
  11. dnl if any functions have been added, set BURN_INTERFACE_AGE to 0.
  12. dnl if backwards compatibility has been broken,
  13. dnl set BURN_BINARY_AGE and BURN_INTERFACE_AGE to 0.
  14. dnl
  15. dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
  16. dnl
  17. BURN_MAJOR_VERSION=0
  18. BURN_MINOR_VERSION=0
  19. BURN_MICRO_VERSION=1
  20. BURN_INTERFACE_AGE=0
  21. BURN_BINARY_AGE=0
  22. BURN_VERSION=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION.$BURN_MICRO_VERSION
  23. AC_SUBST(BURN_MAJOR_VERSION)
  24. AC_SUBST(BURN_MINOR_VERSION)
  25. AC_SUBST(BURN_MICRO_VERSION)
  26. AC_SUBST(BURN_INTERFACE_AGE)
  27. AC_SUBST(BURN_BINARY_AGE)
  28. AC_SUBST(BURN_VERSION)
  29. dnl Libtool versioning
  30. LT_RELEASE=$BURN_MAJOR_VERSION.$BURN_MINOR_VERSION
  31. LT_CURRENT=`expr $BURN_MICRO_VERSION - $BURN_INTERFACE_AGE`
  32. LT_REVISION=$BURN_INTERFACE_AGE
  33. LT_AGE=`expr $BURN_BINARY_AGE - $BURN_INTERFACE_AGE`
  34. LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
  35. AC_SUBST(LT_RELEASE)
  36. AC_SUBST(LT_CURRENT)
  37. AC_SUBST(LT_REVISION)
  38. AC_SUBST(LT_AGE)
  39. AC_SUBST(LT_CURRENT_MINUS_AGE)
  40. AC_PREFIX_DEFAULT([/usr/local])
  41. test "$prefix" = "NONE" && prefix=$ac_default_prefix
  42. AM_MAINTAINER_MODE
  43. AM_PROG_CC_C_O
  44. AC_C_CONST
  45. AC_C_INLINE
  46. AC_C_BIGENDIAN
  47. dnl Large file support
  48. AC_SYS_LARGEFILE
  49. AC_FUNC_FSEEKO
  50. AC_CHECK_FUNC([fseeko])
  51. if test ! $ac_cv_func_fseeko; then
  52. AC_ERROR([Libburn requires largefile support.])
  53. fi
  54. AC_PROG_LIBTOOL
  55. AC_SUBST(LIBTOOL_DEPS)
  56. LIBTOOL="$LIBTOOL --silent"
  57. AC_PROG_INSTALL
  58. AC_CHECK_HEADERS()
  59. THREAD_LIBS=-lpthread
  60. AC_SUBST(THREAD_LIBS)
  61. TARGET_SHIZZLE
  62. AC_SUBST(ARCH)
  63. AC_SUBST(LIBBURN_ARCH_LIBS)
  64. dnl Add compiler-specific flags
  65. dnl See if the user wants aggressive optimizations of the code
  66. AC_ARG_ENABLE(debug,
  67. [ --enable-debug Disable aggressive optimizations [default=yes]],
  68. , enable_debug=yes)
  69. if test x$enable_debug != xyes; then
  70. if test x$GCC = xyes; then
  71. CFLAGS="$CFLAGS -O3"
  72. CFLAGS="$CFLAGS -fexpensive-optimizations"
  73. fi
  74. CFLAGS="$CFLAGS -DNDEBUG"
  75. else
  76. if test x$GCC = xyes; then
  77. CFLAGS="$CFLAGS -g -pedantic -Wall"
  78. fi
  79. CFLAGS="$CFLAGS -DDEBUG"
  80. fi
  81. AC_CONFIG_FILES([
  82. Makefile
  83. doc/doxygen.conf
  84. version.h
  85. libisoburn.pc
  86. ])
  87. AC_OUTPUT