A shell that runs x86_64 assembly
c
x86-64
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

configure.ac 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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], [asmsh@yannweb.net])
  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([src/asmsh.c])
  23. AC_CONFIG_HEADERS([src/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. AC_CHECK_PROGS([DOXYGEN], [doxygen])
  48. if test -z "$DOXYGEN";
  49. then
  50. AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
  51. fi
  52. AC_CHECK_PROGS([DOT], [dot])
  53. if test -z "$DOT"; then
  54. AC_MSG_ERROR([Doxygen needs dot, please install dot first])
  55. fi
  56. AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
  57. AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])])
  58. AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Makefile])])
  59. AM_CONDITIONAL([HAVE_GCOV], [test -n "$GCOV"])
  60. AM_CONDITIONAL([HAVE_LCOV], [test -n "$LCOV"])
  61. AM_CONDITIONAL([HAVE_CPPCHECK], [test -n "$CPPCHECK"])
  62. # Checks for libraries.
  63. AC_CHECK_LIB(readline, readline)
  64. # Checks for header files.
  65. AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
  66. # Checks for typedefs, structures, and compiler characteristics.
  67. AC_TYPE_PID_T
  68. AC_TYPE_SIZE_T
  69. # Checks for library functions.
  70. AC_FUNC_FORK
  71. AC_FUNC_MALLOC
  72. AC_FUNC_REALLOC
  73. AC_CHECK_FUNCS([bzero strtoull, gmtime_r, ptrace])
  74. AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile tests/samples/Makefile])
  75. AC_OUTPUT