120-add-extra-checks.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- a/config-site-generator/configure.ac
  2. +++ b/config-site-generator/configure.ac
  3. @@ -23,6 +23,7 @@ AC_DEFUN([AC_MSG_ERROR], [
  4. test -e conftest.dir && rm -rf conftest.dir ])
  5. # Checks for programs.
  6. +AC_PROG_CC
  7. AC_PROG_CC_C89
  8. AC_PROG_CC_C_O
  9. AC_PROG_CPP
  10. @@ -52,9 +53,11 @@ AC_PROG_LEX
  11. AC_PROG_LN_S
  12. AC_PROG_RANLIB
  13. AC_PROG_SED
  14. +AC_PROG_LEX
  15. #AC_PROG_YACC
  16. AM_PROG_AS
  17. +AM_PROG_AR
  18. # Checks for system services.
  19. #AC_PATH_X
  20. @@ -118,6 +121,8 @@ sys/ucontext.h sys/uio.h sys/un.h sys/us
  21. sys/wait.h sys/xattr.h tar.h termios.h tgmath.h time.h ucontext.h ulimit.h \
  22. unistd.h utime.h utmp.h utmpx.h wchar.h wctype.h wordexp.h
  23. ])
  24. +# extra headers
  25. +AC_CHECK_HEADERS([sys/cdefs.h])
  26. # Checks for typedefs, structures, and compiler characteristics.
  27. AC_TYPE_GETGROUPS
  28. @@ -217,6 +222,16 @@ AC_FUNC_STRTOLD
  29. AC_FUNC_UTIME_NULL
  30. AC_FUNC_VPRINTF
  31. +AC_CHECK_SIZEOF(short)
  32. +AC_CHECK_SIZEOF(int)
  33. +AC_CHECK_SIZEOF(long)
  34. +AC_CHECK_SIZEOF(long long)
  35. +AC_CHECK_SIZEOF(unsigned int)
  36. +AC_CHECK_SIZEOF(unsigned long)
  37. +AC_CHECK_SIZEOF(unsigned long long)
  38. +AC_CHECK_SIZEOF(off_t)
  39. +AC_CHECK_SIZEOF(size_t)
  40. +
  41. # Functions list scraped from musl 0.9.4 x86_64
  42. AC_CHECK_FUNCS([ \
  43. a64l abort abs accept access acos acosf acosh acoshf acoshl acosl addmntent \