memcached 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. data/CHANGELOG +2 -0
  2. data/Manifest +206 -12
  3. data/Rakefile +32 -1
  4. data/ext/extconf.rb +10 -35
  5. data/ext/libmemcached-0.32/AUTHORS +7 -0
  6. data/ext/libmemcached-0.32/COPYING +32 -0
  7. data/ext/libmemcached-0.32/ChangeLog +303 -0
  8. data/ext/libmemcached-0.32/INSTALL +302 -0
  9. data/ext/libmemcached-0.32/Makefile.am +36 -0
  10. data/ext/libmemcached-0.32/Makefile.in +828 -0
  11. data/ext/libmemcached-0.32/NEWS +1 -0
  12. data/ext/libmemcached-0.32/README +33 -0
  13. data/ext/libmemcached-0.32/THANKS +14 -0
  14. data/ext/libmemcached-0.32/TODO +11 -0
  15. data/ext/libmemcached-0.32/aclocal.m4 +1852 -0
  16. data/ext/libmemcached-0.32/clients/Makefile.am +73 -0
  17. data/ext/libmemcached-0.32/clients/Makefile.in +770 -0
  18. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  19. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  20. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  21. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  22. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  23. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  24. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  25. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  26. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  27. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  28. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  29. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  30. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  31. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  32. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  33. data/ext/libmemcached-0.32/config.h.in +252 -0
  34. data/ext/libmemcached-0.32/config/compile +143 -0
  35. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  36. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  37. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  38. data/ext/libmemcached-0.32/config/depcomp +630 -0
  39. data/ext/libmemcached-0.32/config/install-sh +520 -0
  40. data/ext/libmemcached-0.32/config/ltmain.sh +8406 -0
  41. data/ext/libmemcached-0.32/config/missing +376 -0
  42. data/ext/libmemcached-0.32/configure +23048 -0
  43. data/ext/libmemcached-0.32/configure.ac +122 -0
  44. data/ext/libmemcached-0.32/docs/Makefile.am +415 -0
  45. data/ext/libmemcached-0.32/docs/Makefile.in +918 -0
  46. data/ext/libmemcached-0.32/docs/libmemcached.pod +123 -0
  47. data/ext/libmemcached-0.32/docs/libmemcached_examples.pod +115 -0
  48. data/ext/libmemcached-0.32/docs/libmemcachedutil.pod +40 -0
  49. data/ext/libmemcached-0.32/docs/memcached_analyze.pod +52 -0
  50. data/ext/libmemcached-0.32/docs/memcached_auto.pod +97 -0
  51. data/ext/libmemcached-0.32/docs/memcached_behavior.pod +224 -0
  52. data/ext/libmemcached-0.32/docs/memcached_callback.pod +123 -0
  53. data/ext/libmemcached-0.32/docs/memcached_create.pod +61 -0
  54. data/ext/libmemcached-0.32/docs/memcached_delete.pod +54 -0
  55. data/ext/libmemcached-0.32/docs/memcached_dump.pod +53 -0
  56. data/ext/libmemcached-0.32/docs/memcached_flush.pod +46 -0
  57. data/ext/libmemcached-0.32/docs/memcached_flush_buffers.pod +42 -0
  58. data/ext/libmemcached-0.32/docs/memcached_generate_hash_value.pod +57 -0
  59. data/ext/libmemcached-0.32/docs/memcached_get.pod +161 -0
  60. data/ext/libmemcached-0.32/docs/memcached_memory_allocators.pod +73 -0
  61. data/ext/libmemcached-0.32/docs/memcached_pool.pod +77 -0
  62. data/ext/libmemcached-0.32/docs/memcached_quit.pod +47 -0
  63. data/ext/libmemcached-0.32/docs/memcached_sasl.pod +63 -0
  64. data/ext/libmemcached-0.32/docs/memcached_server_st.pod +75 -0
  65. data/ext/libmemcached-0.32/docs/memcached_servers.pod +102 -0
  66. data/ext/libmemcached-0.32/docs/memcached_set.pod +187 -0
  67. data/ext/libmemcached-0.32/docs/memcached_stats.pod +82 -0
  68. data/ext/libmemcached-0.32/docs/memcached_strerror.pod +46 -0
  69. data/ext/libmemcached-0.32/docs/memcached_user_data.pod +49 -0
  70. data/ext/libmemcached-0.32/docs/memcached_verbosity.pod +41 -0
  71. data/ext/libmemcached-0.32/docs/memcached_version.pod +56 -0
  72. data/ext/libmemcached-0.32/docs/memcat.pod +37 -0
  73. data/ext/libmemcached-0.32/docs/memcp.pod +40 -0
  74. data/ext/libmemcached-0.32/docs/memdump.pod +31 -0
  75. data/ext/libmemcached-0.32/docs/memerror.pod +30 -0
  76. data/ext/libmemcached-0.32/docs/memflush.pod +35 -0
  77. data/ext/libmemcached-0.32/docs/memrm.pod +34 -0
  78. data/ext/libmemcached-0.32/docs/memslap.pod +33 -0
  79. data/ext/libmemcached-0.32/docs/memstat.pod +35 -0
  80. data/ext/libmemcached-0.32/libmemcached/Makefile.am +107 -0
  81. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1050 -0
  82. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  83. data/ext/libmemcached-0.32/libmemcached/common.h +183 -0
  84. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  85. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  86. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  87. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  88. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +28 -0
  89. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +78 -0
  90. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached.c +152 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached.h +302 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +366 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +285 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +361 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +145 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +34 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +22 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +495 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +547 -0
  116. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +59 -0
  117. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  118. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  119. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  120. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  121. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  122. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +528 -0
  123. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  124. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  125. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  126. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  127. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  128. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  129. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +454 -0
  130. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  131. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  132. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  133. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  134. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  135. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  136. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  137. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  138. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  139. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  140. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  141. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  142. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  143. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +602 -0
  144. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  145. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  146. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  147. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  148. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  149. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  150. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  151. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  152. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  153. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  154. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  155. data/ext/libmemcached-0.32/m4/libtool.m4 +7360 -0
  156. data/ext/libmemcached-0.32/m4/ltoptions.m4 +368 -0
  157. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  158. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  159. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +92 -0
  160. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  161. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  162. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  163. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  164. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  165. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  166. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  167. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  168. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  169. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  170. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  171. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  172. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  173. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  174. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  175. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  176. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  177. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  178. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  179. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  180. data/ext/libmemcached-0.32/support/Makefile.in +485 -0
  181. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  182. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  183. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  184. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  185. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  186. data/ext/libmemcached-0.32/tests/Makefile.am +105 -0
  187. data/ext/libmemcached-0.32/tests/Makefile.in +748 -0
  188. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  189. data/ext/libmemcached-0.32/tests/function.c +4781 -0
  190. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  191. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  192. data/ext/libmemcached-0.32/tests/output.res +7 -0
  193. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  194. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  195. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  196. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  197. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  198. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  199. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  200. data/ext/libmemcached-0.32/tests/server.c +118 -0
  201. data/ext/libmemcached-0.32/tests/server.h +25 -0
  202. data/ext/libmemcached-0.32/tests/start.c +16 -0
  203. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  204. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  205. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  206. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  207. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  208. data/ext/libmemcached-0.32/tests/test.c +137 -0
  209. data/ext/libmemcached-0.32/tests/test.h +46 -0
  210. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  211. data/memcached.gemspec +4 -4
  212. data/test/unit/memcached_test.rb +30 -0
  213. metadata +213 -16
  214. data/ext/libmemcached-0.32.tar.gz +0 -0
  215. data/ext/libmemcached-1.patch +0 -270
  216. data/ext/libmemcached-10.patch +0 -12
  217. data/ext/libmemcached-2.patch +0 -116
  218. data/ext/libmemcached-3.patch +0 -8
  219. data/ext/libmemcached-4.patch +0 -40
  220. data/ext/libmemcached-5.patch +0 -832
  221. data/ext/libmemcached-6.patch +0 -20
  222. data/ext/libmemcached-7.patch +0 -2989
  223. data/ext/libmemcached-8.patch +0 -137
  224. data/ext/libmemcached-9.patch +0 -13
  225. data/ext/sasl.patch +0 -29283
