contrast-agent 3.9.1 → 6.15.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (705) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +0 -1
  3. data/.flayignore +1 -0
  4. data/.gitignore +8 -5
  5. data/.gitmodules +0 -3
  6. data/.rspec +0 -1
  7. data/.rspec_parallel +6 -0
  8. data/.simplecov +6 -2
  9. data/Gemfile +1 -1
  10. data/LICENSE.txt +1 -1
  11. data/Rakefile +5 -2
  12. data/ext/build_funchook.rb +16 -13
  13. data/ext/cs__assess_array/cs__assess_array.c +50 -6
  14. data/ext/cs__assess_array/cs__assess_array.h +5 -1
  15. data/ext/cs__assess_array/extconf.rb +3 -0
  16. data/ext/cs__assess_basic_object/cs__assess_basic_object.c +39 -17
  17. data/ext/cs__assess_basic_object/cs__assess_basic_object.h +2 -1
  18. data/ext/cs__assess_basic_object/extconf.rb +3 -0
  19. data/ext/cs__assess_fiber_track/cs__assess_fiber_track.c +9 -13
  20. data/ext/cs__assess_fiber_track/cs__assess_fiber_track.h +3 -4
  21. data/ext/cs__assess_fiber_track/extconf.rb +3 -0
  22. data/ext/cs__assess_hash/cs__assess_hash.c +46 -21
  23. data/ext/cs__assess_hash/cs__assess_hash.h +5 -6
  24. data/ext/cs__assess_hash/extconf.rb +3 -0
  25. data/ext/cs__assess_kernel/cs__assess_kernel.c +29 -15
  26. data/ext/cs__assess_kernel/cs__assess_kernel.h +3 -0
  27. data/ext/cs__assess_kernel/extconf.rb +3 -0
  28. data/ext/cs__assess_marshal_module/cs__assess_marshal_module.c +57 -23
  29. data/ext/cs__assess_marshal_module/cs__assess_marshal_module.h +6 -3
  30. data/ext/cs__assess_marshal_module/extconf.rb +3 -0
  31. data/ext/cs__assess_module/cs__assess_module.c +82 -22
  32. data/ext/cs__assess_module/cs__assess_module.h +10 -0
  33. data/ext/cs__assess_module/extconf.rb +3 -0
  34. data/ext/cs__assess_regexp/cs__assess_regexp.c +28 -9
  35. data/ext/cs__assess_regexp/cs__assess_regexp.h +3 -0
  36. data/ext/cs__assess_regexp/extconf.rb +3 -0
  37. data/ext/cs__assess_string/cs__assess_string.c +53 -21
  38. data/ext/cs__assess_string/cs__assess_string.h +7 -1
  39. data/ext/cs__assess_string/extconf.rb +3 -0
  40. data/ext/cs__assess_string_interpolation/cs__assess_string_interpolation.c +39 -0
  41. data/ext/cs__assess_string_interpolation/cs__assess_string_interpolation.h +13 -0
  42. data/ext/cs__assess_string_interpolation/extconf.rb +5 -0
  43. data/ext/cs__assess_test/cs__assess_test.h +9 -0
  44. data/ext/cs__assess_test/cs__assess_tests.c +22 -0
  45. data/ext/cs__assess_test/extconf.rb +5 -0
  46. data/ext/cs__assess_yield_track/cs__assess_yield_track.c +4 -8
  47. data/ext/cs__assess_yield_track/cs__assess_yield_track.h +1 -2
  48. data/ext/cs__assess_yield_track/extconf.rb +3 -0
  49. data/ext/cs__common/cs__common.c +240 -4
  50. data/ext/cs__common/cs__common.h +68 -1
  51. data/ext/cs__common/extconf.rb +3 -16
  52. data/ext/cs__contrast_patch/cs__contrast_patch.c +162 -83
  53. data/ext/cs__contrast_patch/cs__contrast_patch.h +11 -15
  54. data/ext/cs__contrast_patch/extconf.rb +3 -0
  55. data/ext/cs__os_information/cs__os_information.c +34 -0
  56. data/ext/cs__os_information/cs__os_information.h +7 -0
  57. data/ext/cs__os_information/extconf.rb +5 -0
  58. data/ext/cs__scope/cs__scope.c +980 -0
  59. data/ext/cs__scope/cs__scope.h +90 -0
  60. data/ext/cs__scope/extconf.rb +5 -0
  61. data/ext/cs__tests/cs__tests.c +12 -0
  62. data/ext/cs__tests/cs__tests.h +3 -0
  63. data/ext/cs__tests/extconf.rb +5 -0
  64. data/ext/extconf_common.rb +4 -34
  65. data/lib/contrast/agent/assess/assess.rb +23 -0
  66. data/lib/contrast/agent/assess/contrast_object.rb +54 -0
  67. data/lib/contrast/agent/assess/events/event_data.rb +30 -0
  68. data/lib/contrast/agent/assess/finalizers/freeze.rb +15 -0
  69. data/lib/contrast/agent/assess/finalizers/hash.rb +107 -0
  70. data/lib/contrast/agent/{module_data.rb → assess/module_data.rb} +5 -4
  71. data/lib/contrast/agent/assess/policy/dynamic_source_factory.rb +23 -48
  72. data/lib/contrast/agent/assess/policy/patcher.rb +13 -48
  73. data/lib/contrast/agent/assess/policy/policy.rb +20 -23
  74. data/lib/contrast/agent/assess/policy/policy_node.rb +97 -200
  75. data/lib/contrast/agent/assess/policy/policy_node_utils.rb +50 -0
  76. data/lib/contrast/agent/assess/policy/policy_scanner.rb +15 -12
  77. data/lib/contrast/agent/assess/policy/preshift.rb +49 -18
  78. data/lib/contrast/agent/assess/policy/propagation_method.rb +200 -194
  79. data/lib/contrast/agent/assess/policy/propagation_node.rb +49 -41
  80. data/lib/contrast/agent/assess/policy/propagator/append.rb +32 -15
  81. data/lib/contrast/agent/assess/policy/propagator/base.rb +5 -3
  82. data/lib/contrast/agent/assess/policy/propagator/buffer.rb +119 -0
  83. data/lib/contrast/agent/assess/policy/propagator/center.rb +12 -8
  84. data/lib/contrast/agent/assess/policy/propagator/custom.rb +7 -3
  85. data/lib/contrast/agent/assess/policy/propagator/database_write.rb +33 -25
  86. data/lib/contrast/agent/assess/policy/propagator/insert.rb +15 -11
  87. data/lib/contrast/agent/assess/policy/propagator/keep.rb +23 -6
  88. data/lib/contrast/agent/assess/policy/propagator/match_data.rb +118 -0
  89. data/lib/contrast/agent/assess/policy/propagator/next.rb +7 -6
  90. data/lib/contrast/agent/assess/policy/propagator/prepend.rb +13 -6
  91. data/lib/contrast/agent/assess/policy/propagator/rack_protection.rb +73 -0
  92. data/lib/contrast/agent/assess/policy/propagator/remove.rb +53 -41
  93. data/lib/contrast/agent/assess/policy/propagator/replace.rb +5 -3
  94. data/lib/contrast/agent/assess/policy/propagator/reverse.rb +7 -6
  95. data/lib/contrast/agent/assess/policy/propagator/select.rb +45 -36
  96. data/lib/contrast/agent/assess/policy/propagator/splat.rb +44 -21
  97. data/lib/contrast/agent/assess/policy/propagator/split.rb +133 -147
  98. data/lib/contrast/agent/assess/policy/propagator/substitution.rb +7 -132
  99. data/lib/contrast/agent/assess/policy/propagator/substitution_utils.rb +190 -0
  100. data/lib/contrast/agent/assess/policy/propagator/trim.rb +74 -52
  101. data/lib/contrast/agent/assess/policy/propagator.rb +21 -18
  102. data/lib/contrast/agent/assess/policy/source_method.rb +126 -188
  103. data/lib/contrast/agent/assess/policy/source_node.rb +3 -17
  104. data/lib/contrast/agent/assess/policy/source_validation/cross_site_validator.rb +9 -7
  105. data/lib/contrast/agent/assess/policy/source_validation/source_validation.rb +3 -5
  106. data/lib/contrast/agent/assess/policy/trigger/reflected_xss.rb +103 -0
  107. data/lib/contrast/agent/assess/policy/trigger/xpath.rb +57 -0
  108. data/lib/contrast/agent/assess/policy/trigger_method.rb +143 -206
  109. data/lib/contrast/agent/assess/policy/trigger_node.rb +144 -66
  110. data/lib/contrast/agent/assess/policy/trigger_validation/redos_validator.rb +98 -0
  111. data/lib/contrast/agent/assess/policy/trigger_validation/ssrf_validator.rb +8 -38
  112. data/lib/contrast/agent/assess/policy/trigger_validation/trigger_validation.rb +9 -7
  113. data/lib/contrast/agent/assess/policy/trigger_validation/xss_validator.rb +6 -15
  114. data/lib/contrast/agent/assess/properties.rb +15 -383
  115. data/lib/contrast/agent/assess/property/evented.rb +58 -0
  116. data/lib/contrast/agent/assess/property/tagged.rb +246 -0
  117. data/lib/contrast/agent/assess/property/updated.rb +131 -0
  118. data/lib/contrast/agent/assess/rule/provider/hardcoded_key.rb +58 -19
  119. data/lib/contrast/agent/assess/rule/provider/hardcoded_password.rb +22 -17
  120. data/lib/contrast/agent/assess/rule/provider/hardcoded_value_rule.rb +93 -81
  121. data/lib/contrast/agent/assess/rule/provider.rb +4 -4
  122. data/lib/contrast/agent/assess/rule/response/auto_complete_rule.rb +69 -0
  123. data/lib/contrast/agent/assess/rule/response/base_rule.rb +121 -0
  124. data/lib/contrast/agent/assess/rule/response/body_rule.rb +107 -0
  125. data/lib/contrast/agent/assess/rule/response/cache_control_header_rule.rb +195 -0
  126. data/lib/contrast/agent/assess/rule/response/click_jacking_header_rule.rb +26 -0
  127. data/lib/contrast/agent/assess/rule/response/csp_header_insecure_rule.rb +100 -0
  128. data/lib/contrast/agent/assess/rule/response/csp_header_missing_rule.rb +26 -0
  129. data/lib/contrast/agent/assess/rule/response/framework/rails_support.rb +34 -0
  130. data/lib/contrast/agent/assess/rule/response/header_rule.rb +70 -0
  131. data/lib/contrast/agent/assess/rule/response/hsts_header_rule.rb +36 -0
  132. data/lib/contrast/agent/assess/rule/response/parameters_pollution_rule.rb +61 -0
  133. data/lib/contrast/agent/assess/rule/response/x_content_type_header_rule.rb +26 -0
  134. data/lib/contrast/agent/assess/rule/response/x_xss_protection_header_rule.rb +34 -0
  135. data/lib/contrast/agent/assess/tag.rb +84 -41
  136. data/lib/contrast/agent/assess/tracker.rb +70 -0
  137. data/lib/contrast/agent/deadzone/policy/deadzone_node.rb +11 -6
  138. data/lib/contrast/agent/deadzone/policy/policy.rb +11 -7
  139. data/lib/contrast/agent/excluder/excluder.rb +306 -0
  140. data/lib/contrast/agent/excluder/exclusion_matcher.rb +112 -0
  141. data/lib/contrast/agent/hooks/at_exit_hook.rb +44 -0
  142. data/lib/contrast/agent/hooks/tracepoint_hook.rb +57 -0
  143. data/lib/contrast/agent/inventory/database_config.rb +175 -0
  144. data/lib/contrast/agent/inventory/dependencies.rb +52 -0
  145. data/lib/contrast/agent/inventory/dependency_analysis.rb +34 -0
  146. data/lib/contrast/agent/inventory/dependency_usage_analysis.rb +120 -0
  147. data/lib/contrast/agent/inventory/inventory.rb +14 -0
  148. data/lib/contrast/agent/inventory/policy/datastores.rb +51 -0
  149. data/lib/contrast/agent/inventory/policy/policy.rb +5 -5
  150. data/lib/contrast/agent/inventory/policy/trigger_node.rb +2 -2
  151. data/lib/contrast/agent/middleware/middleware.rb +214 -0
  152. data/lib/contrast/agent/middleware/static_analysis.rb +51 -0
  153. data/lib/contrast/agent/patching/policy/after_load_patch.rb +22 -11
  154. data/lib/contrast/agent/patching/policy/after_load_patcher.rb +103 -52
  155. data/lib/contrast/agent/patching/policy/method_policy.rb +38 -62
  156. data/lib/contrast/agent/patching/policy/method_policy_extend.rb +117 -0
  157. data/lib/contrast/agent/patching/policy/module_policy.rb +27 -47
  158. data/lib/contrast/agent/patching/policy/patch.rb +129 -254
  159. data/lib/contrast/agent/patching/policy/patch_status.rb +21 -43
  160. data/lib/contrast/agent/patching/policy/patcher.rb +125 -159
  161. data/lib/contrast/agent/patching/policy/policy.rb +63 -58
  162. data/lib/contrast/agent/patching/policy/policy_node.rb +55 -37
  163. data/lib/contrast/agent/patching/policy/trigger_node.rb +32 -16
  164. data/lib/contrast/agent/protect/exploitable_collection.rb +38 -0
  165. data/lib/contrast/agent/protect/input_analyzer/input_analyzer.rb +165 -0
  166. data/lib/contrast/agent/protect/input_analyzer/worth_watching_analyzer.rb +122 -0
  167. data/lib/contrast/agent/protect/policy/applies_command_injection_rule.rb +67 -0
  168. data/lib/contrast/agent/protect/policy/applies_deserialization_rule.rb +97 -0
  169. data/lib/contrast/agent/protect/policy/applies_no_sqli_rule.rb +72 -0
  170. data/lib/contrast/agent/protect/policy/applies_path_traversal_rule.rb +141 -0
  171. data/lib/contrast/agent/protect/policy/applies_sqli_rule.rb +58 -0
  172. data/lib/contrast/agent/protect/policy/applies_xxe_rule.rb +125 -0
  173. data/lib/contrast/agent/protect/policy/policy.rb +10 -10
  174. data/lib/contrast/agent/protect/policy/rule_applicator.rb +119 -0
  175. data/lib/contrast/agent/protect/policy/trigger_node.rb +2 -2
  176. data/lib/contrast/agent/protect/rule/base.rb +274 -173
  177. data/lib/contrast/agent/protect/rule/bot_blocker/bot_blocker.rb +89 -0
  178. data/lib/contrast/agent/protect/rule/bot_blocker/bot_blocker_input_classification.rb +98 -0
  179. data/lib/contrast/agent/protect/rule/cmdi/cmd_injection.rb +86 -0
  180. data/lib/contrast/agent/protect/rule/cmdi/cmdi_backdoors.rb +90 -0
  181. data/lib/contrast/agent/protect/rule/cmdi/cmdi_base_rule.rb +170 -0
  182. data/lib/contrast/agent/protect/rule/cmdi/cmdi_chained_command.rb +63 -0
  183. data/lib/contrast/agent/protect/rule/cmdi/cmdi_dangerous_path.rb +62 -0
  184. data/lib/contrast/agent/protect/rule/cmdi/cmdi_input_classification.rb +27 -0
  185. data/lib/contrast/agent/protect/rule/default_scanner.rb +69 -25
  186. data/lib/contrast/agent/protect/rule/{deserialization.rb → deserialization/deserialization.rb} +29 -24
  187. data/lib/contrast/agent/protect/rule/no_sqli/mongo_no_sql_scanner.rb +2 -3
  188. data/lib/contrast/agent/protect/rule/no_sqli/no_sqli.rb +105 -0
  189. data/lib/contrast/agent/protect/rule/no_sqli/no_sqli_input_classification.rb +226 -0
  190. data/lib/contrast/agent/protect/rule/{path_traversal.rb → path_traversal/path_traversal.rb} +48 -55
  191. data/lib/contrast/agent/protect/rule/path_traversal/path_traversal_input_classification.rb +61 -0
  192. data/lib/contrast/agent/protect/rule/path_traversal/path_traversal_semantic_security_bypass.rb +139 -0
  193. data/lib/contrast/agent/protect/rule/sqli/default_sql_scanner.rb +1 -1
  194. data/lib/contrast/agent/protect/rule/sqli/mysql_sql_scanner.rb +1 -1
  195. data/lib/contrast/agent/protect/rule/sqli/postgres_sql_scanner.rb +2 -3
  196. data/lib/contrast/agent/protect/rule/sqli/sql_sample_builder.rb +154 -0
  197. data/lib/contrast/agent/protect/rule/sqli/sqli.rb +101 -0
  198. data/lib/contrast/agent/protect/rule/sqli/sqli_base_rule.rb +37 -0
  199. data/lib/contrast/agent/protect/rule/sqli/sqli_input_classification.rb +27 -0
  200. data/lib/contrast/agent/protect/rule/sqli/sqli_semantic/sqli_dangerous_functions.rb +67 -0
  201. data/lib/contrast/agent/protect/rule/sqli/sqlite_sql_scanner.rb +1 -1
  202. data/lib/contrast/agent/protect/rule/unsafe_file_upload/unsafe_file_upload.rb +56 -0
  203. data/lib/contrast/agent/protect/rule/unsafe_file_upload/unsafe_file_upload_input_classification.rb +62 -0
  204. data/lib/contrast/agent/protect/rule/utils/builders.rb +111 -0
  205. data/lib/contrast/agent/protect/rule/utils/filters.rb +110 -0
  206. data/lib/contrast/agent/protect/rule/xss/reflected_xss_input_classification.rb +58 -0
  207. data/lib/contrast/agent/protect/rule/xss/xss.rb +50 -0
  208. data/lib/contrast/agent/protect/rule/xxe/entity_wrapper.rb +25 -21
  209. data/lib/contrast/agent/protect/rule/xxe/xxe.rb +149 -0
  210. data/lib/contrast/agent/protect/rule.rb +20 -27
  211. data/lib/contrast/agent/reactions/disable_reaction.rb +20 -0
  212. data/lib/contrast/agent/reporting/attack_result/attack_result.rb +71 -0
  213. data/lib/contrast/agent/reporting/attack_result/rasp_rule_sample.rb +86 -0
  214. data/lib/contrast/agent/reporting/attack_result/response_type.rb +29 -0
  215. data/lib/contrast/agent/reporting/attack_result/user_input.rb +97 -0
  216. data/lib/contrast/agent/reporting/connection_status.rb +45 -0
  217. data/lib/contrast/agent/reporting/details/bot_blocker_details.rb +29 -0
  218. data/lib/contrast/agent/reporting/details/cmd_injection_details.rb +30 -0
  219. data/lib/contrast/agent/reporting/details/details.rb +17 -0
  220. data/lib/contrast/agent/reporting/details/ip_denylist_details.rb +35 -0
  221. data/lib/contrast/agent/reporting/details/no_sqli_details.rb +36 -0
  222. data/lib/contrast/agent/reporting/details/path_traversal_details.rb +24 -0
  223. data/lib/contrast/agent/reporting/details/path_traversal_semantic_analysis_details.rb +32 -0
  224. data/lib/contrast/agent/reporting/details/protect_rule_details.rb +17 -0
  225. data/lib/contrast/agent/reporting/details/sqli_dangerous_functions.rb +22 -0
  226. data/lib/contrast/agent/reporting/details/sqli_details.rb +36 -0
  227. data/lib/contrast/agent/reporting/details/untrusted_deserialization_details.rb +27 -0
  228. data/lib/contrast/agent/reporting/details/virtual_patch_details.rb +30 -0
  229. data/lib/contrast/agent/reporting/details/xss_details.rb +33 -0
  230. data/lib/contrast/agent/reporting/details/xss_match.rb +30 -0
  231. data/lib/contrast/agent/reporting/details/xxe_details.rb +36 -0
  232. data/lib/contrast/agent/reporting/details/xxe_match.rb +25 -0
  233. data/lib/contrast/agent/reporting/details/xxe_wrapper.rb +25 -0
  234. data/lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb +27 -0
  235. data/lib/contrast/agent/reporting/input_analysis/details/protect_rule_details.rb +15 -0
  236. data/lib/contrast/agent/reporting/input_analysis/input_analysis.rb +55 -0
  237. data/lib/contrast/agent/reporting/input_analysis/input_analysis_result.rb +129 -0
  238. data/lib/contrast/agent/reporting/input_analysis/input_type.rb +44 -0
  239. data/lib/contrast/agent/reporting/input_analysis/score_level.rb +21 -0
  240. data/lib/contrast/agent/reporting/masker/masker.rb +258 -0
  241. data/lib/contrast/agent/reporting/masker/masker_utils.rb +33 -0
  242. data/lib/contrast/agent/reporting/report.rb +32 -0
  243. data/lib/contrast/agent/reporting/reporter.rb +163 -0
  244. data/lib/contrast/agent/reporting/reporting_events/agent_startup.rb +34 -0
  245. data/lib/contrast/agent/reporting/reporting_events/application_activity.rb +120 -0
  246. data/lib/contrast/agent/reporting/reporting_events/application_defend_activity.rb +101 -0
  247. data/lib/contrast/agent/reporting/reporting_events/application_defend_attack_activity.rb +79 -0
  248. data/lib/contrast/agent/reporting/reporting_events/application_defend_attack_sample.rb +101 -0
  249. data/lib/contrast/agent/reporting/reporting_events/application_defend_attack_sample_activity.rb +74 -0
  250. data/lib/contrast/agent/reporting/reporting_events/application_defend_attack_sample_stack.rb +22 -0
  251. data/lib/contrast/agent/reporting/reporting_events/application_defend_attacker_activity.rb +78 -0
  252. data/lib/contrast/agent/reporting/reporting_events/application_inventory.rb +43 -0
  253. data/lib/contrast/agent/reporting/reporting_events/application_inventory_activity.rb +57 -0
  254. data/lib/contrast/agent/reporting/reporting_events/application_reporting_event.rb +37 -0
  255. data/lib/contrast/agent/reporting/reporting_events/application_settings.rb +40 -0
  256. data/lib/contrast/agent/reporting/reporting_events/application_startup.rb +44 -0
  257. data/lib/contrast/agent/reporting/reporting_events/application_startup_instrumentation.rb +27 -0
  258. data/lib/contrast/agent/reporting/reporting_events/application_update.rb +55 -0
  259. data/lib/contrast/agent/reporting/reporting_events/architecture_component.rb +66 -0
  260. data/lib/contrast/agent/reporting/reporting_events/discovered_route.rb +122 -0
  261. data/lib/contrast/agent/reporting/reporting_events/finding.rb +201 -0
  262. data/lib/contrast/agent/reporting/reporting_events/finding_event.rb +442 -0
  263. data/lib/contrast/agent/reporting/reporting_events/finding_event_object.rb +96 -0
  264. data/lib/contrast/agent/reporting/reporting_events/finding_event_parent_object.rb +45 -0
  265. data/lib/contrast/agent/reporting/reporting_events/finding_event_property.rb +47 -0
  266. data/lib/contrast/agent/reporting/reporting_events/finding_event_signature.rb +99 -0
  267. data/lib/contrast/agent/reporting/reporting_events/finding_event_source.rb +63 -0
  268. data/lib/contrast/agent/reporting/reporting_events/finding_event_stack.rb +65 -0
  269. data/lib/contrast/agent/reporting/reporting_events/finding_event_taint_range.rb +67 -0
  270. data/lib/contrast/agent/reporting/reporting_events/finding_event_taint_range_tags.rb +105 -0
  271. data/lib/contrast/agent/reporting/reporting_events/finding_request.rb +126 -0
  272. data/lib/contrast/agent/reporting/reporting_events/library_discovery.rb +89 -0
  273. data/lib/contrast/agent/reporting/reporting_events/library_usage_observation.rb +48 -0
  274. data/lib/contrast/agent/reporting/reporting_events/observed_library_usage.rb +37 -0
  275. data/lib/contrast/agent/reporting/reporting_events/observed_route.rb +83 -0
  276. data/lib/contrast/agent/reporting/reporting_events/poll.rb +23 -0
  277. data/lib/contrast/agent/reporting/reporting_events/preflight.rb +52 -0
  278. data/lib/contrast/agent/reporting/reporting_events/preflight_message.rb +66 -0
  279. data/lib/contrast/agent/reporting/reporting_events/reportable_hash.rb +47 -0
  280. data/lib/contrast/agent/reporting/reporting_events/reporting_event.rb +35 -0
  281. data/lib/contrast/agent/reporting/reporting_events/route_coverage.rb +87 -0
  282. data/lib/contrast/agent/reporting/reporting_events/route_discovery.rb +59 -0
  283. data/lib/contrast/agent/reporting/reporting_events/route_discovery_observation.rb +49 -0
  284. data/lib/contrast/agent/reporting/reporting_events/server_reporting_event.rb +35 -0
  285. data/lib/contrast/agent/reporting/reporting_events/server_settings.rb +40 -0
  286. data/lib/contrast/agent/reporting/reporting_utilities/audit.rb +133 -0
  287. data/lib/contrast/agent/reporting/reporting_utilities/build_preflight.rb +38 -0
  288. data/lib/contrast/agent/reporting/reporting_utilities/endpoints.rb +176 -0
  289. data/lib/contrast/agent/reporting/reporting_utilities/headers.rb +57 -0
  290. data/lib/contrast/agent/reporting/reporting_utilities/ng_response_extractor.rb +137 -0
  291. data/lib/contrast/agent/reporting/reporting_utilities/reporter_client.rb +138 -0
  292. data/lib/contrast/agent/reporting/reporting_utilities/reporter_client_utils.rb +161 -0
  293. data/lib/contrast/agent/reporting/reporting_utilities/reporting_storage.rb +66 -0
  294. data/lib/contrast/agent/reporting/reporting_utilities/response.rb +98 -0
  295. data/lib/contrast/agent/reporting/reporting_utilities/response_extractor.rb +149 -0
  296. data/lib/contrast/agent/reporting/reporting_utilities/response_handler.rb +118 -0
  297. data/lib/contrast/agent/reporting/reporting_utilities/response_handler_mode.rb +63 -0
  298. data/lib/contrast/agent/reporting/reporting_utilities/response_handler_utils.rb +393 -0
  299. data/lib/contrast/agent/reporting/reporting_workers/application_server_worker.rb +46 -0
  300. data/lib/contrast/agent/reporting/reporting_workers/reporter_heartbeat.rb +51 -0
  301. data/lib/contrast/agent/reporting/reporting_workers/reporting_workers.rb +14 -0
  302. data/lib/contrast/agent/reporting/reporting_workers/server_settings_worker.rb +46 -0
  303. data/lib/contrast/agent/reporting/settings/application_settings.rb +61 -0
  304. data/lib/contrast/agent/reporting/settings/assess.rb +58 -0
  305. data/lib/contrast/agent/reporting/settings/assess_rule.rb +18 -0
  306. data/lib/contrast/agent/reporting/settings/assess_server_feature.rb +114 -0
  307. data/lib/contrast/agent/reporting/settings/bot_blocker.rb +68 -0
  308. data/lib/contrast/agent/reporting/settings/exclusion_base.rb +129 -0
  309. data/lib/contrast/agent/reporting/settings/exclusions.rb +86 -0
  310. data/lib/contrast/agent/reporting/settings/helpers.rb +101 -0
  311. data/lib/contrast/agent/reporting/settings/input_exclusion.rb +87 -0
  312. data/lib/contrast/agent/reporting/settings/ip_filter.rb +35 -0
  313. data/lib/contrast/agent/reporting/settings/keyword.rb +74 -0
  314. data/lib/contrast/agent/reporting/settings/log_enhancer.rb +65 -0
  315. data/lib/contrast/agent/reporting/settings/protect.rb +111 -0
  316. data/lib/contrast/agent/reporting/settings/protect_rule.rb +18 -0
  317. data/lib/contrast/agent/reporting/settings/protect_server_feature.rb +227 -0
  318. data/lib/contrast/agent/reporting/settings/reaction.rb +39 -0
  319. data/lib/contrast/agent/reporting/settings/rule_definition.rb +66 -0
  320. data/lib/contrast/agent/reporting/settings/sampling.rb +46 -0
  321. data/lib/contrast/agent/reporting/settings/sanitizer.rb +38 -0
  322. data/lib/contrast/agent/reporting/settings/security_logger.rb +77 -0
  323. data/lib/contrast/agent/reporting/settings/sensitive_data_masking.rb +118 -0
  324. data/lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb +65 -0
  325. data/lib/contrast/agent/reporting/settings/server_features.rb +95 -0
  326. data/lib/contrast/agent/reporting/settings/syslog.rb +205 -0
  327. data/lib/contrast/agent/reporting/settings/url_exclusion.rb +18 -0
  328. data/lib/contrast/agent/reporting/settings/validator.rb +17 -0
  329. data/lib/contrast/agent/reporting/settings/virtual_patch.rb +56 -0
  330. data/lib/contrast/agent/reporting/settings/virtual_patch_condition.rb +47 -0
  331. data/lib/contrast/agent/request/request.rb +189 -0
  332. data/lib/contrast/agent/request/request_context.rb +143 -0
  333. data/lib/contrast/agent/request/request_context_extend.rb +105 -0
  334. data/lib/contrast/agent/request/request_handler.rb +41 -0
  335. data/lib/contrast/agent/response/response.rb +87 -0
  336. data/lib/contrast/agent/scope/scope.rb +158 -0
  337. data/lib/contrast/agent/telemetry/base.rb +171 -0
  338. data/lib/contrast/agent/telemetry/client.rb +111 -0
  339. data/lib/contrast/agent/telemetry/event.rb +35 -0
  340. data/lib/contrast/agent/telemetry/exception/base.rb +61 -0
  341. data/lib/contrast/agent/telemetry/exception/event.rb +46 -0
  342. data/lib/contrast/agent/telemetry/exception/message.rb +118 -0
  343. data/lib/contrast/agent/telemetry/exception/message_exception.rb +86 -0
  344. data/lib/contrast/agent/telemetry/exception/stack_frame.rb +67 -0
  345. data/lib/contrast/agent/telemetry/exception.rb +19 -0
  346. data/lib/contrast/agent/telemetry/hash.rb +71 -0
  347. data/lib/contrast/agent/telemetry/identifier.rb +153 -0
  348. data/lib/contrast/agent/telemetry/metric_event.rb +28 -0
  349. data/lib/contrast/agent/telemetry/startup_metrics_event.rb +123 -0
  350. data/lib/contrast/agent/telemetry/telemetry.rb +109 -0
  351. data/lib/contrast/agent/{thread.rb → thread/thread.rb} +4 -6
  352. data/lib/contrast/agent/thread/thread_watcher.rb +126 -0
  353. data/lib/contrast/agent/thread/worker_thread.rb +42 -0
  354. data/lib/contrast/agent/version.rb +2 -2
  355. data/lib/contrast/agent.rb +96 -57
  356. data/lib/contrast/agent_lib/api/command_injection.rb +46 -0
  357. data/lib/contrast/agent_lib/api/init.rb +95 -0
  358. data/lib/contrast/agent_lib/api/input_tracing.rb +265 -0
  359. data/lib/contrast/agent_lib/api/panic.rb +87 -0
  360. data/lib/contrast/agent_lib/api/path_semantic_file_security_bypass.rb +40 -0
  361. data/lib/contrast/agent_lib/interface.rb +245 -0
  362. data/lib/contrast/agent_lib/interface_base.rb +131 -0
  363. data/lib/contrast/agent_lib/return_types/eval_result.rb +44 -0
  364. data/lib/contrast/agent_lib/test.rb +29 -0
  365. data/lib/contrast/components/agent.rb +104 -48
  366. data/lib/contrast/components/api.rb +159 -0
  367. data/lib/contrast/components/app_context.rb +125 -98
  368. data/lib/contrast/components/app_context_extend.rb +53 -0
  369. data/lib/contrast/components/assess.rb +210 -24
  370. data/lib/contrast/components/assess_rules.rb +54 -0
  371. data/lib/contrast/components/base.rb +103 -0
  372. data/lib/contrast/components/config/sources.rb +95 -0
  373. data/lib/contrast/components/config.rb +182 -60
  374. data/lib/contrast/components/heap_dump.rb +77 -12
  375. data/lib/contrast/components/inventory.rb +37 -10
  376. data/lib/contrast/components/logger.rb +46 -76
  377. data/lib/contrast/components/polling.rb +39 -0
  378. data/lib/contrast/components/protect.rb +142 -16
  379. data/lib/contrast/components/ruby_component.rb +135 -0
  380. data/lib/contrast/components/rule_set.rb +52 -0
  381. data/lib/contrast/components/sampling.rb +156 -15
  382. data/lib/contrast/components/scope.rb +125 -116
  383. data/lib/contrast/components/security_logger.rb +36 -0
  384. data/lib/contrast/components/settings.rb +239 -88
  385. data/lib/contrast/config/api_proxy_configuration.rb +27 -0
  386. data/lib/contrast/config/base_configuration.rb +20 -94
  387. data/lib/contrast/config/certification_configuration.rb +47 -0
  388. data/lib/contrast/config/config.rb +48 -0
  389. data/lib/contrast/config/diagnostics.rb +123 -0
  390. data/lib/contrast/config/diagnostics_tools.rb +99 -0
  391. data/lib/contrast/config/effective_config.rb +131 -0
  392. data/lib/contrast/config/effective_config_value.rb +32 -0
  393. data/lib/contrast/config/env_variables.rb +18 -0
  394. data/lib/contrast/config/exception_configuration.rb +34 -12
  395. data/lib/contrast/config/protect_rule_configuration.rb +45 -24
  396. data/lib/contrast/config/protect_rules_configuration.rb +97 -22
  397. data/lib/contrast/config/request_audit_configuration.rb +57 -0
  398. data/lib/contrast/config/server_configuration.rb +67 -15
  399. data/lib/contrast/config/validate.rb +140 -0
  400. data/lib/contrast/config/yaml_file.rb +129 -0
  401. data/lib/contrast/config.rb +6 -22
  402. data/lib/contrast/configuration.rb +241 -109
  403. data/lib/contrast/extension/assess/array.rb +75 -0
  404. data/lib/contrast/extension/assess/erb.rb +61 -0
  405. data/lib/contrast/extension/assess/eval_trigger.rb +47 -0
  406. data/lib/contrast/{extensions/ruby_core → extension}/assess/exec_trigger.rb +9 -21
  407. data/lib/contrast/extension/assess/fiber.rb +95 -0
  408. data/lib/contrast/extension/assess/hash.rb +33 -0
  409. data/lib/contrast/extension/assess/kernel.rb +124 -0
  410. data/lib/contrast/extension/assess/marshal.rb +80 -0
  411. data/lib/contrast/extension/assess/regexp.rb +71 -0
  412. data/lib/contrast/extension/assess/string.rb +85 -0
  413. data/lib/contrast/extension/assess.rb +47 -0
  414. data/lib/contrast/{extensions/ruby_core → extension}/delegator.rb +3 -1
  415. data/lib/contrast/extension/extension.rb +59 -0
  416. data/lib/contrast/extension/inventory.rb +21 -0
  417. data/lib/contrast/{extensions/ruby_core → extension}/module.rb +2 -3
  418. data/lib/contrast/extension/object.rb +19 -0
  419. data/lib/contrast/extension/protect/psych.rb +7 -0
  420. data/lib/contrast/{extensions/ruby_core → extension}/protect.rb +6 -6
  421. data/lib/contrast/extension/thread.rb +50 -0
  422. data/lib/contrast/framework/base_support.rb +69 -54
  423. data/lib/contrast/framework/grape/support.rb +176 -0
  424. data/lib/contrast/framework/manager.rb +112 -60
  425. data/lib/contrast/framework/manager_extend.rb +50 -0
  426. data/lib/contrast/framework/rack/patch/session_cookie.rb +108 -0
  427. data/lib/contrast/framework/rack/patch/support.rb +26 -0
  428. data/lib/contrast/framework/rack/support.rb +23 -0
  429. data/lib/contrast/framework/rails/patch/action_controller_live_buffer.rb +46 -0
  430. data/lib/contrast/framework/rails/patch/assess_configuration.rb +98 -0
  431. data/lib/contrast/framework/rails/patch/rails_application_configuration.rb +31 -0
  432. data/lib/contrast/framework/rails/patch/support.rb +46 -0
  433. data/lib/contrast/framework/rails/railtie.rb +33 -0
  434. data/lib/contrast/framework/rails/support.rb +187 -0
  435. data/lib/contrast/framework/sinatra/patch/encrypted_session_cookie.rb +39 -0
  436. data/lib/contrast/framework/sinatra/support.rb +162 -0
  437. data/lib/contrast/funchook/funchook.rb +44 -0
  438. data/lib/contrast/logger/aliased_logging.rb +158 -0
  439. data/lib/contrast/logger/application.rb +84 -0
  440. data/lib/contrast/logger/cef_log.rb +169 -0
  441. data/lib/contrast/logger/format.rb +61 -0
  442. data/lib/contrast/logger/log.rb +90 -0
  443. data/lib/contrast/logger/request.rb +25 -0
  444. data/lib/contrast/logger/time.rb +57 -0
  445. data/lib/contrast/security_exception.rb +2 -2
  446. data/lib/contrast/tasks/config.rb +33 -0
  447. data/lib/contrast/utils/assess/event_limit_utils.rb +134 -0
  448. data/lib/contrast/utils/assess/object_store.rb +36 -0
  449. data/lib/contrast/utils/assess/propagation_method_utils.rb +155 -0
  450. data/lib/contrast/utils/assess/property/tagged_utils.rb +165 -0
  451. data/lib/contrast/utils/assess/sampling_util.rb +11 -17
  452. data/lib/contrast/utils/assess/source_method_utils.rb +74 -0
  453. data/lib/contrast/utils/assess/split_utils.rb +23 -0
  454. data/lib/contrast/utils/assess/tracking_util.rb +96 -18
  455. data/lib/contrast/utils/assess/trigger_method_utils.rb +132 -0
  456. data/lib/contrast/utils/class_util.rb +80 -48
  457. data/lib/contrast/utils/duck_utils.rb +18 -9
  458. data/lib/contrast/utils/env_configuration_item.rb +4 -3
  459. data/lib/contrast/utils/findings.rb +66 -0
  460. data/lib/contrast/utils/hash_digest.rb +52 -99
  461. data/lib/contrast/utils/hash_digest_extend.rb +129 -0
  462. data/lib/contrast/utils/head_dump_utils_extend.rb +74 -0
  463. data/lib/contrast/utils/heap_dump_util.rb +44 -88
  464. data/lib/contrast/utils/input_classification_base.rb +169 -0
  465. data/lib/contrast/utils/invalid_configuration_util.rb +31 -45
  466. data/lib/contrast/utils/io_util.rb +47 -51
  467. data/lib/contrast/utils/job_servers_running.rb +21 -11
  468. data/lib/contrast/utils/log_utils.rb +254 -0
  469. data/lib/contrast/utils/lru_cache.rb +48 -0
  470. data/lib/contrast/utils/metrics_hash.rb +59 -0
  471. data/lib/contrast/utils/middleware_utils.rb +97 -0
  472. data/lib/contrast/utils/net_http_base.rb +173 -0
  473. data/lib/contrast/utils/object_share.rb +8 -48
  474. data/lib/contrast/utils/os.rb +14 -24
  475. data/lib/contrast/utils/patching/policy/patch_utils.rb +175 -0
  476. data/lib/contrast/utils/patching/policy/patcher_utils.rb +54 -0
  477. data/lib/contrast/utils/reporting/application_activity_batch_utils.rb +89 -0
  478. data/lib/contrast/utils/request_utils.rb +96 -0
  479. data/lib/contrast/utils/resource_loader.rb +2 -2
  480. data/lib/contrast/utils/response_utils.rb +79 -0
  481. data/lib/contrast/utils/routes_sent.rb +63 -0
  482. data/lib/contrast/utils/sha256_builder.rb +9 -21
  483. data/lib/contrast/utils/silence_maker.rb +16 -0
  484. data/lib/contrast/utils/stack_trace_utils.rb +68 -184
  485. data/lib/contrast/utils/string_utils.rb +82 -52
  486. data/lib/contrast/utils/tag_util.rb +58 -44
  487. data/lib/contrast/utils/thread_tracker.rb +27 -23
  488. data/lib/contrast/utils/timer.rb +20 -55
  489. data/lib/contrast-agent.rb +2 -2
  490. data/lib/contrast.rb +106 -43
  491. data/resources/assess/policy.json +481 -120
  492. data/resources/deadzone/policy.json +280 -10
  493. data/resources/inventory/policy.json +2 -2
  494. data/resources/protect/policy.json +36 -17
  495. data/ruby-agent.gemspec +116 -46
  496. data/sonar-project.properties +9 -0
  497. metadata +694 -317
  498. data/exe/contrast_service +0 -29
  499. data/ext/cs__assess_active_record_named/cs__active_record_named.c +0 -47
  500. data/ext/cs__assess_active_record_named/cs__active_record_named.h +0 -10
  501. data/ext/cs__assess_active_record_named/extconf.rb +0 -2
  502. data/ext/cs__assess_regexp_track/cs__assess_regexp_track.c +0 -63
  503. data/ext/cs__assess_regexp_track/cs__assess_regexp_track.h +0 -29
  504. data/ext/cs__assess_regexp_track/extconf.rb +0 -2
  505. data/ext/cs__assess_string_interpolation26/cs__assess_string_interpolation26.c +0 -31
  506. data/ext/cs__assess_string_interpolation26/cs__assess_string_interpolation26.h +0 -13
  507. data/ext/cs__assess_string_interpolation26/extconf.rb +0 -2
  508. data/ext/cs__protect_kernel/cs__protect_kernel.c +0 -37
  509. data/ext/cs__protect_kernel/cs__protect_kernel.h +0 -11
  510. data/ext/cs__protect_kernel/extconf.rb +0 -2
  511. data/funchook/Makefile +0 -29
  512. data/funchook/autom4te.cache/output.0 +0 -4976
  513. data/funchook/autom4te.cache/requests +0 -78
  514. data/funchook/autom4te.cache/traces.0 +0 -364
  515. data/funchook/config.log +0 -490
  516. data/funchook/config.status +0 -1016
  517. data/funchook/configure +0 -4976
  518. data/funchook/src/Makefile +0 -70
  519. data/funchook/src/config.h +0 -101
  520. data/funchook/src/config.h.in +0 -100
  521. data/funchook/src/decoder.o +0 -0
  522. data/funchook/src/distorm.o +0 -0
  523. data/funchook/src/funchook.o +0 -0
  524. data/funchook/src/funchook_io.o +0 -0
  525. data/funchook/src/funchook_syscall.o +0 -0
  526. data/funchook/src/funchook_unix.o +0 -0
  527. data/funchook/src/funchook_x86.o +0 -0
  528. data/funchook/src/instructions.o +0 -0
  529. data/funchook/src/insts.o +0 -0
  530. data/funchook/src/libfunchook.so +0 -0
  531. data/funchook/src/mnemonics.o +0 -0
  532. data/funchook/src/operands.o +0 -0
  533. data/funchook/src/os_func.o +0 -0
  534. data/funchook/src/os_func_unix.o +0 -0
  535. data/funchook/src/prefix.o +0 -0
  536. data/funchook/src/printf_base.o +0 -0
  537. data/funchook/src/textdefs.o +0 -0
  538. data/funchook/src/wstring.o +0 -0
  539. data/funchook/test/Makefile +0 -43
  540. data/funchook/test/funchook_test +0 -0
  541. data/funchook/test/libfunchook_test.so +0 -0
  542. data/funchook/test/test_main.o +0 -0
  543. data/funchook/test/x86_64_test.o +0 -0
  544. data/lib/contrast/agent/assess/adjusted_span.rb +0 -25
  545. data/lib/contrast/agent/assess/contrast_event.rb +0 -399
  546. data/lib/contrast/agent/assess/frozen_properties.rb +0 -41
  547. data/lib/contrast/agent/assess/insulator.rb +0 -53
  548. data/lib/contrast/agent/assess/policy/rewriter_patch.rb +0 -80
  549. data/lib/contrast/agent/assess/rule/base.rb +0 -72
  550. data/lib/contrast/agent/assess/rule/csrf/csrf_action.rb +0 -28
  551. data/lib/contrast/agent/assess/rule/csrf/csrf_applicator.rb +0 -73
  552. data/lib/contrast/agent/assess/rule/csrf/csrf_watcher.rb +0 -132
  553. data/lib/contrast/agent/assess/rule/csrf.rb +0 -66
  554. data/lib/contrast/agent/assess/rule/redos.rb +0 -68
  555. data/lib/contrast/agent/assess/rule/response_scanning_rule.rb +0 -47
  556. data/lib/contrast/agent/assess/rule/response_watcher.rb +0 -36
  557. data/lib/contrast/agent/assess/rule/watcher.rb +0 -36
  558. data/lib/contrast/agent/assess/rule.rb +0 -18
  559. data/lib/contrast/agent/assess.rb +0 -44
  560. data/lib/contrast/agent/at_exit_hook.rb +0 -33
  561. data/lib/contrast/agent/class_reopener.rb +0 -238
  562. data/lib/contrast/agent/disable_reaction.rb +0 -24
  563. data/lib/contrast/agent/exclusion_matcher.rb +0 -190
  564. data/lib/contrast/agent/feature_state.rb +0 -379
  565. data/lib/contrast/agent/logger_manager.rb +0 -116
  566. data/lib/contrast/agent/middleware.rb +0 -350
  567. data/lib/contrast/agent/protect/rule/base_service.rb +0 -88
  568. data/lib/contrast/agent/protect/rule/cmd_injection.rb +0 -156
  569. data/lib/contrast/agent/protect/rule/csrf/csrf_evaluator.rb +0 -103
  570. data/lib/contrast/agent/protect/rule/csrf/csrf_token_injector.rb +0 -85
  571. data/lib/contrast/agent/protect/rule/csrf.rb +0 -118
  572. data/lib/contrast/agent/protect/rule/http_method_tampering.rb +0 -80
  573. data/lib/contrast/agent/protect/rule/no_sqli.rb +0 -101
  574. data/lib/contrast/agent/protect/rule/sqli.rb +0 -101
  575. data/lib/contrast/agent/protect/rule/unsafe_file_upload.rb +0 -20
  576. data/lib/contrast/agent/protect/rule/xss.rb +0 -24
  577. data/lib/contrast/agent/protect/rule/xxe.rb +0 -120
  578. data/lib/contrast/agent/railtie.rb +0 -36
  579. data/lib/contrast/agent/reaction_processor.rb +0 -47
  580. data/lib/contrast/agent/request.rb +0 -475
  581. data/lib/contrast/agent/request_context.rb +0 -225
  582. data/lib/contrast/agent/require_state.rb +0 -61
  583. data/lib/contrast/agent/response.rb +0 -215
  584. data/lib/contrast/agent/rewriter.rb +0 -245
  585. data/lib/contrast/agent/scope.rb +0 -125
  586. data/lib/contrast/agent/service_heartbeat.rb +0 -40
  587. data/lib/contrast/agent/settings_state.rb +0 -152
  588. data/lib/contrast/agent/socket_client.rb +0 -128
  589. data/lib/contrast/agent/tracepoint_hook.rb +0 -51
  590. data/lib/contrast/api/connection_status.rb +0 -49
  591. data/lib/contrast/api/dtm_pb.rb +0 -718
  592. data/lib/contrast/api/settings_pb.rb +0 -416
  593. data/lib/contrast/api/socket.rb +0 -43
  594. data/lib/contrast/api/speedracer.rb +0 -186
  595. data/lib/contrast/api/tcp_socket.rb +0 -31
  596. data/lib/contrast/api/unix_socket.rb +0 -25
  597. data/lib/contrast/api.rb +0 -18
  598. data/lib/contrast/common_agent_configuration.rb +0 -86
  599. data/lib/contrast/components/contrast_service.rb +0 -117
  600. data/lib/contrast/components/interface.rb +0 -178
  601. data/lib/contrast/config/agent_configuration.rb +0 -24
  602. data/lib/contrast/config/application_configuration.rb +0 -27
  603. data/lib/contrast/config/assess_configuration.rb +0 -22
  604. data/lib/contrast/config/assess_rules_configuration.rb +0 -18
  605. data/lib/contrast/config/default_value.rb +0 -16
  606. data/lib/contrast/config/heap_dump_configuration.rb +0 -23
  607. data/lib/contrast/config/inventory_configuration.rb +0 -20
  608. data/lib/contrast/config/logger_configuration.rb +0 -20
  609. data/lib/contrast/config/protect_configuration.rb +0 -20
  610. data/lib/contrast/config/root_configuration.rb +0 -26
  611. data/lib/contrast/config/ruby_configuration.rb +0 -44
  612. data/lib/contrast/config/sampling_configuration.rb +0 -22
  613. data/lib/contrast/config/service_configuration.rb +0 -22
  614. data/lib/contrast/delegators/application_update.rb +0 -32
  615. data/lib/contrast/delegators.rb +0 -9
  616. data/lib/contrast/extensions/framework/rack/cookie.rb +0 -24
  617. data/lib/contrast/extensions/framework/rack/request.rb +0 -24
  618. data/lib/contrast/extensions/framework/rack/response.rb +0 -23
  619. data/lib/contrast/extensions/framework/rails/action_controller_railties_helper_inherited.rb +0 -20
  620. data/lib/contrast/extensions/framework/rails/active_record.rb +0 -26
  621. data/lib/contrast/extensions/framework/rails/active_record_named.rb +0 -53
  622. data/lib/contrast/extensions/framework/rails/active_record_time_zone_inherited.rb +0 -21
  623. data/lib/contrast/extensions/framework/rails/buffer.rb +0 -28
  624. data/lib/contrast/extensions/framework/rails/configuration.rb +0 -27
  625. data/lib/contrast/extensions/framework/sinatra/base.rb +0 -59
  626. data/lib/contrast/extensions/ruby_core/assess/array.rb +0 -59
  627. data/lib/contrast/extensions/ruby_core/assess/assess_extension.rb +0 -143
  628. data/lib/contrast/extensions/ruby_core/assess/basic_object.rb +0 -15
  629. data/lib/contrast/extensions/ruby_core/assess/erb.rb +0 -42
  630. data/lib/contrast/extensions/ruby_core/assess/fiber.rb +0 -124
  631. data/lib/contrast/extensions/ruby_core/assess/hash.rb +0 -22
  632. data/lib/contrast/extensions/ruby_core/assess/kernel.rb +0 -95
  633. data/lib/contrast/extensions/ruby_core/assess/module.rb +0 -14
  634. data/lib/contrast/extensions/ruby_core/assess/regexp.rb +0 -206
  635. data/lib/contrast/extensions/ruby_core/assess/string.rb +0 -75
  636. data/lib/contrast/extensions/ruby_core/assess/tilt_template_trigger.rb +0 -73
  637. data/lib/contrast/extensions/ruby_core/assess/xpath_library_trigger.rb +0 -40
  638. data/lib/contrast/extensions/ruby_core/assess.rb +0 -52
  639. data/lib/contrast/extensions/ruby_core/eval_trigger.rb +0 -52
  640. data/lib/contrast/extensions/ruby_core/inventory/datastores.rb +0 -37
  641. data/lib/contrast/extensions/ruby_core/inventory.rb +0 -22
  642. data/lib/contrast/extensions/ruby_core/protect/applies_command_injection_rule.rb +0 -72
  643. data/lib/contrast/extensions/ruby_core/protect/applies_deserialization_rule.rb +0 -60
  644. data/lib/contrast/extensions/ruby_core/protect/applies_no_sqli_rule.rb +0 -83
  645. data/lib/contrast/extensions/ruby_core/protect/applies_path_traversal_rule.rb +0 -123
  646. data/lib/contrast/extensions/ruby_core/protect/applies_sqli_rule.rb +0 -65
  647. data/lib/contrast/extensions/ruby_core/protect/applies_xxe_rule.rb +0 -143
  648. data/lib/contrast/extensions/ruby_core/protect/kernel.rb +0 -30
  649. data/lib/contrast/extensions/ruby_core/protect/psych.rb +0 -7
  650. data/lib/contrast/extensions/ruby_core/thread.rb +0 -31
  651. data/lib/contrast/framework/platform_version.rb +0 -21
  652. data/lib/contrast/framework/rails_support.rb +0 -88
  653. data/lib/contrast/framework/sinatra_application_helper.rb +0 -49
  654. data/lib/contrast/framework/sinatra_support.rb +0 -94
  655. data/lib/contrast/framework/view_technologies_descriptor.rb +0 -20
  656. data/lib/contrast/internal_exception.rb +0 -8
  657. data/lib/contrast/tasks/service.rb +0 -95
  658. data/lib/contrast/utils/boolean_util.rb +0 -33
  659. data/lib/contrast/utils/cache.rb +0 -69
  660. data/lib/contrast/utils/comment_range.rb +0 -19
  661. data/lib/contrast/utils/data_store_util.rb +0 -23
  662. data/lib/contrast/utils/environment_util.rb +0 -82
  663. data/lib/contrast/utils/freeze_util.rb +0 -32
  664. data/lib/contrast/utils/gemfile_reader.rb +0 -191
  665. data/lib/contrast/utils/inventory_util.rb +0 -126
  666. data/lib/contrast/utils/performs_logging.rb +0 -152
  667. data/lib/contrast/utils/preflight_util.rb +0 -13
  668. data/lib/contrast/utils/prevent_serialization.rb +0 -52
  669. data/lib/contrast/utils/rack_assess_session_cookie.rb +0 -104
  670. data/lib/contrast/utils/rails_assess_configuration.rb +0 -95
  671. data/lib/contrast/utils/random_util.rb +0 -22
  672. data/lib/contrast/utils/ruby_ast_rewriter.rb +0 -74
  673. data/lib/contrast/utils/service_response_util.rb +0 -110
  674. data/lib/contrast/utils/service_sender_util.rb +0 -106
  675. data/lib/contrast/utils/sinatra_helper.rb +0 -55
  676. data/resources/csrf/inject.js +0 -44
  677. data/resources/factory-bot-spec/spec_helper.rb +0 -30
  678. data/resources/rubocops/kernel/catch_cop.rb +0 -37
  679. data/resources/rubocops/kernel/require_cop.rb +0 -37
  680. data/resources/rubocops/kernel/require_relative_cop.rb +0 -33
  681. data/resources/rubocops/module/autoload_cop.rb +0 -37
  682. data/resources/rubocops/module/const_defined_cop.rb +0 -37
  683. data/resources/rubocops/module/const_get_cop.rb +0 -37
  684. data/resources/rubocops/module/const_set_cop.rb +0 -37
  685. data/resources/rubocops/module/constants_cop.rb +0 -37
  686. data/resources/rubocops/module/name_cop.rb +0 -37
  687. data/resources/rubocops/object/class_cop.rb +0 -37
  688. data/resources/rubocops/object/freeze_cop.rb +0 -37
  689. data/resources/rubocops/object/frozen_cop.rb +0 -37
  690. data/resources/rubocops/object/is_a_cop.rb +0 -37
  691. data/resources/rubocops/object/method_cop.rb +0 -37
  692. data/resources/rubocops/object/respond_to_cop.rb +0 -37
  693. data/resources/rubocops/object/singleton_class_cop.rb +0 -37
  694. data/resources/rubocops/regexp/spelling_cop.rb +0 -44
  695. data/resources/rubocops/thread/new_cop.rb +0 -39
  696. data/resources/ruby-spec/ancestors_spec.rb +0 -70
  697. data/resources/ruby-spec/modulo_spec.rb +0 -831
  698. data/resources/ruby-spec/parameters_spec.rb +0 -261
  699. data/resources/ruby-spec/ruby_spec_spec_helper.rb +0 -35
  700. data/service_executables/.gitkeep +0 -0
  701. data/service_executables/VERSION +0 -1
  702. data/service_executables/linux/contrast-service +0 -0
  703. data/service_executables/mac/contrast-service +0 -0
  704. data/shared_libraries/funchook.h +0 -123
  705. data/shared_libraries/libfunchook.so +0 -0
