patch-source_configure 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- samba-3.3.3.orig/source/configure 2009-04-01 14:19:36.000000000 +0200
  3. +++ samba-3.3.3/source/configure 2009-04-18 22:56:27.047962181 +0200
  4. @@ -44062,194 +44062,6 @@ fi
  5. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6. #
  7. -#
  8. -#
  9. -case "$host_os" in
  10. - *linux*)
  11. - # glibc <= 2.3.2 has a broken getgrouplist
  12. - if test "$cross_compiling" = yes; then
  13. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  16. -See \`config.log' for more details." >&5
  17. -$as_echo "$as_me: error: cannot run test program while cross compiling
  18. -See \`config.log' for more details." >&2;}
  19. - { (exit 1); exit 1; }; }; }
  20. -else
  21. - cat >conftest.$ac_ext <<_ACEOF
  22. -/* confdefs.h. */
  23. -_ACEOF
  24. -cat confdefs.h >>conftest.$ac_ext
  25. -cat >>conftest.$ac_ext <<_ACEOF
  26. -/* end confdefs.h. */
  27. -
  28. -#include <unistd.h>
  29. -#include <sys/utsname.h>
  30. -main() {
  31. - /* glibc up to 2.3 has a broken getgrouplist */
  32. -#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
  33. - int libc_major = __GLIBC__;
  34. - int libc_minor = __GLIBC_MINOR__;
  35. -
  36. - if (libc_major < 2)
  37. - exit(1);
  38. - if ((libc_major == 2) && (libc_minor <= 3))
  39. - exit(1);
  40. -#endif
  41. - exit(0);
  42. -}
  43. -
  44. -_ACEOF
  45. -rm -f conftest$ac_exeext
  46. -if { (ac_try="$ac_link"
  47. -case "(($ac_try" in
  48. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  49. - *) ac_try_echo=$ac_try;;
  50. -esac
  51. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  52. -$as_echo "$ac_try_echo") >&5
  53. - (eval "$ac_link") 2>&5
  54. - ac_status=$?
  55. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  56. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  57. - { (case "(($ac_try" in
  58. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  59. - *) ac_try_echo=$ac_try;;
  60. -esac
  61. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  62. -$as_echo "$ac_try_echo") >&5
  63. - (eval "$ac_try") 2>&5
  64. - ac_status=$?
  65. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  66. - (exit $ac_status); }; }; then
  67. - linux_getgrouplist_ok=yes
  68. -else
  69. - $as_echo "$as_me: program exited with status $ac_status" >&5
  70. -$as_echo "$as_me: failed program was:" >&5
  71. -sed 's/^/| /' conftest.$ac_ext >&5
  72. -
  73. -( exit $ac_status )
  74. -linux_getgrouplist_ok=no
  75. -fi
  76. -rm -rf conftest.dSYM
  77. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  78. -fi
  79. -
  80. -
  81. - if test x"$linux_getgrouplist_ok" = x"yes"; then
  82. -
  83. -cat >>confdefs.h <<\_ACEOF
  84. -#define HAVE_GETGROUPLIST 1
  85. -_ACEOF
  86. -
  87. - fi
  88. - ;;
  89. - *)
  90. -
  91. -for ac_func in getgrouplist
  92. -do
  93. -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  94. -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  95. -$as_echo_n "checking for $ac_func... " >&6; }
  96. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  97. - $as_echo_n "(cached) " >&6
  98. -else
  99. - cat >conftest.$ac_ext <<_ACEOF
  100. -/* confdefs.h. */
  101. -_ACEOF
  102. -cat confdefs.h >>conftest.$ac_ext
  103. -cat >>conftest.$ac_ext <<_ACEOF
  104. -/* end confdefs.h. */
  105. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  106. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  107. -#define $ac_func innocuous_$ac_func
  108. -
  109. -/* System header to define __stub macros and hopefully few prototypes,
  110. - which can conflict with char $ac_func (); below.
  111. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  112. - <limits.h> exists even on freestanding compilers. */
  113. -
  114. -#ifdef __STDC__
  115. -# include <limits.h>
  116. -#else
  117. -# include <assert.h>
  118. -#endif
  119. -
  120. -#undef $ac_func
  121. -
  122. -/* Override any GCC internal prototype to avoid an error.
  123. - Use char because int might match the return type of a GCC
  124. - builtin and then its argument prototype would still apply. */
  125. -#ifdef __cplusplus
  126. -extern "C"
  127. -#endif
  128. -char $ac_func ();
  129. -/* The GNU C library defines this for functions which it implements
  130. - to always fail with ENOSYS. Some functions are actually named
  131. - something starting with __ and the normal name is an alias. */
  132. -#if defined __stub_$ac_func || defined __stub___$ac_func
  133. -choke me
  134. -#endif
  135. -
  136. -int
  137. -main ()
  138. -{
  139. -return $ac_func ();
  140. - ;
  141. - return 0;
  142. -}
  143. -_ACEOF
  144. -rm -f conftest.$ac_objext conftest$ac_exeext
  145. -if { (ac_try="$ac_link"
  146. -case "(($ac_try" in
  147. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  148. - *) ac_try_echo=$ac_try;;
  149. -esac
  150. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  151. -$as_echo "$ac_try_echo") >&5
  152. - (eval "$ac_link") 2>conftest.er1
  153. - ac_status=$?
  154. - grep -v '^ *+' conftest.er1 >conftest.err
  155. - rm -f conftest.er1
  156. - cat conftest.err >&5
  157. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  158. - (exit $ac_status); } && {
  159. - test -z "$ac_c_werror_flag" ||
  160. - test ! -s conftest.err
  161. - } && test -s conftest$ac_exeext && {
  162. - test "$cross_compiling" = yes ||
  163. - $as_test_x conftest$ac_exeext
  164. - }; then
  165. - eval "$as_ac_var=yes"
  166. -else
  167. - $as_echo "$as_me: failed program was:" >&5
  168. -sed 's/^/| /' conftest.$ac_ext >&5
  169. -
  170. - eval "$as_ac_var=no"
  171. -fi
  172. -
  173. -rm -rf conftest.dSYM
  174. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  175. - conftest$ac_exeext conftest.$ac_ext
  176. -fi
  177. -ac_res=`eval 'as_val=${'$as_ac_var'}
  178. - $as_echo "$as_val"'`
  179. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  180. -$as_echo "$ac_res" >&6; }
  181. -as_val=`eval 'as_val=${'$as_ac_var'}
  182. - $as_echo "$as_val"'`
  183. - if test "x$as_val" = x""yes; then
  184. - cat >>confdefs.h <<_ACEOF
  185. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  186. -_ACEOF
  187. -
  188. -fi
  189. -done
  190. -
  191. - ;;
  192. -esac
  193. -
  194. -#
  195. # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
  196. #