passagemath-gap-pkg-semigroups 10.6.30__cp312-abi3-macosx_13_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of passagemath-gap-pkg-semigroups might be problematic. Click here for more details.

Files changed (354) hide show
  1. gap/pkg/semigroups/CHANGELOG.md +1699 -0
  2. gap/pkg/semigroups/CONTRIBUTING.md +91 -0
  3. gap/pkg/semigroups/GNUmakefile +110 -0
  4. gap/pkg/semigroups/GNUmakefile.in +110 -0
  5. gap/pkg/semigroups/GPL +674 -0
  6. gap/pkg/semigroups/LICENSE +16 -0
  7. gap/pkg/semigroups/Makefile +26 -0
  8. gap/pkg/semigroups/Makefile.gappkg +225 -0
  9. gap/pkg/semigroups/PackageInfo.g +529 -0
  10. gap/pkg/semigroups/README.md +102 -0
  11. gap/pkg/semigroups/VERSIONS +112 -0
  12. gap/pkg/semigroups/aclocal.m4 +375 -0
  13. gap/pkg/semigroups/autogen.sh +25 -0
  14. gap/pkg/semigroups/bin/aarch64-apple-darwin23-default64-kv10/semigroups.so +0 -0
  15. gap/pkg/semigroups/config.guess +1807 -0
  16. gap/pkg/semigroups/config.log +1158 -0
  17. gap/pkg/semigroups/config.status +1131 -0
  18. gap/pkg/semigroups/config.sub +1960 -0
  19. gap/pkg/semigroups/configure +9742 -0
  20. gap/pkg/semigroups/configure.ac +71 -0
  21. gap/pkg/semigroups/data/doc/greens.pickle +1 -0
  22. gap/pkg/semigroups/data/gens/fullbool-8.pickle.gz +0 -0
  23. gap/pkg/semigroups/data/gens/fullbool.pickle.gz +0 -0
  24. gap/pkg/semigroups/data/gens/hall.pickle.gz +0 -0
  25. gap/pkg/semigroups/data/gens/reflex-6.pickle.gz +0 -0
  26. gap/pkg/semigroups/data/gens/reflex.pickle.gz +0 -0
  27. gap/pkg/semigroups/data/tst/bipart4 +10 -0
  28. gap/pkg/semigroups/data/tst/pperm10 +1 -0
  29. gap/pkg/semigroups/data/tst/tables.gz +0 -0
  30. gap/pkg/semigroups/data/tst/testdata +1 -0
  31. gap/pkg/semigroups/data/tst/testinstall.pickle +1 -0
  32. gap/pkg/semigroups/data/tst/trans3 +7 -0
  33. gap/pkg/semigroups/data/tst/trans3-old +7 -0
  34. gap/pkg/semigroups/environment.yml +7 -0
  35. gap/pkg/semigroups/gap/attributes/acting.gd +15 -0
  36. gap/pkg/semigroups/gap/attributes/acting.gi +297 -0
  37. gap/pkg/semigroups/gap/attributes/attr.gd +91 -0
  38. gap/pkg/semigroups/gap/attributes/attr.gi +1214 -0
  39. gap/pkg/semigroups/gap/attributes/dual.gd +25 -0
  40. gap/pkg/semigroups/gap/attributes/dual.gi +209 -0
  41. gap/pkg/semigroups/gap/attributes/factor.gd +17 -0
  42. gap/pkg/semigroups/gap/attributes/factor.gi +453 -0
  43. gap/pkg/semigroups/gap/attributes/homomorph.gd +84 -0
  44. gap/pkg/semigroups/gap/attributes/homomorph.gi +591 -0
  45. gap/pkg/semigroups/gap/attributes/inverse.gd +38 -0
  46. gap/pkg/semigroups/gap/attributes/inverse.gi +708 -0
  47. gap/pkg/semigroups/gap/attributes/isomorph.gd +16 -0
  48. gap/pkg/semigroups/gap/attributes/isomorph.gi +377 -0
  49. gap/pkg/semigroups/gap/attributes/isorms.gd +49 -0
  50. gap/pkg/semigroups/gap/attributes/isorms.gi +1383 -0
  51. gap/pkg/semigroups/gap/attributes/maximal.gd +16 -0
  52. gap/pkg/semigroups/gap/attributes/maximal.gi +1876 -0
  53. gap/pkg/semigroups/gap/attributes/properties.gd +109 -0
  54. gap/pkg/semigroups/gap/attributes/properties.gi +1658 -0
  55. gap/pkg/semigroups/gap/attributes/rms-translat.gd +39 -0
  56. gap/pkg/semigroups/gap/attributes/rms-translat.gi +1078 -0
  57. gap/pkg/semigroups/gap/attributes/semifp.gd +12 -0
  58. gap/pkg/semigroups/gap/attributes/semifp.gi +84 -0
  59. gap/pkg/semigroups/gap/attributes/translat.gd +474 -0
  60. gap/pkg/semigroups/gap/attributes/translat.gi +1779 -0
  61. gap/pkg/semigroups/gap/congruences/cong.gd +154 -0
  62. gap/pkg/semigroups/gap/congruences/cong.gi +351 -0
  63. gap/pkg/semigroups/gap/congruences/conginv.gd +38 -0
  64. gap/pkg/semigroups/gap/congruences/conginv.gi +589 -0
  65. gap/pkg/semigroups/gap/congruences/conglatt.gd +101 -0
  66. gap/pkg/semigroups/gap/congruences/conglatt.gi +886 -0
  67. gap/pkg/semigroups/gap/congruences/congpairs.gd +21 -0
  68. gap/pkg/semigroups/gap/congruences/congpairs.gi +272 -0
  69. gap/pkg/semigroups/gap/congruences/congpart.gd +90 -0
  70. gap/pkg/semigroups/gap/congruences/congpart.gi +449 -0
  71. gap/pkg/semigroups/gap/congruences/congrees.gd +20 -0
  72. gap/pkg/semigroups/gap/congruences/congrees.gi +313 -0
  73. gap/pkg/semigroups/gap/congruences/congrms.gd +54 -0
  74. gap/pkg/semigroups/gap/congruences/congrms.gi +1467 -0
  75. gap/pkg/semigroups/gap/congruences/congsemigraph.gd +28 -0
  76. gap/pkg/semigroups/gap/congruences/congsemigraph.gi +289 -0
  77. gap/pkg/semigroups/gap/congruences/congsimple.gd +27 -0
  78. gap/pkg/semigroups/gap/congruences/congsimple.gi +236 -0
  79. gap/pkg/semigroups/gap/congruences/conguniv.gd +20 -0
  80. gap/pkg/semigroups/gap/congruences/conguniv.gi +271 -0
  81. gap/pkg/semigroups/gap/congruences/congwordgraph.gd +21 -0
  82. gap/pkg/semigroups/gap/congruences/congwordgraph.gi +250 -0
  83. gap/pkg/semigroups/gap/elements/bipart.gd +71 -0
  84. gap/pkg/semigroups/gap/elements/bipart.gi +995 -0
  85. gap/pkg/semigroups/gap/elements/blocks.gd +31 -0
  86. gap/pkg/semigroups/gap/elements/blocks.gi +134 -0
  87. gap/pkg/semigroups/gap/elements/boolmat.gd +74 -0
  88. gap/pkg/semigroups/gap/elements/boolmat.gi +726 -0
  89. gap/pkg/semigroups/gap/elements/elements.gd +11 -0
  90. gap/pkg/semigroups/gap/elements/elements.gi +121 -0
  91. gap/pkg/semigroups/gap/elements/ffmat.gd +71 -0
  92. gap/pkg/semigroups/gap/elements/ffmat.gi +311 -0
  93. gap/pkg/semigroups/gap/elements/maxplusmat.gd +131 -0
  94. gap/pkg/semigroups/gap/elements/maxplusmat.gi +782 -0
  95. gap/pkg/semigroups/gap/elements/pbr.gd +51 -0
  96. gap/pkg/semigroups/gap/elements/pbr.gi +740 -0
  97. gap/pkg/semigroups/gap/elements/pperm.gd +11 -0
  98. gap/pkg/semigroups/gap/elements/pperm.gi +14 -0
  99. gap/pkg/semigroups/gap/elements/semiringmat.gd +136 -0
  100. gap/pkg/semigroups/gap/elements/semiringmat.gi +717 -0
  101. gap/pkg/semigroups/gap/elements/star.gd +21 -0
  102. gap/pkg/semigroups/gap/elements/star.gi +21 -0
  103. gap/pkg/semigroups/gap/elements/trans.gd +13 -0
  104. gap/pkg/semigroups/gap/elements/trans.gi +50 -0
  105. gap/pkg/semigroups/gap/fp/freeband.gd +22 -0
  106. gap/pkg/semigroups/gap/fp/freeband.gi +502 -0
  107. gap/pkg/semigroups/gap/fp/freeinverse.gd +30 -0
  108. gap/pkg/semigroups/gap/fp/freeinverse.gi +465 -0
  109. gap/pkg/semigroups/gap/fp/tietze.gd +89 -0
  110. gap/pkg/semigroups/gap/fp/tietze.gi +1578 -0
  111. gap/pkg/semigroups/gap/fp/word.gd +15 -0
  112. gap/pkg/semigroups/gap/fp/word.gi +67 -0
  113. gap/pkg/semigroups/gap/greens/acting-inverse.gi +774 -0
  114. gap/pkg/semigroups/gap/greens/acting-regular.gi +553 -0
  115. gap/pkg/semigroups/gap/greens/acting.gd +81 -0
  116. gap/pkg/semigroups/gap/greens/acting.gi +2433 -0
  117. gap/pkg/semigroups/gap/greens/froidure-pin.gd +25 -0
  118. gap/pkg/semigroups/gap/greens/froidure-pin.gi +741 -0
  119. gap/pkg/semigroups/gap/greens/generic.gd +117 -0
  120. gap/pkg/semigroups/gap/greens/generic.gi +630 -0
  121. gap/pkg/semigroups/gap/ideals/acting.gd +17 -0
  122. gap/pkg/semigroups/gap/ideals/acting.gi +1155 -0
  123. gap/pkg/semigroups/gap/ideals/froidure-pin.gd +11 -0
  124. gap/pkg/semigroups/gap/ideals/froidure-pin.gi +105 -0
  125. gap/pkg/semigroups/gap/ideals/ideals.gd +45 -0
  126. gap/pkg/semigroups/gap/ideals/ideals.gi +442 -0
  127. gap/pkg/semigroups/gap/ideals/lambda-rho.gd +16 -0
  128. gap/pkg/semigroups/gap/ideals/lambda-rho.gi +614 -0
  129. gap/pkg/semigroups/gap/libsemigroups/cong.gd +24 -0
  130. gap/pkg/semigroups/gap/libsemigroups/cong.gi +431 -0
  131. gap/pkg/semigroups/gap/libsemigroups/fpsemi.gd +16 -0
  132. gap/pkg/semigroups/gap/libsemigroups/fpsemi.gi +53 -0
  133. gap/pkg/semigroups/gap/libsemigroups/froidure-pin.gd +17 -0
  134. gap/pkg/semigroups/gap/libsemigroups/froidure-pin.gi +945 -0
  135. gap/pkg/semigroups/gap/libsemigroups/sims1.gd +38 -0
  136. gap/pkg/semigroups/gap/libsemigroups/sims1.gi +308 -0
  137. gap/pkg/semigroups/gap/main/acting.gd +36 -0
  138. gap/pkg/semigroups/gap/main/acting.gi +779 -0
  139. gap/pkg/semigroups/gap/main/froidure-pin.gd +72 -0
  140. gap/pkg/semigroups/gap/main/froidure-pin.gi +655 -0
  141. gap/pkg/semigroups/gap/main/graded.gd +26 -0
  142. gap/pkg/semigroups/gap/main/graded.gi +355 -0
  143. gap/pkg/semigroups/gap/main/lambda-rho.gd +29 -0
  144. gap/pkg/semigroups/gap/main/lambda-rho.gi +514 -0
  145. gap/pkg/semigroups/gap/main/orbits.gd +24 -0
  146. gap/pkg/semigroups/gap/main/orbits.gi +512 -0
  147. gap/pkg/semigroups/gap/main/semiact.gd +20 -0
  148. gap/pkg/semigroups/gap/main/semiact.gi +821 -0
  149. gap/pkg/semigroups/gap/main/setup.gd +61 -0
  150. gap/pkg/semigroups/gap/main/setup.gi +1094 -0
  151. gap/pkg/semigroups/gap/obsolete.gd +9 -0
  152. gap/pkg/semigroups/gap/obsolete.gi +14 -0
  153. gap/pkg/semigroups/gap/options.g +55 -0
  154. gap/pkg/semigroups/gap/semigroups/grpperm.gd +12 -0
  155. gap/pkg/semigroups/gap/semigroups/grpperm.gi +177 -0
  156. gap/pkg/semigroups/gap/semigroups/semibipart.gd +28 -0
  157. gap/pkg/semigroups/gap/semigroups/semibipart.gi +570 -0
  158. gap/pkg/semigroups/gap/semigroups/semiboolmat.gd +20 -0
  159. gap/pkg/semigroups/gap/semigroups/semiboolmat.gi +104 -0
  160. gap/pkg/semigroups/gap/semigroups/semicons.gd +52 -0
  161. gap/pkg/semigroups/gap/semigroups/semicons.gi +1194 -0
  162. gap/pkg/semigroups/gap/semigroups/semidp.gd +13 -0
  163. gap/pkg/semigroups/gap/semigroups/semidp.gi +509 -0
  164. gap/pkg/semigroups/gap/semigroups/semieunit.gd +126 -0
  165. gap/pkg/semigroups/gap/semigroups/semieunit.gi +889 -0
  166. gap/pkg/semigroups/gap/semigroups/semiex.gd +104 -0
  167. gap/pkg/semigroups/gap/semigroups/semiex.gi +1590 -0
  168. gap/pkg/semigroups/gap/semigroups/semiffmat.gd +37 -0
  169. gap/pkg/semigroups/gap/semigroups/semiffmat.gi +565 -0
  170. gap/pkg/semigroups/gap/semigroups/semifp.gd +28 -0
  171. gap/pkg/semigroups/gap/semigroups/semifp.gi +1364 -0
  172. gap/pkg/semigroups/gap/semigroups/semigraph.gd +40 -0
  173. gap/pkg/semigroups/gap/semigroups/semigraph.gi +292 -0
  174. gap/pkg/semigroups/gap/semigroups/semigrp.gd +165 -0
  175. gap/pkg/semigroups/gap/semigroups/semigrp.gi +1225 -0
  176. gap/pkg/semigroups/gap/semigroups/semimaxplus.gd +72 -0
  177. gap/pkg/semigroups/gap/semigroups/semimaxplus.gi +710 -0
  178. gap/pkg/semigroups/gap/semigroups/semintmat.gd +13 -0
  179. gap/pkg/semigroups/gap/semigroups/semintmat.gi +74 -0
  180. gap/pkg/semigroups/gap/semigroups/semipbr.gd +19 -0
  181. gap/pkg/semigroups/gap/semigroups/semipbr.gi +139 -0
  182. gap/pkg/semigroups/gap/semigroups/semipperm.gd +27 -0
  183. gap/pkg/semigroups/gap/semigroups/semipperm.gi +711 -0
  184. gap/pkg/semigroups/gap/semigroups/semiquo.gd +14 -0
  185. gap/pkg/semigroups/gap/semigroups/semiquo.gi +97 -0
  186. gap/pkg/semigroups/gap/semigroups/semiringmat.gd +16 -0
  187. gap/pkg/semigroups/gap/semigroups/semiringmat.gi +21 -0
  188. gap/pkg/semigroups/gap/semigroups/semirms.gd +19 -0
  189. gap/pkg/semigroups/gap/semigroups/semirms.gi +977 -0
  190. gap/pkg/semigroups/gap/semigroups/semitrans.gd +49 -0
  191. gap/pkg/semigroups/gap/semigroups/semitrans.gi +909 -0
  192. gap/pkg/semigroups/gap/tools/display.gd +24 -0
  193. gap/pkg/semigroups/gap/tools/display.gi +749 -0
  194. gap/pkg/semigroups/gap/tools/io.gd +17 -0
  195. gap/pkg/semigroups/gap/tools/io.gi +543 -0
  196. gap/pkg/semigroups/gap/tools/iterators.gd +16 -0
  197. gap/pkg/semigroups/gap/tools/iterators.gi +253 -0
  198. gap/pkg/semigroups/gap/tools/utils.gd +19 -0
  199. gap/pkg/semigroups/gap/tools/utils.gi +756 -0
  200. gap/pkg/semigroups/gapbind14/.ccls +18 -0
  201. gap/pkg/semigroups/gapbind14/.clang-format +104 -0
  202. gap/pkg/semigroups/gapbind14/CPPLINT.cfg +5 -0
  203. gap/pkg/semigroups/gapbind14/LICENSE +674 -0
  204. gap/pkg/semigroups/gapbind14/README.md +76 -0
  205. gap/pkg/semigroups/gapbind14/demo/.gitignore +4 -0
  206. gap/pkg/semigroups/gapbind14/demo/LICENSE +293 -0
  207. gap/pkg/semigroups/gapbind14/demo/Makefile.gappkg +220 -0
  208. gap/pkg/semigroups/gapbind14/demo/Makefile.in +19 -0
  209. gap/pkg/semigroups/gapbind14/demo/PackageInfo.g +87 -0
  210. gap/pkg/semigroups/gapbind14/demo/README.md +17 -0
  211. gap/pkg/semigroups/gapbind14/demo/configure +34 -0
  212. gap/pkg/semigroups/gapbind14/demo/gap/gapbind_demo.gd +19 -0
  213. gap/pkg/semigroups/gapbind14/demo/gap/gapbind_demo.gi +10 -0
  214. gap/pkg/semigroups/gapbind14/demo/init.g +16 -0
  215. gap/pkg/semigroups/gapbind14/demo/makedoc.g +10 -0
  216. gap/pkg/semigroups/gapbind14/demo/read.g +6 -0
  217. gap/pkg/semigroups/gapbind14/demo/src/gapbind_demo.cc +142 -0
  218. gap/pkg/semigroups/gapbind14/demo/tst/testall.g +12 -0
  219. gap/pkg/semigroups/gapbind14/include/gapbind14/cpp_fn.hpp +223 -0
  220. gap/pkg/semigroups/gapbind14/include/gapbind14/gap_include.hpp +26 -0
  221. gap/pkg/semigroups/gapbind14/include/gapbind14/gapbind14.hpp +445 -0
  222. gap/pkg/semigroups/gapbind14/include/gapbind14/tame_free_fn.hpp +420 -0
  223. gap/pkg/semigroups/gapbind14/include/gapbind14/tame_mem_fn.hpp +556 -0
  224. gap/pkg/semigroups/gapbind14/include/gapbind14/to_cpp.hpp +162 -0
  225. gap/pkg/semigroups/gapbind14/include/gapbind14/to_gap.hpp +158 -0
  226. gap/pkg/semigroups/gapbind14/src/.clang-format +108 -0
  227. gap/pkg/semigroups/gapbind14/src/gapbind14.cpp +334 -0
  228. gap/pkg/semigroups/init.g +150 -0
  229. gap/pkg/semigroups/m4/ax_append_flag.m4 +50 -0
  230. gap/pkg/semigroups/m4/ax_check_compile_flag.m4 +53 -0
  231. gap/pkg/semigroups/m4/ax_check_hpcombi.m4 +121 -0
  232. gap/pkg/semigroups/m4/ax_check_libsemigroup.m4 +68 -0
  233. gap/pkg/semigroups/m4/ax_compare_version.m4 +177 -0
  234. gap/pkg/semigroups/m4/ax_cxx_compile_stdcxx.m4 +1009 -0
  235. gap/pkg/semigroups/m4/ax_cxx_compile_stdcxx_14.m4 +34 -0
  236. gap/pkg/semigroups/m4/ax_prefix_config_h.m4 +203 -0
  237. gap/pkg/semigroups/m4/ax_pthread.m4 +522 -0
  238. gap/pkg/semigroups/m4/find_gap.m4 +94 -0
  239. gap/pkg/semigroups/makedoc.g +153 -0
  240. gap/pkg/semigroups/prerequisites.sh +62 -0
  241. gap/pkg/semigroups/read.g +105 -0
  242. gap/pkg/semigroups/release.toml +6 -0
  243. gap/pkg/semigroups/tst/extreme/README +2 -0
  244. gap/pkg/semigroups/tst/extreme/attrinv.tst +703 -0
  245. gap/pkg/semigroups/tst/extreme/bipart.tst +2803 -0
  246. gap/pkg/semigroups/tst/extreme/closure.tst +652 -0
  247. gap/pkg/semigroups/tst/extreme/cong.tst +286 -0
  248. gap/pkg/semigroups/tst/extreme/conginv.tst +43 -0
  249. gap/pkg/semigroups/tst/extreme/examples.tst +2449 -0
  250. gap/pkg/semigroups/tst/extreme/freeband.tst +37 -0
  251. gap/pkg/semigroups/tst/extreme/greens-acting-regular.tst +27 -0
  252. gap/pkg/semigroups/tst/extreme/greens-acting.tst +1999 -0
  253. gap/pkg/semigroups/tst/extreme/ideals.tst +858 -0
  254. gap/pkg/semigroups/tst/extreme/inverse.tst +1025 -0
  255. gap/pkg/semigroups/tst/extreme/maximal.tst +856 -0
  256. gap/pkg/semigroups/tst/extreme/misc.tst +4236 -0
  257. gap/pkg/semigroups/tst/extreme/monoid_pkg.tst +1488 -0
  258. gap/pkg/semigroups/tst/extreme/properties.tst +914 -0
  259. gap/pkg/semigroups/tst/extreme/semibipart.tst +2837 -0
  260. gap/pkg/semigroups/tst/extreme/semieunit.tst +49 -0
  261. gap/pkg/semigroups/tst/extreme/semiffmat.tst +353 -0
  262. gap/pkg/semigroups/tst/extreme/semigroups.tst +245 -0
  263. gap/pkg/semigroups/tst/extreme/semiiter.tst +58 -0
  264. gap/pkg/semigroups/tst/extreme/semirms.tst +1091 -0
  265. gap/pkg/semigroups/tst/extreme/transform.tst +305 -0
  266. gap/pkg/semigroups/tst/extreme/translat.tst +44 -0
  267. gap/pkg/semigroups/tst/standard/README +2 -0
  268. gap/pkg/semigroups/tst/standard/attributes/acting.tst +388 -0
  269. gap/pkg/semigroups/tst/standard/attributes/attr.tst +2404 -0
  270. gap/pkg/semigroups/tst/standard/attributes/dual.tst +308 -0
  271. gap/pkg/semigroups/tst/standard/attributes/factor.tst +629 -0
  272. gap/pkg/semigroups/tst/standard/attributes/homomorph.tst +1134 -0
  273. gap/pkg/semigroups/tst/standard/attributes/inverse.tst +1521 -0
  274. gap/pkg/semigroups/tst/standard/attributes/isomorph.tst +435 -0
  275. gap/pkg/semigroups/tst/standard/attributes/isorms.tst +1147 -0
  276. gap/pkg/semigroups/tst/standard/attributes/maximal.tst +853 -0
  277. gap/pkg/semigroups/tst/standard/attributes/properties.tst +2028 -0
  278. gap/pkg/semigroups/tst/standard/attributes/semifp.tst +53 -0
  279. gap/pkg/semigroups/tst/standard/attributes/translat.tst +796 -0
  280. gap/pkg/semigroups/tst/standard/congruences/cong.tst +1044 -0
  281. gap/pkg/semigroups/tst/standard/congruences/conginv.tst +292 -0
  282. gap/pkg/semigroups/tst/standard/congruences/conglatt.tst +421 -0
  283. gap/pkg/semigroups/tst/standard/congruences/congpairs.tst +1011 -0
  284. gap/pkg/semigroups/tst/standard/congruences/congrees.tst +288 -0
  285. gap/pkg/semigroups/tst/standard/congruences/congrms.tst +701 -0
  286. gap/pkg/semigroups/tst/standard/congruences/congsemigraph.tst +422 -0
  287. gap/pkg/semigroups/tst/standard/congruences/congsimple.tst +311 -0
  288. gap/pkg/semigroups/tst/standard/congruences/conguniv.tst +259 -0
  289. gap/pkg/semigroups/tst/standard/congruences/congwordgraph.tst +330 -0
  290. gap/pkg/semigroups/tst/standard/elements/bipart.tst +783 -0
  291. gap/pkg/semigroups/tst/standard/elements/blocks.tst +166 -0
  292. gap/pkg/semigroups/tst/standard/elements/boolmat.tst +608 -0
  293. gap/pkg/semigroups/tst/standard/elements/elements.tst +117 -0
  294. gap/pkg/semigroups/tst/standard/elements/ffmat.tst +349 -0
  295. gap/pkg/semigroups/tst/standard/elements/maxplusmat.tst +613 -0
  296. gap/pkg/semigroups/tst/standard/elements/pbr.tst +506 -0
  297. gap/pkg/semigroups/tst/standard/elements/pperm.tst +32 -0
  298. gap/pkg/semigroups/tst/standard/elements/semiringmat.tst +601 -0
  299. gap/pkg/semigroups/tst/standard/elements/trans.tst +58 -0
  300. gap/pkg/semigroups/tst/standard/fp/freeband.tst +311 -0
  301. gap/pkg/semigroups/tst/standard/fp/freeinverse.tst +147 -0
  302. gap/pkg/semigroups/tst/standard/fp/tietze.tst +780 -0
  303. gap/pkg/semigroups/tst/standard/fp/word.tst +106 -0
  304. gap/pkg/semigroups/tst/standard/greens/acting-inverse.tst +545 -0
  305. gap/pkg/semigroups/tst/standard/greens/acting-regular.tst +396 -0
  306. gap/pkg/semigroups/tst/standard/greens/acting.tst +2033 -0
  307. gap/pkg/semigroups/tst/standard/greens/froidure-pin.tst +1831 -0
  308. gap/pkg/semigroups/tst/standard/greens/generic.tst +1436 -0
  309. gap/pkg/semigroups/tst/standard/ideals/acting.tst +279 -0
  310. gap/pkg/semigroups/tst/standard/ideals/froidure-pin.tst +178 -0
  311. gap/pkg/semigroups/tst/standard/ideals/ideals.tst +380 -0
  312. gap/pkg/semigroups/tst/standard/libsemigroups/cong.tst +310 -0
  313. gap/pkg/semigroups/tst/standard/libsemigroups/froidure-pin.tst +778 -0
  314. gap/pkg/semigroups/tst/standard/libsemigroups/sims1.tst +379 -0
  315. gap/pkg/semigroups/tst/standard/main/acting.tst +411 -0
  316. gap/pkg/semigroups/tst/standard/main/froidure-pin.tst +392 -0
  317. gap/pkg/semigroups/tst/standard/main/semiact.tst +203 -0
  318. gap/pkg/semigroups/tst/standard/main/setup.tst +1144 -0
  319. gap/pkg/semigroups/tst/standard/obsolete.tst +19 -0
  320. gap/pkg/semigroups/tst/standard/options.tst +54 -0
  321. gap/pkg/semigroups/tst/standard/semigroups/grpperm.tst +581 -0
  322. gap/pkg/semigroups/tst/standard/semigroups/semibipart.tst +2635 -0
  323. gap/pkg/semigroups/tst/standard/semigroups/semiboolmat.tst +1871 -0
  324. gap/pkg/semigroups/tst/standard/semigroups/semicons.tst +1173 -0
  325. gap/pkg/semigroups/tst/standard/semigroups/semidp.tst +739 -0
  326. gap/pkg/semigroups/tst/standard/semigroups/semieunit.tst +339 -0
  327. gap/pkg/semigroups/tst/standard/semigroups/semiex.tst +2055 -0
  328. gap/pkg/semigroups/tst/standard/semigroups/semiffmat.tst +746 -0
  329. gap/pkg/semigroups/tst/standard/semigroups/semifp.tst +2702 -0
  330. gap/pkg/semigroups/tst/standard/semigroups/semigraph.tst +133 -0
  331. gap/pkg/semigroups/tst/standard/semigroups/semigrp.tst +1112 -0
  332. gap/pkg/semigroups/tst/standard/semigroups/semimaxplus.tst +654 -0
  333. gap/pkg/semigroups/tst/standard/semigroups/semipbr.tst +2142 -0
  334. gap/pkg/semigroups/tst/standard/semigroups/semipperm.tst +2169 -0
  335. gap/pkg/semigroups/tst/standard/semigroups/semiquo.tst +278 -0
  336. gap/pkg/semigroups/tst/standard/semigroups/semirms.tst +3010 -0
  337. gap/pkg/semigroups/tst/standard/semigroups/semitrans.tst +2758 -0
  338. gap/pkg/semigroups/tst/standard/tools/display.tst +1040 -0
  339. gap/pkg/semigroups/tst/standard/tools/io.tst +363 -0
  340. gap/pkg/semigroups/tst/testinstall.tst +1815 -0
  341. gap/pkg/semigroups/tst/teststandard.g +22 -0
  342. gap/pkg/semigroups/tst/workspaces/load-workspace.tst +142 -0
  343. gap/pkg/semigroups/tst/workspaces/load.g +11 -0
  344. gap/pkg/semigroups/tst/workspaces/save-workspace.tst +166 -0
  345. gap/pkg/semigroups/tst/workspaces/save.g +14 -0
  346. passagemath_gap_pkg_semigroups-10.6.30.dist-info/METADATA +93 -0
  347. passagemath_gap_pkg_semigroups-10.6.30.dist-info/METADATA.bak +94 -0
  348. passagemath_gap_pkg_semigroups-10.6.30.dist-info/RECORD +354 -0
  349. passagemath_gap_pkg_semigroups-10.6.30.dist-info/WHEEL +6 -0
  350. passagemath_gap_pkg_semigroups-10.6.30.dist-info/top_level.txt +1 -0
  351. passagemath_gap_pkg_semigroups.dylibs/libsemigroups.2.dylib +0 -0
  352. sage/all__sagemath_gap_pkg_semigroups.py +1 -0
  353. sage/libs/all__sagemath_gap_pkg_semigroups.py +1 -0
  354. sage/libs/gap_pkg_semigroups.abi3.so +0 -0