data/funchook/configure DELETED
@@ -1,4976 +0,0 @@
1
- #! /bin/sh
2
- # Guess values for system-dependent variables and create Makefiles.
3
- # Generated by GNU Autoconf 2.69 for funchook 0.1.
4
- #
5
- #
6
- # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
- #
8
- #
9
- # This configure script is free software; the Free Software Foundation
10
- # gives unlimited permission to copy, distribute and modify it.
11
- ## -------------------- ##
12
- ## M4sh Initialization. ##
13
- ## -------------------- ##
14
-
15
- # Be more Bourne compatible
16
- DUALCASE=1; export DUALCASE # for MKS sh
17
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
- emulate sh
19
- NULLCMD=:
20
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
- # is contrary to our usage. Disable this feature.
22
- alias -g '${1+"$@"}'='"$@"'
23
- setopt NO_GLOB_SUBST
24
- else
25
- case `(set -o) 2>/dev/null` in #(
26
- *posix*) :
27
- set -o posix ;; #(
28
- *) :
29
- ;;
30
- esac
31
- fi
32
-
33
-
34
- as_nl='
35
- '
36
- export as_nl
37
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
38
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
- # Prefer a ksh shell builtin over an external printf program on Solaris,
42
- # but without wasting forks for bash or zsh.
43
- if test -z "$BASH_VERSION$ZSH_VERSION" \
44
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
- as_echo='print -r --'
46
- as_echo_n='print -rn --'
47
- elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
- as_echo='printf %s\n'
49
- as_echo_n='printf %s'
50
- else
51
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
- as_echo_n='/usr/ucb/echo -n'
54
- else
55
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
- as_echo_n_body='eval
57
- arg=$1;
58
- case $arg in #(
59
- *"$as_nl"*)
60
- expr "X$arg" : "X\\(.*\\)$as_nl";
61
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
- esac;
63
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
- '
65
- export as_echo_n_body
66
- as_echo_n='sh -c $as_echo_n_body as_echo'
67
- fi
68
- export as_echo_body
69
- as_echo='sh -c $as_echo_body as_echo'
70
- fi
71
-
72
- # The user is always right.
73
- if test "${PATH_SEPARATOR+set}" != set; then
74
- PATH_SEPARATOR=:
75
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
- PATH_SEPARATOR=';'
78
- }
79
- fi
80
-
81
-
82
- # IFS
83
- # We need space, tab and new line, in precisely that order. Quoting is
84
- # there to prevent editors from complaining about space-tab.
85
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
- # splitting by setting IFS to empty value.)
87
- IFS=" "" $as_nl"
88
-
89
- # Find who we are. Look in the path if we contain no directory separator.
90
- as_myself=
91
- case $0 in #((
92
- *[\\/]* ) as_myself=$0 ;;
93
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
- for as_dir in $PATH
95
- do
96
- IFS=$as_save_IFS
97
- test -z "$as_dir" && as_dir=.
98
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
- done
100
- IFS=$as_save_IFS
101
-
102
- ;;
103
- esac
104
- # We did not find ourselves, most probably we were run as `sh COMMAND'
105
- # in which case we are not to be found in the path.
106
- if test "x$as_myself" = x; then
107
- as_myself=$0
108
- fi
109
- if test ! -f "$as_myself"; then
110
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
- exit 1
112
- fi
113
-
114
- # Unset variables that we do not need and which cause bugs (e.g. in
115
- # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
- # suppresses any "Segmentation fault" message there. '((' could
117
- # trigger a bug in pdksh 5.2.14.
118
- for as_var in BASH_ENV ENV MAIL MAILPATH
119
- do eval test x\${$as_var+set} = xset \
120
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
- done
122
- PS1='$ '
123
- PS2='> '
124
- PS4='+ '
125
-
126
- # NLS nuisances.
127
- LC_ALL=C
128
- export LC_ALL
129
- LANGUAGE=C
130
- export LANGUAGE
131
-
132
- # CDPATH.
133
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
-
135
- # Use a proper internal environment variable to ensure we don't fall
136
- # into an infinite loop, continuously re-executing ourselves.
137
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
- _as_can_reexec=no; export _as_can_reexec;
139
- # We cannot yet assume a decent shell, so we have to provide a
140
- # neutralization value for shells without unset; and this also
141
- # works around shells that cannot unset nonexistent variables.
142
- # Preserve -v and -x to the replacement shell.
143
- BASH_ENV=/dev/null
144
- ENV=/dev/null
145
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
- case $- in # ((((
147
- *v*x* | *x*v* ) as_opts=-vx ;;
148
- *v* ) as_opts=-v ;;
149
- *x* ) as_opts=-x ;;
150
- * ) as_opts= ;;
151
- esac
152
- exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
- # Admittedly, this is quite paranoid, since all the known shells bail
154
- # out after a failed `exec'.
155
- $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
- as_fn_exit 255
157
- fi
158
- # We don't want this to propagate to other subprocesses.
159
- { _as_can_reexec=; unset _as_can_reexec;}
160
- if test "x$CONFIG_SHELL" = x; then
161
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
- emulate sh
163
- NULLCMD=:
164
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
- # is contrary to our usage. Disable this feature.
166
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
- setopt NO_GLOB_SUBST
168
- else
169
- case \`(set -o) 2>/dev/null\` in #(
170
- *posix*) :
171
- set -o posix ;; #(
172
- *) :
173
- ;;
174
- esac
175
- fi
176
- "
177
- as_required="as_fn_return () { (exit \$1); }
178
- as_fn_success () { as_fn_return 0; }
179
- as_fn_failure () { as_fn_return 1; }
180
- as_fn_ret_success () { return 0; }
181
- as_fn_ret_failure () { return 1; }
182
-
183
- exitcode=0
184
- as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
- as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
- as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
- as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
- if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
-
190
- else
191
- exitcode=1; echo positional parameters were not saved.
192
- fi
193
- test x\$exitcode = x0 || exit 1
194
- test -x / || exit 1"
195
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
- test \$(( 1 + 1 )) = 2 || exit 1"
200
- if (eval "$as_required") 2>/dev/null; then :
201
- as_have_required=yes
202
- else
203
- as_have_required=no
204
- fi
205
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
-
207
- else
208
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
- as_found=false
210
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
- do
212
- IFS=$as_save_IFS
213
- test -z "$as_dir" && as_dir=.
214
- as_found=:
215
- case $as_dir in #(
216
- /*)
217
- for as_base in sh bash ksh sh5; do
218
- # Try only shells that exist, to save several forks.
219
- as_shell=$as_dir/$as_base
220
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
- CONFIG_SHELL=$as_shell as_have_required=yes
223
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
- break 2
225
- fi
226
- fi
227
- done;;
228
- esac
229
- as_found=false
230
- done
231
- $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
- CONFIG_SHELL=$SHELL as_have_required=yes
234
- fi; }
235
- IFS=$as_save_IFS
236
-
237
-
238
- if test "x$CONFIG_SHELL" != x; then :
239
- export CONFIG_SHELL
240
- # We cannot yet assume a decent shell, so we have to provide a
241
- # neutralization value for shells without unset; and this also
242
- # works around shells that cannot unset nonexistent variables.
243
- # Preserve -v and -x to the replacement shell.
244
- BASH_ENV=/dev/null
245
- ENV=/dev/null
246
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
- case $- in # ((((
248
- *v*x* | *x*v* ) as_opts=-vx ;;
249
- *v* ) as_opts=-v ;;
250
- *x* ) as_opts=-x ;;
251
- * ) as_opts= ;;
252
- esac
253
- exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
- # Admittedly, this is quite paranoid, since all the known shells bail
255
- # out after a failed `exec'.
256
- $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
- exit 255
258
- fi
259
-
260
- if test x$as_have_required = xno; then :
261
- $as_echo "$0: This script requires a shell more modern than all"
262
- $as_echo "$0: the shells that I found on your system."
263
- if test x${ZSH_VERSION+set} = xset ; then
264
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
- else
267
- $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
- $0: including any error possibly output before this
269
- $0: message. Then install a modern shell, or manually run
270
- $0: the script under such a shell if you do have one."
271
- fi
272
- exit 1
273
- fi
274
- fi
275
- fi
276
- SHELL=${CONFIG_SHELL-/bin/sh}
277
- export SHELL
278
- # Unset more variables known to interfere with behavior of common tools.
279
- CLICOLOR_FORCE= GREP_OPTIONS=
280
- unset CLICOLOR_FORCE GREP_OPTIONS
281
-
282
- ## --------------------- ##
283
- ## M4sh Shell Functions. ##
284
- ## --------------------- ##
285
- # as_fn_unset VAR
286
- # ---------------
287
- # Portably unset VAR.
288
- as_fn_unset ()
289
- {
290
- { eval $1=; unset $1;}
291
- }
292
- as_unset=as_fn_unset
293
-
294
- # as_fn_set_status STATUS
295
- # -----------------------
296
- # Set $? to STATUS, without forking.
297
- as_fn_set_status ()
298
- {
299
- return $1
300
- } # as_fn_set_status
301
-
302
- # as_fn_exit STATUS
303
- # -----------------
304
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
- as_fn_exit ()
306
- {
307
- set +e
308
- as_fn_set_status $1
309
- exit $1
310
- } # as_fn_exit
311
-
312
- # as_fn_mkdir_p
313
- # -------------
314
- # Create "$as_dir" as a directory, including parents if necessary.
315
- as_fn_mkdir_p ()
316
- {
317
-
318
- case $as_dir in #(
319
- -*) as_dir=./$as_dir;;
320
- esac
321
- test -d "$as_dir" || eval $as_mkdir_p || {
322
- as_dirs=
323
- while :; do
324
- case $as_dir in #(
325
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
- *) as_qdir=$as_dir;;
327
- esac
328
- as_dirs="'$as_qdir' $as_dirs"
329
- as_dir=`$as_dirname -- "$as_dir" ||
330
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
- X"$as_dir" : 'X\(//\)[^/]' \| \
332
- X"$as_dir" : 'X\(//\)$' \| \
333
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
- $as_echo X"$as_dir" |
335
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
- s//\1/
337
- q
338
- }
339
- /^X\(\/\/\)[^/].*/{
340
- s//\1/
341
- q
342
- }
343
- /^X\(\/\/\)$/{
344
- s//\1/
345
- q
346
- }
347
- /^X\(\/\).*/{
348
- s//\1/
349
- q
350
- }
351
- s/.*/./; q'`
352
- test -d "$as_dir" && break
353
- done
354
- test -z "$as_dirs" || eval "mkdir $as_dirs"
355
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
-
357
-
358
- } # as_fn_mkdir_p
359
-
360
- # as_fn_executable_p FILE
361
- # -----------------------
362
- # Test if FILE is an executable regular file.
363
- as_fn_executable_p ()
364
- {
365
- test -f "$1" && test -x "$1"
366
- } # as_fn_executable_p
367
- # as_fn_append VAR VALUE
368
- # ----------------------
369
- # Append the text in VALUE to the end of the definition contained in VAR. Take
370
- # advantage of any shell optimizations that allow amortized linear growth over
371
- # repeated appends, instead of the typical quadratic growth present in naive
372
- # implementations.
373
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
- eval 'as_fn_append ()
375
- {
376
- eval $1+=\$2
377
- }'
378
- else
379
- as_fn_append ()
380
- {
381
- eval $1=\$$1\$2
382
- }
383
- fi # as_fn_append
384
-
385
- # as_fn_arith ARG...
386
- # ------------------
387
- # Perform arithmetic evaluation on the ARGs, and store the result in the
388
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
389
- # must be portable across $(()) and expr.
390
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
- eval 'as_fn_arith ()
392
- {
393
- as_val=$(( $* ))
394
- }'
395
- else
396
- as_fn_arith ()
397
- {
398
- as_val=`expr "$@" || test $? -eq 1`
399
- }
400
- fi # as_fn_arith
401
-
402
-
403
- # as_fn_error STATUS ERROR [LINENO LOG_FD]
404
- # ----------------------------------------
405
- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
- # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
- # script with STATUS, using 1 if that was 0.
408
- as_fn_error ()
409
- {
410
- as_status=$1; test $as_status -eq 0 && as_status=1
411
- if test "$4"; then
412
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
- fi
415
- $as_echo "$as_me: error: $2" >&2
416
- as_fn_exit $as_status
417
- } # as_fn_error
418
-
419
- if expr a : '\(a\)' >/dev/null 2>&1 &&
420
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
- as_expr=expr
422
- else
423
- as_expr=false
424
- fi
425
-
426
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
- as_basename=basename
428
- else
429
- as_basename=false
430
- fi
431
-
432
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
- as_dirname=dirname
434
- else
435
- as_dirname=false
436
- fi
437
-
438
- as_me=`$as_basename -- "$0" ||
439
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
- X"$0" : 'X\(//\)$' \| \
441
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
- $as_echo X/"$0" |
443
- sed '/^.*\/\([^/][^/]*\)\/*$/{
444
- s//\1/
445
- q
446
- }
447
- /^X\/\(\/\/\)$/{
448
- s//\1/
449
- q
450
- }
451
- /^X\/\(\/\).*/{
452
- s//\1/
453
- q
454
- }
455
- s/.*/./; q'`
456
-
457
- # Avoid depending upon Character Ranges.
458
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
- as_cr_digits='0123456789'
462
- as_cr_alnum=$as_cr_Letters$as_cr_digits
463
-
464
-
465
- as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
- as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470
- sed -n '
471
- p
472
- /[$]LINENO/=
473
- ' <$as_myself |
474
- sed '
475
- s/[$]LINENO.*/&-/
476
- t lineno
477
- b
478
- :lineno
479
- N
480
- :loop
481
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
- t loop
483
- s/-\n.*//
484
- ' >$as_me.lineno &&
485
- chmod +x "$as_me.lineno" ||
486
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
-
488
- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
- # already done that, so ensure we don't try to do so again and fall
490
- # in an infinite loop. This has already happened in practice.
491
- _as_can_reexec=no; export _as_can_reexec
492
- # Don't try to exec as it changes $[0], causing all sort of problems
493
- # (the dirname of $[0] is not the place where we might find the
494
- # original and so on. Autoconf is especially sensitive to this).
495
- . "./$as_me.lineno"
496
- # Exit status is that of the last command.
497
- exit
498
- }
499
-
500
- ECHO_C= ECHO_N= ECHO_T=
501
- case `echo -n x` in #(((((
502
- -n*)
503
- case `echo 'xy\c'` in
504
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505
- xy) ECHO_C='\c';;
506
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
- ECHO_T=' ';;
508
- esac;;
509
- *)
510
- ECHO_N='-n';;
511
- esac
512
-
513
- rm -f conf$$ conf$$.exe conf$$.file
514
- if test -d conf$$.dir; then
515
- rm -f conf$$.dir/conf$$.file
516
- else
517
- rm -f conf$$.dir
518
- mkdir conf$$.dir 2>/dev/null
519
- fi
520
- if (echo >conf$$.file) 2>/dev/null; then
521
- if ln -s conf$$.file conf$$ 2>/dev/null; then
522
- as_ln_s='ln -s'
523
- # ... but there are two gotchas:
524
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
- # In both cases, we have to default to `cp -pR'.
527
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
- as_ln_s='cp -pR'
529
- elif ln conf$$.file conf$$ 2>/dev/null; then
530
- as_ln_s=ln
531
- else
532
- as_ln_s='cp -pR'
533
- fi
534
- else
535
- as_ln_s='cp -pR'
536
- fi
537
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
- rmdir conf$$.dir 2>/dev/null
539
-
540
- if mkdir -p . 2>/dev/null; then
541
- as_mkdir_p='mkdir -p "$as_dir"'
542
- else
543
- test -d ./-p && rmdir ./-p
544
- as_mkdir_p=false
545
- fi
546
-
547
- as_test_x='test -x'
548
- as_executable_p=as_fn_executable_p
549
-
550
- # Sed expression to map a string onto a valid CPP name.
551
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
-
553
- # Sed expression to map a string onto a valid variable name.
554
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
-
556
-
557
- test -n "$DJDIR" || exec 7<&0 </dev/null
558
- exec 6>&1
559
-
560
- # Name of the host.
561
- # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
- # so uname gets run too.
563
- ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
-
565
- #
566
- # Initializations.
567
- #
568
- ac_default_prefix=/usr/local
569
- ac_clean_files=
570
- ac_config_libobj_dir=.
571
- LIBOBJS=
572
- cross_compiling=no
573
- subdirs=
574
- MFLAGS=
575
- MAKEFLAGS=
576
-
577
- # Identity of this package.
578
- PACKAGE_NAME='funchook'
579
- PACKAGE_TARNAME='funchook'
580
- PACKAGE_VERSION='0.1'
581
- PACKAGE_STRING='funchook 0.1'
582
- PACKAGE_BUGREPORT=''
583
- PACKAGE_URL=''
584
-
585
- # Factoring default headers for most tests.
586
- ac_includes_default="\
587
- #include <stdio.h>
588
- #ifdef HAVE_SYS_TYPES_H
589
- # include <sys/types.h>
590
- #endif
591
- #ifdef HAVE_SYS_STAT_H
592
- # include <sys/stat.h>
593
- #endif
594
- #ifdef STDC_HEADERS
595
- # include <stdlib.h>
596
- # include <stddef.h>
597
- #else
598
- # ifdef HAVE_STDLIB_H
599
- # include <stdlib.h>
600
- # endif
601
- #endif
602
- #ifdef HAVE_STRING_H
603
- # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604
- # include <memory.h>
605
- # endif
606
- # include <string.h>
607
- #endif
608
- #ifdef HAVE_STRINGS_H
609
- # include <strings.h>
610
- #endif
611
- #ifdef HAVE_INTTYPES_H
612
- # include <inttypes.h>
613
- #endif
614
- #ifdef HAVE_STDINT_H
615
- # include <stdint.h>
616
- #endif
617
- #ifdef HAVE_UNISTD_H
618
- # include <unistd.h>
619
- #endif"
620
-
621
- ac_subst_vars='LTLIBOBJS
622
- LIBOBJS
623
- IF_OSX
624
- IF_LINUX
625
- IF_WIN32
626
- PIC_CFLAGS
627
- LINK_SHARED
628
- LIBFUNCHOOK_SO
629
- FUNCHOOK_OS
630
- FUNCHOOK_CPU
631
- host_os
632
- host_vendor
633
- host_cpu
634
- host
635
- build_os
636
- build_vendor
637
- build_cpu
638
- build
639
- EGREP
640
- GREP
641
- CPP
642
- OBJEXT
643
- EXEEXT
644
- ac_ct_CC
645
- CPPFLAGS
646
- LDFLAGS
647
- CFLAGS
648
- CC
649
- target_alias
650
- host_alias
651
- build_alias
652
- LIBS
653
- ECHO_T
654
- ECHO_N
655
- ECHO_C
656
- DEFS
657
- mandir
658
- localedir
659
- libdir
660
- psdir
661
- pdfdir
662
- dvidir
663
- htmldir
664
- infodir
665
- docdir
666
- oldincludedir
667
- includedir
668
- runstatedir
669
- localstatedir
670
- sharedstatedir
671
- sysconfdir
672
- datadir
673
- datarootdir
674
- libexecdir
675
- sbindir
676
- bindir
677
- program_transform_name
678
- prefix
679
- exec_prefix
680
- PACKAGE_URL
681
- PACKAGE_BUGREPORT
682
- PACKAGE_STRING
683
- PACKAGE_VERSION
684
- PACKAGE_TARNAME
685
- PACKAGE_NAME
686
- PATH_SEPARATOR
687
- SHELL'
688
- ac_subst_files=''
689
- ac_user_opts='
690
- enable_option_checking
691
- '
692
- ac_precious_vars='build_alias
693
- host_alias
694
- target_alias
695
- CC
696
- CFLAGS
697
- LDFLAGS
698
- LIBS
699
- CPPFLAGS
700
- CPP'
701
-
702
-
703
- # Initialize some variables set by options.
704
- ac_init_help=
705
- ac_init_version=false
706
- ac_unrecognized_opts=
707
- ac_unrecognized_sep=
708
- # The variables have the same names as the options, with
709
- # dashes changed to underlines.
710
- cache_file=/dev/null
711
- exec_prefix=NONE
712
- no_create=
713
- no_recursion=
714
- prefix=NONE
715
- program_prefix=NONE
716
- program_suffix=NONE
717
- program_transform_name=s,x,x,
718
- silent=
719
- site=
720
- srcdir=
721
- verbose=
722
- x_includes=NONE
723
- x_libraries=NONE
724
-
725
- # Installation directory options.
726
- # These are left unexpanded so users can "make install exec_prefix=/foo"
727
- # and all the variables that are supposed to be based on exec_prefix
728
- # by default will actually change.
729
- # Use braces instead of parens because sh, perl, etc. also accept them.
730
- # (The list follows the same order as the GNU Coding Standards.)
731
- bindir='${exec_prefix}/bin'
732
- sbindir='${exec_prefix}/sbin'
733
- libexecdir='${exec_prefix}/libexec'
734
- datarootdir='${prefix}/share'
735
- datadir='${datarootdir}'
736
- sysconfdir='${prefix}/etc'
737
- sharedstatedir='${prefix}/com'
738
- localstatedir='${prefix}/var'
739
- runstatedir='${localstatedir}/run'
740
- includedir='${prefix}/include'
741
- oldincludedir='/usr/include'
742
- docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
743
- infodir='${datarootdir}/info'
744
- htmldir='${docdir}'
745
- dvidir='${docdir}'
746
- pdfdir='${docdir}'
747
- psdir='${docdir}'
748
- libdir='${exec_prefix}/lib'
749
- localedir='${datarootdir}/locale'
750
- mandir='${datarootdir}/man'
751
-
752
- ac_prev=
753
- ac_dashdash=
754
- for ac_option
755
- do
756
- # If the previous option needs an argument, assign it.
757
- if test -n "$ac_prev"; then
758
- eval $ac_prev=\$ac_option
759
- ac_prev=
760
- continue
761
- fi
762
-
763
- case $ac_option in
764
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765
- *=) ac_optarg= ;;
766
- *) ac_optarg=yes ;;
767
- esac
768
-
769
- # Accept the important Cygnus configure options, so we can diagnose typos.
770
-
771
- case $ac_dashdash$ac_option in
772
- --)
773
- ac_dashdash=yes ;;
774
-
775
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
776
- ac_prev=bindir ;;
777
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778
- bindir=$ac_optarg ;;
779
-
780
- -build | --build | --buil | --bui | --bu)
781
- ac_prev=build_alias ;;
782
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783
- build_alias=$ac_optarg ;;
784
-
785
- -cache-file | --cache-file | --cache-fil | --cache-fi \
786
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787
- ac_prev=cache_file ;;
788
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790
- cache_file=$ac_optarg ;;
791
-
792
- --config-cache | -C)
793
- cache_file=config.cache ;;
794
-
795
- -datadir | --datadir | --datadi | --datad)
796
- ac_prev=datadir ;;
797
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
798
- datadir=$ac_optarg ;;
799
-
800
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801
- | --dataroo | --dataro | --datar)
802
- ac_prev=datarootdir ;;
803
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805
- datarootdir=$ac_optarg ;;
806
-
807
- -disable-* | --disable-*)
808
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809
- # Reject names that are not valid shell variable names.
810
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811
- as_fn_error $? "invalid feature name: $ac_useropt"
812
- ac_useropt_orig=$ac_useropt
813
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814
- case $ac_user_opts in
815
- *"
816
- "enable_$ac_useropt"
817
- "*) ;;
818
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
819
- ac_unrecognized_sep=', ';;
820
- esac
821
- eval enable_$ac_useropt=no ;;
822
-
823
- -docdir | --docdir | --docdi | --doc | --do)
824
- ac_prev=docdir ;;
825
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826
- docdir=$ac_optarg ;;
827
-
828
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829
- ac_prev=dvidir ;;
830
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831
- dvidir=$ac_optarg ;;
832
-
833
- -enable-* | --enable-*)
834
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835
- # Reject names that are not valid shell variable names.
836
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837
- as_fn_error $? "invalid feature name: $ac_useropt"
838
- ac_useropt_orig=$ac_useropt
839
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840
- case $ac_user_opts in
841
- *"
842
- "enable_$ac_useropt"
843
- "*) ;;
844
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
845
- ac_unrecognized_sep=', ';;
846
- esac
847
- eval enable_$ac_useropt=\$ac_optarg ;;
848
-
849
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851
- | --exec | --exe | --ex)
852
- ac_prev=exec_prefix ;;
853
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855
- | --exec=* | --exe=* | --ex=*)
856
- exec_prefix=$ac_optarg ;;
857
-
858
- -gas | --gas | --ga | --g)
859
- # Obsolete; use --with-gas.
860
- with_gas=yes ;;
861
-
862
- -help | --help | --hel | --he | -h)
863
- ac_init_help=long ;;
864
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865
- ac_init_help=recursive ;;
866
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867
- ac_init_help=short ;;
868
-
869
- -host | --host | --hos | --ho)
870
- ac_prev=host_alias ;;
871
- -host=* | --host=* | --hos=* | --ho=*)
872
- host_alias=$ac_optarg ;;
873
-
874
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875
- ac_prev=htmldir ;;
876
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877
- | --ht=*)
878
- htmldir=$ac_optarg ;;
879
-
880
- -includedir | --includedir | --includedi | --included | --include \
881
- | --includ | --inclu | --incl | --inc)
882
- ac_prev=includedir ;;
883
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884
- | --includ=* | --inclu=* | --incl=* | --inc=*)
885
- includedir=$ac_optarg ;;
886
-
887
- -infodir | --infodir | --infodi | --infod | --info | --inf)
888
- ac_prev=infodir ;;
889
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890
- infodir=$ac_optarg ;;
891
-
892
- -libdir | --libdir | --libdi | --libd)
893
- ac_prev=libdir ;;
894
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
895
- libdir=$ac_optarg ;;
896
-
897
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898
- | --libexe | --libex | --libe)
899
- ac_prev=libexecdir ;;
900
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901
- | --libexe=* | --libex=* | --libe=*)
902
- libexecdir=$ac_optarg ;;
903
-
904
- -localedir | --localedir | --localedi | --localed | --locale)
905
- ac_prev=localedir ;;
906
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907
- localedir=$ac_optarg ;;
908
-
909
- -localstatedir | --localstatedir | --localstatedi | --localstated \
910
- | --localstate | --localstat | --localsta | --localst | --locals)
911
- ac_prev=localstatedir ;;
912
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914
- localstatedir=$ac_optarg ;;
915
-
916
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917
- ac_prev=mandir ;;
918
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919
- mandir=$ac_optarg ;;
920
-
921
- -nfp | --nfp | --nf)
922
- # Obsolete; use --without-fp.
923
- with_fp=no ;;
924
-
925
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926
- | --no-cr | --no-c | -n)
927
- no_create=yes ;;
928
-
929
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931
- no_recursion=yes ;;
932
-
933
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935
- | --oldin | --oldi | --old | --ol | --o)
936
- ac_prev=oldincludedir ;;
937
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940
- oldincludedir=$ac_optarg ;;
941
-
942
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943
- ac_prev=prefix ;;
944
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945
- prefix=$ac_optarg ;;
946
-
947
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
948
- | --program-pre | --program-pr | --program-p)
949
- ac_prev=program_prefix ;;
950
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
951
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952
- program_prefix=$ac_optarg ;;
953
-
954
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
955
- | --program-suf | --program-su | --program-s)
956
- ac_prev=program_suffix ;;
957
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
958
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959
- program_suffix=$ac_optarg ;;
960
-
961
- -program-transform-name | --program-transform-name \
962
- | --program-transform-nam | --program-transform-na \
963
- | --program-transform-n | --program-transform- \
964
- | --program-transform | --program-transfor \
965
- | --program-transfo | --program-transf \
966
- | --program-trans | --program-tran \
967
- | --progr-tra | --program-tr | --program-t)
968
- ac_prev=program_transform_name ;;
969
- -program-transform-name=* | --program-transform-name=* \
970
- | --program-transform-nam=* | --program-transform-na=* \
971
- | --program-transform-n=* | --program-transform-=* \
972
- | --program-transform=* | --program-transfor=* \
973
- | --program-transfo=* | --program-transf=* \
974
- | --program-trans=* | --program-tran=* \
975
- | --progr-tra=* | --program-tr=* | --program-t=*)
976
- program_transform_name=$ac_optarg ;;
977
-
978
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979
- ac_prev=pdfdir ;;
980
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981
- pdfdir=$ac_optarg ;;
982
-
983
- -psdir | --psdir | --psdi | --psd | --ps)
984
- ac_prev=psdir ;;
985
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986
- psdir=$ac_optarg ;;
987
-
988
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989
- | -silent | --silent | --silen | --sile | --sil)
990
- silent=yes ;;
991
-
992
- -runstatedir | --runstatedir | --runstatedi | --runstated \
993
- | --runstate | --runstat | --runsta | --runst | --runs \
994
- | --run | --ru | --r)
995
- ac_prev=runstatedir ;;
996
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
997
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
998
- | --run=* | --ru=* | --r=*)
999
- runstatedir=$ac_optarg ;;
1000
-
1001
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002
- ac_prev=sbindir ;;
1003
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004
- | --sbi=* | --sb=*)
1005
- sbindir=$ac_optarg ;;
1006
-
1007
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009
- | --sharedst | --shareds | --shared | --share | --shar \
1010
- | --sha | --sh)
1011
- ac_prev=sharedstatedir ;;
1012
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015
- | --sha=* | --sh=*)
1016
- sharedstatedir=$ac_optarg ;;
1017
-
1018
- -site | --site | --sit)
1019
- ac_prev=site ;;
1020
- -site=* | --site=* | --sit=*)
1021
- site=$ac_optarg ;;
1022
-
1023
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024
- ac_prev=srcdir ;;
1025
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026
- srcdir=$ac_optarg ;;
1027
-
1028
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029
- | --syscon | --sysco | --sysc | --sys | --sy)
1030
- ac_prev=sysconfdir ;;
1031
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033
- sysconfdir=$ac_optarg ;;
1034
-
1035
- -target | --target | --targe | --targ | --tar | --ta | --t)
1036
- ac_prev=target_alias ;;
1037
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038
- target_alias=$ac_optarg ;;
1039
-
1040
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041
- verbose=yes ;;
1042
-
1043
- -version | --version | --versio | --versi | --vers | -V)
1044
- ac_init_version=: ;;
1045
-
1046
- -with-* | --with-*)
1047
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048
- # Reject names that are not valid shell variable names.
1049
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050
- as_fn_error $? "invalid package name: $ac_useropt"
1051
- ac_useropt_orig=$ac_useropt
1052
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053
- case $ac_user_opts in
1054
- *"
1055
- "with_$ac_useropt"
1056
- "*) ;;
1057
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1058
- ac_unrecognized_sep=', ';;
1059
- esac
1060
- eval with_$ac_useropt=\$ac_optarg ;;
1061
-
1062
- -without-* | --without-*)
1063
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064
- # Reject names that are not valid shell variable names.
1065
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066
- as_fn_error $? "invalid package name: $ac_useropt"
1067
- ac_useropt_orig=$ac_useropt
1068
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069
- case $ac_user_opts in
1070
- *"
1071
- "with_$ac_useropt"
1072
- "*) ;;
1073
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074
- ac_unrecognized_sep=', ';;
1075
- esac
1076
- eval with_$ac_useropt=no ;;
1077
-
1078
- --x)
1079
- # Obsolete; use --with-x.
1080
- with_x=yes ;;
1081
-
1082
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083
- | --x-incl | --x-inc | --x-in | --x-i)
1084
- ac_prev=x_includes ;;
1085
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087
- x_includes=$ac_optarg ;;
1088
-
1089
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091
- ac_prev=x_libraries ;;
1092
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094
- x_libraries=$ac_optarg ;;
1095
-
1096
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
1097
- Try \`$0 --help' for more information"
1098
- ;;
1099
-
1100
- *=*)
1101
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102
- # Reject names that are not valid shell variable names.
1103
- case $ac_envvar in #(
1104
- '' | [0-9]* | *[!_$as_cr_alnum]* )
1105
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1106
- esac
1107
- eval $ac_envvar=\$ac_optarg
1108
- export $ac_envvar ;;
1109
-
1110
- *)
1111
- # FIXME: should be removed in autoconf 3.0.
1112
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1116
- ;;
1117
-
1118
- esac
1119
- done
1120
-
1121
- if test -n "$ac_prev"; then
1122
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123
- as_fn_error $? "missing argument to $ac_option"
1124
- fi
1125
-
1126
- if test -n "$ac_unrecognized_opts"; then
1127
- case $enable_option_checking in
1128
- no) ;;
1129
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1130
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1131
- esac
1132
- fi
1133
-
1134
- # Check all directory arguments for consistency.
1135
- for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136
- datadir sysconfdir sharedstatedir localstatedir includedir \
1137
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138
- libdir localedir mandir runstatedir
1139
- do
1140
- eval ac_val=\$$ac_var
1141
- # Remove trailing slashes.
1142
- case $ac_val in
1143
- */ )
1144
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145
- eval $ac_var=\$ac_val;;
1146
- esac
1147
- # Be sure to have absolute directory names.
1148
- case $ac_val in
1149
- [\\/$]* | ?:[\\/]* ) continue;;
1150
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151
- esac
1152
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1153
- done
1154
-
1155
- # There might be people who depend on the old broken behavior: `$host'
1156
- # used to hold the argument of --host etc.
1157
- # FIXME: To remove some day.
1158
- build=$build_alias
1159
- host=$host_alias
1160
- target=$target_alias
1161
-
1162
- # FIXME: To remove some day.
1163
- if test "x$host_alias" != x; then
1164
- if test "x$build_alias" = x; then
1165
- cross_compiling=maybe
1166
- elif test "x$build_alias" != "x$host_alias"; then
1167
- cross_compiling=yes
1168
- fi
1169
- fi
1170
-
1171
- ac_tool_prefix=
1172
- test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
-
1174
- test "$silent" = yes && exec 6>/dev/null
1175
-
1176
-
1177
- ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178
- ac_ls_di=`ls -di .` &&
1179
- ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180
- as_fn_error $? "working directory cannot be determined"
1181
- test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182
- as_fn_error $? "pwd does not report name of working directory"
1183
-
1184
-
1185
- # Find the source files, if location was not specified.
1186
- if test -z "$srcdir"; then
1187
- ac_srcdir_defaulted=yes
1188
- # Try the directory containing this script, then the parent directory.
1189
- ac_confdir=`$as_dirname -- "$as_myself" ||
1190
- $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191
- X"$as_myself" : 'X\(//\)[^/]' \| \
1192
- X"$as_myself" : 'X\(//\)$' \| \
1193
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194
- $as_echo X"$as_myself" |
1195
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196
- s//\1/
1197
- q
1198
- }
1199
- /^X\(\/\/\)[^/].*/{
1200
- s//\1/
1201
- q
1202
- }
1203
- /^X\(\/\/\)$/{
1204
- s//\1/
1205
- q
1206
- }
1207
- /^X\(\/\).*/{
1208
- s//\1/
1209
- q
1210
- }
1211
- s/.*/./; q'`
1212
- srcdir=$ac_confdir
1213
- if test ! -r "$srcdir/$ac_unique_file"; then
1214
- srcdir=..
1215
- fi
1216
- else
1217
- ac_srcdir_defaulted=no
1218
- fi
1219
- if test ! -r "$srcdir/$ac_unique_file"; then
1220
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1222
- fi
1223
- ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224
- ac_abs_confdir=`(
1225
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1226
- pwd)`
1227
- # When building in place, set srcdir=.
1228
- if test "$ac_abs_confdir" = "$ac_pwd"; then
1229
- srcdir=.
1230
- fi
1231
- # Remove unnecessary trailing slashes from srcdir.
1232
- # Double slashes in file names in object file debugging info
1233
- # mess up M-x gdb in Emacs.
1234
- case $srcdir in
1235
- */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236
- esac
1237
- for ac_var in $ac_precious_vars; do
1238
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239
- eval ac_env_${ac_var}_value=\$${ac_var}
1240
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242
- done
1243
-
1244
- #
1245
- # Report the --help message.
1246
- #
1247
- if test "$ac_init_help" = "long"; then
1248
- # Omit some internal or obsolete options to make the list less imposing.
1249
- # This message is too long to be a string in the A/UX 3.1 sh.
1250
- cat <<_ACEOF
1251
- \`configure' configures funchook 0.1 to adapt to many kinds of systems.
1252
-
1253
- Usage: $0 [OPTION]... [VAR=VALUE]...
1254
-
1255
- To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256
- VAR=VALUE. See below for descriptions of some of the useful variables.
1257
-
1258
- Defaults for the options are specified in brackets.
1259
-
1260
- Configuration:
1261
- -h, --help display this help and exit
1262
- --help=short display options specific to this package
1263
- --help=recursive display the short help of all the included packages
1264
- -V, --version display version information and exit
1265
- -q, --quiet, --silent do not print \`checking ...' messages
1266
- --cache-file=FILE cache test results in FILE [disabled]
1267
- -C, --config-cache alias for \`--cache-file=config.cache'
1268
- -n, --no-create do not create output files
1269
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
-
1271
- Installation directories:
1272
- --prefix=PREFIX install architecture-independent files in PREFIX
1273
- [$ac_default_prefix]
1274
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275
- [PREFIX]
1276
-
1277
- By default, \`make install' will install all the files in
1278
- \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279
- an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280
- for instance \`--prefix=\$HOME'.
1281
-
1282
- For better control, use the options below.
1283
-
1284
- Fine tuning of the installation directories:
1285
- --bindir=DIR user executables [EPREFIX/bin]
1286
- --sbindir=DIR system admin executables [EPREFIX/sbin]
1287
- --libexecdir=DIR program executables [EPREFIX/libexec]
1288
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1292
- --libdir=DIR object code libraries [EPREFIX/lib]
1293
- --includedir=DIR C header files [PREFIX/include]
1294
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297
- --infodir=DIR info documentation [DATAROOTDIR/info]
1298
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299
- --mandir=DIR man documentation [DATAROOTDIR/man]
1300
- --docdir=DIR documentation root [DATAROOTDIR/doc/funchook]
1301
- --htmldir=DIR html documentation [DOCDIR]
1302
- --dvidir=DIR dvi documentation [DOCDIR]
1303
- --pdfdir=DIR pdf documentation [DOCDIR]
1304
- --psdir=DIR ps documentation [DOCDIR]
1305
- _ACEOF
1306
-
1307
- cat <<\_ACEOF
1308
-
1309
- System types:
1310
- --build=BUILD configure for building on BUILD [guessed]
1311
- --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312
- _ACEOF
1313
- fi
1314
-
1315
- if test -n "$ac_init_help"; then
1316
- case $ac_init_help in
1317
- short | recursive ) echo "Configuration of funchook 0.1:";;
1318
- esac
1319
- cat <<\_ACEOF
1320
-
1321
- Some influential environment variables:
1322
- CC C compiler command
1323
- CFLAGS C compiler flags
1324
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325
- nonstandard directory <lib dir>
1326
- LIBS libraries to pass to the linker, e.g. -l<library>
1327
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328
- you have headers in a nonstandard directory <include dir>
1329
- CPP C preprocessor
1330
-
1331
- Use these variables to override the choices made by `configure' or to help
1332
- it to find libraries and programs with nonstandard names/locations.
1333
-
1334
- Report bugs to the package provider.
1335
- _ACEOF
1336
- ac_status=$?
1337
- fi
1338
-
1339
- if test "$ac_init_help" = "recursive"; then
1340
- # If there are subdirs, report their specific --help.
1341
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1342
- test -d "$ac_dir" ||
1343
- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1344
- continue
1345
- ac_builddir=.
1346
-
1347
- case "$ac_dir" in
1348
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349
- *)
1350
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1351
- # A ".." for each directory in $ac_dir_suffix.
1352
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1353
- case $ac_top_builddir_sub in
1354
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1356
- esac ;;
1357
- esac
1358
- ac_abs_top_builddir=$ac_pwd
1359
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
1360
- # for backward compatibility:
1361
- ac_top_builddir=$ac_top_build_prefix
1362
-
1363
- case $srcdir in
1364
- .) # We are building in place.
1365
- ac_srcdir=.
1366
- ac_top_srcdir=$ac_top_builddir_sub
1367
- ac_abs_top_srcdir=$ac_pwd ;;
1368
- [\\/]* | ?:[\\/]* ) # Absolute name.
1369
- ac_srcdir=$srcdir$ac_dir_suffix;
1370
- ac_top_srcdir=$srcdir
1371
- ac_abs_top_srcdir=$srcdir ;;
1372
- *) # Relative name.
1373
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1374
- ac_top_srcdir=$ac_top_build_prefix$srcdir
1375
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1376
- esac
1377
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
-
1379
- cd "$ac_dir" || { ac_status=$?; continue; }
1380
- # Check for guested configure.
1381
- if test -f "$ac_srcdir/configure.gnu"; then
1382
- echo &&
1383
- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1384
- elif test -f "$ac_srcdir/configure"; then
1385
- echo &&
1386
- $SHELL "$ac_srcdir/configure" --help=recursive
1387
- else
1388
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389
- fi || ac_status=$?
1390
- cd "$ac_pwd" || { ac_status=$?; break; }
1391
- done
1392
- fi
1393
-
1394
- test -n "$ac_init_help" && exit $ac_status
1395
- if $ac_init_version; then
1396
- cat <<\_ACEOF
1397
- funchook configure 0.1
1398
- generated by GNU Autoconf 2.69
1399
-
1400
- Copyright (C) 2012 Free Software Foundation, Inc.
1401
- This configure script is free software; the Free Software Foundation
1402
- gives unlimited permission to copy, distribute and modify it.
1403
- _ACEOF
1404
- exit
1405
- fi
1406
-
1407
- ## ------------------------ ##
1408
- ## Autoconf initialization. ##
1409
- ## ------------------------ ##
1410
-
1411
- # ac_fn_c_try_compile LINENO
1412
- # --------------------------
1413
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
1414
- ac_fn_c_try_compile ()
1415
- {
1416
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1417
- rm -f conftest.$ac_objext
1418
- if { { ac_try="$ac_compile"
1419
- case "(($ac_try" in
1420
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1421
- *) ac_try_echo=$ac_try;;
1422
- esac
1423
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1424
- $as_echo "$ac_try_echo"; } >&5
1425
- (eval "$ac_compile") 2>conftest.err
1426
- ac_status=$?
1427
- if test -s conftest.err; then
1428
- grep -v '^ *+' conftest.err >conftest.er1
1429
- cat conftest.er1 >&5
1430
- mv -f conftest.er1 conftest.err
1431
- fi
1432
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1433
- test $ac_status = 0; } && {
1434
- test -z "$ac_c_werror_flag" ||
1435
- test ! -s conftest.err
1436
- } && test -s conftest.$ac_objext; then :
1437
- ac_retval=0
1438
- else
1439
- $as_echo "$as_me: failed program was:" >&5
1440
- sed 's/^/| /' conftest.$ac_ext >&5
1441
-
1442
- ac_retval=1
1443
- fi
1444
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1445
- as_fn_set_status $ac_retval
1446
-
1447
- } # ac_fn_c_try_compile
1448
-
1449
- # ac_fn_c_try_cpp LINENO
1450
- # ----------------------
1451
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1452
- ac_fn_c_try_cpp ()
1453
- {
1454
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455
- if { { ac_try="$ac_cpp conftest.$ac_ext"
1456
- case "(($ac_try" in
1457
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458
- *) ac_try_echo=$ac_try;;
1459
- esac
1460
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461
- $as_echo "$ac_try_echo"; } >&5
1462
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1463
- ac_status=$?
1464
- if test -s conftest.err; then
1465
- grep -v '^ *+' conftest.err >conftest.er1
1466
- cat conftest.er1 >&5
1467
- mv -f conftest.er1 conftest.err
1468
- fi
1469
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470
- test $ac_status = 0; } > conftest.i && {
1471
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1472
- test ! -s conftest.err
1473
- }; then :
1474
- ac_retval=0
1475
- else
1476
- $as_echo "$as_me: failed program was:" >&5
1477
- sed 's/^/| /' conftest.$ac_ext >&5
1478
-
1479
- ac_retval=1
1480
- fi
1481
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482
- as_fn_set_status $ac_retval
1483
-
1484
- } # ac_fn_c_try_cpp
1485
-
1486
- # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1487
- # -------------------------------------------------------
1488
- # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1489
- # the include files in INCLUDES and setting the cache variable VAR
1490
- # accordingly.
1491
- ac_fn_c_check_header_mongrel ()
1492
- {
1493
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494
- if eval \${$3+:} false; then :
1495
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1496
- $as_echo_n "checking for $2... " >&6; }
1497
- if eval \${$3+:} false; then :
1498
- $as_echo_n "(cached) " >&6
1499
- fi
1500
- eval ac_res=\$$3
1501
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1502
- $as_echo "$ac_res" >&6; }
1503
- else
1504
- # Is the header compilable?
1505
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1506
- $as_echo_n "checking $2 usability... " >&6; }
1507
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508
- /* end confdefs.h. */
1509
- $4
1510
- #include <$2>
1511
- _ACEOF
1512
- if ac_fn_c_try_compile "$LINENO"; then :
1513
- ac_header_compiler=yes
1514
- else
1515
- ac_header_compiler=no
1516
- fi
1517
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1518
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1519
- $as_echo "$ac_header_compiler" >&6; }
1520
-
1521
- # Is the header present?
1522
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1523
- $as_echo_n "checking $2 presence... " >&6; }
1524
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525
- /* end confdefs.h. */
1526
- #include <$2>
1527
- _ACEOF
1528
- if ac_fn_c_try_cpp "$LINENO"; then :
1529
- ac_header_preproc=yes
1530
- else
1531
- ac_header_preproc=no
1532
- fi
1533
- rm -f conftest.err conftest.i conftest.$ac_ext
1534
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1535
- $as_echo "$ac_header_preproc" >&6; }
1536
-
1537
- # So? What about this header?
1538
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1539
- yes:no: )
1540
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1541
- $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1542
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1543
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1544
- ;;
1545
- no:yes:* )
1546
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1547
- $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1548
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1549
- $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1550
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1551
- $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1552
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1553
- $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1554
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1555
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1556
- ;;
1557
- esac
1558
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559
- $as_echo_n "checking for $2... " >&6; }
1560
- if eval \${$3+:} false; then :
1561
- $as_echo_n "(cached) " >&6
1562
- else
1563
- eval "$3=\$ac_header_compiler"
1564
- fi
1565
- eval ac_res=\$$3
1566
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567
- $as_echo "$ac_res" >&6; }
1568
- fi
1569
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570
-
1571
- } # ac_fn_c_check_header_mongrel
1572
-
1573
- # ac_fn_c_try_run LINENO
1574
- # ----------------------
1575
- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576
- # that executables *can* be run.
1577
- ac_fn_c_try_run ()
1578
- {
1579
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580
- if { { ac_try="$ac_link"
1581
- case "(($ac_try" in
1582
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583
- *) ac_try_echo=$ac_try;;
1584
- esac
1585
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586
- $as_echo "$ac_try_echo"; } >&5
1587
- (eval "$ac_link") 2>&5
1588
- ac_status=$?
1589
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591
- { { case "(($ac_try" in
1592
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593
- *) ac_try_echo=$ac_try;;
1594
- esac
1595
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596
- $as_echo "$ac_try_echo"; } >&5
1597
- (eval "$ac_try") 2>&5
1598
- ac_status=$?
1599
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600
- test $ac_status = 0; }; }; then :
1601
- ac_retval=0
1602
- else
1603
- $as_echo "$as_me: program exited with status $ac_status" >&5
1604
- $as_echo "$as_me: failed program was:" >&5
1605
- sed 's/^/| /' conftest.$ac_ext >&5
1606
-
1607
- ac_retval=$ac_status
1608
- fi
1609
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611
- as_fn_set_status $ac_retval
1612
-
1613
- } # ac_fn_c_try_run
1614
-
1615
- # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616
- # -------------------------------------------------------
1617
- # Tests whether HEADER exists and can be compiled using the include files in
1618
- # INCLUDES, setting the cache variable VAR accordingly.
1619
- ac_fn_c_check_header_compile ()
1620
- {
1621
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623
- $as_echo_n "checking for $2... " >&6; }
1624
- if eval \${$3+:} false; then :
1625
- $as_echo_n "(cached) " >&6
1626
- else
1627
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628
- /* end confdefs.h. */
1629
- $4
1630
- #include <$2>
1631
- _ACEOF
1632
- if ac_fn_c_try_compile "$LINENO"; then :
1633
- eval "$3=yes"
1634
- else
1635
- eval "$3=no"
1636
- fi
1637
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638
- fi
1639
- eval ac_res=\$$3
1640
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641
- $as_echo "$ac_res" >&6; }
1642
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
-
1644
- } # ac_fn_c_check_header_compile
1645
-
1646
- # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1647
- # --------------------------------------------
1648
- # Tries to find the compile-time value of EXPR in a program that includes
1649
- # INCLUDES, setting VAR accordingly. Returns whether the value could be
1650
- # computed
1651
- ac_fn_c_compute_int ()
1652
- {
1653
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
- if test "$cross_compiling" = yes; then
1655
- # Depending upon the size, compute the lo and hi bounds.
1656
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657
- /* end confdefs.h. */
1658
- $4
1659
- int
1660
- main ()
1661
- {
1662
- static int test_array [1 - 2 * !(($2) >= 0)];
1663
- test_array [0] = 0;
1664
- return test_array [0];
1665
-
1666
- ;
1667
- return 0;
1668
- }
1669
- _ACEOF
1670
- if ac_fn_c_try_compile "$LINENO"; then :
1671
- ac_lo=0 ac_mid=0
1672
- while :; do
1673
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674
- /* end confdefs.h. */
1675
- $4
1676
- int
1677
- main ()
1678
- {
1679
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1680
- test_array [0] = 0;
1681
- return test_array [0];
1682
-
1683
- ;
1684
- return 0;
1685
- }
1686
- _ACEOF
1687
- if ac_fn_c_try_compile "$LINENO"; then :
1688
- ac_hi=$ac_mid; break
1689
- else
1690
- as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1691
- if test $ac_lo -le $ac_mid; then
1692
- ac_lo= ac_hi=
1693
- break
1694
- fi
1695
- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1696
- fi
1697
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698
- done
1699
- else
1700
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701
- /* end confdefs.h. */
1702
- $4
1703
- int
1704
- main ()
1705
- {
1706
- static int test_array [1 - 2 * !(($2) < 0)];
1707
- test_array [0] = 0;
1708
- return test_array [0];
1709
-
1710
- ;
1711
- return 0;
1712
- }
1713
- _ACEOF
1714
- if ac_fn_c_try_compile "$LINENO"; then :
1715
- ac_hi=-1 ac_mid=-1
1716
- while :; do
1717
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718
- /* end confdefs.h. */
1719
- $4
1720
- int
1721
- main ()
1722
- {
1723
- static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1724
- test_array [0] = 0;
1725
- return test_array [0];
1726
-
1727
- ;
1728
- return 0;
1729
- }
1730
- _ACEOF
1731
- if ac_fn_c_try_compile "$LINENO"; then :
1732
- ac_lo=$ac_mid; break
1733
- else
1734
- as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1735
- if test $ac_mid -le $ac_hi; then
1736
- ac_lo= ac_hi=
1737
- break
1738
- fi
1739
- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1740
- fi
1741
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742
- done
1743
- else
1744
- ac_lo= ac_hi=
1745
- fi
1746
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747
- fi
1748
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749
- # Binary search between lo and hi bounds.
1750
- while test "x$ac_lo" != "x$ac_hi"; do
1751
- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1752
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753
- /* end confdefs.h. */
1754
- $4
1755
- int
1756
- main ()
1757
- {
1758
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1759
- test_array [0] = 0;
1760
- return test_array [0];
1761
-
1762
- ;
1763
- return 0;
1764
- }
1765
- _ACEOF
1766
- if ac_fn_c_try_compile "$LINENO"; then :
1767
- ac_hi=$ac_mid
1768
- else
1769
- as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1770
- fi
1771
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772
- done
1773
- case $ac_lo in #((
1774
- ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1775
- '') ac_retval=1 ;;
1776
- esac
1777
- else
1778
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779
- /* end confdefs.h. */
1780
- $4
1781
- static long int longval () { return $2; }
1782
- static unsigned long int ulongval () { return $2; }
1783
- #include <stdio.h>
1784
- #include <stdlib.h>
1785
- int
1786
- main ()
1787
- {
1788
-
1789
- FILE *f = fopen ("conftest.val", "w");
1790
- if (! f)
1791
- return 1;
1792
- if (($2) < 0)
1793
- {
1794
- long int i = longval ();
1795
- if (i != ($2))
1796
- return 1;
1797
- fprintf (f, "%ld", i);
1798
- }
1799
- else
1800
- {
1801
- unsigned long int i = ulongval ();
1802
- if (i != ($2))
1803
- return 1;
1804
- fprintf (f, "%lu", i);
1805
- }
1806
- /* Do not output a trailing newline, as this causes \r\n confusion
1807
- on some platforms. */
1808
- return ferror (f) || fclose (f) != 0;
1809
-
1810
- ;
1811
- return 0;
1812
- }
1813
- _ACEOF
1814
- if ac_fn_c_try_run "$LINENO"; then :
1815
- echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1816
- else
1817
- ac_retval=1
1818
- fi
1819
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1820
- conftest.$ac_objext conftest.beam conftest.$ac_ext
1821
- rm -f conftest.val
1822
-
1823
- fi
1824
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
- as_fn_set_status $ac_retval
1826
-
1827
- } # ac_fn_c_compute_int
1828
-
1829
- # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1830
- # ---------------------------------------------
1831
- # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1832
- # accordingly.
1833
- ac_fn_c_check_decl ()
1834
- {
1835
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836
- as_decl_name=`echo $2|sed 's/ *(.*//'`
1837
- as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1838
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1839
- $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1840
- if eval \${$3+:} false; then :
1841
- $as_echo_n "(cached) " >&6
1842
- else
1843
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844
- /* end confdefs.h. */
1845
- $4
1846
- int
1847
- main ()
1848
- {
1849
- #ifndef $as_decl_name
1850
- #ifdef __cplusplus
1851
- (void) $as_decl_use;
1852
- #else
1853
- (void) $as_decl_name;
1854
- #endif
1855
- #endif
1856
-
1857
- ;
1858
- return 0;
1859
- }
1860
- _ACEOF
1861
- if ac_fn_c_try_compile "$LINENO"; then :
1862
- eval "$3=yes"
1863
- else
1864
- eval "$3=no"
1865
- fi
1866
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867
- fi
1868
- eval ac_res=\$$3
1869
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870
- $as_echo "$ac_res" >&6; }
1871
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
-
1873
- } # ac_fn_c_check_decl
1874
- cat >config.log <<_ACEOF
1875
- This file contains any messages produced by compilers while
1876
- running configure, to aid debugging if configure makes a mistake.
1877
-
1878
- It was created by funchook $as_me 0.1, which was
1879
- generated by GNU Autoconf 2.69. Invocation command line was
1880
-
1881
- $ $0 $@
1882
-
1883
- _ACEOF
1884
- exec 5>>config.log
1885
- {
1886
- cat <<_ASUNAME
1887
- ## --------- ##
1888
- ## Platform. ##
1889
- ## --------- ##
1890
-
1891
- hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892
- uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893
- uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894
- uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895
- uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
-
1897
- /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898
- /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899
-
1900
- /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901
- /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902
- /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903
- /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904
- /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905
- /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906
- /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907
-
1908
- _ASUNAME
1909
-
1910
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911
- for as_dir in $PATH
1912
- do
1913
- IFS=$as_save_IFS
1914
- test -z "$as_dir" && as_dir=.
1915
- $as_echo "PATH: $as_dir"
1916
- done
1917
- IFS=$as_save_IFS
1918
-
1919
- } >&5
1920
-
1921
- cat >&5 <<_ACEOF
1922
-
1923
-
1924
- ## ----------- ##
1925
- ## Core tests. ##
1926
- ## ----------- ##
1927
-
1928
- _ACEOF
1929
-
1930
-
1931
- # Keep a trace of the command line.
1932
- # Strip out --no-create and --no-recursion so they do not pile up.
1933
- # Strip out --silent because we don't want to record it for future runs.
1934
- # Also quote any args containing shell meta-characters.
1935
- # Make two passes to allow for proper duplicate-argument suppression.
1936
- ac_configure_args=
1937
- ac_configure_args0=
1938
- ac_configure_args1=
1939
- ac_must_keep_next=false
1940
- for ac_pass in 1 2
1941
- do
1942
- for ac_arg
1943
- do
1944
- case $ac_arg in
1945
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947
- | -silent | --silent | --silen | --sile | --sil)
1948
- continue ;;
1949
- *\'*)
1950
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951
- esac
1952
- case $ac_pass in
1953
- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954
- 2)
1955
- as_fn_append ac_configure_args1 " '$ac_arg'"
1956
- if test $ac_must_keep_next = true; then
1957
- ac_must_keep_next=false # Got value, back to normal.
1958
- else
1959
- case $ac_arg in
1960
- *=* | --config-cache | -C | -disable-* | --disable-* \
1961
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963
- | -with-* | --with-* | -without-* | --without-* | --x)
1964
- case "$ac_configure_args0 " in
1965
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966
- esac
1967
- ;;
1968
- -* ) ac_must_keep_next=true ;;
1969
- esac
1970
- fi
1971
- as_fn_append ac_configure_args " '$ac_arg'"
1972
- ;;
1973
- esac
1974
- done
1975
- done
1976
- { ac_configure_args0=; unset ac_configure_args0;}
1977
- { ac_configure_args1=; unset ac_configure_args1;}
1978
-
1979
- # When interrupted or exit'd, cleanup temporary files, and complete
1980
- # config.log. We remove comments because anyway the quotes in there
1981
- # would cause problems or look ugly.
1982
- # WARNING: Use '\'' to represent an apostrophe within the trap.
1983
- # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984
- trap 'exit_status=$?
1985
- # Save into config.log some information that might help in debugging.
1986
- {
1987
- echo
1988
-
1989
- $as_echo "## ---------------- ##
1990
- ## Cache variables. ##
1991
- ## ---------------- ##"
1992
- echo
1993
- # The following way of writing the cache mishandles newlines in values,
1994
- (
1995
- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996
- eval ac_val=\$$ac_var
1997
- case $ac_val in #(
1998
- *${as_nl}*)
1999
- case $ac_var in #(
2000
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002
- esac
2003
- case $ac_var in #(
2004
- _ | IFS | as_nl) ;; #(
2005
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006
- *) { eval $ac_var=; unset $ac_var;} ;;
2007
- esac ;;
2008
- esac
2009
- done
2010
- (set) 2>&1 |
2011
- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012
- *${as_nl}ac_space=\ *)
2013
- sed -n \
2014
- "s/'\''/'\''\\\\'\'''\''/g;
2015
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016
- ;; #(
2017
- *)
2018
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019
- ;;
2020
- esac |
2021
- sort
2022
- )
2023
- echo
2024
-
2025
- $as_echo "## ----------------- ##
2026
- ## Output variables. ##
2027
- ## ----------------- ##"
2028
- echo
2029
- for ac_var in $ac_subst_vars
2030
- do
2031
- eval ac_val=\$$ac_var
2032
- case $ac_val in
2033
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034
- esac
2035
- $as_echo "$ac_var='\''$ac_val'\''"
2036
- done | sort
2037
- echo
2038
-
2039
- if test -n "$ac_subst_files"; then
2040
- $as_echo "## ------------------- ##
2041
- ## File substitutions. ##
2042
- ## ------------------- ##"
2043
- echo
2044
- for ac_var in $ac_subst_files
2045
- do
2046
- eval ac_val=\$$ac_var
2047
- case $ac_val in
2048
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049
- esac
2050
- $as_echo "$ac_var='\''$ac_val'\''"
2051
- done | sort
2052
- echo
2053
- fi
2054
-
2055
- if test -s confdefs.h; then
2056
- $as_echo "## ----------- ##
2057
- ## confdefs.h. ##
2058
- ## ----------- ##"
2059
- echo
2060
- cat confdefs.h
2061
- echo
2062
- fi
2063
- test "$ac_signal" != 0 &&
2064
- $as_echo "$as_me: caught signal $ac_signal"
2065
- $as_echo "$as_me: exit $exit_status"
2066
- } >&5
2067
- rm -f core *.core core.conftest.* &&
2068
- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069
- exit $exit_status
2070
- ' 0
2071
- for ac_signal in 1 2 13 15; do
2072
- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073
- done
2074
- ac_signal=0
2075
-
2076
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077
- rm -f -r conftest* confdefs.h
2078
-
2079
- $as_echo "/* confdefs.h */" > confdefs.h
2080
-
2081
- # Predefined preprocessor variables.
2082
-
2083
- cat >>confdefs.h <<_ACEOF
2084
- #define PACKAGE_NAME "$PACKAGE_NAME"
2085
- _ACEOF
2086
-
2087
- cat >>confdefs.h <<_ACEOF
2088
- #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2089
- _ACEOF
2090
-
2091
- cat >>confdefs.h <<_ACEOF
2092
- #define PACKAGE_VERSION "$PACKAGE_VERSION"
2093
- _ACEOF
2094
-
2095
- cat >>confdefs.h <<_ACEOF
2096
- #define PACKAGE_STRING "$PACKAGE_STRING"
2097
- _ACEOF
2098
-
2099
- cat >>confdefs.h <<_ACEOF
2100
- #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101
- _ACEOF
2102
-
2103
- cat >>confdefs.h <<_ACEOF
2104
- #define PACKAGE_URL "$PACKAGE_URL"
2105
- _ACEOF
2106
-
2107
-
2108
- # Let the site file select an alternate cache file if it wants to.
2109
- # Prefer an explicitly selected file to automatically selected ones.
2110
- ac_site_file1=NONE
2111
- ac_site_file2=NONE
2112
- if test -n "$CONFIG_SITE"; then
2113
- # We do not want a PATH search for config.site.
2114
- case $CONFIG_SITE in #((
2115
- -*) ac_site_file1=./$CONFIG_SITE;;
2116
- */*) ac_site_file1=$CONFIG_SITE;;
2117
- *) ac_site_file1=./$CONFIG_SITE;;
2118
- esac
2119
- elif test "x$prefix" != xNONE; then
2120
- ac_site_file1=$prefix/share/config.site
2121
- ac_site_file2=$prefix/etc/config.site
2122
- else
2123
- ac_site_file1=$ac_default_prefix/share/config.site
2124
- ac_site_file2=$ac_default_prefix/etc/config.site
2125
- fi
2126
- for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127
- do
2128
- test "x$ac_site_file" = xNONE && continue
2129
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2130
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131
- $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132
- sed 's/^/| /' "$ac_site_file" >&5
2133
- . "$ac_site_file" \
2134
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136
- as_fn_error $? "failed to load site script $ac_site_file
2137
- See \`config.log' for more details" "$LINENO" 5; }
2138
- fi
2139
- done
2140
-
2141
- if test -r "$cache_file"; then
2142
- # Some versions of bash will fail to source /dev/null (special files
2143
- # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2144
- if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2145
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2146
- $as_echo "$as_me: loading cache $cache_file" >&6;}
2147
- case $cache_file in
2148
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
2149
- *) . "./$cache_file";;
2150
- esac
2151
- fi
2152
- else
2153
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2154
- $as_echo "$as_me: creating cache $cache_file" >&6;}
2155
- >$cache_file
2156
- fi
2157
-
2158
- # Check that the precious variables saved in the cache have kept the same
2159
- # value.
2160
- ac_cache_corrupted=false
2161
- for ac_var in $ac_precious_vars; do
2162
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
2163
- eval ac_new_set=\$ac_env_${ac_var}_set
2164
- eval ac_old_val=\$ac_cv_env_${ac_var}_value
2165
- eval ac_new_val=\$ac_env_${ac_var}_value
2166
- case $ac_old_set,$ac_new_set in
2167
- set,)
2168
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2169
- $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2170
- ac_cache_corrupted=: ;;
2171
- ,set)
2172
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2173
- $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2174
- ac_cache_corrupted=: ;;
2175
- ,);;
2176
- *)
2177
- if test "x$ac_old_val" != "x$ac_new_val"; then
2178
- # differences in whitespace do not lead to failure.
2179
- ac_old_val_w=`echo x $ac_old_val`
2180
- ac_new_val_w=`echo x $ac_new_val`
2181
- if test "$ac_old_val_w" != "$ac_new_val_w"; then
2182
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2183
- $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2184
- ac_cache_corrupted=:
2185
- else
2186
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2187
- $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2188
- eval $ac_var=\$ac_old_val
2189
- fi
2190
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2191
- $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2192
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2193
- $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2194
- fi;;
2195
- esac
2196
- # Pass precious variables to config.status.
2197
- if test "$ac_new_set" = set; then
2198
- case $ac_new_val in
2199
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2200
- *) ac_arg=$ac_var=$ac_new_val ;;
2201
- esac
2202
- case " $ac_configure_args " in
2203
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2204
- *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2205
- esac
2206
- fi
2207
- done
2208
- if $ac_cache_corrupted; then
2209
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2212
- $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2213
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214
- fi
2215
- ## -------------------- ##
2216
- ## Main body of script. ##
2217
- ## -------------------- ##
2218
-
2219
- ac_ext=c
2220
- ac_cpp='$CPP $CPPFLAGS'
2221
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
-
2225
-
2226
-
2227
- ac_ext=c
2228
- ac_cpp='$CPP $CPPFLAGS'
2229
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
- if test -n "$ac_tool_prefix"; then
2233
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2234
- set dummy ${ac_tool_prefix}gcc; ac_word=$2
2235
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2236
- $as_echo_n "checking for $ac_word... " >&6; }
2237
- if ${ac_cv_prog_CC+:} false; then :
2238
- $as_echo_n "(cached) " >&6
2239
- else
2240
- if test -n "$CC"; then
2241
- ac_cv_prog_CC="$CC" # Let the user override the test.
2242
- else
2243
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244
- for as_dir in $PATH
2245
- do
2246
- IFS=$as_save_IFS
2247
- test -z "$as_dir" && as_dir=.
2248
- for ac_exec_ext in '' $ac_executable_extensions; do
2249
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
2251
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2252
- break 2
2253
- fi
2254
- done
2255
- done
2256
- IFS=$as_save_IFS
2257
-
2258
- fi
2259
- fi
2260
- CC=$ac_cv_prog_CC
2261
- if test -n "$CC"; then
2262
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2263
- $as_echo "$CC" >&6; }
2264
- else
2265
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2266
- $as_echo "no" >&6; }
2267
- fi
2268
-
2269
-
2270
- fi
2271
- if test -z "$ac_cv_prog_CC"; then
2272
- ac_ct_CC=$CC
2273
- # Extract the first word of "gcc", so it can be a program name with args.
2274
- set dummy gcc; ac_word=$2
2275
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276
- $as_echo_n "checking for $ac_word... " >&6; }
2277
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
2278
- $as_echo_n "(cached) " >&6
2279
- else
2280
- if test -n "$ac_ct_CC"; then
2281
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282
- else
2283
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284
- for as_dir in $PATH
2285
- do
2286
- IFS=$as_save_IFS
2287
- test -z "$as_dir" && as_dir=.
2288
- for ac_exec_ext in '' $ac_executable_extensions; do
2289
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290
- ac_cv_prog_ac_ct_CC="gcc"
2291
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2292
- break 2
2293
- fi
2294
- done
2295
- done
2296
- IFS=$as_save_IFS
2297
-
2298
- fi
2299
- fi
2300
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301
- if test -n "$ac_ct_CC"; then
2302
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2303
- $as_echo "$ac_ct_CC" >&6; }
2304
- else
2305
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2306
- $as_echo "no" >&6; }
2307
- fi
2308
-
2309
- if test "x$ac_ct_CC" = x; then
2310
- CC=""
2311
- else
2312
- case $cross_compiling:$ac_tool_warned in
2313
- yes:)
2314
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2315
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2316
- ac_tool_warned=yes ;;
2317
- esac
2318
- CC=$ac_ct_CC
2319
- fi
2320
- else
2321
- CC="$ac_cv_prog_CC"
2322
- fi
2323
-
2324
- if test -z "$CC"; then
2325
- if test -n "$ac_tool_prefix"; then
2326
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327
- set dummy ${ac_tool_prefix}cc; ac_word=$2
2328
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2329
- $as_echo_n "checking for $ac_word... " >&6; }
2330
- if ${ac_cv_prog_CC+:} false; then :
2331
- $as_echo_n "(cached) " >&6
2332
- else
2333
- if test -n "$CC"; then
2334
- ac_cv_prog_CC="$CC" # Let the user override the test.
2335
- else
2336
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337
- for as_dir in $PATH
2338
- do
2339
- IFS=$as_save_IFS
2340
- test -z "$as_dir" && as_dir=.
2341
- for ac_exec_ext in '' $ac_executable_extensions; do
2342
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343
- ac_cv_prog_CC="${ac_tool_prefix}cc"
2344
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2345
- break 2
2346
- fi
2347
- done
2348
- done
2349
- IFS=$as_save_IFS
2350
-
2351
- fi
2352
- fi
2353
- CC=$ac_cv_prog_CC
2354
- if test -n "$CC"; then
2355
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2356
- $as_echo "$CC" >&6; }
2357
- else
2358
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2359
- $as_echo "no" >&6; }
2360
- fi
2361
-
2362
-
2363
- fi
2364
- fi
2365
- if test -z "$CC"; then
2366
- # Extract the first word of "cc", so it can be a program name with args.
2367
- set dummy cc; ac_word=$2
2368
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2369
- $as_echo_n "checking for $ac_word... " >&6; }
2370
- if ${ac_cv_prog_CC+:} false; then :
2371
- $as_echo_n "(cached) " >&6
2372
- else
2373
- if test -n "$CC"; then
2374
- ac_cv_prog_CC="$CC" # Let the user override the test.
2375
- else
2376
- ac_prog_rejected=no
2377
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378
- for as_dir in $PATH
2379
- do
2380
- IFS=$as_save_IFS
2381
- test -z "$as_dir" && as_dir=.
2382
- for ac_exec_ext in '' $ac_executable_extensions; do
2383
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2385
- ac_prog_rejected=yes
2386
- continue
2387
- fi
2388
- ac_cv_prog_CC="cc"
2389
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390
- break 2
2391
- fi
2392
- done
2393
- done
2394
- IFS=$as_save_IFS
2395
-
2396
- if test $ac_prog_rejected = yes; then
2397
- # We found a bogon in the path, so make sure we never use it.
2398
- set dummy $ac_cv_prog_CC
2399
- shift
2400
- if test $# != 0; then
2401
- # We chose a different compiler from the bogus one.
2402
- # However, it has the same basename, so the bogon will be chosen
2403
- # first if we set CC to just the basename; use the full file name.
2404
- shift
2405
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2406
- fi
2407
- fi
2408
- fi
2409
- fi
2410
- CC=$ac_cv_prog_CC
2411
- if test -n "$CC"; then
2412
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2413
- $as_echo "$CC" >&6; }
2414
- else
2415
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2416
- $as_echo "no" >&6; }
2417
- fi
2418
-
2419
-
2420
- fi
2421
- if test -z "$CC"; then
2422
- if test -n "$ac_tool_prefix"; then
2423
- for ac_prog in cl.exe
2424
- do
2425
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2427
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428
- $as_echo_n "checking for $ac_word... " >&6; }
2429
- if ${ac_cv_prog_CC+:} false; then :
2430
- $as_echo_n "(cached) " >&6
2431
- else
2432
- if test -n "$CC"; then
2433
- ac_cv_prog_CC="$CC" # Let the user override the test.
2434
- else
2435
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436
- for as_dir in $PATH
2437
- do
2438
- IFS=$as_save_IFS
2439
- test -z "$as_dir" && as_dir=.
2440
- for ac_exec_ext in '' $ac_executable_extensions; do
2441
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2443
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444
- break 2
2445
- fi
2446
- done
2447
- done
2448
- IFS=$as_save_IFS
2449
-
2450
- fi
2451
- fi
2452
- CC=$ac_cv_prog_CC
2453
- if test -n "$CC"; then
2454
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2455
- $as_echo "$CC" >&6; }
2456
- else
2457
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458
- $as_echo "no" >&6; }
2459
- fi
2460
-
2461
-
2462
- test -n "$CC" && break
2463
- done
2464
- fi
2465
- if test -z "$CC"; then
2466
- ac_ct_CC=$CC
2467
- for ac_prog in cl.exe
2468
- do
2469
- # Extract the first word of "$ac_prog", so it can be a program name with args.
2470
- set dummy $ac_prog; ac_word=$2
2471
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472
- $as_echo_n "checking for $ac_word... " >&6; }
2473
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
2474
- $as_echo_n "(cached) " >&6
2475
- else
2476
- if test -n "$ac_ct_CC"; then
2477
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478
- else
2479
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480
- for as_dir in $PATH
2481
- do
2482
- IFS=$as_save_IFS
2483
- test -z "$as_dir" && as_dir=.
2484
- for ac_exec_ext in '' $ac_executable_extensions; do
2485
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486
- ac_cv_prog_ac_ct_CC="$ac_prog"
2487
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488
- break 2
2489
- fi
2490
- done
2491
- done
2492
- IFS=$as_save_IFS
2493
-
2494
- fi
2495
- fi
2496
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497
- if test -n "$ac_ct_CC"; then
2498
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2499
- $as_echo "$ac_ct_CC" >&6; }
2500
- else
2501
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502
- $as_echo "no" >&6; }
2503
- fi
2504
-
2505
-
2506
- test -n "$ac_ct_CC" && break
2507
- done
2508
-
2509
- if test "x$ac_ct_CC" = x; then
2510
- CC=""
2511
- else
2512
- case $cross_compiling:$ac_tool_warned in
2513
- yes:)
2514
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2515
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516
- ac_tool_warned=yes ;;
2517
- esac
2518
- CC=$ac_ct_CC
2519
- fi
2520
- fi
2521
-
2522
- fi
2523
-
2524
-
2525
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527
- as_fn_error $? "no acceptable C compiler found in \$PATH
2528
- See \`config.log' for more details" "$LINENO" 5; }
2529
-
2530
- # Provide some information about the compiler.
2531
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2532
- set X $ac_compile
2533
- ac_compiler=$2
2534
- for ac_option in --version -v -V -qversion; do
2535
- { { ac_try="$ac_compiler $ac_option >&5"
2536
- case "(($ac_try" in
2537
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538
- *) ac_try_echo=$ac_try;;
2539
- esac
2540
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2541
- $as_echo "$ac_try_echo"; } >&5
2542
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2543
- ac_status=$?
2544
- if test -s conftest.err; then
2545
- sed '10a\
2546
- ... rest of stderr output deleted ...
2547
- 10q' conftest.err >conftest.er1
2548
- cat conftest.er1 >&5
2549
- fi
2550
- rm -f conftest.er1 conftest.err
2551
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552
- test $ac_status = 0; }
2553
- done
2554
-
2555
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556
- /* end confdefs.h. */
2557
-
2558
- int
2559
- main ()
2560
- {
2561
-
2562
- ;
2563
- return 0;
2564
- }
2565
- _ACEOF
2566
- ac_clean_files_save=$ac_clean_files
2567
- ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2568
- # Try to create an executable without -o first, disregard a.out.
2569
- # It will help us diagnose broken compilers, and finding out an intuition
2570
- # of exeext.
2571
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2572
- $as_echo_n "checking whether the C compiler works... " >&6; }
2573
- ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2574
-
2575
- # The possible output files:
2576
- ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2577
-
2578
- ac_rmfiles=
2579
- for ac_file in $ac_files
2580
- do
2581
- case $ac_file in
2582
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2583
- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2584
- esac
2585
- done
2586
- rm -f $ac_rmfiles
2587
-
2588
- if { { ac_try="$ac_link_default"
2589
- case "(($ac_try" in
2590
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591
- *) ac_try_echo=$ac_try;;
2592
- esac
2593
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2594
- $as_echo "$ac_try_echo"; } >&5
2595
- (eval "$ac_link_default") 2>&5
2596
- ac_status=$?
2597
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598
- test $ac_status = 0; }; then :
2599
- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2600
- # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2601
- # in a Makefile. We should not override ac_cv_exeext if it was cached,
2602
- # so that the user can short-circuit this test for compilers unknown to
2603
- # Autoconf.
2604
- for ac_file in $ac_files ''
2605
- do
2606
- test -f "$ac_file" || continue
2607
- case $ac_file in
2608
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2609
- ;;
2610
- [ab].out )
2611
- # We found the default executable, but exeext='' is most
2612
- # certainly right.
2613
- break;;
2614
- *.* )
2615
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2616
- then :; else
2617
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2618
- fi
2619
- # We set ac_cv_exeext here because the later test for it is not
2620
- # safe: cross compilers may not add the suffix if given an `-o'
2621
- # argument, so we may need to know it at that point already.
2622
- # Even if this section looks crufty: it has the advantage of
2623
- # actually working.
2624
- break;;
2625
- * )
2626
- break;;
2627
- esac
2628
- done
2629
- test "$ac_cv_exeext" = no && ac_cv_exeext=
2630
-
2631
- else
2632
- ac_file=''
2633
- fi
2634
- if test -z "$ac_file"; then :
2635
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636
- $as_echo "no" >&6; }
2637
- $as_echo "$as_me: failed program was:" >&5
2638
- sed 's/^/| /' conftest.$ac_ext >&5
2639
-
2640
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642
- as_fn_error 77 "C compiler cannot create executables
2643
- See \`config.log' for more details" "$LINENO" 5; }
2644
- else
2645
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646
- $as_echo "yes" >&6; }
2647
- fi
2648
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2649
- $as_echo_n "checking for C compiler default output file name... " >&6; }
2650
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2651
- $as_echo "$ac_file" >&6; }
2652
- ac_exeext=$ac_cv_exeext
2653
-
2654
- rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2655
- ac_clean_files=$ac_clean_files_save
2656
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2657
- $as_echo_n "checking for suffix of executables... " >&6; }
2658
- if { { ac_try="$ac_link"
2659
- case "(($ac_try" in
2660
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661
- *) ac_try_echo=$ac_try;;
2662
- esac
2663
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664
- $as_echo "$ac_try_echo"; } >&5
2665
- (eval "$ac_link") 2>&5
2666
- ac_status=$?
2667
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2668
- test $ac_status = 0; }; then :
2669
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
2670
- # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2671
- # work properly (i.e., refer to `conftest.exe'), while it won't with
2672
- # `rm'.
2673
- for ac_file in conftest.exe conftest conftest.*; do
2674
- test -f "$ac_file" || continue
2675
- case $ac_file in
2676
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2677
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678
- break;;
2679
- * ) break;;
2680
- esac
2681
- done
2682
- else
2683
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685
- as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2686
- See \`config.log' for more details" "$LINENO" 5; }
2687
- fi
2688
- rm -f conftest conftest$ac_cv_exeext
2689
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2690
- $as_echo "$ac_cv_exeext" >&6; }
2691
-
2692
- rm -f conftest.$ac_ext
2693
- EXEEXT=$ac_cv_exeext
2694
- ac_exeext=$EXEEXT
2695
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696
- /* end confdefs.h. */
2697
- #include <stdio.h>
2698
- int
2699
- main ()
2700
- {
2701
- FILE *f = fopen ("conftest.out", "w");
2702
- return ferror (f) || fclose (f) != 0;
2703
-
2704
- ;
2705
- return 0;
2706
- }
2707
- _ACEOF
2708
- ac_clean_files="$ac_clean_files conftest.out"
2709
- # Check that the compiler produces executables we can run. If not, either
2710
- # the compiler is broken, or we cross compile.
2711
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2712
- $as_echo_n "checking whether we are cross compiling... " >&6; }
2713
- if test "$cross_compiling" != yes; then
2714
- { { ac_try="$ac_link"
2715
- case "(($ac_try" in
2716
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717
- *) ac_try_echo=$ac_try;;
2718
- esac
2719
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720
- $as_echo "$ac_try_echo"; } >&5
2721
- (eval "$ac_link") 2>&5
2722
- ac_status=$?
2723
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724
- test $ac_status = 0; }
2725
- if { ac_try='./conftest$ac_cv_exeext'
2726
- { { case "(($ac_try" in
2727
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728
- *) ac_try_echo=$ac_try;;
2729
- esac
2730
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731
- $as_echo "$ac_try_echo"; } >&5
2732
- (eval "$ac_try") 2>&5
2733
- ac_status=$?
2734
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735
- test $ac_status = 0; }; }; then
2736
- cross_compiling=no
2737
- else
2738
- if test "$cross_compiling" = maybe; then
2739
- cross_compiling=yes
2740
- else
2741
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743
- as_fn_error $? "cannot run C compiled programs.
2744
- If you meant to cross compile, use \`--host'.
2745
- See \`config.log' for more details" "$LINENO" 5; }
2746
- fi
2747
- fi
2748
- fi
2749
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2750
- $as_echo "$cross_compiling" >&6; }
2751
-
2752
- rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2753
- ac_clean_files=$ac_clean_files_save
2754
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2755
- $as_echo_n "checking for suffix of object files... " >&6; }
2756
- if ${ac_cv_objext+:} false; then :
2757
- $as_echo_n "(cached) " >&6
2758
- else
2759
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760
- /* end confdefs.h. */
2761
-
2762
- int
2763
- main ()
2764
- {
2765
-
2766
- ;
2767
- return 0;
2768
- }
2769
- _ACEOF
2770
- rm -f conftest.o conftest.obj
2771
- if { { ac_try="$ac_compile"
2772
- case "(($ac_try" in
2773
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774
- *) ac_try_echo=$ac_try;;
2775
- esac
2776
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777
- $as_echo "$ac_try_echo"; } >&5
2778
- (eval "$ac_compile") 2>&5
2779
- ac_status=$?
2780
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781
- test $ac_status = 0; }; then :
2782
- for ac_file in conftest.o conftest.obj conftest.*; do
2783
- test -f "$ac_file" || continue;
2784
- case $ac_file in
2785
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2786
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2787
- break;;
2788
- esac
2789
- done
2790
- else
2791
- $as_echo "$as_me: failed program was:" >&5
2792
- sed 's/^/| /' conftest.$ac_ext >&5
2793
-
2794
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796
- as_fn_error $? "cannot compute suffix of object files: cannot compile
2797
- See \`config.log' for more details" "$LINENO" 5; }
2798
- fi
2799
- rm -f conftest.$ac_cv_objext conftest.$ac_ext
2800
- fi
2801
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2802
- $as_echo "$ac_cv_objext" >&6; }
2803
- OBJEXT=$ac_cv_objext
2804
- ac_objext=$OBJEXT
2805
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2806
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2807
- if ${ac_cv_c_compiler_gnu+:} false; then :
2808
- $as_echo_n "(cached) " >&6
2809
- else
2810
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811
- /* end confdefs.h. */
2812
-
2813
- int
2814
- main ()
2815
- {
2816
- #ifndef __GNUC__
2817
- choke me
2818
- #endif
2819
-
2820
- ;
2821
- return 0;
2822
- }
2823
- _ACEOF
2824
- if ac_fn_c_try_compile "$LINENO"; then :
2825
- ac_compiler_gnu=yes
2826
- else
2827
- ac_compiler_gnu=no
2828
- fi
2829
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2830
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
2831
-
2832
- fi
2833
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2834
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2835
- if test $ac_compiler_gnu = yes; then
2836
- GCC=yes
2837
- else
2838
- GCC=
2839
- fi
2840
- ac_test_CFLAGS=${CFLAGS+set}
2841
- ac_save_CFLAGS=$CFLAGS
2842
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2843
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
2844
- if ${ac_cv_prog_cc_g+:} false; then :
2845
- $as_echo_n "(cached) " >&6
2846
- else
2847
- ac_save_c_werror_flag=$ac_c_werror_flag
2848
- ac_c_werror_flag=yes
2849
- ac_cv_prog_cc_g=no
2850
- CFLAGS="-g"
2851
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852
- /* end confdefs.h. */
2853
-
2854
- int
2855
- main ()
2856
- {
2857
-
2858
- ;
2859
- return 0;
2860
- }
2861
- _ACEOF
2862
- if ac_fn_c_try_compile "$LINENO"; then :
2863
- ac_cv_prog_cc_g=yes
2864
- else
2865
- CFLAGS=""
2866
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867
- /* end confdefs.h. */
2868
-
2869
- int
2870
- main ()
2871
- {
2872
-
2873
- ;
2874
- return 0;
2875
- }
2876
- _ACEOF
2877
- if ac_fn_c_try_compile "$LINENO"; then :
2878
-
2879
- else
2880
- ac_c_werror_flag=$ac_save_c_werror_flag
2881
- CFLAGS="-g"
2882
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883
- /* end confdefs.h. */
2884
-
2885
- int
2886
- main ()
2887
- {
2888
-
2889
- ;
2890
- return 0;
2891
- }
2892
- _ACEOF
2893
- if ac_fn_c_try_compile "$LINENO"; then :
2894
- ac_cv_prog_cc_g=yes
2895
- fi
2896
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897
- fi
2898
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899
- fi
2900
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901
- ac_c_werror_flag=$ac_save_c_werror_flag
2902
- fi
2903
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2904
- $as_echo "$ac_cv_prog_cc_g" >&6; }
2905
- if test "$ac_test_CFLAGS" = set; then
2906
- CFLAGS=$ac_save_CFLAGS
2907
- elif test $ac_cv_prog_cc_g = yes; then
2908
- if test "$GCC" = yes; then
2909
- CFLAGS="-g -O2"
2910
- else
2911
- CFLAGS="-g"
2912
- fi
2913
- else
2914
- if test "$GCC" = yes; then
2915
- CFLAGS="-O2"
2916
- else
2917
- CFLAGS=
2918
- fi
2919
- fi
2920
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2921
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2922
- if ${ac_cv_prog_cc_c89+:} false; then :
2923
- $as_echo_n "(cached) " >&6
2924
- else
2925
- ac_cv_prog_cc_c89=no
2926
- ac_save_CC=$CC
2927
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928
- /* end confdefs.h. */
2929
- #include <stdarg.h>
2930
- #include <stdio.h>
2931
- struct stat;
2932
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2933
- struct buf { int x; };
2934
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
2935
- static char *e (p, i)
2936
- char **p;
2937
- int i;
2938
- {
2939
- return p[i];
2940
- }
2941
- static char *f (char * (*g) (char **, int), char **p, ...)
2942
- {
2943
- char *s;
2944
- va_list v;
2945
- va_start (v,p);
2946
- s = g (p, va_arg (v,int));
2947
- va_end (v);
2948
- return s;
2949
- }
2950
-
2951
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2952
- function prototypes and stuff, but not '\xHH' hex character constants.
2953
- These don't provoke an error unfortunately, instead are silently treated
2954
- as 'x'. The following induces an error, until -std is added to get
2955
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2956
- array size at least. It's necessary to write '\x00'==0 to get something
2957
- that's true only with -std. */
2958
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2959
-
2960
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2961
- inside strings and character constants. */
2962
- #define FOO(x) 'x'
2963
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2964
-
2965
- int test (int i, double x);
2966
- struct s1 {int (*f) (int a);};
2967
- struct s2 {int (*f) (double a);};
2968
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2969
- int argc;
2970
- char **argv;
2971
- int
2972
- main ()
2973
- {
2974
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2975
- ;
2976
- return 0;
2977
- }
2978
- _ACEOF
2979
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2980
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2981
- do
2982
- CC="$ac_save_CC $ac_arg"
2983
- if ac_fn_c_try_compile "$LINENO"; then :
2984
- ac_cv_prog_cc_c89=$ac_arg
2985
- fi
2986
- rm -f core conftest.err conftest.$ac_objext
2987
- test "x$ac_cv_prog_cc_c89" != "xno" && break
2988
- done
2989
- rm -f conftest.$ac_ext
2990
- CC=$ac_save_CC
2991
-
2992
- fi
2993
- # AC_CACHE_VAL
2994
- case "x$ac_cv_prog_cc_c89" in
2995
- x)
2996
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2997
- $as_echo "none needed" >&6; } ;;
2998
- xno)
2999
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3000
- $as_echo "unsupported" >&6; } ;;
3001
- *)
3002
- CC="$CC $ac_cv_prog_cc_c89"
3003
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3004
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3005
- esac
3006
- if test "x$ac_cv_prog_cc_c89" != xno; then :
3007
-
3008
- fi
3009
-
3010
- ac_ext=c
3011
- ac_cpp='$CPP $CPPFLAGS'
3012
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015
-
3016
-
3017
- ac_ext=c
3018
- ac_cpp='$CPP $CPPFLAGS'
3019
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3023
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
3024
- # On Suns, sometimes $CPP names a directory.
3025
- if test -n "$CPP" && test -d "$CPP"; then
3026
- CPP=
3027
- fi
3028
- if test -z "$CPP"; then
3029
- if ${ac_cv_prog_CPP+:} false; then :
3030
- $as_echo_n "(cached) " >&6
3031
- else
3032
- # Double quotes because CPP needs to be expanded
3033
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3034
- do
3035
- ac_preproc_ok=false
3036
- for ac_c_preproc_warn_flag in '' yes
3037
- do
3038
- # Use a header file that comes with gcc, so configuring glibc
3039
- # with a fresh cross-compiler works.
3040
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041
- # <limits.h> exists even on freestanding compilers.
3042
- # On the NeXT, cc -E runs the code through the compiler's parser,
3043
- # not just through cpp. "Syntax error" is here to catch this case.
3044
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045
- /* end confdefs.h. */
3046
- #ifdef __STDC__
3047
- # include <limits.h>
3048
- #else
3049
- # include <assert.h>
3050
- #endif
3051
- Syntax error
3052
- _ACEOF
3053
- if ac_fn_c_try_cpp "$LINENO"; then :
3054
-
3055
- else
3056
- # Broken: fails on valid input.
3057
- continue
3058
- fi
3059
- rm -f conftest.err conftest.i conftest.$ac_ext
3060
-
3061
- # OK, works on sane cases. Now check whether nonexistent headers
3062
- # can be detected and how.
3063
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064
- /* end confdefs.h. */
3065
- #include <ac_nonexistent.h>
3066
- _ACEOF
3067
- if ac_fn_c_try_cpp "$LINENO"; then :
3068
- # Broken: success on invalid input.
3069
- continue
3070
- else
3071
- # Passes both tests.
3072
- ac_preproc_ok=:
3073
- break
3074
- fi
3075
- rm -f conftest.err conftest.i conftest.$ac_ext
3076
-
3077
- done
3078
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079
- rm -f conftest.i conftest.err conftest.$ac_ext
3080
- if $ac_preproc_ok; then :
3081
- break
3082
- fi
3083
-
3084
- done
3085
- ac_cv_prog_CPP=$CPP
3086
-
3087
- fi
3088
- CPP=$ac_cv_prog_CPP
3089
- else
3090
- ac_cv_prog_CPP=$CPP
3091
- fi
3092
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3093
- $as_echo "$CPP" >&6; }
3094
- ac_preproc_ok=false
3095
- for ac_c_preproc_warn_flag in '' yes
3096
- do
3097
- # Use a header file that comes with gcc, so configuring glibc
3098
- # with a fresh cross-compiler works.
3099
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100
- # <limits.h> exists even on freestanding compilers.
3101
- # On the NeXT, cc -E runs the code through the compiler's parser,
3102
- # not just through cpp. "Syntax error" is here to catch this case.
3103
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104
- /* end confdefs.h. */
3105
- #ifdef __STDC__
3106
- # include <limits.h>
3107
- #else
3108
- # include <assert.h>
3109
- #endif
3110
- Syntax error
3111
- _ACEOF
3112
- if ac_fn_c_try_cpp "$LINENO"; then :
3113
-
3114
- else
3115
- # Broken: fails on valid input.
3116
- continue
3117
- fi
3118
- rm -f conftest.err conftest.i conftest.$ac_ext
3119
-
3120
- # OK, works on sane cases. Now check whether nonexistent headers
3121
- # can be detected and how.
3122
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123
- /* end confdefs.h. */
3124
- #include <ac_nonexistent.h>
3125
- _ACEOF
3126
- if ac_fn_c_try_cpp "$LINENO"; then :
3127
- # Broken: success on invalid input.
3128
- continue
3129
- else
3130
- # Passes both tests.
3131
- ac_preproc_ok=:
3132
- break
3133
- fi
3134
- rm -f conftest.err conftest.i conftest.$ac_ext
3135
-
3136
- done
3137
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3138
- rm -f conftest.i conftest.err conftest.$ac_ext
3139
- if $ac_preproc_ok; then :
3140
-
3141
- else
3142
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3145
- See \`config.log' for more details" "$LINENO" 5; }
3146
- fi
3147
-
3148
- ac_ext=c
3149
- ac_cpp='$CPP $CPPFLAGS'
3150
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153
-
3154
-
3155
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3156
- $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3157
- if ${ac_cv_path_GREP+:} false; then :
3158
- $as_echo_n "(cached) " >&6
3159
- else
3160
- if test -z "$GREP"; then
3161
- ac_path_GREP_found=false
3162
- # Loop through the user's path and test for each of PROGNAME-LIST
3163
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3165
- do
3166
- IFS=$as_save_IFS
3167
- test -z "$as_dir" && as_dir=.
3168
- for ac_prog in grep ggrep; do
3169
- for ac_exec_ext in '' $ac_executable_extensions; do
3170
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3171
- as_fn_executable_p "$ac_path_GREP" || continue
3172
- # Check for GNU ac_path_GREP and select it if it is found.
3173
- # Check for GNU $ac_path_GREP
3174
- case `"$ac_path_GREP" --version 2>&1` in
3175
- *GNU*)
3176
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3177
- *)
3178
- ac_count=0
3179
- $as_echo_n 0123456789 >"conftest.in"
3180
- while :
3181
- do
3182
- cat "conftest.in" "conftest.in" >"conftest.tmp"
3183
- mv "conftest.tmp" "conftest.in"
3184
- cp "conftest.in" "conftest.nl"
3185
- $as_echo 'GREP' >> "conftest.nl"
3186
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3187
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3188
- as_fn_arith $ac_count + 1 && ac_count=$as_val
3189
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
3190
- # Best one so far, save it but keep looking for a better one
3191
- ac_cv_path_GREP="$ac_path_GREP"
3192
- ac_path_GREP_max=$ac_count
3193
- fi
3194
- # 10*(2^10) chars as input seems more than enough
3195
- test $ac_count -gt 10 && break
3196
- done
3197
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3198
- esac
3199
-
3200
- $ac_path_GREP_found && break 3
3201
- done
3202
- done
3203
- done
3204
- IFS=$as_save_IFS
3205
- if test -z "$ac_cv_path_GREP"; then
3206
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3207
- fi
3208
- else
3209
- ac_cv_path_GREP=$GREP
3210
- fi
3211
-
3212
- fi
3213
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3214
- $as_echo "$ac_cv_path_GREP" >&6; }
3215
- GREP="$ac_cv_path_GREP"
3216
-
3217
-
3218
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3219
- $as_echo_n "checking for egrep... " >&6; }
3220
- if ${ac_cv_path_EGREP+:} false; then :
3221
- $as_echo_n "(cached) " >&6
3222
- else
3223
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3224
- then ac_cv_path_EGREP="$GREP -E"
3225
- else
3226
- if test -z "$EGREP"; then
3227
- ac_path_EGREP_found=false
3228
- # Loop through the user's path and test for each of PROGNAME-LIST
3229
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3231
- do
3232
- IFS=$as_save_IFS
3233
- test -z "$as_dir" && as_dir=.
3234
- for ac_prog in egrep; do
3235
- for ac_exec_ext in '' $ac_executable_extensions; do
3236
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3237
- as_fn_executable_p "$ac_path_EGREP" || continue
3238
- # Check for GNU ac_path_EGREP and select it if it is found.
3239
- # Check for GNU $ac_path_EGREP
3240
- case `"$ac_path_EGREP" --version 2>&1` in
3241
- *GNU*)
3242
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3243
- *)
3244
- ac_count=0
3245
- $as_echo_n 0123456789 >"conftest.in"
3246
- while :
3247
- do
3248
- cat "conftest.in" "conftest.in" >"conftest.tmp"
3249
- mv "conftest.tmp" "conftest.in"
3250
- cp "conftest.in" "conftest.nl"
3251
- $as_echo 'EGREP' >> "conftest.nl"
3252
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3253
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3254
- as_fn_arith $ac_count + 1 && ac_count=$as_val
3255
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3256
- # Best one so far, save it but keep looking for a better one
3257
- ac_cv_path_EGREP="$ac_path_EGREP"
3258
- ac_path_EGREP_max=$ac_count
3259
- fi
3260
- # 10*(2^10) chars as input seems more than enough
3261
- test $ac_count -gt 10 && break
3262
- done
3263
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3264
- esac
3265
-
3266
- $ac_path_EGREP_found && break 3
3267
- done
3268
- done
3269
- done
3270
- IFS=$as_save_IFS
3271
- if test -z "$ac_cv_path_EGREP"; then
3272
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3273
- fi
3274
- else
3275
- ac_cv_path_EGREP=$EGREP
3276
- fi
3277
-
3278
- fi
3279
- fi
3280
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3281
- $as_echo "$ac_cv_path_EGREP" >&6; }
3282
- EGREP="$ac_cv_path_EGREP"
3283
-
3284
-
3285
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3286
- $as_echo_n "checking for ANSI C header files... " >&6; }
3287
- if ${ac_cv_header_stdc+:} false; then :
3288
- $as_echo_n "(cached) " >&6
3289
- else
3290
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291
- /* end confdefs.h. */
3292
- #include <stdlib.h>
3293
- #include <stdarg.h>
3294
- #include <string.h>
3295
- #include <float.h>
3296
-
3297
- int
3298
- main ()
3299
- {
3300
-
3301
- ;
3302
- return 0;
3303
- }
3304
- _ACEOF
3305
- if ac_fn_c_try_compile "$LINENO"; then :
3306
- ac_cv_header_stdc=yes
3307
- else
3308
- ac_cv_header_stdc=no
3309
- fi
3310
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311
-
3312
- if test $ac_cv_header_stdc = yes; then
3313
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3314
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315
- /* end confdefs.h. */
3316
- #include <string.h>
3317
-
3318
- _ACEOF
3319
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320
- $EGREP "memchr" >/dev/null 2>&1; then :
3321
-
3322
- else
3323
- ac_cv_header_stdc=no
3324
- fi
3325
- rm -f conftest*
3326
-
3327
- fi
3328
-
3329
- if test $ac_cv_header_stdc = yes; then
3330
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3331
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332
- /* end confdefs.h. */
3333
- #include <stdlib.h>
3334
-
3335
- _ACEOF
3336
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3337
- $EGREP "free" >/dev/null 2>&1; then :
3338
-
3339
- else
3340
- ac_cv_header_stdc=no
3341
- fi
3342
- rm -f conftest*
3343
-
3344
- fi
3345
-
3346
- if test $ac_cv_header_stdc = yes; then
3347
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3348
- if test "$cross_compiling" = yes; then :
3349
- :
3350
- else
3351
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352
- /* end confdefs.h. */
3353
- #include <ctype.h>
3354
- #include <stdlib.h>
3355
- #if ((' ' & 0x0FF) == 0x020)
3356
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3357
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3358
- #else
3359
- # define ISLOWER(c) \
3360
- (('a' <= (c) && (c) <= 'i') \
3361
- || ('j' <= (c) && (c) <= 'r') \
3362
- || ('s' <= (c) && (c) <= 'z'))
3363
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3364
- #endif
3365
-
3366
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3367
- int
3368
- main ()
3369
- {
3370
- int i;
3371
- for (i = 0; i < 256; i++)
3372
- if (XOR (islower (i), ISLOWER (i))
3373
- || toupper (i) != TOUPPER (i))
3374
- return 2;
3375
- return 0;
3376
- }
3377
- _ACEOF
3378
- if ac_fn_c_try_run "$LINENO"; then :
3379
-
3380
- else
3381
- ac_cv_header_stdc=no
3382
- fi
3383
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3384
- conftest.$ac_objext conftest.beam conftest.$ac_ext
3385
- fi
3386
-
3387
- fi
3388
- fi
3389
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3390
- $as_echo "$ac_cv_header_stdc" >&6; }
3391
- if test $ac_cv_header_stdc = yes; then
3392
-
3393
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3394
-
3395
- fi
3396
-
3397
- # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
- for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3399
- inttypes.h stdint.h unistd.h
3400
- do :
3401
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3402
- ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3403
- "
3404
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3405
- cat >>confdefs.h <<_ACEOF
3406
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3407
- _ACEOF
3408
-
3409
- fi
3410
-
3411
- done
3412
-
3413
-
3414
-
3415
- ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3416
- if test "x$ac_cv_header_minix_config_h" = xyes; then :
3417
- MINIX=yes
3418
- else
3419
- MINIX=
3420
- fi
3421
-
3422
-
3423
- if test "$MINIX" = yes; then
3424
-
3425
- $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3426
-
3427
-
3428
- $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3429
-
3430
-
3431
- $as_echo "#define _MINIX 1" >>confdefs.h
3432
-
3433
- fi
3434
-
3435
-
3436
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3437
- $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3438
- if ${ac_cv_safe_to_define___extensions__+:} false; then :
3439
- $as_echo_n "(cached) " >&6
3440
- else
3441
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442
- /* end confdefs.h. */
3443
-
3444
- # define __EXTENSIONS__ 1
3445
- $ac_includes_default
3446
- int
3447
- main ()
3448
- {
3449
-
3450
- ;
3451
- return 0;
3452
- }
3453
- _ACEOF
3454
- if ac_fn_c_try_compile "$LINENO"; then :
3455
- ac_cv_safe_to_define___extensions__=yes
3456
- else
3457
- ac_cv_safe_to_define___extensions__=no
3458
- fi
3459
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460
- fi
3461
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3462
- $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3463
- test $ac_cv_safe_to_define___extensions__ = yes &&
3464
- $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3465
-
3466
- $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3467
-
3468
- $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3469
-
3470
- $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3471
-
3472
- $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3473
-
3474
-
3475
-
3476
- ac_aux_dir=
3477
- for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3478
- if test -f "$ac_dir/install-sh"; then
3479
- ac_aux_dir=$ac_dir
3480
- ac_install_sh="$ac_aux_dir/install-sh -c"
3481
- break
3482
- elif test -f "$ac_dir/install.sh"; then
3483
- ac_aux_dir=$ac_dir
3484
- ac_install_sh="$ac_aux_dir/install.sh -c"
3485
- break
3486
- elif test -f "$ac_dir/shtool"; then
3487
- ac_aux_dir=$ac_dir
3488
- ac_install_sh="$ac_aux_dir/shtool install -c"
3489
- break
3490
- fi
3491
- done
3492
- if test -z "$ac_aux_dir"; then
3493
- as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3494
- fi
3495
-
3496
- # These three variables are undocumented and unsupported,
3497
- # and are intended to be withdrawn in a future Autoconf release.
3498
- # They can cause serious problems if a builder's source tree is in a directory
3499
- # whose full name contains unusual characters.
3500
- ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3501
- ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3502
- ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3503
-
3504
-
3505
- # Make sure we can run config.sub.
3506
- $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3507
- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3508
-
3509
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3510
- $as_echo_n "checking build system type... " >&6; }
3511
- if ${ac_cv_build+:} false; then :
3512
- $as_echo_n "(cached) " >&6
3513
- else
3514
- ac_build_alias=$build_alias
3515
- test "x$ac_build_alias" = x &&
3516
- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3517
- test "x$ac_build_alias" = x &&
3518
- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3519
- ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3520
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3521
-
3522
- fi
3523
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3524
- $as_echo "$ac_cv_build" >&6; }
3525
- case $ac_cv_build in
3526
- *-*-*) ;;
3527
- *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3528
- esac
3529
- build=$ac_cv_build
3530
- ac_save_IFS=$IFS; IFS='-'
3531
- set x $ac_cv_build
3532
- shift
3533
- build_cpu=$1
3534
- build_vendor=$2
3535
- shift; shift
3536
- # Remember, the first character of IFS is used to create $*,
3537
- # except with old shells:
3538
- build_os=$*
3539
- IFS=$ac_save_IFS
3540
- case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541
-
3542
-
3543
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3544
- $as_echo_n "checking host system type... " >&6; }
3545
- if ${ac_cv_host+:} false; then :
3546
- $as_echo_n "(cached) " >&6
3547
- else
3548
- if test "x$host_alias" = x; then
3549
- ac_cv_host=$ac_cv_build
3550
- else
3551
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3552
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3553
- fi
3554
-
3555
- fi
3556
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3557
- $as_echo "$ac_cv_host" >&6; }
3558
- case $ac_cv_host in
3559
- *-*-*) ;;
3560
- *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3561
- esac
3562
- host=$ac_cv_host
3563
- ac_save_IFS=$IFS; IFS='-'
3564
- set x $ac_cv_host
3565
- shift
3566
- host_cpu=$1
3567
- host_vendor=$2
3568
- shift; shift
3569
- # Remember, the first character of IFS is used to create $*,
3570
- # except with old shells:
3571
- host_os=$*
3572
- IFS=$ac_save_IFS
3573
- case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574
-
3575
-
3576
-
3577
- if test "$GCC"; then
3578
- CFLAGS="$CFLAGS -Wall -fvisibility=hidden"
3579
- fi
3580
-
3581
- # The cast to long int works around a bug in the HP C Compiler
3582
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3583
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3584
- # This bug is HP SR number 8606223364.
3585
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
3586
- $as_echo_n "checking size of void*... " >&6; }
3587
- if ${ac_cv_sizeof_voidp+:} false; then :
3588
- $as_echo_n "(cached) " >&6
3589
- else
3590
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
3591
-
3592
- else
3593
- if test "$ac_cv_type_voidp" = yes; then
3594
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596
- as_fn_error 77 "cannot compute sizeof (void*)
3597
- See \`config.log' for more details" "$LINENO" 5; }
3598
- else
3599
- ac_cv_sizeof_voidp=0
3600
- fi
3601
- fi
3602
-
3603
- fi
3604
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
3605
- $as_echo "$ac_cv_sizeof_voidp" >&6; }
3606
-
3607
-
3608
-
3609
- cat >>confdefs.h <<_ACEOF
3610
- #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
3611
- _ACEOF
3612
-
3613
-
3614
- if test "$ac_cv_sizeof_voidp" = 4; then
3615
- FUNCHOOK_CPU=x86
3616
- else
3617
- FUNCHOOK_CPU=x86_64
3618
- fi
3619
-
3620
-
3621
- IF_WIN32='#'
3622
- IF_LINUX='#'
3623
- IF_OSX='#'
3624
-
3625
- if test "$EXEEXT"; then
3626
- FUNCHOOK_OS=windows
3627
- LIBFUNCHOOK_SO=funchook.dll
3628
- CFLAGS="$CFLAGS -DFUNCHOOK_EXPORTS"
3629
- LINK_SHARED="\$(CC) -shared -Wl,--out-implib,funchook.lib"
3630
- IF_WIN32=
3631
- else
3632
- FUNCHOOK_OS=unix
3633
- PIC_CFLAGS="-fPIC"
3634
- LINK_SHARED="\$(CC) -shared"
3635
- case "$host_os" in
3636
- linux*)
3637
- LIBFUNCHOOK_SO=libfunchook.so
3638
- LIBS="-ldl"
3639
- IF_LINUX=
3640
- ;;
3641
- darwin*)
3642
- LIBFUNCHOOK_SO=libfunchook.dylib
3643
- IF_OSX=
3644
- ;;
3645
- esac
3646
- fi
3647
-
3648
- ac_fn_c_check_decl "$LINENO" "_sys_nerr" "ac_cv_have_decl__sys_nerr" "$ac_includes_default"
3649
- if test "x$ac_cv_have_decl__sys_nerr" = xyes; then :
3650
- ac_have_decl=1
3651
- else
3652
- ac_have_decl=0
3653
- fi
3654
-
3655
- cat >>confdefs.h <<_ACEOF
3656
- #define HAVE_DECL__SYS_NERR $ac_have_decl
3657
- _ACEOF
3658
- ac_fn_c_check_decl "$LINENO" "_sys_errlist" "ac_cv_have_decl__sys_errlist" "$ac_includes_default"
3659
- if test "x$ac_cv_have_decl__sys_errlist" = xyes; then :
3660
- ac_have_decl=1
3661
- else
3662
- ac_have_decl=0
3663
- fi
3664
-
3665
- cat >>confdefs.h <<_ACEOF
3666
- #define HAVE_DECL__SYS_ERRLIST $ac_have_decl
3667
- _ACEOF
3668
- ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "$ac_includes_default"
3669
- if test "x$ac_cv_have_decl_sys_nerr" = xyes; then :
3670
- ac_have_decl=1
3671
- else
3672
- ac_have_decl=0
3673
- fi
3674
-
3675
- cat >>confdefs.h <<_ACEOF
3676
- #define HAVE_DECL_SYS_NERR $ac_have_decl
3677
- _ACEOF
3678
- ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "$ac_includes_default"
3679
- if test "x$ac_cv_have_decl_sys_errlist" = xyes; then :
3680
- ac_have_decl=1
3681
- else
3682
- ac_have_decl=0
3683
- fi
3684
-
3685
- cat >>confdefs.h <<_ACEOF
3686
- #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
3687
- _ACEOF
3688
-
3689
-
3690
-
3691
-
3692
-
3693
-
3694
-
3695
-
3696
-
3697
-
3698
- ac_config_headers="$ac_config_headers src/config.h"
3699
-
3700
-
3701
- ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
3702
-
3703
- cat >confcache <<\_ACEOF
3704
- # This file is a shell script that caches the results of configure
3705
- # tests run on this system so they can be shared between configure
3706
- # scripts and configure runs, see configure's option --config-cache.
3707
- # It is not useful on other systems. If it contains results you don't
3708
- # want to keep, you may remove or edit it.
3709
- #
3710
- # config.status only pays attention to the cache file if you give it
3711
- # the --recheck option to rerun configure.
3712
- #
3713
- # `ac_cv_env_foo' variables (set or unset) will be overridden when
3714
- # loading this file, other *unset* `ac_cv_foo' will be assigned the
3715
- # following values.
3716
-
3717
- _ACEOF
3718
-
3719
- # The following way of writing the cache mishandles newlines in values,
3720
- # but we know of no workaround that is simple, portable, and efficient.
3721
- # So, we kill variables containing newlines.
3722
- # Ultrix sh set writes to stderr and can't be redirected directly,
3723
- # and sets the high bit in the cache file unless we assign to the vars.
3724
- (
3725
- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3726
- eval ac_val=\$$ac_var
3727
- case $ac_val in #(
3728
- *${as_nl}*)
3729
- case $ac_var in #(
3730
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3731
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3732
- esac
3733
- case $ac_var in #(
3734
- _ | IFS | as_nl) ;; #(
3735
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3736
- *) { eval $ac_var=; unset $ac_var;} ;;
3737
- esac ;;
3738
- esac
3739
- done
3740
-
3741
- (set) 2>&1 |
3742
- case $as_nl`(ac_space=' '; set) 2>&1` in #(
3743
- *${as_nl}ac_space=\ *)
3744
- # `set' does not quote correctly, so add quotes: double-quote
3745
- # substitution turns \\\\ into \\, and sed turns \\ into \.
3746
- sed -n \
3747
- "s/'/'\\\\''/g;
3748
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3749
- ;; #(
3750
- *)
3751
- # `set' quotes correctly as required by POSIX, so do not add quotes.
3752
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3753
- ;;
3754
- esac |
3755
- sort
3756
- ) |
3757
- sed '
3758
- /^ac_cv_env_/b end
3759
- t clear
3760
- :clear
3761
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3762
- t end
3763
- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3764
- :end' >>confcache
3765
- if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3766
- if test -w "$cache_file"; then
3767
- if test "x$cache_file" != "x/dev/null"; then
3768
- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3769
- $as_echo "$as_me: updating cache $cache_file" >&6;}
3770
- if test ! -f "$cache_file" || test -h "$cache_file"; then
3771
- cat confcache >"$cache_file"
3772
- else
3773
- case $cache_file in #(
3774
- */* | ?:*)
3775
- mv -f confcache "$cache_file"$$ &&
3776
- mv -f "$cache_file"$$ "$cache_file" ;; #(
3777
- *)
3778
- mv -f confcache "$cache_file" ;;
3779
- esac
3780
- fi
3781
- fi
3782
- else
3783
- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3784
- $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3785
- fi
3786
- fi
3787
- rm -f confcache
3788
-
3789
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
3790
- # Let make expand exec_prefix.
3791
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3792
-
3793
- DEFS=-DHAVE_CONFIG_H
3794
-
3795
- ac_libobjs=
3796
- ac_ltlibobjs=
3797
- U=
3798
- for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3799
- # 1. Remove the extension, and $U if already installed.
3800
- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3801
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3802
- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3803
- # will be set to the directory where LIBOBJS objects are built.
3804
- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3805
- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3806
- done
3807
- LIBOBJS=$ac_libobjs
3808
-
3809
- LTLIBOBJS=$ac_ltlibobjs
3810
-
3811
-
3812
-
3813
- : "${CONFIG_STATUS=./config.status}"
3814
- ac_write_fail=0
3815
- ac_clean_files_save=$ac_clean_files
3816
- ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3817
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3818
- $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3819
- as_write_fail=0
3820
- cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3821
- #! $SHELL
3822
- # Generated by $as_me.
3823
- # Run this file to recreate the current configuration.
3824
- # Compiler output produced by configure, useful for debugging
3825
- # configure, is in config.log if it exists.
3826
-
3827
- debug=false
3828
- ac_cs_recheck=false
3829
- ac_cs_silent=false
3830
-
3831
- SHELL=\${CONFIG_SHELL-$SHELL}
3832
- export SHELL
3833
- _ASEOF
3834
- cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3835
- ## -------------------- ##
3836
- ## M4sh Initialization. ##
3837
- ## -------------------- ##
3838
-
3839
- # Be more Bourne compatible
3840
- DUALCASE=1; export DUALCASE # for MKS sh
3841
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3842
- emulate sh
3843
- NULLCMD=:
3844
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3845
- # is contrary to our usage. Disable this feature.
3846
- alias -g '${1+"$@"}'='"$@"'
3847
- setopt NO_GLOB_SUBST
3848
- else
3849
- case `(set -o) 2>/dev/null` in #(
3850
- *posix*) :
3851
- set -o posix ;; #(
3852
- *) :
3853
- ;;
3854
- esac
3855
- fi
3856
-
3857
-
3858
- as_nl='
3859
- '
3860
- export as_nl
3861
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
3862
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3863
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3864
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3865
- # Prefer a ksh shell builtin over an external printf program on Solaris,
3866
- # but without wasting forks for bash or zsh.
3867
- if test -z "$BASH_VERSION$ZSH_VERSION" \
3868
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3869
- as_echo='print -r --'
3870
- as_echo_n='print -rn --'
3871
- elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3872
- as_echo='printf %s\n'
3873
- as_echo_n='printf %s'
3874
- else
3875
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3876
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3877
- as_echo_n='/usr/ucb/echo -n'
3878
- else
3879
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3880
- as_echo_n_body='eval
3881
- arg=$1;
3882
- case $arg in #(
3883
- *"$as_nl"*)
3884
- expr "X$arg" : "X\\(.*\\)$as_nl";
3885
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3886
- esac;
3887
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3888
- '
3889
- export as_echo_n_body
3890
- as_echo_n='sh -c $as_echo_n_body as_echo'
3891
- fi
3892
- export as_echo_body
3893
- as_echo='sh -c $as_echo_body as_echo'
3894
- fi
3895
-
3896
- # The user is always right.
3897
- if test "${PATH_SEPARATOR+set}" != set; then
3898
- PATH_SEPARATOR=:
3899
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3900
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3901
- PATH_SEPARATOR=';'
3902
- }
3903
- fi
3904
-
3905
-
3906
- # IFS
3907
- # We need space, tab and new line, in precisely that order. Quoting is
3908
- # there to prevent editors from complaining about space-tab.
3909
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3910
- # splitting by setting IFS to empty value.)
3911
- IFS=" "" $as_nl"
3912
-
3913
- # Find who we are. Look in the path if we contain no directory separator.
3914
- as_myself=
3915
- case $0 in #((
3916
- *[\\/]* ) as_myself=$0 ;;
3917
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918
- for as_dir in $PATH
3919
- do
3920
- IFS=$as_save_IFS
3921
- test -z "$as_dir" && as_dir=.
3922
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3923
- done
3924
- IFS=$as_save_IFS
3925
-
3926
- ;;
3927
- esac
3928
- # We did not find ourselves, most probably we were run as `sh COMMAND'
3929
- # in which case we are not to be found in the path.
3930
- if test "x$as_myself" = x; then
3931
- as_myself=$0
3932
- fi
3933
- if test ! -f "$as_myself"; then
3934
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3935
- exit 1
3936
- fi
3937
-
3938
- # Unset variables that we do not need and which cause bugs (e.g. in
3939
- # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3940
- # suppresses any "Segmentation fault" message there. '((' could
3941
- # trigger a bug in pdksh 5.2.14.
3942
- for as_var in BASH_ENV ENV MAIL MAILPATH
3943
- do eval test x\${$as_var+set} = xset \
3944
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3945
- done
3946
- PS1='$ '
3947
- PS2='> '
3948
- PS4='+ '
3949
-
3950
- # NLS nuisances.
3951
- LC_ALL=C
3952
- export LC_ALL
3953
- LANGUAGE=C
3954
- export LANGUAGE
3955
-
3956
- # CDPATH.
3957
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3958
-
3959
-
3960
- # as_fn_error STATUS ERROR [LINENO LOG_FD]
3961
- # ----------------------------------------
3962
- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3963
- # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3964
- # script with STATUS, using 1 if that was 0.
3965
- as_fn_error ()
3966
- {
3967
- as_status=$1; test $as_status -eq 0 && as_status=1
3968
- if test "$4"; then
3969
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3970
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3971
- fi
3972
- $as_echo "$as_me: error: $2" >&2
3973
- as_fn_exit $as_status
3974
- } # as_fn_error
3975
-
3976
-
3977
- # as_fn_set_status STATUS
3978
- # -----------------------
3979
- # Set $? to STATUS, without forking.
3980
- as_fn_set_status ()
3981
- {
3982
- return $1
3983
- } # as_fn_set_status
3984
-
3985
- # as_fn_exit STATUS
3986
- # -----------------
3987
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3988
- as_fn_exit ()
3989
- {
3990
- set +e
3991
- as_fn_set_status $1
3992
- exit $1
3993
- } # as_fn_exit
3994
-
3995
- # as_fn_unset VAR
3996
- # ---------------
3997
- # Portably unset VAR.
3998
- as_fn_unset ()
3999
- {
4000
- { eval $1=; unset $1;}
4001
- }
4002
- as_unset=as_fn_unset
4003
- # as_fn_append VAR VALUE
4004
- # ----------------------
4005
- # Append the text in VALUE to the end of the definition contained in VAR. Take
4006
- # advantage of any shell optimizations that allow amortized linear growth over
4007
- # repeated appends, instead of the typical quadratic growth present in naive
4008
- # implementations.
4009
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4010
- eval 'as_fn_append ()
4011
- {
4012
- eval $1+=\$2
4013
- }'
4014
- else
4015
- as_fn_append ()
4016
- {
4017
- eval $1=\$$1\$2
4018
- }
4019
- fi # as_fn_append
4020
-
4021
- # as_fn_arith ARG...
4022
- # ------------------
4023
- # Perform arithmetic evaluation on the ARGs, and store the result in the
4024
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
4025
- # must be portable across $(()) and expr.
4026
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4027
- eval 'as_fn_arith ()
4028
- {
4029
- as_val=$(( $* ))
4030
- }'
4031
- else
4032
- as_fn_arith ()
4033
- {
4034
- as_val=`expr "$@" || test $? -eq 1`
4035
- }
4036
- fi # as_fn_arith
4037
-
4038
-
4039
- if expr a : '\(a\)' >/dev/null 2>&1 &&
4040
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
4041
- as_expr=expr
4042
- else
4043
- as_expr=false
4044
- fi
4045
-
4046
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4047
- as_basename=basename
4048
- else
4049
- as_basename=false
4050
- fi
4051
-
4052
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4053
- as_dirname=dirname
4054
- else
4055
- as_dirname=false
4056
- fi
4057
-
4058
- as_me=`$as_basename -- "$0" ||
4059
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4060
- X"$0" : 'X\(//\)$' \| \
4061
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4062
- $as_echo X/"$0" |
4063
- sed '/^.*\/\([^/][^/]*\)\/*$/{
4064
- s//\1/
4065
- q
4066
- }
4067
- /^X\/\(\/\/\)$/{
4068
- s//\1/
4069
- q
4070
- }
4071
- /^X\/\(\/\).*/{
4072
- s//\1/
4073
- q
4074
- }
4075
- s/.*/./; q'`
4076
-
4077
- # Avoid depending upon Character Ranges.
4078
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4079
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4080
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4081
- as_cr_digits='0123456789'
4082
- as_cr_alnum=$as_cr_Letters$as_cr_digits
4083
-
4084
- ECHO_C= ECHO_N= ECHO_T=
4085
- case `echo -n x` in #(((((
4086
- -n*)
4087
- case `echo 'xy\c'` in
4088
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4089
- xy) ECHO_C='\c';;
4090
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4091
- ECHO_T=' ';;
4092
- esac;;
4093
- *)
4094
- ECHO_N='-n';;
4095
- esac
4096
-
4097
- rm -f conf$$ conf$$.exe conf$$.file
4098
- if test -d conf$$.dir; then
4099
- rm -f conf$$.dir/conf$$.file
4100
- else
4101
- rm -f conf$$.dir
4102
- mkdir conf$$.dir 2>/dev/null
4103
- fi
4104
- if (echo >conf$$.file) 2>/dev/null; then
4105
- if ln -s conf$$.file conf$$ 2>/dev/null; then
4106
- as_ln_s='ln -s'
4107
- # ... but there are two gotchas:
4108
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4109
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4110
- # In both cases, we have to default to `cp -pR'.
4111
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4112
- as_ln_s='cp -pR'
4113
- elif ln conf$$.file conf$$ 2>/dev/null; then
4114
- as_ln_s=ln
4115
- else
4116
- as_ln_s='cp -pR'
4117
- fi
4118
- else
4119
- as_ln_s='cp -pR'
4120
- fi
4121
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4122
- rmdir conf$$.dir 2>/dev/null
4123
-
4124
-
4125
- # as_fn_mkdir_p
4126
- # -------------
4127
- # Create "$as_dir" as a directory, including parents if necessary.
4128
- as_fn_mkdir_p ()
4129
- {
4130
-
4131
- case $as_dir in #(
4132
- -*) as_dir=./$as_dir;;
4133
- esac
4134
- test -d "$as_dir" || eval $as_mkdir_p || {
4135
- as_dirs=
4136
- while :; do
4137
- case $as_dir in #(
4138
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4139
- *) as_qdir=$as_dir;;
4140
- esac
4141
- as_dirs="'$as_qdir' $as_dirs"
4142
- as_dir=`$as_dirname -- "$as_dir" ||
4143
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4144
- X"$as_dir" : 'X\(//\)[^/]' \| \
4145
- X"$as_dir" : 'X\(//\)$' \| \
4146
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4147
- $as_echo X"$as_dir" |
4148
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4149
- s//\1/
4150
- q
4151
- }
4152
- /^X\(\/\/\)[^/].*/{
4153
- s//\1/
4154
- q
4155
- }
4156
- /^X\(\/\/\)$/{
4157
- s//\1/
4158
- q
4159
- }
4160
- /^X\(\/\).*/{
4161
- s//\1/
4162
- q
4163
- }
4164
- s/.*/./; q'`
4165
- test -d "$as_dir" && break
4166
- done
4167
- test -z "$as_dirs" || eval "mkdir $as_dirs"
4168
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4169
-
4170
-
4171
- } # as_fn_mkdir_p
4172
- if mkdir -p . 2>/dev/null; then
4173
- as_mkdir_p='mkdir -p "$as_dir"'
4174
- else
4175
- test -d ./-p && rmdir ./-p
4176
- as_mkdir_p=false
4177
- fi
4178
-
4179
-
4180
- # as_fn_executable_p FILE
4181
- # -----------------------
4182
- # Test if FILE is an executable regular file.
4183
- as_fn_executable_p ()
4184
- {
4185
- test -f "$1" && test -x "$1"
4186
- } # as_fn_executable_p
4187
- as_test_x='test -x'
4188
- as_executable_p=as_fn_executable_p
4189
-
4190
- # Sed expression to map a string onto a valid CPP name.
4191
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4192
-
4193
- # Sed expression to map a string onto a valid variable name.
4194
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4195
-
4196
-
4197
- exec 6>&1
4198
- ## ----------------------------------- ##
4199
- ## Main body of $CONFIG_STATUS script. ##
4200
- ## ----------------------------------- ##
4201
- _ASEOF
4202
- test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4203
-
4204
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4205
- # Save the log message, to keep $0 and so on meaningful, and to
4206
- # report actual input values of CONFIG_FILES etc. instead of their
4207
- # values after options handling.
4208
- ac_log="
4209
- This file was extended by funchook $as_me 0.1, which was
4210
- generated by GNU Autoconf 2.69. Invocation command line was
4211
-
4212
- CONFIG_FILES = $CONFIG_FILES
4213
- CONFIG_HEADERS = $CONFIG_HEADERS
4214
- CONFIG_LINKS = $CONFIG_LINKS
4215
- CONFIG_COMMANDS = $CONFIG_COMMANDS
4216
- $ $0 $@
4217
-
4218
- on `(hostname || uname -n) 2>/dev/null | sed 1q`
4219
- "
4220
-
4221
- _ACEOF
4222
-
4223
- case $ac_config_files in *"
4224
- "*) set x $ac_config_files; shift; ac_config_files=$*;;
4225
- esac
4226
-
4227
- case $ac_config_headers in *"
4228
- "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4229
- esac
4230
-
4231
-
4232
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4233
- # Files that config.status was made for.
4234
- config_files="$ac_config_files"
4235
- config_headers="$ac_config_headers"
4236
-
4237
- _ACEOF
4238
-
4239
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4240
- ac_cs_usage="\
4241
- \`$as_me' instantiates files and other configuration actions
4242
- from templates according to the current configuration. Unless the files
4243
- and actions are specified as TAGs, all are instantiated by default.
4244
-
4245
- Usage: $0 [OPTION]... [TAG]...
4246
-
4247
- -h, --help print this help, then exit
4248
- -V, --version print version number and configuration settings, then exit
4249
- --config print configuration, then exit
4250
- -q, --quiet, --silent
4251
- do not print progress messages
4252
- -d, --debug don't remove temporary files
4253
- --recheck update $as_me by reconfiguring in the same conditions
4254
- --file=FILE[:TEMPLATE]
4255
- instantiate the configuration file FILE
4256
- --header=FILE[:TEMPLATE]
4257
- instantiate the configuration header FILE
4258
-
4259
- Configuration files:
4260
- $config_files
4261
-
4262
- Configuration headers:
4263
- $config_headers
4264
-
4265
- Report bugs to the package provider."
4266
-
4267
- _ACEOF
4268
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4269
- ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4270
- ac_cs_version="\\
4271
- funchook config.status 0.1
4272
- configured by $0, generated by GNU Autoconf 2.69,
4273
- with options \\"\$ac_cs_config\\"
4274
-
4275
- Copyright (C) 2012 Free Software Foundation, Inc.
4276
- This config.status script is free software; the Free Software Foundation
4277
- gives unlimited permission to copy, distribute and modify it."
4278
-
4279
- ac_pwd='$ac_pwd'
4280
- srcdir='$srcdir'
4281
- test -n "\$AWK" || AWK=awk
4282
- _ACEOF
4283
-
4284
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4285
- # The default lists apply if the user does not specify any file.
4286
- ac_need_defaults=:
4287
- while test $# != 0
4288
- do
4289
- case $1 in
4290
- --*=?*)
4291
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
4292
- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4293
- ac_shift=:
4294
- ;;
4295
- --*=)
4296
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
4297
- ac_optarg=
4298
- ac_shift=:
4299
- ;;
4300
- *)
4301
- ac_option=$1
4302
- ac_optarg=$2
4303
- ac_shift=shift
4304
- ;;
4305
- esac
4306
-
4307
- case $ac_option in
4308
- # Handling of the options.
4309
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4310
- ac_cs_recheck=: ;;
4311
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4312
- $as_echo "$ac_cs_version"; exit ;;
4313
- --config | --confi | --conf | --con | --co | --c )
4314
- $as_echo "$ac_cs_config"; exit ;;
4315
- --debug | --debu | --deb | --de | --d | -d )
4316
- debug=: ;;
4317
- --file | --fil | --fi | --f )
4318
- $ac_shift
4319
- case $ac_optarg in
4320
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4321
- '') as_fn_error $? "missing file argument" ;;
4322
- esac
4323
- as_fn_append CONFIG_FILES " '$ac_optarg'"
4324
- ac_need_defaults=false;;
4325
- --header | --heade | --head | --hea )
4326
- $ac_shift
4327
- case $ac_optarg in
4328
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4329
- esac
4330
- as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4331
- ac_need_defaults=false;;
4332
- --he | --h)
4333
- # Conflict between --help and --header
4334
- as_fn_error $? "ambiguous option: \`$1'
4335
- Try \`$0 --help' for more information.";;
4336
- --help | --hel | -h )
4337
- $as_echo "$ac_cs_usage"; exit ;;
4338
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4339
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
4340
- ac_cs_silent=: ;;
4341
-
4342
- # This is an error.
4343
- -*) as_fn_error $? "unrecognized option: \`$1'
4344
- Try \`$0 --help' for more information." ;;
4345
-
4346
- *) as_fn_append ac_config_targets " $1"
4347
- ac_need_defaults=false ;;
4348
-
4349
- esac
4350
- shift
4351
- done
4352
-
4353
- ac_configure_extra_args=
4354
-
4355
- if $ac_cs_silent; then
4356
- exec 6>/dev/null
4357
- ac_configure_extra_args="$ac_configure_extra_args --silent"
4358
- fi
4359
-
4360
- _ACEOF
4361
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4362
- if \$ac_cs_recheck; then
4363
- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4364
- shift
4365
- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4366
- CONFIG_SHELL='$SHELL'
4367
- export CONFIG_SHELL
4368
- exec "\$@"
4369
- fi
4370
-
4371
- _ACEOF
4372
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4373
- exec 5>>config.log
4374
- {
4375
- echo
4376
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4377
- ## Running $as_me. ##
4378
- _ASBOX
4379
- $as_echo "$ac_log"
4380
- } >&5
4381
-
4382
- _ACEOF
4383
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4384
- _ACEOF
4385
-
4386
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4387
-
4388
- # Handling of arguments.
4389
- for ac_config_target in $ac_config_targets
4390
- do
4391
- case $ac_config_target in
4392
- "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4393
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4394
- "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4395
- "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4396
-
4397
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4398
- esac
4399
- done
4400
-
4401
-
4402
- # If the user did not use the arguments to specify the items to instantiate,
4403
- # then the envvar interface is used. Set only those that are not.
4404
- # We use the long form for the default assignment because of an extremely
4405
- # bizarre bug on SunOS 4.1.3.
4406
- if $ac_need_defaults; then
4407
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4408
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4409
- fi
4410
-
4411
- # Have a temporary directory for convenience. Make it in the build tree
4412
- # simply because there is no reason against having it here, and in addition,
4413
- # creating and moving files from /tmp can sometimes cause problems.
4414
- # Hook for its removal unless debugging.
4415
- # Note that there is a small window in which the directory will not be cleaned:
4416
- # after its creation but before its name has been assigned to `$tmp'.
4417
- $debug ||
4418
- {
4419
- tmp= ac_tmp=
4420
- trap 'exit_status=$?
4421
- : "${ac_tmp:=$tmp}"
4422
- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4423
- ' 0
4424
- trap 'as_fn_exit 1' 1 2 13 15
4425
- }
4426
- # Create a (secure) tmp directory for tmp files.
4427
-
4428
- {
4429
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4430
- test -d "$tmp"
4431
- } ||
4432
- {
4433
- tmp=./conf$$-$RANDOM
4434
- (umask 077 && mkdir "$tmp")
4435
- } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4436
- ac_tmp=$tmp
4437
-
4438
- # Set up the scripts for CONFIG_FILES section.
4439
- # No need to generate them if there are no CONFIG_FILES.
4440
- # This happens for instance with `./config.status config.h'.
4441
- if test -n "$CONFIG_FILES"; then
4442
-
4443
-
4444
- ac_cr=`echo X | tr X '\015'`
4445
- # On cygwin, bash can eat \r inside `` if the user requested igncr.
4446
- # But we know of no other shell where ac_cr would be empty at this
4447
- # point, so we can use a bashism as a fallback.
4448
- if test "x$ac_cr" = x; then
4449
- eval ac_cr=\$\'\\r\'
4450
- fi
4451
- ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4452
- if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4453
- ac_cs_awk_cr='\\r'
4454
- else
4455
- ac_cs_awk_cr=$ac_cr
4456
- fi
4457
-
4458
- echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4459
- _ACEOF
4460
-
4461
-
4462
- {
4463
- echo "cat >conf$$subs.awk <<_ACEOF" &&
4464
- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4465
- echo "_ACEOF"
4466
- } >conf$$subs.sh ||
4467
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4468
- ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4469
- ac_delim='%!_!# '
4470
- for ac_last_try in false false false false false :; do
4471
- . ./conf$$subs.sh ||
4472
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4473
-
4474
- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4475
- if test $ac_delim_n = $ac_delim_num; then
4476
- break
4477
- elif $ac_last_try; then
4478
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4479
- else
4480
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4481
- fi
4482
- done
4483
- rm -f conf$$subs.sh
4484
-
4485
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4486
- cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4487
- _ACEOF
4488
- sed -n '
4489
- h
4490
- s/^/S["/; s/!.*/"]=/
4491
- p
4492
- g
4493
- s/^[^!]*!//
4494
- :repl
4495
- t repl
4496
- s/'"$ac_delim"'$//
4497
- t delim
4498
- :nl
4499
- h
4500
- s/\(.\{148\}\)..*/\1/
4501
- t more1
4502
- s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4503
- p
4504
- n
4505
- b repl
4506
- :more1
4507
- s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4508
- p
4509
- g
4510
- s/.\{148\}//
4511
- t nl
4512
- :delim
4513
- h
4514
- s/\(.\{148\}\)..*/\1/
4515
- t more2
4516
- s/["\\]/\\&/g; s/^/"/; s/$/"/
4517
- p
4518
- b
4519
- :more2
4520
- s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4521
- p
4522
- g
4523
- s/.\{148\}//
4524
- t delim
4525
- ' <conf$$subs.awk | sed '
4526
- /^[^""]/{
4527
- N
4528
- s/\n//
4529
- }
4530
- ' >>$CONFIG_STATUS || ac_write_fail=1
4531
- rm -f conf$$subs.awk
4532
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4533
- _ACAWK
4534
- cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4535
- for (key in S) S_is_set[key] = 1
4536
- FS = ""
4537
-
4538
- }
4539
- {
4540
- line = $ 0
4541
- nfields = split(line, field, "@")
4542
- substed = 0
4543
- len = length(field[1])
4544
- for (i = 2; i < nfields; i++) {
4545
- key = field[i]
4546
- keylen = length(key)
4547
- if (S_is_set[key]) {
4548
- value = S[key]
4549
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4550
- len += length(value) + length(field[++i])
4551
- substed = 1
4552
- } else
4553
- len += 1 + keylen
4554
- }
4555
-
4556
- print line
4557
- }
4558
-
4559
- _ACAWK
4560
- _ACEOF
4561
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4562
- if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4563
- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4564
- else
4565
- cat
4566
- fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4567
- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4568
- _ACEOF
4569
-
4570
- # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4571
- # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4572
- # trailing colons and then remove the whole line if VPATH becomes empty
4573
- # (actually we leave an empty line to preserve line numbers).
4574
- if test "x$srcdir" = x.; then
4575
- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4576
- h
4577
- s///
4578
- s/^/:/
4579
- s/[ ]*$/:/
4580
- s/:\$(srcdir):/:/g
4581
- s/:\${srcdir}:/:/g
4582
- s/:@srcdir@:/:/g
4583
- s/^:*//
4584
- s/:*$//
4585
- x
4586
- s/\(=[ ]*\).*/\1/
4587
- G
4588
- s/\n//
4589
- s/^[^=]*=[ ]*$//
4590
- }'
4591
- fi
4592
-
4593
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4594
- fi # test -n "$CONFIG_FILES"
4595
-
4596
- # Set up the scripts for CONFIG_HEADERS section.
4597
- # No need to generate them if there are no CONFIG_HEADERS.
4598
- # This happens for instance with `./config.status Makefile'.
4599
- if test -n "$CONFIG_HEADERS"; then
4600
- cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4601
- BEGIN {
4602
- _ACEOF
4603
-
4604
- # Transform confdefs.h into an awk script `defines.awk', embedded as
4605
- # here-document in config.status, that substitutes the proper values into
4606
- # config.h.in to produce config.h.
4607
-
4608
- # Create a delimiter string that does not exist in confdefs.h, to ease
4609
- # handling of long lines.
4610
- ac_delim='%!_!# '
4611
- for ac_last_try in false false :; do
4612
- ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4613
- if test -z "$ac_tt"; then
4614
- break
4615
- elif $ac_last_try; then
4616
- as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4617
- else
4618
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4619
- fi
4620
- done
4621
-
4622
- # For the awk script, D is an array of macro values keyed by name,
4623
- # likewise P contains macro parameters if any. Preserve backslash
4624
- # newline sequences.
4625
-
4626
- ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4627
- sed -n '
4628
- s/.\{148\}/&'"$ac_delim"'/g
4629
- t rset
4630
- :rset
4631
- s/^[ ]*#[ ]*define[ ][ ]*/ /
4632
- t def
4633
- d
4634
- :def
4635
- s/\\$//
4636
- t bsnl
4637
- s/["\\]/\\&/g
4638
- s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4639
- D["\1"]=" \3"/p
4640
- s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4641
- d
4642
- :bsnl
4643
- s/["\\]/\\&/g
4644
- s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4645
- D["\1"]=" \3\\\\\\n"\\/p
4646
- t cont
4647
- s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4648
- t cont
4649
- d
4650
- :cont
4651
- n
4652
- s/.\{148\}/&'"$ac_delim"'/g
4653
- t clear
4654
- :clear
4655
- s/\\$//
4656
- t bsnlc
4657
- s/["\\]/\\&/g; s/^/"/; s/$/"/p
4658
- d
4659
- :bsnlc
4660
- s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4661
- b cont
4662
- ' <confdefs.h | sed '
4663
- s/'"$ac_delim"'/"\\\
4664
- "/g' >>$CONFIG_STATUS || ac_write_fail=1
4665
-
4666
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4667
- for (key in D) D_is_set[key] = 1
4668
- FS = ""
4669
- }
4670
- /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4671
- line = \$ 0
4672
- split(line, arg, " ")
4673
- if (arg[1] == "#") {
4674
- defundef = arg[2]
4675
- mac1 = arg[3]
4676
- } else {
4677
- defundef = substr(arg[1], 2)
4678
- mac1 = arg[2]
4679
- }
4680
- split(mac1, mac2, "(") #)
4681
- macro = mac2[1]
4682
- prefix = substr(line, 1, index(line, defundef) - 1)
4683
- if (D_is_set[macro]) {
4684
- # Preserve the white space surrounding the "#".
4685
- print prefix "define", macro P[macro] D[macro]
4686
- next
4687
- } else {
4688
- # Replace #undef with comments. This is necessary, for example,
4689
- # in the case of _POSIX_SOURCE, which is predefined and required
4690
- # on some systems where configure will not decide to define it.
4691
- if (defundef == "undef") {
4692
- print "/*", prefix defundef, macro, "*/"
4693
- next
4694
- }
4695
- }
4696
- }
4697
- { print }
4698
- _ACAWK
4699
- _ACEOF
4700
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4701
- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4702
- fi # test -n "$CONFIG_HEADERS"
4703
-
4704
-
4705
- eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4706
- shift
4707
- for ac_tag
4708
- do
4709
- case $ac_tag in
4710
- :[FHLC]) ac_mode=$ac_tag; continue;;
4711
- esac
4712
- case $ac_mode$ac_tag in
4713
- :[FHL]*:*);;
4714
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4715
- :[FH]-) ac_tag=-:-;;
4716
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4717
- esac
4718
- ac_save_IFS=$IFS
4719
- IFS=:
4720
- set x $ac_tag
4721
- IFS=$ac_save_IFS
4722
- shift
4723
- ac_file=$1
4724
- shift
4725
-
4726
- case $ac_mode in
4727
- :L) ac_source=$1;;
4728
- :[FH])
4729
- ac_file_inputs=
4730
- for ac_f
4731
- do
4732
- case $ac_f in
4733
- -) ac_f="$ac_tmp/stdin";;
4734
- *) # Look for the file first in the build tree, then in the source tree
4735
- # (if the path is not absolute). The absolute path cannot be DOS-style,
4736
- # because $ac_f cannot contain `:'.
4737
- test -f "$ac_f" ||
4738
- case $ac_f in
4739
- [\\/$]*) false;;
4740
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4741
- esac ||
4742
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4743
- esac
4744
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4745
- as_fn_append ac_file_inputs " '$ac_f'"
4746
- done
4747
-
4748
- # Let's still pretend it is `configure' which instantiates (i.e., don't
4749
- # use $as_me), people would be surprised to read:
4750
- # /* config.h. Generated by config.status. */
4751
- configure_input='Generated from '`
4752
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4753
- `' by configure.'
4754
- if test x"$ac_file" != x-; then
4755
- configure_input="$ac_file. $configure_input"
4756
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4757
- $as_echo "$as_me: creating $ac_file" >&6;}
4758
- fi
4759
- # Neutralize special characters interpreted by sed in replacement strings.
4760
- case $configure_input in #(
4761
- *\&* | *\|* | *\\* )
4762
- ac_sed_conf_input=`$as_echo "$configure_input" |
4763
- sed 's/[\\\\&|]/\\\\&/g'`;; #(
4764
- *) ac_sed_conf_input=$configure_input;;
4765
- esac
4766
-
4767
- case $ac_tag in
4768
- *:-:* | *:-) cat >"$ac_tmp/stdin" \
4769
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4770
- esac
4771
- ;;
4772
- esac
4773
-
4774
- ac_dir=`$as_dirname -- "$ac_file" ||
4775
- $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4776
- X"$ac_file" : 'X\(//\)[^/]' \| \
4777
- X"$ac_file" : 'X\(//\)$' \| \
4778
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4779
- $as_echo X"$ac_file" |
4780
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4781
- s//\1/
4782
- q
4783
- }
4784
- /^X\(\/\/\)[^/].*/{
4785
- s//\1/
4786
- q
4787
- }
4788
- /^X\(\/\/\)$/{
4789
- s//\1/
4790
- q
4791
- }
4792
- /^X\(\/\).*/{
4793
- s//\1/
4794
- q
4795
- }
4796
- s/.*/./; q'`
4797
- as_dir="$ac_dir"; as_fn_mkdir_p
4798
- ac_builddir=.
4799
-
4800
- case "$ac_dir" in
4801
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4802
- *)
4803
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4804
- # A ".." for each directory in $ac_dir_suffix.
4805
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4806
- case $ac_top_builddir_sub in
4807
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4808
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4809
- esac ;;
4810
- esac
4811
- ac_abs_top_builddir=$ac_pwd
4812
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
4813
- # for backward compatibility:
4814
- ac_top_builddir=$ac_top_build_prefix
4815
-
4816
- case $srcdir in
4817
- .) # We are building in place.
4818
- ac_srcdir=.
4819
- ac_top_srcdir=$ac_top_builddir_sub
4820
- ac_abs_top_srcdir=$ac_pwd ;;
4821
- [\\/]* | ?:[\\/]* ) # Absolute name.
4822
- ac_srcdir=$srcdir$ac_dir_suffix;
4823
- ac_top_srcdir=$srcdir
4824
- ac_abs_top_srcdir=$srcdir ;;
4825
- *) # Relative name.
4826
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4827
- ac_top_srcdir=$ac_top_build_prefix$srcdir
4828
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4829
- esac
4830
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4831
-
4832
-
4833
- case $ac_mode in
4834
- :F)
4835
- #
4836
- # CONFIG_FILE
4837
- #
4838
-
4839
- _ACEOF
4840
-
4841
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4842
- # If the template does not know about datarootdir, expand it.
4843
- # FIXME: This hack should be removed a few years after 2.60.
4844
- ac_datarootdir_hack=; ac_datarootdir_seen=
4845
- ac_sed_dataroot='
4846
- /datarootdir/ {
4847
- p
4848
- q
4849
- }
4850
- /@datadir@/p
4851
- /@docdir@/p
4852
- /@infodir@/p
4853
- /@localedir@/p
4854
- /@mandir@/p'
4855
- case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4856
- *datarootdir*) ac_datarootdir_seen=yes;;
4857
- *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4858
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4859
- $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4860
- _ACEOF
4861
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4862
- ac_datarootdir_hack='
4863
- s&@datadir@&$datadir&g
4864
- s&@docdir@&$docdir&g
4865
- s&@infodir@&$infodir&g
4866
- s&@localedir@&$localedir&g
4867
- s&@mandir@&$mandir&g
4868
- s&\\\${datarootdir}&$datarootdir&g' ;;
4869
- esac
4870
- _ACEOF
4871
-
4872
- # Neutralize VPATH when `$srcdir' = `.'.
4873
- # Shell code in configure.ac might set extrasub.
4874
- # FIXME: do we really want to maintain this feature?
4875
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4876
- ac_sed_extra="$ac_vpsub
4877
- $extrasub
4878
- _ACEOF
4879
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4880
- :t
4881
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4882
- s|@configure_input@|$ac_sed_conf_input|;t t
4883
- s&@top_builddir@&$ac_top_builddir_sub&;t t
4884
- s&@top_build_prefix@&$ac_top_build_prefix&;t t
4885
- s&@srcdir@&$ac_srcdir&;t t
4886
- s&@abs_srcdir@&$ac_abs_srcdir&;t t
4887
- s&@top_srcdir@&$ac_top_srcdir&;t t
4888
- s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4889
- s&@builddir@&$ac_builddir&;t t
4890
- s&@abs_builddir@&$ac_abs_builddir&;t t
4891
- s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4892
- $ac_datarootdir_hack
4893
- "
4894
- eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4895
- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4896
-
4897
- test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4898
- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4899
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4900
- "$ac_tmp/out"`; test -z "$ac_out"; } &&
4901
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4902
- which seems to be undefined. Please make sure it is defined" >&5
4903
- $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4904
- which seems to be undefined. Please make sure it is defined" >&2;}
4905
-
4906
- rm -f "$ac_tmp/stdin"
4907
- case $ac_file in
4908
- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4909
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4910
- esac \
4911
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4912
- ;;
4913
- :H)
4914
- #
4915
- # CONFIG_HEADER
4916
- #
4917
- if test x"$ac_file" != x-; then
4918
- {
4919
- $as_echo "/* $configure_input */" \
4920
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4921
- } >"$ac_tmp/config.h" \
4922
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4923
- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4924
- { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4925
- $as_echo "$as_me: $ac_file is unchanged" >&6;}
4926
- else
4927
- rm -f "$ac_file"
4928
- mv "$ac_tmp/config.h" "$ac_file" \
4929
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4930
- fi
4931
- else
4932
- $as_echo "/* $configure_input */" \
4933
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4934
- || as_fn_error $? "could not create -" "$LINENO" 5
4935
- fi
4936
- ;;
4937
-
4938
-
4939
- esac
4940
-
4941
- done # for ac_tag
4942
-
4943
-
4944
- as_fn_exit 0
4945
- _ACEOF
4946
- ac_clean_files=$ac_clean_files_save
4947
-
4948
- test $ac_write_fail = 0 ||
4949
- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4950
-
4951
-
4952
- # configure is writing to config.log, and then calls config.status.
4953
- # config.status does its own redirection, appending to config.log.
4954
- # Unfortunately, on DOS this fails, as config.log is still kept open
4955
- # by configure, so config.status won't be able to write to it; its
4956
- # output is simply discarded. So we exec the FD to /dev/null,
4957
- # effectively closing config.log, so it can be properly (re)opened and
4958
- # appended to by config.status. When coming back to configure, we
4959
- # need to make the FD available again.
4960
- if test "$no_create" != yes; then
4961
- ac_cs_success=:
4962
- ac_config_status_args=
4963
- test "$silent" = yes &&
4964
- ac_config_status_args="$ac_config_status_args --quiet"
4965
- exec 5>/dev/null
4966
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4967
- exec 5>>config.log
4968
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4969
- # would make configure fail if this is the last instruction.
4970
- $ac_cs_success || as_fn_exit 1
4971
- fi
4972
- if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4973
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4974
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4975
- fi
4976
-