patch-configure 10 KB

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