A shell that runs x86_64 assembly
c
x86-64
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.

configure.ac 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([asmsh], [0.0-dev], [yann.weber@member.fsf.org])
  5. AM_INIT_AUTOMAKE([-Wall])
  6. AC_ARG_ENABLE([check],[ --disable-check disable unit test support],
  7. [case "${enableval}" in
  8. yes) check=true ;;
  9. no) check=false ;;
  10. *) AC_MSG_ERROR([bad value ${enableval} for --enable-check]) ;;
  11. esac],[check=true])
  12. AM_CONDITIONAL([CHECK], [test x$check = xtrue])
  13. # Checks for libraries.
  14. if test "x$check" = "xtrue"
  15. then
  16. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [],
  17. AC_MSG_FAILURE([Unable to locate (check unit test c framework).
  18. You can run ./configure --disable-check if you do not need unit tests.
  19. ]))
  20. AS_IF([test x$debug = xtrue], [CK_FORK=no],[])
  21. fi
  22. AC_CONFIG_SRCDIR([asmsh.c])
  23. AC_CONFIG_HEADERS([config.h])
  24. # Checks for programs.
  25. AC_GNU_SOURCE
  26. AC_C_CONST
  27. AC_C_INLINE
  28. AC_PROG_CC
  29. AC_PROG_RANLIB
  30. AM_PROG_AS
  31. AM_PROG_AR
  32. if test "x$check" = "xtrue"
  33. then
  34. AC_CHECK_PROGS([GCOV], [gcov])
  35. if test -z "$GCOV";
  36. then
  37. AC_MSG_WARN([gcov not found - continuing without coverage monitoring])
  38. else
  39. AC_CHECK_PROGS([LCOV], [lcov])
  40. if test -z "$LCOV";
  41. then
  42. AC_MSG_WARN([lcov not found - continuing without HTML coverage summary])
  43. fi
  44. fi
  45. fi
  46. AM_CONDITIONAL([HAVE_GCOV], [test -n "$GCOV"])
  47. AM_CONDITIONAL([HAVE_LCOV], [test -n "$LCOV"])
  48. # Checks for libraries.
  49. AC_CHECK_LIB(readline, readline)
  50. # Checks for header files.
  51. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
  52. # Checks for typedefs, structures, and compiler characteristics.
  53. AC_TYPE_PID_T
  54. AC_TYPE_SIZE_T
  55. # Checks for library functions.
  56. AC_FUNC_FORK
  57. AC_FUNC_MALLOC
  58. AC_FUNC_REALLOC
  59. AC_CHECK_FUNCS([bzero strtoull, gmtime_r, ptrace])
  60. AC_CONFIG_FILES([Makefile tests/Makefile tests/samples/Makefile])
  61. AC_OUTPUT