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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. AC_CHECK_PROGS([CPPCHECK], [cppcheck])
  47. AM_CONDITIONAL([HAVE_GCOV], [test -n "$GCOV"])
  48. AM_CONDITIONAL([HAVE_LCOV], [test -n "$LCOV"])
  49. AM_CONDITIONAL([HAVE_CPPCHECK], [test -n "$CPPCHECK"])
  50. # Checks for libraries.
  51. AC_CHECK_LIB(readline, readline)
  52. # Checks for header files.
  53. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
  54. # Checks for typedefs, structures, and compiler characteristics.
  55. AC_TYPE_PID_T
  56. AC_TYPE_SIZE_T
  57. # Checks for library functions.
  58. AC_FUNC_FORK
  59. AC_FUNC_MALLOC
  60. AC_FUNC_REALLOC
  61. AC_CHECK_FUNCS([bzero strtoull, gmtime_r, ptrace])
  62. AC_CONFIG_FILES([Makefile tests/Makefile tests/samples/Makefile])
  63. AC_OUTPUT