configure.ac 1.3 KB

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