@@ -0,0 +1,522 @@
1
+ # ===========================================================================
2
+ # https://www.gnu.org/software/autoconf-archive/ax_pthread.html
3
+ # ===========================================================================
4
+ #
5
+ # SYNOPSIS
6
+ #
7
+ # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
8
+ #
9
+ # DESCRIPTION
10
+ #
11
+ # This macro figures out how to build C programs using POSIX threads. It
12
+ # sets the PTHREAD_LIBS output variable to the threads library and linker
13
+ # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14
+ # flags that are needed. (The user can also force certain compiler
15
+ # flags/libs to be tested by setting these environment variables.)
16
+ #
17
+ # Also sets PTHREAD_CC and PTHREAD_CXX to any special C compiler that is
18
+ # needed for multi-threaded programs (defaults to the value of CC
19
+ # respectively CXX otherwise). (This is necessary on e.g. AIX to use the
20
+ # special cc_r/CC_r compiler alias.)
21
+ #
22
+ # NOTE: You are assumed to not only compile your program with these flags,
23
+ # but also to link with them as well. For example, you might link with
24
+ # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
25
+ # $PTHREAD_CXX $CXXFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
26
+ #
27
+ # If you are only building threaded programs, you may wish to use these
28
+ # variables in your default LIBS, CFLAGS, and CC:
29
+ #
30
+ # LIBS="$PTHREAD_LIBS $LIBS"
31
+ # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
32
+ # CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
33
+ # CC="$PTHREAD_CC"
34
+ # CXX="$PTHREAD_CXX"
35
+ #
36
+ # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
37
+ # has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
38
+ # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
39
+ #
40
+ # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
41
+ # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
42
+ # PTHREAD_CFLAGS.
43
+ #
44
+ # ACTION-IF-FOUND is a list of shell commands to run if a threads library
45
+ # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
46
+ # is not found. If ACTION-IF-FOUND is not specified, the default action
47
+ # will define HAVE_PTHREAD.
48
+ #
49
+ # Please let the authors know if this macro fails on any platform, or if
50
+ # you have any other suggestions or comments. This macro was based on work
51
+ # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
52
+ # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
53
+ # Alejandro Forero Cuervo to the autoconf macro repository. We are also
54
+ # grateful for the helpful feedback of numerous users.
55
+ #
56
+ # Updated for Autoconf 2.68 by Daniel Richard G.
57
+ #
58
+ # LICENSE
59
+ #
60
+ # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
61
+ # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
62
+ # Copyright (c) 2019 Marc Stevens <marc.stevens@cwi.nl>
63
+ #
64
+ # This program is free software: you can redistribute it and/or modify it
65
+ # under the terms of the GNU General Public License as published by the
66
+ # Free Software Foundation, either version 3 of the License, or (at your
67
+ # option) any later version.
68
+ #
69
+ # This program is distributed in the hope that it will be useful, but
70
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
71
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
72
+ # Public License for more details.
73
+ #
74
+ # You should have received a copy of the GNU General Public License along
75
+ # with this program. If not, see <https://www.gnu.org/licenses/>.
76
+ #
77
+ # As a special exception, the respective Autoconf Macro's copyright owner
78
+ # gives unlimited permission to copy, distribute and modify the configure
79
+ # scripts that are the output of Autoconf when processing the Macro. You
80
+ # need not follow the terms of the GNU General Public License when using
81
+ # or distributing such scripts, even though portions of the text of the
82
+ # Macro appear in them. The GNU General Public License (GPL) does govern
83
+ # all other use of the material that constitutes the Autoconf Macro.
84
+ #
85
+ # This special exception to the GPL applies to versions of the Autoconf
86
+ # Macro released by the Autoconf Archive. When you make and distribute a
87
+ # modified version of the Autoconf Macro, you may extend this special
88
+ # exception to the GPL to apply to your modified version as well.
89
+
90
+ #serial 31
91
+
92
+ AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
93
+ AC_DEFUN([AX_PTHREAD], [
94
+ AC_REQUIRE([AC_CANONICAL_HOST])
95
+ AC_REQUIRE([AC_PROG_CC])
96
+ AC_REQUIRE([AC_PROG_SED])
97
+ AC_LANG_PUSH([C])
98
+ ax_pthread_ok=no
99
+
100
+ # We used to check for pthread.h first, but this fails if pthread.h
101
+ # requires special compiler flags (e.g. on Tru64 or Sequent).
102
+ # It gets checked for in the link test anyway.
103
+
104
+ # First of all, check if the user has set any of the PTHREAD_LIBS,
105
+ # etcetera environment variables, and if threads linking works using
106
+ # them:
107
+ if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
108
+ ax_pthread_save_CC="$CC"
109
+ ax_pthread_save_CFLAGS="$CFLAGS"
110
+ ax_pthread_save_LIBS="$LIBS"
111
+ AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
112
+ AS_IF([test "x$PTHREAD_CXX" != "x"], [CXX="$PTHREAD_CXX"])
113
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
114
+ LIBS="$PTHREAD_LIBS $LIBS"
115
+ AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
116
+ AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
117
+ AC_MSG_RESULT([$ax_pthread_ok])
118
+ if test "x$ax_pthread_ok" = "xno"; then
119
+ PTHREAD_LIBS=""
120
+ PTHREAD_CFLAGS=""
121
+ fi
122
+ CC="$ax_pthread_save_CC"
123
+ CFLAGS="$ax_pthread_save_CFLAGS"
124
+ LIBS="$ax_pthread_save_LIBS"
125
+ fi
126
+
127
+ # We must check for the threads library under a number of different
128
+ # names; the ordering is very important because some systems
129
+ # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
130
+ # libraries is broken (non-POSIX).
131
+
132
+ # Create a list of thread flags to try. Items with a "," contain both
133
+ # C compiler flags (before ",") and linker flags (after ","). Other items
134
+ # starting with a "-" are C compiler flags, and remaining items are
135
+ # library names, except for "none" which indicates that we try without
136
+ # any flags at all, and "pthread-config" which is a program returning
137
+ # the flags for the Pth emulation library.
138
+
139
+ ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
140
+
141
+ # The ordering *is* (sometimes) important. Some notes on the
142
+ # individual items follow:
143
+
144
+ # pthreads: AIX (must check this before -lpthread)
145
+ # none: in case threads are in libc; should be tried before -Kthread and
146
+ # other compiler flags to prevent continual compiler warnings
147
+ # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
148
+ # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
149
+ # (Note: HP C rejects this with "bad form for `-t' option")
150
+ # -pthreads: Solaris/gcc (Note: HP C also rejects)
151
+ # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
152
+ # doesn't hurt to check since this sometimes defines pthreads and
153
+ # -D_REENTRANT too), HP C (must be checked before -lpthread, which
154
+ # is present but should not be used directly; and before -mthreads,
155
+ # because the compiler interprets this as "-mt" + "-hreads")
156
+ # -mthreads: Mingw32/gcc, Lynx/gcc
157
+ # pthread: Linux, etcetera
158
+ # --thread-safe: KAI C++
159
+ # pthread-config: use pthread-config program (for GNU Pth library)
160
+
161
+ case $host_os in
162
+
163
+ freebsd*)
164
+
165
+ # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
166
+ # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
167
+
168
+ ax_pthread_flags="-kthread lthread $ax_pthread_flags"
169
+ ;;
170
+
171
+ hpux*)
172
+
173
+ # From the cc(1) man page: "[-mt] Sets various -D flags to enable
174
+ # multi-threading and also sets -lpthread."
175
+
176
+ ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
177
+ ;;
178
+
179
+ openedition*)
180
+
181
+ # IBM z/OS requires a feature-test macro to be defined in order to
182
+ # enable POSIX threads at all, so give the user a hint if this is
183
+ # not set. (We don't define these ourselves, as they can affect
184
+ # other portions of the system API in unpredictable ways.)
185
+
186
+ AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
187
+ [
188
+ # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
189
+ AX_PTHREAD_ZOS_MISSING
190
+ # endif
191
+ ],
192
+ [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
193
+ ;;
194
+
195
+ solaris*)
196
+
197
+ # On Solaris (at least, for some versions), libc contains stubbed
198
+ # (non-functional) versions of the pthreads routines, so link-based
199
+ # tests will erroneously succeed. (N.B.: The stubs are missing
200
+ # pthread_cleanup_push, or rather a function called by this macro,
201
+ # so we could check for that, but who knows whether they'll stub
202
+ # that too in a future libc.) So we'll check first for the
203
+ # standard Solaris way of linking pthreads (-mt -lpthread).
204
+
205
+ ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
206
+ ;;
207
+ esac
208
+
209
+ # Are we compiling with Clang?
210
+
211
+ AC_CACHE_CHECK([whether $CC is Clang],
212
+ [ax_cv_PTHREAD_CLANG],
213
+ [ax_cv_PTHREAD_CLANG=no
214
+ # Note that Autoconf sets GCC=yes for Clang as well as GCC
215
+ if test "x$GCC" = "xyes"; then
216
+ AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
217
+ [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
218
+ # if defined(__clang__) && defined(__llvm__)
219
+ AX_PTHREAD_CC_IS_CLANG
220
+ # endif
221
+ ],
222
+ [ax_cv_PTHREAD_CLANG=yes])
223
+ fi
224
+ ])
225
+ ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
226
+
227
+
228
+ # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
229
+
230
+ # Note that for GCC and Clang -pthread generally implies -lpthread,
231
+ # except when -nostdlib is passed.
232
+ # This is problematic using libtool to build C++ shared libraries with pthread:
233
+ # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
234
+ # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
235
+ # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
236
+ # To solve this, first try -pthread together with -lpthread for GCC
237
+
238
+ AS_IF([test "x$GCC" = "xyes"],
239
+ [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"])
240
+
241
+ # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
242
+
243
+ AS_IF([test "x$ax_pthread_clang" = "xyes"],
244
+ [ax_pthread_flags="-pthread,-lpthread -pthread"])
245
+
246
+
247
+ # The presence of a feature test macro requesting re-entrant function
248
+ # definitions is, on some systems, a strong hint that pthreads support is
249
+ # correctly enabled
250
+
251
+ case $host_os in
252
+ darwin* | hpux* | linux* | osf* | solaris*)
253
+ ax_pthread_check_macro="_REENTRANT"
254
+ ;;
255
+
256
+ aix*)
257
+ ax_pthread_check_macro="_THREAD_SAFE"
258
+ ;;
259
+
260
+ *)
261
+ ax_pthread_check_macro="--"
262
+ ;;
263
+ esac
264
+ AS_IF([test "x$ax_pthread_check_macro" = "x--"],
265
+ [ax_pthread_check_cond=0],
266
+ [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
267
+
268
+
269
+ if test "x$ax_pthread_ok" = "xno"; then
270
+ for ax_pthread_try_flag in $ax_pthread_flags; do
271
+
272
+ case $ax_pthread_try_flag in
273
+ none)
274
+ AC_MSG_CHECKING([whether pthreads work without any flags])
275
+ ;;
276
+
277
+ *,*)
278
+ PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
279
+ PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
280
+ AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"])
281
+ ;;
282
+
283
+ -*)
284
+ AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
285
+ PTHREAD_CFLAGS="$ax_pthread_try_flag"
286
+ ;;
287
+
288
+ pthread-config)
289
+ AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
290
+ AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
291
+ PTHREAD_CFLAGS="`pthread-config --cflags`"
292
+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
293
+ ;;
294
+
295
+ *)
296
+ AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
297
+ PTHREAD_LIBS="-l$ax_pthread_try_flag"
298
+ ;;
299
+ esac
300
+
301
+ ax_pthread_save_CFLAGS="$CFLAGS"
302
+ ax_pthread_save_LIBS="$LIBS"
303
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
304
+ LIBS="$PTHREAD_LIBS $LIBS"
305
+
306
+ # Check for various functions. We must include pthread.h,
307
+ # since some functions may be macros. (On the Sequent, we
308
+ # need a special flag -Kthread to make this header compile.)
309
+ # We check for pthread_join because it is in -lpthread on IRIX
310
+ # while pthread_create is in libc. We check for pthread_attr_init
311
+ # due to DEC craziness with -lpthreads. We check for
312
+ # pthread_cleanup_push because it is one of the few pthread
313
+ # functions on Solaris that doesn't have a non-functional libc stub.
314
+ # We try pthread_create on general principles.
315
+
316
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
317
+ # if $ax_pthread_check_cond
318
+ # error "$ax_pthread_check_macro must be defined"
319
+ # endif
320
+ static void *some_global = NULL;
321
+ static void routine(void *a)
322
+ {
323
+ /* To avoid any unused-parameter or
324
+ unused-but-set-parameter warning. */
325
+ some_global = a;
326
+ }
327
+ static void *start_routine(void *a) { return a; }],
328
+ [pthread_t th; pthread_attr_t attr;
329
+ pthread_create(&th, 0, start_routine, 0);
330
+ pthread_join(th, 0);
331
+ pthread_attr_init(&attr);
332
+ pthread_cleanup_push(routine, 0);
333
+ pthread_cleanup_pop(0) /* ; */])],
334
+ [ax_pthread_ok=yes],
335
+ [])
336
+
337
+ CFLAGS="$ax_pthread_save_CFLAGS"
338
+ LIBS="$ax_pthread_save_LIBS"
339
+
340
+ AC_MSG_RESULT([$ax_pthread_ok])
341
+ AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
342
+
343
+ PTHREAD_LIBS=""
344
+ PTHREAD_CFLAGS=""
345
+ done
346
+ fi
347
+
348
+
349
+ # Clang needs special handling, because older versions handle the -pthread
350
+ # option in a rather... idiosyncratic way
351
+
352
+ if test "x$ax_pthread_clang" = "xyes"; then
353
+
354
+ # Clang takes -pthread; it has never supported any other flag
355
+
356
+ # (Note 1: This will need to be revisited if a system that Clang
357
+ # supports has POSIX threads in a separate library. This tends not
358
+ # to be the way of modern systems, but it's conceivable.)
359
+
360
+ # (Note 2: On some systems, notably Darwin, -pthread is not needed
361
+ # to get POSIX threads support; the API is always present and
362
+ # active. We could reasonably leave PTHREAD_CFLAGS empty. But
363
+ # -pthread does define _REENTRANT, and while the Darwin headers
364
+ # ignore this macro, third-party headers might not.)
365
+
366
+ # However, older versions of Clang make a point of warning the user
367
+ # that, in an invocation where only linking and no compilation is
368
+ # taking place, the -pthread option has no effect ("argument unused
369
+ # during compilation"). They expect -pthread to be passed in only
370
+ # when source code is being compiled.
371
+ #
372
+ # Problem is, this is at odds with the way Automake and most other
373
+ # C build frameworks function, which is that the same flags used in
374
+ # compilation (CFLAGS) are also used in linking. Many systems
375
+ # supported by AX_PTHREAD require exactly this for POSIX threads
376
+ # support, and in fact it is often not straightforward to specify a
377
+ # flag that is used only in the compilation phase and not in
378
+ # linking. Such a scenario is extremely rare in practice.
379
+ #
380
+ # Even though use of the -pthread flag in linking would only print
381
+ # a warning, this can be a nuisance for well-run software projects
382
+ # that build with -Werror. So if the active version of Clang has
383
+ # this misfeature, we search for an option to squash it.
384
+
385
+ AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
386
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
387
+ [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
388
+ # Create an alternate version of $ac_link that compiles and
389
+ # links in two steps (.c -> .o, .o -> exe) instead of one
390
+ # (.c -> exe), because the warning occurs only in the second
391
+ # step
392
+ ax_pthread_save_ac_link="$ac_link"
393
+ ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
394
+ ax_pthread_link_step=`AS_ECHO(["$ac_link"]) | sed "$ax_pthread_sed"`
395
+ ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
396
+ ax_pthread_save_CFLAGS="$CFLAGS"
397
+ for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
398
+ AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
399
+ CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
400
+ ac_link="$ax_pthread_save_ac_link"
401
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
402
+ [ac_link="$ax_pthread_2step_ac_link"
403
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
404
+ [break])
405
+ ])
406
+ done
407
+ ac_link="$ax_pthread_save_ac_link"
408
+ CFLAGS="$ax_pthread_save_CFLAGS"
409
+ AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
410
+ ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
411
+ ])
412
+
413
+ case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
414
+ no | unknown) ;;
415
+ *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
416
+ esac
417
+
418
+ fi # $ax_pthread_clang = yes
419
+
420
+
421
+
422
+ # Various other checks:
423
+ if test "x$ax_pthread_ok" = "xyes"; then
424
+ ax_pthread_save_CFLAGS="$CFLAGS"
425
+ ax_pthread_save_LIBS="$LIBS"
426
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
427
+ LIBS="$PTHREAD_LIBS $LIBS"
428
+
429
+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
430
+ AC_CACHE_CHECK([for joinable pthread attribute],
431
+ [ax_cv_PTHREAD_JOINABLE_ATTR],
432
+ [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
433
+ for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
434
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
435
+ [int attr = $ax_pthread_attr; return attr /* ; */])],
436
+ [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
437
+ [])
438
+ done
439
+ ])
440
+ AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
441
+ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
442
+ test "x$ax_pthread_joinable_attr_defined" != "xyes"],
443
+ [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
444
+ [$ax_cv_PTHREAD_JOINABLE_ATTR],
445
+ [Define to necessary symbol if this constant
446
+ uses a non-standard name on your system.])
447
+ ax_pthread_joinable_attr_defined=yes
448
+ ])
449
+
450
+ AC_CACHE_CHECK([whether more special flags are required for pthreads],
451
+ [ax_cv_PTHREAD_SPECIAL_FLAGS],
452
+ [ax_cv_PTHREAD_SPECIAL_FLAGS=no
453
+ case $host_os in
454
+ solaris*)
455
+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
456
+ ;;
457
+ esac
458
+ ])
459
+ AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
460
+ test "x$ax_pthread_special_flags_added" != "xyes"],
461
+ [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
462
+ ax_pthread_special_flags_added=yes])
463
+
464
+ AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
465
+ [ax_cv_PTHREAD_PRIO_INHERIT],
466
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
467
+ [[int i = PTHREAD_PRIO_INHERIT;
468
+ return i;]])],
469
+ [ax_cv_PTHREAD_PRIO_INHERIT=yes],
470
+ [ax_cv_PTHREAD_PRIO_INHERIT=no])
471
+ ])
472
+ AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
473
+ test "x$ax_pthread_prio_inherit_defined" != "xyes"],
474
+ [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
475
+ ax_pthread_prio_inherit_defined=yes
476
+ ])
477
+
478
+ CFLAGS="$ax_pthread_save_CFLAGS"
479
+ LIBS="$ax_pthread_save_LIBS"
480
+
481
+ # More AIX lossage: compile with *_r variant
482
+ if test "x$GCC" != "xyes"; then
483
+ case $host_os in
484
+ aix*)
485
+ AS_CASE(["x/$CC"],
486
+ [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
487
+ [#handle absolute path differently from PATH based program lookup
488
+ AS_CASE(["x$CC"],
489
+ [x/*],
490
+ [
491
+ AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])
492
+ AS_IF([test "x${CXX}" != "x"], [AS_IF([AS_EXECUTABLE_P([${CXX}_r])],[PTHREAD_CXX="${CXX}_r"])])
493
+ ],
494
+ [
495
+ AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])
496
+ AS_IF([test "x${CXX}" != "x"], [AC_CHECK_PROGS([PTHREAD_CXX],[${CXX}_r],[$CXX])])
497
+ ]
498
+ )
499
+ ])
500
+ ;;
501
+ esac
502
+ fi
503
+ fi
504
+
505
+ test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
506
+ test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
507
+
508
+ AC_SUBST([PTHREAD_LIBS])
509
+ AC_SUBST([PTHREAD_CFLAGS])
510
+ AC_SUBST([PTHREAD_CC])
511
+ AC_SUBST([PTHREAD_CXX])
512
+
513
+ # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
514
+ if test "x$ax_pthread_ok" = "xyes"; then
515
+ ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
516
+ :
517
+ else
518
+ ax_pthread_ok=no
519
+ $2
520
+ fi
521
+ AC_LANG_POP
522
+ ])dnl AX_PTHREAD
@@ -0,0 +1,94 @@
1
+ # Find the location of GAP
2
+ # Sets GAPROOT, GAPARCH and GAP_CPPFLAGS appropriately
3
+ # Can be configured using --with-gaproot=...
4
+ #######################################################################
5
+
6
+ AC_DEFUN([FIND_GAP],
7
+ [
8
+ AC_LANG_PUSH([C])
9
+
10
+ # Make sure CDPATH is portably set to a sensible value
11
+ CDPATH=${ZSH_VERSION+.}:
12
+
13
+ GAP_CPPFLAGS=""
14
+
15
+ ######################################
16
+ # Find the GAP root directory by
17
+ # checking for the sysinfo.gap file
18
+ AC_MSG_CHECKING([for GAP root directory])
19
+ GAPROOT="../.."
20
+
21
+ # Allow the user to specify the location of GAP
22
+ AC_ARG_WITH(gaproot,
23
+ [AS_HELP_STRING([--with-gaproot=<path>], [specify root of GAP installation])],
24
+ [GAPROOT="$withval"])
25
+
26
+ # Convert the path to absolute
27
+ GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd`
28
+
29
+ if test -e ${GAPROOT}/sysinfo.gap; then
30
+ AC_MSG_RESULT([${GAPROOT}])
31
+ else
32
+ AC_MSG_RESULT([Not found])
33
+
34
+ echo ""
35
+ echo "********************************************************************"
36
+ echo " ERROR"
37
+ echo ""
38
+ echo " Cannot find your GAP installation. Please specify the location of"
39
+ echo " GAP's root directory using --with-gaproot=<path>"
40
+ echo ""
41
+ echo " The GAP root directory (as far as this package is concerned) is"
42
+ echo " the one containing the file sysinfo.gap"
43
+ echo "********************************************************************"
44
+ echo ""
45
+
46
+ AC_MSG_ERROR([Unable to find GAP root directory])
47
+ fi
48
+
49
+ #####################################
50
+ # Now find the architecture
51
+
52
+ AC_MSG_CHECKING([for GAP architecture])
53
+ GAPARCH="Unknown"
54
+ . $GAPROOT/sysinfo.gap
55
+ if test "x$GAParch" != "x"; then
56
+ GAPARCH=$GAParch
57
+ fi
58
+ AC_MSG_RESULT($GAPARCH)
59
+
60
+ if test "x$GAPARCH" = "xUnknown" ; then
61
+ echo ""
62
+ echo "********************************************************************"
63
+ echo " ERROR"
64
+ echo ""
65
+ echo " Found a GAP installation at $GAPROOT but could not find"
66
+ echo " information about GAP's architecture in the file"
67
+ echo " ${GAPROOT}/sysinfo.gap ."
68
+ echo " This file should be present: please check your GAP installation."
69
+ echo "********************************************************************"
70
+ echo ""
71
+
72
+ AC_MSG_ERROR([Unable to find plausible GAParch information.])
73
+ fi
74
+
75
+ # require GAP >= 4.9
76
+ if test "x$GAP_CPPFLAGS" = x; then
77
+ echo ""
78
+ echo "********************************************************************"
79
+ echo " ERROR"
80
+ echo ""
81
+ echo " This version of GAP is too old and not supported by this package."
82
+ echo "********************************************************************"
83
+ echo ""
84
+ AC_MSG_ERROR([No GAP_CPPFLAGS is given])
85
+ fi
86
+
87
+ AC_SUBST(GAPARCH)
88
+ AC_SUBST(GAPROOT)
89
+ AC_SUBST(GAP_CPPFLAGS)
90
+ AC_SUBST(GAP_CFLAGS)
91
+ AC_SUBST(GAP_LDFLAGS)
92
+
93
+ AC_LANG_POP([C])
94
+ ])