samba-do-not-check-glibc-version.patch 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --- a/source/configure
  2. +++ b/source/configure
  3. @@ -40770,85 +40770,8 @@ fi
  4. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5. -#
  6. -#
  7. -#
  8. -case "$host_os" in
  9. - *linux*)
  10. - # glibc <= 2.3.2 has a broken getgrouplist
  11. - if test "$cross_compiling" = yes; then
  12. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  13. -See \`config.log' for more details." >&5
  14. -echo "$as_me: error: cannot run test program while cross compiling
  15. -See \`config.log' for more details." >&2;}
  16. - { (exit 1); exit 1; }; }
  17. -else
  18. - cat >conftest.$ac_ext <<_ACEOF
  19. -/* confdefs.h. */
  20. -_ACEOF
  21. -cat confdefs.h >>conftest.$ac_ext
  22. -cat >>conftest.$ac_ext <<_ACEOF
  23. -/* end confdefs.h. */
  24. -
  25. -#include <unistd.h>
  26. -#include <sys/utsname.h>
  27. -main() {
  28. - /* glibc up to 2.3 has a broken getgrouplist */
  29. -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  30. - int libc_major = __GLIBC__;
  31. - int libc_minor = __GLIBC_MINOR__;
  32. -
  33. - if (libc_major < 2)
  34. - exit(1);
  35. - if ((libc_major == 2) && (libc_minor <= 3))
  36. - exit(1);
  37. -#endif
  38. - exit(0);
  39. -}
  40. -
  41. -_ACEOF
  42. -rm -f conftest$ac_exeext
  43. -if { (ac_try="$ac_link"
  44. -case "(($ac_try" in
  45. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  46. - *) ac_try_echo=$ac_try;;
  47. -esac
  48. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  49. - (eval "$ac_link") 2>&5
  50. - ac_status=$?
  51. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  52. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  53. - { (case "(($ac_try" in
  54. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  55. - *) ac_try_echo=$ac_try;;
  56. -esac
  57. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  58. - (eval "$ac_try") 2>&5
  59. - ac_status=$?
  60. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  61. - (exit $ac_status); }; }; then
  62. - linux_getgrouplist_ok=yes
  63. -else
  64. - echo "$as_me: program exited with status $ac_status" >&5
  65. -echo "$as_me: failed program was:" >&5
  66. -sed 's/^/| /' conftest.$ac_ext >&5
  67. -
  68. -( exit $ac_status )
  69. -linux_getgrouplist_ok=no
  70. -fi
  71. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  72. -fi
  73. -
  74. -
  75. - if test x"$linux_getgrouplist_ok" = x"yes"; then
  76. -
  77. -cat >>confdefs.h <<\_ACEOF
  78. -#define HAVE_GETGROUPLIST 1
  79. -_ACEOF
  80. -
  81. - fi
  82. - ;;
  83. - *)
  84. +# Stripped glibc test which is not needed for uClibc
  85. +linux_getgrouplist_ok=yes
  86. for ac_func in getgrouplist
  87. do
  88. @@ -40943,8 +40866,6 @@ _ACEOF
  89. fi
  90. done
  91. - ;;
  92. -esac
  93. #
  94. # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX