patch-configure 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. --- mysql-5.1.48.orig/configure 2010-06-03 17:54:47.000000000 +0200
  2. +++ mysql-5.1.48/configure 2010-07-30 11:04:50.000000000 +0200
  3. @@ -19825,45 +19825,7 @@ fi
  4. $as_echo_n "checking \"how to check if pid exists\"... " >&6; }
  5. PS=$ac_cv_path_PS
  6. # Linux style
  7. -if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
  8. -then
  9. - FIND_PROC="$PS wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
  10. -# Solaris
  11. -elif $PS -fp $$ 2> /dev/null | grep -- $0 > /dev/null
  12. -then
  13. - FIND_PROC="$PS -p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
  14. -# BSD style
  15. -elif $PS -uaxww 2> /dev/null | grep -- $0 > /dev/null
  16. -then
  17. - FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
  18. -# SysV style
  19. -elif $PS -ef 2> /dev/null | grep -- $0 > /dev/null
  20. -then
  21. - FIND_PROC="$PS -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
  22. -# Do anybody use this?
  23. -elif $PS $$ 2> /dev/null | grep -- $0 > /dev/null
  24. -then
  25. - FIND_PROC="$PS \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
  26. -else
  27. - case $SYSTEM_TYPE in
  28. - *freebsd*|*dragonfly*)
  29. - FIND_PROC="$PS p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
  30. - ;;
  31. - *darwin*)
  32. - FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
  33. - ;;
  34. - *cygwin*)
  35. - FIND_PROC="$PS -e | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
  36. - ;;
  37. - *netware*)
  38. - FIND_PROC=
  39. - ;;
  40. - *)
  41. - { { $as_echo "$as_me:$LINENO: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&5
  42. -$as_echo "$as_me: error: Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual." >&2;}
  43. - { (exit 1); exit 1; }; }
  44. - esac
  45. -fi
  46. +FIND_PROC="$PS wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
  47. { $as_echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
  48. $as_echo "\"$FIND_PROC\"" >&6; }
  49. @@ -48273,197 +48235,14 @@ $as_echo "$as_me: error: unknown endiann
  50. esac
  51. - { $as_echo "$as_me:$LINENO: checking whether GCC atomic builtins are available" >&5
  52. -$as_echo_n "checking whether GCC atomic builtins are available... " >&6; }
  53. - # either define HAVE_IB_GCC_ATOMIC_BUILTINS or not
  54. - if test "$cross_compiling" = yes; then
  55. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  56. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  57. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  58. -See \`config.log' for more details." >&5
  59. -$as_echo "$as_me: error: cannot run test program while cross compiling
  60. -See \`config.log' for more details." >&2;}
  61. - { (exit 1); exit 1; }; }; }
  62. -else
  63. - cat >conftest.$ac_ext <<_ACEOF
  64. -/* confdefs.h. */
  65. -_ACEOF
  66. -cat confdefs.h >>conftest.$ac_ext
  67. -cat >>conftest.$ac_ext <<_ACEOF
  68. -/* end confdefs.h. */
  69. -
  70. - int main()
  71. - {
  72. - long x;
  73. - long y;
  74. - long res;
  75. - char c;
  76. -
  77. - x = 10;
  78. - y = 123;
  79. - res = __sync_bool_compare_and_swap(&x, x, y);
  80. - if (!res || x != y) {
  81. - return(1);
  82. - }
  83. -
  84. - x = 10;
  85. - y = 123;
  86. - res = __sync_bool_compare_and_swap(&x, x + 1, y);
  87. - if (res || x != 10) {
  88. - return(1);
  89. - }
  90. -
  91. - x = 10;
  92. - y = 123;
  93. - res = __sync_add_and_fetch(&x, y);
  94. - if (res != 123 + 10 || x != 123 + 10) {
  95. - return(1);
  96. - }
  97. -
  98. - c = 10;
  99. - res = __sync_lock_test_and_set(&c, 123);
  100. - if (res != 10 || c != 123) {
  101. - return(1);
  102. - }
  103. -
  104. - return(0);
  105. - }
  106. -
  107. -_ACEOF
  108. -rm -f conftest$ac_exeext
  109. -if { (ac_try="$ac_link"
  110. -case "(($ac_try" in
  111. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  112. - *) ac_try_echo=$ac_try;;
  113. -esac
  114. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  115. -$as_echo "$ac_try_echo") >&5
  116. - (eval "$ac_link") 2>&5
  117. - ac_status=$?
  118. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  119. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  120. - { (case "(($ac_try" in
  121. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  122. - *) ac_try_echo=$ac_try;;
  123. -esac
  124. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  125. -$as_echo "$ac_try_echo") >&5
  126. - (eval "$ac_try") 2>&5
  127. - ac_status=$?
  128. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  129. - (exit $ac_status); }; }; then
  130. -
  131. -
  132. cat >>confdefs.h <<\_ACEOF
  133. #define HAVE_IB_GCC_ATOMIC_BUILTINS 1
  134. _ACEOF
  135. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  136. -$as_echo "yes" >&6; }
  137. -
  138. -else
  139. - $as_echo "$as_me: program exited with status $ac_status" >&5
  140. -$as_echo "$as_me: failed program was:" >&5
  141. -sed 's/^/| /' conftest.$ac_ext >&5
  142. -
  143. -( exit $ac_status )
  144. -
  145. - { $as_echo "$as_me:$LINENO: result: no" >&5
  146. -$as_echo "no" >&6; }
  147. -
  148. -
  149. -fi
  150. -rm -rf conftest.dSYM
  151. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  152. -fi
  153. -
  154. -
  155. -
  156. - { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by GCC atomic builtins" >&5
  157. -$as_echo_n "checking whether pthread_t can be used by GCC atomic builtins... " >&6; }
  158. - # either define HAVE_IB_ATOMIC_PTHREAD_T_GCC or not
  159. - if test "$cross_compiling" = yes; then
  160. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  161. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  162. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  163. -See \`config.log' for more details." >&5
  164. -$as_echo "$as_me: error: cannot run test program while cross compiling
  165. -See \`config.log' for more details." >&2;}
  166. - { (exit 1); exit 1; }; }; }
  167. -else
  168. - cat >conftest.$ac_ext <<_ACEOF
  169. -/* confdefs.h. */
  170. -_ACEOF
  171. -cat confdefs.h >>conftest.$ac_ext
  172. -cat >>conftest.$ac_ext <<_ACEOF
  173. -/* end confdefs.h. */
  174. -
  175. - #include <pthread.h>
  176. - #include <string.h>
  177. -
  178. - int main(int argc, char** argv) {
  179. - pthread_t x1;
  180. - pthread_t x2;
  181. - pthread_t x3;
  182. -
  183. - memset(&x1, 0x0, sizeof(x1));
  184. - memset(&x2, 0x0, sizeof(x2));
  185. - memset(&x3, 0x0, sizeof(x3));
  186. -
  187. - __sync_bool_compare_and_swap(&x1, x2, x3);
  188. -
  189. - return(0);
  190. - }
  191. -
  192. -_ACEOF
  193. -rm -f conftest$ac_exeext
  194. -if { (ac_try="$ac_link"
  195. -case "(($ac_try" in
  196. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  197. - *) ac_try_echo=$ac_try;;
  198. -esac
  199. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  200. -$as_echo "$ac_try_echo") >&5
  201. - (eval "$ac_link") 2>&5
  202. - ac_status=$?
  203. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  204. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  205. - { (case "(($ac_try" in
  206. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  207. - *) ac_try_echo=$ac_try;;
  208. -esac
  209. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  210. -$as_echo "$ac_try_echo") >&5
  211. - (eval "$ac_try") 2>&5
  212. - ac_status=$?
  213. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  214. - (exit $ac_status); }; }; then
  215. -
  216. -
  217. cat >>confdefs.h <<\_ACEOF
  218. #define HAVE_IB_ATOMIC_PTHREAD_T_GCC 1
  219. _ACEOF
  220. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  221. -$as_echo "yes" >&6; }
  222. -
  223. -else
  224. - $as_echo "$as_me: program exited with status $ac_status" >&5
  225. -$as_echo "$as_me: failed program was:" >&5
  226. -sed 's/^/| /' conftest.$ac_ext >&5
  227. -
  228. -( exit $ac_status )
  229. -
  230. - { $as_echo "$as_me:$LINENO: result: no" >&5
  231. -$as_echo "no" >&6; }
  232. -
  233. -
  234. -fi
  235. -rm -rf conftest.dSYM
  236. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  237. -fi
  238. -
  239. -
  240. { $as_echo "$as_me:$LINENO: checking whether Solaris libc atomic functions are available" >&5
  241. $as_echo_n "checking whether Solaris libc atomic functions are available... " >&6; }
  242. @@ -48581,101 +48360,6 @@ fi
  243. done
  244. - { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by Solaris libc atomic functions" >&5
  245. -$as_echo_n "checking whether pthread_t can be used by Solaris libc atomic functions... " >&6; }
  246. - # either define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS or not
  247. - if test "$cross_compiling" = yes; then
  248. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  249. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  250. -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  251. -See \`config.log' for more details." >&5
  252. -$as_echo "$as_me: error: cannot run test program while cross compiling
  253. -See \`config.log' for more details." >&2;}
  254. - { (exit 1); exit 1; }; }; }
  255. -else
  256. - cat >conftest.$ac_ext <<_ACEOF
  257. -/* confdefs.h. */
  258. -_ACEOF
  259. -cat confdefs.h >>conftest.$ac_ext
  260. -cat >>conftest.$ac_ext <<_ACEOF
  261. -/* end confdefs.h. */
  262. -
  263. - #include <pthread.h>
  264. - #include <string.h>
  265. -
  266. - int main(int argc, char** argv) {
  267. - pthread_t x1;
  268. - pthread_t x2;
  269. - pthread_t x3;
  270. -
  271. - memset(&x1, 0x0, sizeof(x1));
  272. - memset(&x2, 0x0, sizeof(x2));
  273. - memset(&x3, 0x0, sizeof(x3));
  274. -
  275. - if (sizeof(pthread_t) == 4) {
  276. -
  277. - atomic_cas_32(&x1, x2, x3);
  278. -
  279. - } else if (sizeof(pthread_t) == 8) {
  280. -
  281. - atomic_cas_64(&x1, x2, x3);
  282. -
  283. - } else {
  284. -
  285. - return(1);
  286. - }
  287. -
  288. - return(0);
  289. - }
  290. -
  291. -_ACEOF
  292. -rm -f conftest$ac_exeext
  293. -if { (ac_try="$ac_link"
  294. -case "(($ac_try" in
  295. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  296. - *) ac_try_echo=$ac_try;;
  297. -esac
  298. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  299. -$as_echo "$ac_try_echo") >&5
  300. - (eval "$ac_link") 2>&5
  301. - ac_status=$?
  302. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  303. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  304. - { (case "(($ac_try" in
  305. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  306. - *) ac_try_echo=$ac_try;;
  307. -esac
  308. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  309. -$as_echo "$ac_try_echo") >&5
  310. - (eval "$ac_try") 2>&5
  311. - ac_status=$?
  312. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  313. - (exit $ac_status); }; }; then
  314. -
  315. -
  316. -cat >>confdefs.h <<\_ACEOF
  317. -#define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS 1
  318. -_ACEOF
  319. -
  320. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  321. -$as_echo "yes" >&6; }
  322. -
  323. -else
  324. - $as_echo "$as_me: program exited with status $ac_status" >&5
  325. -$as_echo "$as_me: failed program was:" >&5
  326. -sed 's/^/| /' conftest.$ac_ext >&5
  327. -
  328. -( exit $ac_status )
  329. -
  330. - { $as_echo "$as_me:$LINENO: result: no" >&5
  331. -$as_echo "no" >&6; }
  332. -
  333. -
  334. -fi
  335. -rm -rf conftest.dSYM
  336. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  337. -fi
  338. -
  339. # this is needed to know which one of atomic_cas_32() or atomic_cas_64()