configure.ac 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. m4_define([MAJOR_VERSION], 1)
  4. m4_define([MINOR_VERSION], 3)
  5. m4_define([MICRO_VERSION], 0)
  6. AC_PREREQ(2.59)
  7. AC_INIT([birq],
  8. [MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION],
  9. [serj.kalichev at gmail dot com])
  10. AC_CONFIG_AUX_DIR([.])
  11. AC_CONFIG_HEADERS([config.h])
  12. AM_INIT_AUTOMAKE(subdir-objects)
  13. # Checks for programs.
  14. AC_PROG_CC
  15. AM_PROG_CC_C_O
  16. AC_PROG_RANLIB
  17. # needed to handle 64-bit architecture
  18. AC_CHECK_SIZEOF(int)
  19. AC_CHECK_SIZEOF(long)
  20. AC_CHECK_SIZEOF(size_t)
  21. ################################
  22. # Deal with debugging options
  23. ################################
  24. AC_ARG_ENABLE(debug,
  25. [AS_HELP_STRING([--enable-debug],
  26. [Turn on debugging including asserts [default=no]])],
  27. [],
  28. [enable_debug=no])
  29. AM_CONDITIONAL(DEBUG,test x$enable_debug = xyes)
  30. ################################
  31. # Check for getopt_long()
  32. ################################
  33. AC_CHECK_HEADERS(getopt.h, [],
  34. AC_MSG_WARN([getopt.h not found: only short parameters can be used on command line]))
  35. ################################
  36. # Check for locale.h
  37. ################################
  38. AC_CHECK_HEADERS(locale.h, [],
  39. AC_MSG_WARN([locale.h not found: the locales is not supported]))
  40. AC_CONFIG_FILES(Makefile)
  41. AC_OUTPUT