patch-source3_configure 5.5 KB

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