@@ -0,0 +1 @@
1
+ See Changelog
@@ -0,0 +1,33 @@
1
+ Hi!
2
+
3
+ So what is this? It is a library in C for connecting to memcached servers
4
+ (http://danga.com/memcached/). It is also a collection of utilities designed
5
+ to work with memcached.
6
+
7
+ memcat - Copy the value of a key to standard output
8
+ memflush - Flush the contents of your servers.
9
+ memrm - Remove a key(s) from the server.
10
+ memstat - Dump the stats of your servers to standard output
11
+ memslap - Load generation utility (benchmark!)
12
+
13
+ The utilities are beta quality at this point. The library is in production
14
+ in many locations (upwards to 1000+ nodes).
15
+
16
+ Want to contribute? If you write more then three good patches, then I will
17
+ just ask you to commit directly to the tree. I am happy to have additional
18
+ people work on this project. Please checkout README.FIRST.
19
+
20
+ You will need a C99 compiler in order to compile this library. Currently we
21
+ actively support Linux, MacOSX, FreeBSD, and Solaris. A Windows port is
22
+ currently not supported, but one is listed on the homepage that is supported
23
+ by someone in the community.
24
+
25
+ If you are looking for answers to your questions please check out the
26
+ mailing list at:
27
+ http://lists.tangent.org/
28
+
29
+ Subscription information for the libmemcached mailing list can be found there.
30
+
31
+ Cheers,
32
+ -Brian Aker
33
+ Seattle, WA.
@@ -0,0 +1,14 @@
1
+ (This is not complete, please send email if I have missed someone.)
2
+ Eirik A. Nygaard - IO Patch
3
+ Cal Heldenbrand - Awesome feedback on performance
4
+ Dustin Sallings - Insight into protocol
5
+ Tobias Luetke - Performance Feedback
6
+ Andre Cruz - Help with getting the CRC Hash function to match other connectors
7
+ Brian Pontz - Hsieh hash
8
+ Tim Bunce - Perl Driver work and feedback on API
9
+ Kevin Dalley - Bug Fixes
10
+ Patrick Galbraith - work on C++ interface
11
+ Ross McFarland - Idea for sorting servers.
12
+ Marcelo Fernandez - TCP/IP timeout pieces
13
+ Yin Chen - Ketama support/weighted support
14
+ Monty Taylor - Debian Packages, Cleanup work for configure
@@ -0,0 +1,11 @@
1
+ - Write a shell application (?)
2
+ - Fix version in command line tools
3
+ - Write (more) test cases for all command line tools (!!!)
4
+ - Write some sort of "default" options bit for tools
5
+ - More examples using libraries
6
+ - Doxygen?
7
+ - implement more connection/hash algo
8
+ - implement compression
9
+ - Revisit get() code (look for performance enhancements)
10
+ - Add support for managing servers for clusters.
11
+ - Build embedded version
@@ -0,0 +1,1852 @@
1
+ # generated automatically by aclocal 1.11 -*- Autoconf -*-
2
+
3
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
+ # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
+ # This file is free software; the Free Software Foundation
6
+ # gives unlimited permission to copy and/or distribute it,
7
+ # with or without modifications, as long as this notice is preserved.
8
+
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
+ # PARTICULAR PURPOSE.
13
+
14
+ m4_ifndef([AC_AUTOCONF_VERSION],
15
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
+ m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
+ [m4_warning([this file was generated for autoconf 2.64.
18
+ You have another version of autoconf. It may work, but is not guaranteed to.
19
+ If you have problems, you may need to regenerate the build system entirely.
20
+ To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
+
22
+ # lib-ld.m4 serial 3 (gettext-0.13)
23
+ dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
24
+ dnl This file is free software; the Free Software Foundation
25
+ dnl gives unlimited permission to copy and/or distribute it,
26
+ dnl with or without modifications, as long as this notice is preserved.
27
+
28
+ dnl Subroutines of libtool.m4,
29
+ dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
30
+ dnl with libtool.m4.
31
+
32
+ dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
33
+ AC_DEFUN([AC_LIB_PROG_LD_GNU],
34
+ [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
35
+ [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
36
+ case `$LD -v 2>&1 </dev/null` in
37
+ *GNU* | *'with BFD'*)
38
+ acl_cv_prog_gnu_ld=yes ;;
39
+ *)
40
+ acl_cv_prog_gnu_ld=no ;;
41
+ esac])
42
+ with_gnu_ld=$acl_cv_prog_gnu_ld
43
+ ])
44
+
45
+ dnl From libtool-1.4. Sets the variable LD.
46
+ AC_DEFUN([AC_LIB_PROG_LD],
47
+ [AC_ARG_WITH(gnu-ld,
48
+ [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
49
+ test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
50
+ AC_REQUIRE([AC_PROG_CC])dnl
51
+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
52
+ # Prepare PATH_SEPARATOR.
53
+ # The user is always right.
54
+ if test "${PATH_SEPARATOR+set}" != set; then
55
+ echo "#! /bin/sh" >conf$$.sh
56
+ echo "exit 0" >>conf$$.sh
57
+ chmod +x conf$$.sh
58
+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59
+ PATH_SEPARATOR=';'
60
+ else
61
+ PATH_SEPARATOR=:
62
+ fi
63
+ rm -f conf$$.sh
64
+ fi
65
+ ac_prog=ld
66
+ if test "$GCC" = yes; then
67
+ # Check if gcc -print-prog-name=ld gives a path.
68
+ AC_MSG_CHECKING([for ld used by GCC])
69
+ case $host in
70
+ *-*-mingw*)
71
+ # gcc leaves a trailing carriage return which upsets mingw
72
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
73
+ *)
74
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
75
+ esac
76
+ case $ac_prog in
77
+ # Accept absolute paths.
78
+ [[\\/]* | [A-Za-z]:[\\/]*)]
79
+ [re_direlt='/[^/][^/]*/\.\./']
80
+ # Canonicalize the path of ld
81
+ ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
82
+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
83
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
84
+ done
85
+ test -z "$LD" && LD="$ac_prog"
86
+ ;;
87
+ "")
88
+ # If it fails, then pretend we aren't using GCC.
89
+ ac_prog=ld
90
+ ;;
91
+ *)
92
+ # If it is relative, then search for the first ld in PATH.
93
+ with_gnu_ld=unknown
94
+ ;;
95
+ esac
96
+ elif test "$with_gnu_ld" = yes; then
97
+ AC_MSG_CHECKING([for GNU ld])
98
+ else
99
+ AC_MSG_CHECKING([for non-GNU ld])
100
+ fi
101
+ AC_CACHE_VAL(acl_cv_path_LD,
102
+ [if test -z "$LD"; then
103
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
104
+ for ac_dir in $PATH; do
105
+ test -z "$ac_dir" && ac_dir=.
106
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
107
+ acl_cv_path_LD="$ac_dir/$ac_prog"
108
+ # Check to see if the program is GNU ld. I'd rather use --version,
109
+ # but apparently some GNU ld's only accept -v.
110
+ # Break only if it was the GNU/non-GNU ld that we prefer.
111
+ case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
112
+ *GNU* | *'with BFD'*)
113
+ test "$with_gnu_ld" != no && break ;;
114
+ *)
115
+ test "$with_gnu_ld" != yes && break ;;
116
+ esac
117
+ fi
118
+ done
119
+ IFS="$ac_save_ifs"
120
+ else
121
+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
122
+ fi])
123
+ LD="$acl_cv_path_LD"
124
+ if test -n "$LD"; then
125
+ AC_MSG_RESULT($LD)
126
+ else
127
+ AC_MSG_RESULT(no)
128
+ fi
129
+ test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
130
+ AC_LIB_PROG_LD_GNU
131
+ ])
132
+
133
+ # lib-link.m4 serial 13 (gettext-0.17)
134
+ dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
135
+ dnl This file is free software; the Free Software Foundation
136
+ dnl gives unlimited permission to copy and/or distribute it,
137
+ dnl with or without modifications, as long as this notice is preserved.
138
+
139
+ dnl From Bruno Haible.
140
+
141
+ AC_PREREQ(2.54)
142
+
143
+ dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
144
+ dnl the libraries corresponding to explicit and implicit dependencies.
145
+ dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
146
+ dnl augments the CPPFLAGS variable.
147
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
148
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
149
+ AC_DEFUN([AC_LIB_LINKFLAGS],
150
+ [
151
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
152
+ AC_REQUIRE([AC_LIB_RPATH])
153
+ define([Name],[translit([$1],[./-], [___])])
154
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
155
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
156
+ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
157
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
158
+ ac_cv_lib[]Name[]_libs="$LIB[]NAME"
159
+ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
160
+ ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
161
+ ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
162
+ ])
163
+ LIB[]NAME="$ac_cv_lib[]Name[]_libs"
164
+ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
165
+ INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
166
+ LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
167
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
168
+ AC_SUBST([LIB]NAME)
169
+ AC_SUBST([LTLIB]NAME)
170
+ AC_SUBST([LIB]NAME[_PREFIX])
171
+ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
172
+ dnl results of this search when this library appears as a dependency.
173
+ HAVE_LIB[]NAME=yes
174
+ undefine([Name])
175
+ undefine([NAME])
176
+ ])
177
+
178
+ dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
179
+ dnl searches for libname and the libraries corresponding to explicit and
180
+ dnl implicit dependencies, together with the specified include files and
181
+ dnl the ability to compile and link the specified testcode. If found, it
182
+ dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
183
+ dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
184
+ dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
185
+ dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
186
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
187
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
188
+ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
189
+ [
190
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
191
+ AC_REQUIRE([AC_LIB_RPATH])
192
+ define([Name],[translit([$1],[./-], [___])])
193
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
194
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
195
+
196
+ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
197
+ dnl accordingly.
198
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
199
+
200
+ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
201
+ dnl because if the user has installed lib[]Name and not disabled its use
202
+ dnl via --without-lib[]Name-prefix, he wants to use it.
203
+ ac_save_CPPFLAGS="$CPPFLAGS"
204
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
205
+
206
+ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
207
+ ac_save_LIBS="$LIBS"
208
+ LIBS="$LIBS $LIB[]NAME"
209
+ AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
210
+ LIBS="$ac_save_LIBS"
211
+ ])
212
+ if test "$ac_cv_lib[]Name" = yes; then
213
+ HAVE_LIB[]NAME=yes
214
+ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
215
+ AC_MSG_CHECKING([how to link with lib[]$1])
216
+ AC_MSG_RESULT([$LIB[]NAME])
217
+ else
218
+ HAVE_LIB[]NAME=no
219
+ dnl If $LIB[]NAME didn't lead to a usable library, we don't need
220
+ dnl $INC[]NAME either.
221
+ CPPFLAGS="$ac_save_CPPFLAGS"
222
+ LIB[]NAME=
223
+ LTLIB[]NAME=
224
+ LIB[]NAME[]_PREFIX=
225
+ fi
226
+ AC_SUBST([HAVE_LIB]NAME)
227
+ AC_SUBST([LIB]NAME)
228
+ AC_SUBST([LTLIB]NAME)
229
+ AC_SUBST([LIB]NAME[_PREFIX])
230
+ undefine([Name])
231
+ undefine([NAME])
232
+ ])
233
+
234
+ dnl Determine the platform dependent parameters needed to use rpath:
235
+ dnl acl_libext,
236
+ dnl acl_shlibext,
237
+ dnl acl_hardcode_libdir_flag_spec,
238
+ dnl acl_hardcode_libdir_separator,
239
+ dnl acl_hardcode_direct,
240
+ dnl acl_hardcode_minus_L.
241
+ AC_DEFUN([AC_LIB_RPATH],
242
+ [
243
+ dnl Tell automake >= 1.10 to complain if config.rpath is missing.
244
+ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
245
+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
246
+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
247
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
248
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
249
+ AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
250
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
251
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
252
+ . ./conftest.sh
253
+ rm -f ./conftest.sh
254
+ acl_cv_rpath=done
255
+ ])
256
+ wl="$acl_cv_wl"
257
+ acl_libext="$acl_cv_libext"
258
+ acl_shlibext="$acl_cv_shlibext"
259
+ acl_libname_spec="$acl_cv_libname_spec"
260
+ acl_library_names_spec="$acl_cv_library_names_spec"
261
+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
262
+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
263
+ acl_hardcode_direct="$acl_cv_hardcode_direct"
264
+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
265
+ dnl Determine whether the user wants rpath handling at all.
266
+ AC_ARG_ENABLE(rpath,
267
+ [ --disable-rpath do not hardcode runtime library paths],
268
+ :, enable_rpath=yes)
269
+ ])
270
+
271
+ dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
272
+ dnl the libraries corresponding to explicit and implicit dependencies.
273
+ dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
274
+ dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
275
+ dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
276
+ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
277
+ [
278
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
279
+ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
280
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
281
+ dnl Autoconf >= 2.61 supports dots in --with options.
282
+ define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
283
+ dnl By default, look in $includedir and $libdir.
284
+ use_additional=yes
285
+ AC_LIB_WITH_FINAL_PREFIX([
286
+ eval additional_includedir=\"$includedir\"
287
+ eval additional_libdir=\"$libdir\"
288
+ ])
289
+ AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
290
+ [ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
291
+ --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
292
+ [
293
+ if test "X$withval" = "Xno"; then
294
+ use_additional=no
295
+ else
296
+ if test "X$withval" = "X"; then
297
+ AC_LIB_WITH_FINAL_PREFIX([
298
+ eval additional_includedir=\"$includedir\"
299
+ eval additional_libdir=\"$libdir\"
300
+ ])
301
+ else
302
+ additional_includedir="$withval/include"
303
+ additional_libdir="$withval/$acl_libdirstem"
304
+ fi
305
+ fi
306
+ ])
307
+ dnl Search the library and its dependencies in $additional_libdir and
308
+ dnl $LDFLAGS. Using breadth-first-seach.
309
+ LIB[]NAME=
310
+ LTLIB[]NAME=
311
+ INC[]NAME=
312
+ LIB[]NAME[]_PREFIX=
313
+ rpathdirs=
314
+ ltrpathdirs=
315
+ names_already_handled=
316
+ names_next_round='$1 $2'
317
+ while test -n "$names_next_round"; do
318
+ names_this_round="$names_next_round"
319
+ names_next_round=
320
+ for name in $names_this_round; do
321
+ already_handled=
322
+ for n in $names_already_handled; do
323
+ if test "$n" = "$name"; then
324
+ already_handled=yes
325
+ break
326
+ fi
327
+ done
328
+ if test -z "$already_handled"; then
329
+ names_already_handled="$names_already_handled $name"
330
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
331
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
332
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
333
+ eval value=\"\$HAVE_LIB$uppername\"
334
+ if test -n "$value"; then
335
+ if test "$value" = yes; then
336
+ eval value=\"\$LIB$uppername\"
337
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
338
+ eval value=\"\$LTLIB$uppername\"
339
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
340
+ else
341
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
342
+ dnl that this library doesn't exist. So just drop it.
343
+ :
344
+ fi
345
+ else
346
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
347
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
348
+ found_dir=
349
+ found_la=
350
+ found_so=
351
+ found_a=
352
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
353
+ if test -n "$acl_shlibext"; then
354
+ shrext=".$acl_shlibext" # typically: shrext=.so
355
+ else
356
+ shrext=
357
+ fi
358
+ if test $use_additional = yes; then
359
+ dir="$additional_libdir"
360
+ dnl The same code as in the loop below:
361
+ dnl First look for a shared library.
362
+ if test -n "$acl_shlibext"; then
363
+ if test -f "$dir/$libname$shrext"; then
364
+ found_dir="$dir"
365
+ found_so="$dir/$libname$shrext"
366
+ else
367
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
368
+ ver=`(cd "$dir" && \
369
+ for f in "$libname$shrext".*; do echo "$f"; done \
370
+ | sed -e "s,^$libname$shrext\\\\.,," \
371
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
372
+ | sed 1q ) 2>/dev/null`
373
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
374
+ found_dir="$dir"
375
+ found_so="$dir/$libname$shrext.$ver"
376
+ fi
377
+ else
378
+ eval library_names=\"$acl_library_names_spec\"
379
+ for f in $library_names; do
380
+ if test -f "$dir/$f"; then
381
+ found_dir="$dir"
382
+ found_so="$dir/$f"
383
+ break
384
+ fi
385
+ done
386
+ fi
387
+ fi
388
+ fi
389
+ dnl Then look for a static library.
390
+ if test "X$found_dir" = "X"; then
391
+ if test -f "$dir/$libname.$acl_libext"; then
392
+ found_dir="$dir"
393
+ found_a="$dir/$libname.$acl_libext"
394
+ fi
395
+ fi
396
+ if test "X$found_dir" != "X"; then
397
+ if test -f "$dir/$libname.la"; then
398
+ found_la="$dir/$libname.la"
399
+ fi
400
+ fi
401
+ fi
402
+ if test "X$found_dir" = "X"; then
403
+ for x in $LDFLAGS $LTLIB[]NAME; do
404
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
405
+ case "$x" in
406
+ -L*)
407
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
408
+ dnl First look for a shared library.
409
+ if test -n "$acl_shlibext"; then
410
+ if test -f "$dir/$libname$shrext"; then
411
+ found_dir="$dir"
412
+ found_so="$dir/$libname$shrext"
413
+ else
414
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
415
+ ver=`(cd "$dir" && \
416
+ for f in "$libname$shrext".*; do echo "$f"; done \
417
+ | sed -e "s,^$libname$shrext\\\\.,," \
418
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
419
+ | sed 1q ) 2>/dev/null`
420
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
421
+ found_dir="$dir"
422
+ found_so="$dir/$libname$shrext.$ver"
423
+ fi
424
+ else
425
+ eval library_names=\"$acl_library_names_spec\"
426
+ for f in $library_names; do
427
+ if test -f "$dir/$f"; then
428
+ found_dir="$dir"
429
+ found_so="$dir/$f"
430
+ break
431
+ fi
432
+ done
433
+ fi
434
+ fi
435
+ fi
436
+ dnl Then look for a static library.
437
+ if test "X$found_dir" = "X"; then
438
+ if test -f "$dir/$libname.$acl_libext"; then
439
+ found_dir="$dir"
440
+ found_a="$dir/$libname.$acl_libext"
441
+ fi
442
+ fi
443
+ if test "X$found_dir" != "X"; then
444
+ if test -f "$dir/$libname.la"; then
445
+ found_la="$dir/$libname.la"
446
+ fi
447
+ fi
448
+ ;;
449
+ esac
450
+ if test "X$found_dir" != "X"; then
451
+ break
452
+ fi
453
+ done
454
+ fi
455
+ if test "X$found_dir" != "X"; then
456
+ dnl Found the library.
457
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
458
+ if test "X$found_so" != "X"; then
459
+ dnl Linking with a shared library. We attempt to hardcode its
460
+ dnl directory into the executable's runpath, unless it's the
461
+ dnl standard /usr/lib.
462
+ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
463
+ dnl No hardcoding is needed.
464
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
465
+ else
466
+ dnl Use an explicit option to hardcode DIR into the resulting
467
+ dnl binary.
468
+ dnl Potentially add DIR to ltrpathdirs.
469
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
470
+ haveit=
471
+ for x in $ltrpathdirs; do
472
+ if test "X$x" = "X$found_dir"; then
473
+ haveit=yes
474
+ break
475
+ fi
476
+ done
477
+ if test -z "$haveit"; then
478
+ ltrpathdirs="$ltrpathdirs $found_dir"
479
+ fi
480
+ dnl The hardcoding into $LIBNAME is system dependent.
481
+ if test "$acl_hardcode_direct" = yes; then
482
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
483
+ dnl resulting binary.
484
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
485
+ else
486
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
487
+ dnl Use an explicit option to hardcode DIR into the resulting
488
+ dnl binary.
489
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
490
+ dnl Potentially add DIR to rpathdirs.
491
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
492
+ haveit=
493
+ for x in $rpathdirs; do
494
+ if test "X$x" = "X$found_dir"; then
495
+ haveit=yes
496
+ break
497
+ fi
498
+ done
499
+ if test -z "$haveit"; then
500
+ rpathdirs="$rpathdirs $found_dir"
501
+ fi
502
+ else
503
+ dnl Rely on "-L$found_dir".
504
+ dnl But don't add it if it's already contained in the LDFLAGS
505
+ dnl or the already constructed $LIBNAME
506
+ haveit=
507
+ for x in $LDFLAGS $LIB[]NAME; do
508
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
509
+ if test "X$x" = "X-L$found_dir"; then
510
+ haveit=yes
511
+ break
512
+ fi
513
+ done
514
+ if test -z "$haveit"; then
515
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
516
+ fi
517
+ if test "$acl_hardcode_minus_L" != no; then
518
+ dnl FIXME: Not sure whether we should use
519
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
520
+ dnl here.
521
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
522
+ else
523
+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
524
+ dnl here, because this doesn't fit in flags passed to the
525
+ dnl compiler. So give up. No hardcoding. This affects only
526
+ dnl very old systems.
527
+ dnl FIXME: Not sure whether we should use
528
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
529
+ dnl here.
530
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
531
+ fi
532
+ fi
533
+ fi
534
+ fi
535
+ else
536
+ if test "X$found_a" != "X"; then
537
+ dnl Linking with a static library.
538
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
539
+ else
540
+ dnl We shouldn't come here, but anyway it's good to have a
541
+ dnl fallback.
542
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
543
+ fi
544
+ fi
545
+ dnl Assume the include files are nearby.
546
+ additional_includedir=
547
+ case "$found_dir" in
548
+ */$acl_libdirstem | */$acl_libdirstem/)
549
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
550
+ LIB[]NAME[]_PREFIX="$basedir"
551
+ additional_includedir="$basedir/include"
552
+ ;;
553
+ esac
554
+ if test "X$additional_includedir" != "X"; then
555
+ dnl Potentially add $additional_includedir to $INCNAME.
556
+ dnl But don't add it
557
+ dnl 1. if it's the standard /usr/include,
558
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
559
+ dnl 3. if it's already present in $CPPFLAGS or the already
560
+ dnl constructed $INCNAME,
561
+ dnl 4. if it doesn't exist as a directory.
562
+ if test "X$additional_includedir" != "X/usr/include"; then
563
+ haveit=
564
+ if test "X$additional_includedir" = "X/usr/local/include"; then
565
+ if test -n "$GCC"; then
566
+ case $host_os in
567
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
568
+ esac
569
+ fi
570
+ fi
571
+ if test -z "$haveit"; then
572
+ for x in $CPPFLAGS $INC[]NAME; do
573
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
574
+ if test "X$x" = "X-I$additional_includedir"; then
575
+ haveit=yes
576
+ break
577
+ fi
578
+ done
579
+ if test -z "$haveit"; then
580
+ if test -d "$additional_includedir"; then
581
+ dnl Really add $additional_includedir to $INCNAME.
582
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
583
+ fi
584
+ fi
585
+ fi
586
+ fi
587
+ fi
588
+ dnl Look for dependencies.
589
+ if test -n "$found_la"; then
590
+ dnl Read the .la file. It defines the variables
591
+ dnl dlname, library_names, old_library, dependency_libs, current,
592
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
593
+ save_libdir="$libdir"
594
+ case "$found_la" in
595
+ */* | *\\*) . "$found_la" ;;
596
+ *) . "./$found_la" ;;
597
+ esac
598
+ libdir="$save_libdir"
599
+ dnl We use only dependency_libs.
600
+ for dep in $dependency_libs; do
601
+ case "$dep" in
602
+ -L*)
603
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
604
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
605
+ dnl But don't add it
606
+ dnl 1. if it's the standard /usr/lib,
607
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
608
+ dnl 3. if it's already present in $LDFLAGS or the already
609
+ dnl constructed $LIBNAME,
610
+ dnl 4. if it doesn't exist as a directory.
611
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
612
+ haveit=
613
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
614
+ if test -n "$GCC"; then
615
+ case $host_os in
616
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
617
+ esac
618
+ fi
619
+ fi
620
+ if test -z "$haveit"; then
621
+ haveit=
622
+ for x in $LDFLAGS $LIB[]NAME; do
623
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
624
+ if test "X$x" = "X-L$additional_libdir"; then
625
+ haveit=yes
626
+ break
627
+ fi
628
+ done
629
+ if test -z "$haveit"; then
630
+ if test -d "$additional_libdir"; then
631
+ dnl Really add $additional_libdir to $LIBNAME.
632
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
633
+ fi
634
+ fi
635
+ haveit=
636
+ for x in $LDFLAGS $LTLIB[]NAME; do
637
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
638
+ if test "X$x" = "X-L$additional_libdir"; then
639
+ haveit=yes
640
+ break
641
+ fi
642
+ done
643
+ if test -z "$haveit"; then
644
+ if test -d "$additional_libdir"; then
645
+ dnl Really add $additional_libdir to $LTLIBNAME.
646
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
647
+ fi
648
+ fi
649
+ fi
650
+ fi
651
+ ;;
652
+ -R*)
653
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
654
+ if test "$enable_rpath" != no; then
655
+ dnl Potentially add DIR to rpathdirs.
656
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
657
+ haveit=
658
+ for x in $rpathdirs; do
659
+ if test "X$x" = "X$dir"; then
660
+ haveit=yes
661
+ break
662
+ fi
663
+ done
664
+ if test -z "$haveit"; then
665
+ rpathdirs="$rpathdirs $dir"
666
+ fi
667
+ dnl Potentially add DIR to ltrpathdirs.
668
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
669
+ haveit=
670
+ for x in $ltrpathdirs; do
671
+ if test "X$x" = "X$dir"; then
672
+ haveit=yes
673
+ break
674
+ fi
675
+ done
676
+ if test -z "$haveit"; then
677
+ ltrpathdirs="$ltrpathdirs $dir"
678
+ fi
679
+ fi
680
+ ;;
681
+ -l*)
682
+ dnl Handle this in the next round.
683
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
684
+ ;;
685
+ *.la)
686
+ dnl Handle this in the next round. Throw away the .la's
687
+ dnl directory; it is already contained in a preceding -L
688
+ dnl option.
689
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
690
+ ;;
691
+ *)
692
+ dnl Most likely an immediate library name.
693
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
694
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
695
+ ;;
696
+ esac
697
+ done
698
+ fi
699
+ else
700
+ dnl Didn't find the library; assume it is in the system directories
701
+ dnl known to the linker and runtime loader. (All the system
702
+ dnl directories known to the linker should also be known to the
703
+ dnl runtime loader, otherwise the system is severely misconfigured.)
704
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
705
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
706
+ fi
707
+ fi
708
+ fi
709
+ done
710
+ done
711
+ if test "X$rpathdirs" != "X"; then
712
+ if test -n "$acl_hardcode_libdir_separator"; then
713
+ dnl Weird platform: only the last -rpath option counts, the user must
714
+ dnl pass all path elements in one option. We can arrange that for a
715
+ dnl single library, but not when more than one $LIBNAMEs are used.
716
+ alldirs=
717
+ for found_dir in $rpathdirs; do
718
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
719
+ done
720
+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
721
+ acl_save_libdir="$libdir"
722
+ libdir="$alldirs"
723
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
724
+ libdir="$acl_save_libdir"
725
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
726
+ else
727
+ dnl The -rpath options are cumulative.
728
+ for found_dir in $rpathdirs; do
729
+ acl_save_libdir="$libdir"
730
+ libdir="$found_dir"
731
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
732
+ libdir="$acl_save_libdir"
733
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
734
+ done
735
+ fi
736
+ fi
737
+ if test "X$ltrpathdirs" != "X"; then
738
+ dnl When using libtool, the option that works for both libraries and
739
+ dnl executables is -R. The -R options are cumulative.
740
+ for found_dir in $ltrpathdirs; do
741
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
742
+ done
743
+ fi
744
+ ])
745
+
746
+ dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
747
+ dnl unless already present in VAR.
748
+ dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
749
+ dnl contains two or three consecutive elements that belong together.
750
+ AC_DEFUN([AC_LIB_APPENDTOVAR],
751
+ [
752
+ for element in [$2]; do
753
+ haveit=
754
+ for x in $[$1]; do
755
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
756
+ if test "X$x" = "X$element"; then
757
+ haveit=yes
758
+ break
759
+ fi
760
+ done
761
+ if test -z "$haveit"; then
762
+ [$1]="${[$1]}${[$1]:+ }$element"
763
+ fi
764
+ done
765
+ ])
766
+
767
+ dnl For those cases where a variable contains several -L and -l options
768
+ dnl referring to unknown libraries and directories, this macro determines the
769
+ dnl necessary additional linker options for the runtime path.
770
+ dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
771
+ dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
772
+ dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
773
+ dnl otherwise linking without libtool is assumed.
774
+ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
775
+ [
776
+ AC_REQUIRE([AC_LIB_RPATH])
777
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
778
+ $1=
779
+ if test "$enable_rpath" != no; then
780
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
781
+ dnl Use an explicit option to hardcode directories into the resulting
782
+ dnl binary.
783
+ rpathdirs=
784
+ next=
785
+ for opt in $2; do
786
+ if test -n "$next"; then
787
+ dir="$next"
788
+ dnl No need to hardcode the standard /usr/lib.
789
+ if test "X$dir" != "X/usr/$acl_libdirstem"; then
790
+ rpathdirs="$rpathdirs $dir"
791
+ fi
792
+ next=
793
+ else
794
+ case $opt in
795
+ -L) next=yes ;;
796
+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
797
+ dnl No need to hardcode the standard /usr/lib.
798
+ if test "X$dir" != "X/usr/$acl_libdirstem"; then
799
+ rpathdirs="$rpathdirs $dir"
800
+ fi
801
+ next= ;;
802
+ *) next= ;;
803
+ esac
804
+ fi
805
+ done
806
+ if test "X$rpathdirs" != "X"; then
807
+ if test -n ""$3""; then
808
+ dnl libtool is used for linking. Use -R options.
809
+ for dir in $rpathdirs; do
810
+ $1="${$1}${$1:+ }-R$dir"
811
+ done
812
+ else
813
+ dnl The linker is used for linking directly.
814
+ if test -n "$acl_hardcode_libdir_separator"; then
815
+ dnl Weird platform: only the last -rpath option counts, the user
816
+ dnl must pass all path elements in one option.
817
+ alldirs=
818
+ for dir in $rpathdirs; do
819
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
820
+ done
821
+ acl_save_libdir="$libdir"
822
+ libdir="$alldirs"
823
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
824
+ libdir="$acl_save_libdir"
825
+ $1="$flag"
826
+ else
827
+ dnl The -rpath options are cumulative.
828
+ for dir in $rpathdirs; do
829
+ acl_save_libdir="$libdir"
830
+ libdir="$dir"
831
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
832
+ libdir="$acl_save_libdir"
833
+ $1="${$1}${$1:+ }$flag"
834
+ done
835
+ fi
836
+ fi
837
+ fi
838
+ fi
839
+ fi
840
+ AC_SUBST([$1])
841
+ ])
842
+
843
+ # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
844
+ #
845
+ # This file is free software; the Free Software Foundation
846
+ # gives unlimited permission to copy and/or distribute it,
847
+ # with or without modifications, as long as this notice is preserved.
848
+
849
+ # AM_AUTOMAKE_VERSION(VERSION)
850
+ # ----------------------------
851
+ # Automake X.Y traces this macro to ensure aclocal.m4 has been
852
+ # generated from the m4 files accompanying Automake X.Y.
853
+ # (This private macro should not be called outside this file.)
854
+ AC_DEFUN([AM_AUTOMAKE_VERSION],
855
+ [am__api_version='1.11'
856
+ dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
857
+ dnl require some minimum version. Point them to the right macro.
858
+ m4_if([$1], [1.11], [],
859
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
860
+ ])
861
+
862
+ # _AM_AUTOCONF_VERSION(VERSION)
863
+ # -----------------------------
864
+ # aclocal traces this macro to find the Autoconf version.
865
+ # This is a private macro too. Using m4_define simplifies
866
+ # the logic in aclocal, which can simply ignore this definition.
867
+ m4_define([_AM_AUTOCONF_VERSION], [])
868
+
869
+ # AM_SET_CURRENT_AUTOMAKE_VERSION
870
+ # -------------------------------
871
+ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
872
+ # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
873
+ AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
874
+ [AM_AUTOMAKE_VERSION([1.11])dnl
875
+ m4_ifndef([AC_AUTOCONF_VERSION],
876
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
877
+ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
878
+
879
+ # AM_AUX_DIR_EXPAND -*- Autoconf -*-
880
+
881
+ # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
882
+ #
883
+ # This file is free software; the Free Software Foundation
884
+ # gives unlimited permission to copy and/or distribute it,
885
+ # with or without modifications, as long as this notice is preserved.
886
+
887
+ # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
888
+ # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
889
+ # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
890
+ #
891
+ # Of course, Automake must honor this variable whenever it calls a
892
+ # tool from the auxiliary directory. The problem is that $srcdir (and
893
+ # therefore $ac_aux_dir as well) can be either absolute or relative,
894
+ # depending on how configure is run. This is pretty annoying, since
895
+ # it makes $ac_aux_dir quite unusable in subdirectories: in the top
896
+ # source directory, any form will work fine, but in subdirectories a
897
+ # relative path needs to be adjusted first.
898
+ #
899
+ # $ac_aux_dir/missing
900
+ # fails when called from a subdirectory if $ac_aux_dir is relative
901
+ # $top_srcdir/$ac_aux_dir/missing
902
+ # fails if $ac_aux_dir is absolute,
903
+ # fails when called from a subdirectory in a VPATH build with
904
+ # a relative $ac_aux_dir
905
+ #
906
+ # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
907
+ # are both prefixed by $srcdir. In an in-source build this is usually
908
+ # harmless because $srcdir is `.', but things will broke when you
909
+ # start a VPATH build or use an absolute $srcdir.
910
+ #
911
+ # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
912
+ # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
913
+ # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
914
+ # and then we would define $MISSING as
915
+ # MISSING="\${SHELL} $am_aux_dir/missing"
916
+ # This will work as long as MISSING is not called from configure, because
917
+ # unfortunately $(top_srcdir) has no meaning in configure.
918
+ # However there are other variables, like CC, which are often used in
919
+ # configure, and could therefore not use this "fixed" $ac_aux_dir.
920
+ #
921
+ # Another solution, used here, is to always expand $ac_aux_dir to an
922
+ # absolute PATH. The drawback is that using absolute paths prevent a
923
+ # configured tree to be moved without reconfiguration.
924
+
925
+ AC_DEFUN([AM_AUX_DIR_EXPAND],
926
+ [dnl Rely on autoconf to set up CDPATH properly.
927
+ AC_PREREQ([2.50])dnl
928
+ # expand $ac_aux_dir to an absolute path
929
+ am_aux_dir=`cd $ac_aux_dir && pwd`
930
+ ])
931
+
932
+ # AM_CONDITIONAL -*- Autoconf -*-
933
+
934
+ # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
935
+ # Free Software Foundation, Inc.
936
+ #
937
+ # This file is free software; the Free Software Foundation
938
+ # gives unlimited permission to copy and/or distribute it,
939
+ # with or without modifications, as long as this notice is preserved.
940
+
941
+ # serial 9
942
+
943
+ # AM_CONDITIONAL(NAME, SHELL-CONDITION)
944
+ # -------------------------------------
945
+ # Define a conditional.
946
+ AC_DEFUN([AM_CONDITIONAL],
947
+ [AC_PREREQ(2.52)dnl
948
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
949
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
950
+ AC_SUBST([$1_TRUE])dnl
951
+ AC_SUBST([$1_FALSE])dnl
952
+ _AM_SUBST_NOTMAKE([$1_TRUE])dnl
953
+ _AM_SUBST_NOTMAKE([$1_FALSE])dnl
954
+ m4_define([_AM_COND_VALUE_$1], [$2])dnl
955
+ if $2; then
956
+ $1_TRUE=
957
+ $1_FALSE='#'
958
+ else
959
+ $1_TRUE='#'
960
+ $1_FALSE=
961
+ fi
962
+ AC_CONFIG_COMMANDS_PRE(
963
+ [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
964
+ AC_MSG_ERROR([[conditional "$1" was never defined.
965
+ Usually this means the macro was only invoked conditionally.]])
966
+ fi])])
967
+
968
+ # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
969
+ # Free Software Foundation, Inc.
970
+ #
971
+ # This file is free software; the Free Software Foundation
972
+ # gives unlimited permission to copy and/or distribute it,
973
+ # with or without modifications, as long as this notice is preserved.
974
+
975
+ # serial 10
976
+
977
+ # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
978
+ # written in clear, in which case automake, when reading aclocal.m4,
979
+ # will think it sees a *use*, and therefore will trigger all it's
980
+ # C support machinery. Also note that it means that autoscan, seeing
981
+ # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
982
+
983
+
984
+ # _AM_DEPENDENCIES(NAME)
985
+ # ----------------------
986
+ # See how the compiler implements dependency checking.
987
+ # NAME is "CC", "CXX", "GCJ", or "OBJC".
988
+ # We try a few techniques and use that to set a single cache variable.
989
+ #
990
+ # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
991
+ # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
992
+ # dependency, and given that the user is not expected to run this macro,
993
+ # just rely on AC_PROG_CC.
994
+ AC_DEFUN([_AM_DEPENDENCIES],
995
+ [AC_REQUIRE([AM_SET_DEPDIR])dnl
996
+ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
997
+ AC_REQUIRE([AM_MAKE_INCLUDE])dnl
998
+ AC_REQUIRE([AM_DEP_TRACK])dnl
999
+
1000
+ ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1001
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
1002
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1003
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
1004
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1005
+ [depcc="$$1" am_compiler_list=])
1006
+
1007
+ AC_CACHE_CHECK([dependency style of $depcc],
1008
+ [am_cv_$1_dependencies_compiler_type],
1009
+ [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1010
+ # We make a subdir and do the tests there. Otherwise we can end up
1011
+ # making bogus files that we don't know about and never remove. For
1012
+ # instance it was reported that on HP-UX the gcc test will end up
1013
+ # making a dummy file named `D' -- because `-MD' means `put the output
1014
+ # in D'.
1015
+ mkdir conftest.dir
1016
+ # Copy depcomp to subdir because otherwise we won't find it if we're
1017
+ # using a relative directory.
1018
+ cp "$am_depcomp" conftest.dir
1019
+ cd conftest.dir
1020
+ # We will build objects and dependencies in a subdirectory because
1021
+ # it helps to detect inapplicable dependency modes. For instance
1022
+ # both Tru64's cc and ICC support -MD to output dependencies as a
1023
+ # side effect of compilation, but ICC will put the dependencies in
1024
+ # the current directory while Tru64 will put them in the object
1025
+ # directory.
1026
+ mkdir sub
1027
+
1028
+ am_cv_$1_dependencies_compiler_type=none
1029
+ if test "$am_compiler_list" = ""; then
1030
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1031
+ fi
1032
+ am__universal=false
1033
+ m4_case([$1], [CC],
1034
+ [case " $depcc " in #(
1035
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
1036
+ esac],
1037
+ [CXX],
1038
+ [case " $depcc " in #(
1039
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
1040
+ esac])
1041
+
1042
+ for depmode in $am_compiler_list; do
1043
+ # Setup a source with many dependencies, because some compilers
1044
+ # like to wrap large dependency lists on column 80 (with \), and
1045
+ # we should not choose a depcomp mode which is confused by this.
1046
+ #
1047
+ # We need to recreate these files for each test, as the compiler may
1048
+ # overwrite some of them when testing with obscure command lines.
1049
+ # This happens at least with the AIX C compiler.
1050
+ : > sub/conftest.c
1051
+ for i in 1 2 3 4 5 6; do
1052
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
1053
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1054
+ # Solaris 8's {/usr,}/bin/sh.
1055
+ touch sub/conftst$i.h
1056
+ done
1057
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1058
+
1059
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
1060
+ # mode. It turns out that the SunPro C++ compiler does not properly
1061
+ # handle `-M -o', and we need to detect this. Also, some Intel
1062
+ # versions had trouble with output in subdirs
1063
+ am__obj=sub/conftest.${OBJEXT-o}
1064
+ am__minus_obj="-o $am__obj"
1065
+ case $depmode in
1066
+ gcc)
1067
+ # This depmode causes a compiler race in universal mode.
1068
+ test "$am__universal" = false || continue
1069
+ ;;
1070
+ nosideeffect)
1071
+ # after this tag, mechanisms are not by side-effect, so they'll
1072
+ # only be used when explicitly requested
1073
+ if test "x$enable_dependency_tracking" = xyes; then
1074
+ continue
1075
+ else
1076
+ break
1077
+ fi
1078
+ ;;
1079
+ msvisualcpp | msvcmsys)
1080
+ # This compiler won't grok `-c -o', but also, the minuso test has
1081
+ # not run yet. These depmodes are late enough in the game, and
1082
+ # so weak that their functioning should not be impacted.
1083
+ am__obj=conftest.${OBJEXT-o}
1084
+ am__minus_obj=
1085
+ ;;
1086
+ none) break ;;
1087
+ esac
1088
+ if depmode=$depmode \
1089
+ source=sub/conftest.c object=$am__obj \
1090
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1091
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1092
+ >/dev/null 2>conftest.err &&
1093
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1094
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1095
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1096
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1097
+ # icc doesn't choke on unknown options, it will just issue warnings
1098
+ # or remarks (even with -Werror). So we grep stderr for any message
1099
+ # that says an option was ignored or not supported.
1100
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
1101
+ # icc: Command line warning: ignoring option '-M'; no argument required
1102
+ # The diagnosis changed in icc 8.0:
1103
+ # icc: Command line remark: option '-MP' not supported
1104
+ if (grep 'ignoring option' conftest.err ||
1105
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1106
+ am_cv_$1_dependencies_compiler_type=$depmode
1107
+ break
1108
+ fi
1109
+ fi
1110
+ done
1111
+
1112
+ cd ..
1113
+ rm -rf conftest.dir
1114
+ else
1115
+ am_cv_$1_dependencies_compiler_type=none
1116
+ fi
1117
+ ])
1118
+ AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1119
+ AM_CONDITIONAL([am__fastdep$1], [
1120
+ test "x$enable_dependency_tracking" != xno \
1121
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1122
+ ])
1123
+
1124
+
1125
+ # AM_SET_DEPDIR
1126
+ # -------------
1127
+ # Choose a directory name for dependency files.
1128
+ # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1129
+ AC_DEFUN([AM_SET_DEPDIR],
1130
+ [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1131
+ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1132
+ ])
1133
+
1134
+
1135
+ # AM_DEP_TRACK
1136
+ # ------------
1137
+ AC_DEFUN([AM_DEP_TRACK],
1138
+ [AC_ARG_ENABLE(dependency-tracking,
1139
+ [ --disable-dependency-tracking speeds up one-time build
1140
+ --enable-dependency-tracking do not reject slow dependency extractors])
1141
+ if test "x$enable_dependency_tracking" != xno; then
1142
+ am_depcomp="$ac_aux_dir/depcomp"
1143
+ AMDEPBACKSLASH='\'
1144
+ fi
1145
+ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1146
+ AC_SUBST([AMDEPBACKSLASH])dnl
1147
+ _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1148
+ ])
1149
+
1150
+ # Generate code to set up dependency tracking. -*- Autoconf -*-
1151
+
1152
+ # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1153
+ # Free Software Foundation, Inc.
1154
+ #
1155
+ # This file is free software; the Free Software Foundation
1156
+ # gives unlimited permission to copy and/or distribute it,
1157
+ # with or without modifications, as long as this notice is preserved.
1158
+
1159
+ #serial 5
1160
+
1161
+ # _AM_OUTPUT_DEPENDENCY_COMMANDS
1162
+ # ------------------------------
1163
+ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1164
+ [{
1165
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
1166
+ # are listed without --file. Let's play safe and only enable the eval
1167
+ # if we detect the quoting.
1168
+ case $CONFIG_FILES in
1169
+ *\'*) eval set x "$CONFIG_FILES" ;;
1170
+ *) set x $CONFIG_FILES ;;
1171
+ esac
1172
+ shift
1173
+ for mf
1174
+ do
1175
+ # Strip MF so we end up with the name of the file.
1176
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
1177
+ # Check whether this is an Automake generated Makefile or not.
1178
+ # We used to match only the files named `Makefile.in', but
1179
+ # some people rename them; so instead we look at the file content.
1180
+ # Grep'ing the first line is not enough: some people post-process
1181
+ # each Makefile.in and add a new line on top of each file to say so.
1182
+ # Grep'ing the whole file is not good either: AIX grep has a line
1183
+ # limit of 2048, but all sed's we know have understand at least 4000.
1184
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1185
+ dirpart=`AS_DIRNAME("$mf")`
1186
+ else
1187
+ continue
1188
+ fi
1189
+ # Extract the definition of DEPDIR, am__include, and am__quote
1190
+ # from the Makefile without running `make'.
1191
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1192
+ test -z "$DEPDIR" && continue
1193
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
1194
+ test -z "am__include" && continue
1195
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1196
+ # When using ansi2knr, U may be empty or an underscore; expand it
1197
+ U=`sed -n 's/^U = //p' < "$mf"`
1198
+ # Find all dependency output files, they are included files with
1199
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
1200
+ # simplest approach to changing $(DEPDIR) to its actual value in the
1201
+ # expansion.
1202
+ for file in `sed -n "
1203
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1204
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1205
+ # Make sure the directory exists.
1206
+ test -f "$dirpart/$file" && continue
1207
+ fdir=`AS_DIRNAME(["$file"])`
1208
+ AS_MKDIR_P([$dirpart/$fdir])
1209
+ # echo "creating $dirpart/$file"
1210
+ echo '# dummy' > "$dirpart/$file"
1211
+ done
1212
+ done
1213
+ }
1214
+ ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1215
+
1216
+
1217
+ # AM_OUTPUT_DEPENDENCY_COMMANDS
1218
+ # -----------------------------
1219
+ # This macro should only be invoked once -- use via AC_REQUIRE.
1220
+ #
1221
+ # This code is only required when automatic dependency tracking
1222
+ # is enabled. FIXME. This creates each `.P' file that we will
1223
+ # need in order to bootstrap the dependency handling code.
1224
+ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1225
+ [AC_CONFIG_COMMANDS([depfiles],
1226
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1227
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1228
+ ])
1229
+
1230
+ # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1231
+ # Free Software Foundation, Inc.
1232
+ #
1233
+ # This file is free software; the Free Software Foundation
1234
+ # gives unlimited permission to copy and/or distribute it,
1235
+ # with or without modifications, as long as this notice is preserved.
1236
+
1237
+ # serial 8
1238
+
1239
+ # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1240
+ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1241
+
1242
+ # Do all the work for Automake. -*- Autoconf -*-
1243
+
1244
+ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1245
+ # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1246
+ #
1247
+ # This file is free software; the Free Software Foundation
1248
+ # gives unlimited permission to copy and/or distribute it,
1249
+ # with or without modifications, as long as this notice is preserved.
1250
+
1251
+ # serial 16
1252
+
1253
+ # This macro actually does too much. Some checks are only needed if
1254
+ # your package does certain things. But this isn't really a big deal.
1255
+
1256
+ # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1257
+ # AM_INIT_AUTOMAKE([OPTIONS])
1258
+ # -----------------------------------------------
1259
+ # The call with PACKAGE and VERSION arguments is the old style
1260
+ # call (pre autoconf-2.50), which is being phased out. PACKAGE
1261
+ # and VERSION should now be passed to AC_INIT and removed from
1262
+ # the call to AM_INIT_AUTOMAKE.
1263
+ # We support both call styles for the transition. After
1264
+ # the next Automake release, Autoconf can make the AC_INIT
1265
+ # arguments mandatory, and then we can depend on a new Autoconf
1266
+ # release and drop the old call support.
1267
+ AC_DEFUN([AM_INIT_AUTOMAKE],
1268
+ [AC_PREREQ([2.62])dnl
1269
+ dnl Autoconf wants to disallow AM_ names. We explicitly allow
1270
+ dnl the ones we care about.
1271
+ m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1272
+ AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1273
+ AC_REQUIRE([AC_PROG_INSTALL])dnl
1274
+ if test "`cd $srcdir && pwd`" != "`pwd`"; then
1275
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1276
+ # is not polluted with repeated "-I."
1277
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1278
+ # test to see if srcdir already configured
1279
+ if test -f $srcdir/config.status; then
1280
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1281
+ fi
1282
+ fi
1283
+
1284
+ # test whether we have cygpath
1285
+ if test -z "$CYGPATH_W"; then
1286
+ if (cygpath --version) >/dev/null 2>/dev/null; then
1287
+ CYGPATH_W='cygpath -w'
1288
+ else
1289
+ CYGPATH_W=echo
1290
+ fi
1291
+ fi
1292
+ AC_SUBST([CYGPATH_W])
1293
+
1294
+ # Define the identity of the package.
1295
+ dnl Distinguish between old-style and new-style calls.
1296
+ m4_ifval([$2],
1297
+ [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1298
+ AC_SUBST([PACKAGE], [$1])dnl
1299
+ AC_SUBST([VERSION], [$2])],
1300
+ [_AM_SET_OPTIONS([$1])dnl
1301
+ dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1302
+ m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1303
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1304
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1305
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1306
+
1307
+ _AM_IF_OPTION([no-define],,
1308
+ [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1309
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1310
+
1311
+ # Some tools Automake needs.
1312
+ AC_REQUIRE([AM_SANITY_CHECK])dnl
1313
+ AC_REQUIRE([AC_ARG_PROGRAM])dnl
1314
+ AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1315
+ AM_MISSING_PROG(AUTOCONF, autoconf)
1316
+ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1317
+ AM_MISSING_PROG(AUTOHEADER, autoheader)
1318
+ AM_MISSING_PROG(MAKEINFO, makeinfo)
1319
+ AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1320
+ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1321
+ AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1322
+ # We need awk for the "check" target. The system "awk" is bad on
1323
+ # some platforms.
1324
+ AC_REQUIRE([AC_PROG_AWK])dnl
1325
+ AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1326
+ AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1327
+ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1328
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1329
+ [_AM_PROG_TAR([v7])])])
1330
+ _AM_IF_OPTION([no-dependencies],,
1331
+ [AC_PROVIDE_IFELSE([AC_PROG_CC],
1332
+ [_AM_DEPENDENCIES(CC)],
1333
+ [define([AC_PROG_CC],
1334
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1335
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
1336
+ [_AM_DEPENDENCIES(CXX)],
1337
+ [define([AC_PROG_CXX],
1338
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1339
+ AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1340
+ [_AM_DEPENDENCIES(OBJC)],
1341
+ [define([AC_PROG_OBJC],
1342
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1343
+ ])
1344
+ _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1345
+ dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1346
+ dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1347
+ dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1348
+ AC_CONFIG_COMMANDS_PRE(dnl
1349
+ [m4_provide_if([_AM_COMPILER_EXEEXT],
1350
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1351
+ ])
1352
+
1353
+ dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1354
+ dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1355
+ dnl mangled by Autoconf and run in a shell conditional statement.
1356
+ m4_define([_AC_COMPILER_EXEEXT],
1357
+ m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1358
+
1359
+
1360
+ # When config.status generates a header, we must update the stamp-h file.
1361
+ # This file resides in the same directory as the config header
1362
+ # that is generated. The stamp files are numbered to have different names.
1363
+
1364
+ # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1365
+ # loop where config.status creates the headers, so we can generate
1366
+ # our stamp files there.
1367
+ AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1368
+ [# Compute $1's index in $config_headers.
1369
+ _am_arg=$1
1370
+ _am_stamp_count=1
1371
+ for _am_header in $config_headers :; do
1372
+ case $_am_header in
1373
+ $_am_arg | $_am_arg:* )
1374
+ break ;;
1375
+ * )
1376
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1377
+ esac
1378
+ done
1379
+ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1380
+
1381
+ # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1382
+ #
1383
+ # This file is free software; the Free Software Foundation
1384
+ # gives unlimited permission to copy and/or distribute it,
1385
+ # with or without modifications, as long as this notice is preserved.
1386
+
1387
+ # AM_PROG_INSTALL_SH
1388
+ # ------------------
1389
+ # Define $install_sh.
1390
+ AC_DEFUN([AM_PROG_INSTALL_SH],
1391
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1392
+ if test x"${install_sh}" != xset; then
1393
+ case $am_aux_dir in
1394
+ *\ * | *\ *)
1395
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1396
+ *)
1397
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
1398
+ esac
1399
+ fi
1400
+ AC_SUBST(install_sh)])
1401
+
1402
+ # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1403
+ #
1404
+ # This file is free software; the Free Software Foundation
1405
+ # gives unlimited permission to copy and/or distribute it,
1406
+ # with or without modifications, as long as this notice is preserved.
1407
+
1408
+ # serial 2
1409
+
1410
+ # Check whether the underlying file-system supports filenames
1411
+ # with a leading dot. For instance MS-DOS doesn't.
1412
+ AC_DEFUN([AM_SET_LEADING_DOT],
1413
+ [rm -rf .tst 2>/dev/null
1414
+ mkdir .tst 2>/dev/null
1415
+ if test -d .tst; then
1416
+ am__leading_dot=.
1417
+ else
1418
+ am__leading_dot=_
1419
+ fi
1420
+ rmdir .tst 2>/dev/null
1421
+ AC_SUBST([am__leading_dot])])
1422
+
1423
+ # Check to see how 'make' treats includes. -*- Autoconf -*-
1424
+
1425
+ # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1426
+ #
1427
+ # This file is free software; the Free Software Foundation
1428
+ # gives unlimited permission to copy and/or distribute it,
1429
+ # with or without modifications, as long as this notice is preserved.
1430
+
1431
+ # serial 4
1432
+
1433
+ # AM_MAKE_INCLUDE()
1434
+ # -----------------
1435
+ # Check to see how make treats includes.
1436
+ AC_DEFUN([AM_MAKE_INCLUDE],
1437
+ [am_make=${MAKE-make}
1438
+ cat > confinc << 'END'
1439
+ am__doit:
1440
+ @echo this is the am__doit target
1441
+ .PHONY: am__doit
1442
+ END
1443
+ # If we don't find an include directive, just comment out the code.
1444
+ AC_MSG_CHECKING([for style of include used by $am_make])
1445
+ am__include="#"
1446
+ am__quote=
1447
+ _am_result=none
1448
+ # First try GNU make style include.
1449
+ echo "include confinc" > confmf
1450
+ # Ignore all kinds of additional output from `make'.
1451
+ case `$am_make -s -f confmf 2> /dev/null` in #(
1452
+ *the\ am__doit\ target*)
1453
+ am__include=include
1454
+ am__quote=
1455
+ _am_result=GNU
1456
+ ;;
1457
+ esac
1458
+ # Now try BSD make style include.
1459
+ if test "$am__include" = "#"; then
1460
+ echo '.include "confinc"' > confmf
1461
+ case `$am_make -s -f confmf 2> /dev/null` in #(
1462
+ *the\ am__doit\ target*)
1463
+ am__include=.include
1464
+ am__quote="\""
1465
+ _am_result=BSD
1466
+ ;;
1467
+ esac
1468
+ fi
1469
+ AC_SUBST([am__include])
1470
+ AC_SUBST([am__quote])
1471
+ AC_MSG_RESULT([$_am_result])
1472
+ rm -f confinc confmf
1473
+ ])
1474
+
1475
+ # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1476
+ # Free Software Foundation, Inc.
1477
+ #
1478
+ # This file is free software; the Free Software Foundation
1479
+ # gives unlimited permission to copy and/or distribute it,
1480
+ # with or without modifications, as long as this notice is preserved.
1481
+
1482
+ # serial 6
1483
+
1484
+ # AM_PROG_CC_C_O
1485
+ # --------------
1486
+ # Like AC_PROG_CC_C_O, but changed for automake.
1487
+ AC_DEFUN([AM_PROG_CC_C_O],
1488
+ [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1489
+ AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1490
+ AC_REQUIRE_AUX_FILE([compile])dnl
1491
+ # FIXME: we rely on the cache variable name because
1492
+ # there is no other way.
1493
+ set dummy $CC
1494
+ am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1495
+ eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1496
+ if test "$am_t" != yes; then
1497
+ # Losing compiler, so override with the script.
1498
+ # FIXME: It is wrong to rewrite CC.
1499
+ # But if we don't then we get into trouble of one sort or another.
1500
+ # A longer-term fix would be to have automake use am__CC in this case,
1501
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1502
+ CC="$am_aux_dir/compile $CC"
1503
+ fi
1504
+ dnl Make sure AC_PROG_CC is never called again, or it will override our
1505
+ dnl setting of CC.
1506
+ m4_define([AC_PROG_CC],
1507
+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1508
+ ])
1509
+
1510
+ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1511
+
1512
+ # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1513
+ # Free Software Foundation, Inc.
1514
+ #
1515
+ # This file is free software; the Free Software Foundation
1516
+ # gives unlimited permission to copy and/or distribute it,
1517
+ # with or without modifications, as long as this notice is preserved.
1518
+
1519
+ # serial 6
1520
+
1521
+ # AM_MISSING_PROG(NAME, PROGRAM)
1522
+ # ------------------------------
1523
+ AC_DEFUN([AM_MISSING_PROG],
1524
+ [AC_REQUIRE([AM_MISSING_HAS_RUN])
1525
+ $1=${$1-"${am_missing_run}$2"}
1526
+ AC_SUBST($1)])
1527
+
1528
+
1529
+ # AM_MISSING_HAS_RUN
1530
+ # ------------------
1531
+ # Define MISSING if not defined so far and test if it supports --run.
1532
+ # If it does, set am_missing_run to use it, otherwise, to nothing.
1533
+ AC_DEFUN([AM_MISSING_HAS_RUN],
1534
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1535
+ AC_REQUIRE_AUX_FILE([missing])dnl
1536
+ if test x"${MISSING+set}" != xset; then
1537
+ case $am_aux_dir in
1538
+ *\ * | *\ *)
1539
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1540
+ *)
1541
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
1542
+ esac
1543
+ fi
1544
+ # Use eval to expand $SHELL
1545
+ if eval "$MISSING --run true"; then
1546
+ am_missing_run="$MISSING --run "
1547
+ else
1548
+ am_missing_run=
1549
+ AC_MSG_WARN([`missing' script is too old or missing])
1550
+ fi
1551
+ ])
1552
+
1553
+ # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554
+ #
1555
+ # This file is free software; the Free Software Foundation
1556
+ # gives unlimited permission to copy and/or distribute it,
1557
+ # with or without modifications, as long as this notice is preserved.
1558
+
1559
+ # AM_PROG_MKDIR_P
1560
+ # ---------------
1561
+ # Check for `mkdir -p'.
1562
+ AC_DEFUN([AM_PROG_MKDIR_P],
1563
+ [AC_PREREQ([2.60])dnl
1564
+ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1565
+ dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1566
+ dnl while keeping a definition of mkdir_p for backward compatibility.
1567
+ dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1568
+ dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1569
+ dnl Makefile.ins that do not define MKDIR_P, so we do our own
1570
+ dnl adjustment using top_builddir (which is defined more often than
1571
+ dnl MKDIR_P).
1572
+ AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1573
+ case $mkdir_p in
1574
+ [[\\/$]]* | ?:[[\\/]]*) ;;
1575
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1576
+ esac
1577
+ ])
1578
+
1579
+ # Helper functions for option handling. -*- Autoconf -*-
1580
+
1581
+ # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1582
+ #
1583
+ # This file is free software; the Free Software Foundation
1584
+ # gives unlimited permission to copy and/or distribute it,
1585
+ # with or without modifications, as long as this notice is preserved.
1586
+
1587
+ # serial 4
1588
+
1589
+ # _AM_MANGLE_OPTION(NAME)
1590
+ # -----------------------
1591
+ AC_DEFUN([_AM_MANGLE_OPTION],
1592
+ [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1593
+
1594
+ # _AM_SET_OPTION(NAME)
1595
+ # ------------------------------
1596
+ # Set option NAME. Presently that only means defining a flag for this option.
1597
+ AC_DEFUN([_AM_SET_OPTION],
1598
+ [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1599
+
1600
+ # _AM_SET_OPTIONS(OPTIONS)
1601
+ # ----------------------------------
1602
+ # OPTIONS is a space-separated list of Automake options.
1603
+ AC_DEFUN([_AM_SET_OPTIONS],
1604
+ [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1605
+
1606
+ # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1607
+ # -------------------------------------------
1608
+ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1609
+ AC_DEFUN([_AM_IF_OPTION],
1610
+ [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1611
+
1612
+ # Check to make sure that the build environment is sane. -*- Autoconf -*-
1613
+
1614
+ # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1615
+ # Free Software Foundation, Inc.
1616
+ #
1617
+ # This file is free software; the Free Software Foundation
1618
+ # gives unlimited permission to copy and/or distribute it,
1619
+ # with or without modifications, as long as this notice is preserved.
1620
+
1621
+ # serial 5
1622
+
1623
+ # AM_SANITY_CHECK
1624
+ # ---------------
1625
+ AC_DEFUN([AM_SANITY_CHECK],
1626
+ [AC_MSG_CHECKING([whether build environment is sane])
1627
+ # Just in case
1628
+ sleep 1
1629
+ echo timestamp > conftest.file
1630
+ # Reject unsafe characters in $srcdir or the absolute working directory
1631
+ # name. Accept space and tab only in the latter.
1632
+ am_lf='
1633
+ '
1634
+ case `pwd` in
1635
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
1636
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
1637
+ esac
1638
+ case $srcdir in
1639
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1640
+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1641
+ esac
1642
+
1643
+ # Do `set' in a subshell so we don't clobber the current shell's
1644
+ # arguments. Must try -L first in case configure is actually a
1645
+ # symlink; some systems play weird games with the mod time of symlinks
1646
+ # (eg FreeBSD returns the mod time of the symlink's containing
1647
+ # directory).
1648
+ if (
1649
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1650
+ if test "$[*]" = "X"; then
1651
+ # -L didn't work.
1652
+ set X `ls -t "$srcdir/configure" conftest.file`
1653
+ fi
1654
+ rm -f conftest.file
1655
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
1656
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
1657
+
1658
+ # If neither matched, then we have a broken ls. This can happen
1659
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
1660
+ # broken ls alias from the environment. This has actually
1661
+ # happened. Such a system could not be considered "sane".
1662
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1663
+ alias in your environment])
1664
+ fi
1665
+
1666
+ test "$[2]" = conftest.file
1667
+ )
1668
+ then
1669
+ # Ok.
1670
+ :
1671
+ else
1672
+ AC_MSG_ERROR([newly created file is older than distributed files!
1673
+ Check your system clock])
1674
+ fi
1675
+ AC_MSG_RESULT(yes)])
1676
+
1677
+ # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1678
+ #
1679
+ # This file is free software; the Free Software Foundation
1680
+ # gives unlimited permission to copy and/or distribute it,
1681
+ # with or without modifications, as long as this notice is preserved.
1682
+
1683
+ # AM_PROG_INSTALL_STRIP
1684
+ # ---------------------
1685
+ # One issue with vendor `install' (even GNU) is that you can't
1686
+ # specify the program used to strip binaries. This is especially
1687
+ # annoying in cross-compiling environments, where the build's strip
1688
+ # is unlikely to handle the host's binaries.
1689
+ # Fortunately install-sh will honor a STRIPPROG variable, so we
1690
+ # always use install-sh in `make install-strip', and initialize
1691
+ # STRIPPROG with the value of the STRIP variable (set by the user).
1692
+ AC_DEFUN([AM_PROG_INSTALL_STRIP],
1693
+ [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1694
+ # Installed binaries are usually stripped using `strip' when the user
1695
+ # run `make install-strip'. However `strip' might not be the right
1696
+ # tool to use in cross-compilation environments, therefore Automake
1697
+ # will honor the `STRIP' environment variable to overrule this program.
1698
+ dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1699
+ if test "$cross_compiling" != no; then
1700
+ AC_CHECK_TOOL([STRIP], [strip], :)
1701
+ fi
1702
+ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1703
+ AC_SUBST([INSTALL_STRIP_PROGRAM])])
1704
+
1705
+ # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1706
+ #
1707
+ # This file is free software; the Free Software Foundation
1708
+ # gives unlimited permission to copy and/or distribute it,
1709
+ # with or without modifications, as long as this notice is preserved.
1710
+
1711
+ # serial 2
1712
+
1713
+ # _AM_SUBST_NOTMAKE(VARIABLE)
1714
+ # ---------------------------
1715
+ # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1716
+ # This macro is traced by Automake.
1717
+ AC_DEFUN([_AM_SUBST_NOTMAKE])
1718
+
1719
+ # AM_SUBST_NOTMAKE(VARIABLE)
1720
+ # ---------------------------
1721
+ # Public sister of _AM_SUBST_NOTMAKE.
1722
+ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1723
+
1724
+ # Check how to create a tarball. -*- Autoconf -*-
1725
+
1726
+ # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1727
+ #
1728
+ # This file is free software; the Free Software Foundation
1729
+ # gives unlimited permission to copy and/or distribute it,
1730
+ # with or without modifications, as long as this notice is preserved.
1731
+
1732
+ # serial 2
1733
+
1734
+ # _AM_PROG_TAR(FORMAT)
1735
+ # --------------------
1736
+ # Check how to create a tarball in format FORMAT.
1737
+ # FORMAT should be one of `v7', `ustar', or `pax'.
1738
+ #
1739
+ # Substitute a variable $(am__tar) that is a command
1740
+ # writing to stdout a FORMAT-tarball containing the directory
1741
+ # $tardir.
1742
+ # tardir=directory && $(am__tar) > result.tar
1743
+ #
1744
+ # Substitute a variable $(am__untar) that extract such
1745
+ # a tarball read from stdin.
1746
+ # $(am__untar) < result.tar
1747
+ AC_DEFUN([_AM_PROG_TAR],
1748
+ [# Always define AMTAR for backward compatibility.
1749
+ AM_MISSING_PROG([AMTAR], [tar])
1750
+ m4_if([$1], [v7],
1751
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1752
+ [m4_case([$1], [ustar],, [pax],,
1753
+ [m4_fatal([Unknown tar format])])
1754
+ AC_MSG_CHECKING([how to create a $1 tar archive])
1755
+ # Loop over all known methods to create a tar archive until one works.
1756
+ _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1757
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1758
+ # Do not fold the above two line into one, because Tru64 sh and
1759
+ # Solaris sh will not grok spaces in the rhs of `-'.
1760
+ for _am_tool in $_am_tools
1761
+ do
1762
+ case $_am_tool in
1763
+ gnutar)
1764
+ for _am_tar in tar gnutar gtar;
1765
+ do
1766
+ AM_RUN_LOG([$_am_tar --version]) && break
1767
+ done
1768
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1769
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1770
+ am__untar="$_am_tar -xf -"
1771
+ ;;
1772
+ plaintar)
1773
+ # Must skip GNU tar: if it does not support --format= it doesn't create
1774
+ # ustar tarball either.
1775
+ (tar --version) >/dev/null 2>&1 && continue
1776
+ am__tar='tar chf - "$$tardir"'
1777
+ am__tar_='tar chf - "$tardir"'
1778
+ am__untar='tar xf -'
1779
+ ;;
1780
+ pax)
1781
+ am__tar='pax -L -x $1 -w "$$tardir"'
1782
+ am__tar_='pax -L -x $1 -w "$tardir"'
1783
+ am__untar='pax -r'
1784
+ ;;
1785
+ cpio)
1786
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1787
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1788
+ am__untar='cpio -i -H $1 -d'
1789
+ ;;
1790
+ none)
1791
+ am__tar=false
1792
+ am__tar_=false
1793
+ am__untar=false
1794
+ ;;
1795
+ esac
1796
+
1797
+ # If the value was cached, stop now. We just wanted to have am__tar
1798
+ # and am__untar set.
1799
+ test -n "${am_cv_prog_tar_$1}" && break
1800
+
1801
+ # tar/untar a dummy directory, and stop if the command works
1802
+ rm -rf conftest.dir
1803
+ mkdir conftest.dir
1804
+ echo GrepMe > conftest.dir/file
1805
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1806
+ rm -rf conftest.dir
1807
+ if test -s conftest.tar; then
1808
+ AM_RUN_LOG([$am__untar <conftest.tar])
1809
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1810
+ fi
1811
+ done
1812
+ rm -rf conftest.dir
1813
+
1814
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1815
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1816
+ AC_SUBST([am__tar])
1817
+ AC_SUBST([am__untar])
1818
+ ]) # _AM_PROG_TAR
1819
+
1820
+ m4_include([m4/ac_cxx_compile_stdcxx_0x.m4])
1821
+ m4_include([m4/ac_cxx_header_stdcxx_98.m4])
1822
+ m4_include([m4/acx_pthread.m4])
1823
+ m4_include([m4/byteorder.m4])
1824
+ m4_include([m4/deprecated.m4])
1825
+ m4_include([m4/enable_utillib.m4])
1826
+ m4_include([m4/extensions.m4])
1827
+ m4_include([m4/hsieh.m4])
1828
+ m4_include([m4/lib-prefix.m4])
1829
+ m4_include([m4/libtool.m4])
1830
+ m4_include([m4/ltoptions.m4])
1831
+ m4_include([m4/ltsugar.m4])
1832
+ m4_include([m4/ltversion.m4])
1833
+ m4_include([m4/lt~obsolete.m4])
1834
+ m4_include([m4/memcached.m4])
1835
+ m4_include([m4/pandora_64bit.m4])
1836
+ m4_include([m4/pandora_canonical.m4])
1837
+ m4_include([m4/pandora_check_compiler_version.m4])
1838
+ m4_include([m4/pandora_check_cxx_standard.m4])
1839
+ m4_include([m4/pandora_enable_dtrace.m4])
1840
+ m4_include([m4/pandora_ensure_gcc_version.m4])
1841
+ m4_include([m4/pandora_have_better_malloc.m4])
1842
+ m4_include([m4/pandora_have_sasl.m4])
1843
+ m4_include([m4/pandora_header_assert.m4])
1844
+ m4_include([m4/pandora_libtool.m4])
1845
+ m4_include([m4/pandora_optimize.m4])
1846
+ m4_include([m4/pandora_shared_ptr.m4])
1847
+ m4_include([m4/pandora_vc_build.m4])
1848
+ m4_include([m4/pandora_warnings.m4])
1849
+ m4_include([m4/pod2man.m4])
1850
+ m4_include([m4/protocol_binary.m4])
1851
+ m4_include([m4/setsockopt.m4])
1852
+ m4_include([m4/visibility.m4])