1
0

threads.config 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. ($owrt:threads eq 'yes') {
  2. # Configure arguments
  3. config_args="$config_args -Dusethreads"
  4. config_arg2='-Dusethreads'
  5. config_argc=2
  6. # Options
  7. useithreads='define'
  8. usemultiplicity='define'
  9. usethreads='define'
  10. # Flags and related
  11. ccflags="-D_REENTRANT -D_GNU_SOURCE $ccflags"
  12. cppflags="-D_REENTRANT -D_GNU_SOURCE $cppflags"
  13. perllibs="-lpthread $perllibs"
  14. libs="-lpthread $libs"
  15. libsfiles="libpthread.so $libsfiles"
  16. libswanted="pthread $libswanted"
  17. crypt_r_proto='REENTRANT_PROTO_B_CCS'
  18. i_crypt='define'
  19. d_crypt='define'
  20. d_crypt_r='define'
  21. # Prototypes
  22. asctime_r_proto='REENTRANT_PROTO_B_SB'
  23. ctime_r_proto='REENTRANT_PROTO_B_SB'
  24. drand48_r_proto='REENTRANT_PROTO_I_ST'
  25. getgrent_r_proto='REENTRANT_PROTO_I_SBWR'
  26. getgrgid_r_proto='REENTRANT_PROTO_I_TSBWR'
  27. getgrnam_r_proto='REENTRANT_PROTO_I_CSBWR'
  28. gethostbyaddr_r_proto='REENTRANT_PROTO_I_TsISBWRE'
  29. gethostbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
  30. gethostent_r_proto='REENTRANT_PROTO_I_SBWRE'
  31. getlogin_r_proto='REENTRANT_PROTO_I_BW'
  32. getnetbyaddr_r_proto='REENTRANT_PROTO_I_uISBWRE'
  33. getnetbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
  34. getnetent_r_proto='REENTRANT_PROTO_I_SBWRE'
  35. getprotobyname_r_proto='REENTRANT_PROTO_I_CSBWR'
  36. getprotobynumber_r_proto='REENTRANT_PROTO_I_ISBWR'
  37. getprotoent_r_proto='REENTRANT_PROTO_I_SBWR'
  38. getpwent_r_proto='REENTRANT_PROTO_I_SBWR'
  39. getpwnam_r_proto='REENTRANT_PROTO_I_CSBWR'
  40. getpwuid_r_proto='REENTRANT_PROTO_I_TSBWR'
  41. getservbyname_r_proto='REENTRANT_PROTO_I_CCSBWR'
  42. getservbyport_r_proto='REENTRANT_PROTO_I_ICSBWR'
  43. getservent_r_proto='REENTRANT_PROTO_I_SBWR'
  44. getspnam_r_proto='REENTRANT_PROTO_I_CSBWR'
  45. gmtime_r_proto='REENTRANT_PROTO_S_TS'
  46. localtime_r_proto='REENTRANT_PROTO_S_TS'
  47. random_r_proto='REENTRANT_PROTO_I_St'
  48. readdir64_r_proto='REENTRANT_PROTO_I_TSR'
  49. readdir_r_proto='REENTRANT_PROTO_I_TSR'
  50. srand48_r_proto='REENTRANT_PROTO_I_LS'
  51. srandom_r_proto='REENTRANT_PROTO_I_TS'
  52. strerror_r_proto='REENTRANT_PROTO_B_IBW'
  53. tmpnam_r_proto='REENTRANT_PROTO_B_B'
  54. ttyname_r_proto='REENTRANT_PROTO_I_IBW'
  55. # Defines
  56. d_asctime_r='define'
  57. d_ctime_r='define'
  58. d_drand48_r='define'
  59. d_fds_bits='define'
  60. d_fegetround='undef'
  61. d_getgrent_r='define'
  62. d_getgrgid_r='define'
  63. d_getgrnam_r='define'
  64. d_gethostbyaddr_r='define'
  65. d_gethostbyname_r='define'
  66. d_gethostent_r='define'
  67. d_getlogin_r='define'
  68. d_getnetbyaddr_r='define'
  69. d_getnetbyname_r='define'
  70. d_getnetent_r='define'
  71. d_getprotobyname_r='define'
  72. d_getprotobynumber_r='define'
  73. d_getprotoent_r='define'
  74. d_getpwent_r='define'
  75. d_getpwnam_r='define'
  76. d_getpwuid_r='define'
  77. d_getservbyname_r='define'
  78. d_getservbyport_r='define'
  79. d_getservent_r='define'
  80. d_getspnam_r='define'
  81. d_gmtime_r='define'
  82. d_j0='undef'
  83. d_j0l='undef'
  84. d_localtime_r='define'
  85. d_localtime_r_needs_tzset='define'
  86. d_nexttoward='undef'
  87. d_off64_t='define'
  88. d_pthread_atfork='define'
  89. d_pthread_yield='define'
  90. d_random_r='define'
  91. d_readdir64_r='define'
  92. d_readdir_r='define'
  93. d_srand48_r='define'
  94. d_srandom_r='define'
  95. d_sresgproto='define'
  96. d_sresuproto='define'
  97. d_strerror_r='define'
  98. d_tmpnam_r='define'
  99. d_ttyname_r='define'
  100. }
  101. ($owrt:threads eq 'no') {
  102. # Options
  103. useithreads='undef'
  104. usemultiplicity='undef'
  105. usethreads='undef'
  106. # Prototyypes
  107. asctime_r_proto='0'
  108. crypt_r_proto='0'
  109. ctime_r_proto='0'
  110. drand48_r_proto='0'
  111. getgrent_r_proto='0'
  112. getgrgid_r_proto='0'
  113. getgrnam_r_proto='0'
  114. gethostbyaddr_r_proto='0'
  115. gethostbyname_r_proto='0'
  116. gethostent_r_proto='0'
  117. getlogin_r_proto='0'
  118. getnetbyaddr_r_proto='0'
  119. getnetbyname_r_proto='0'
  120. getnetent_r_proto='0'
  121. getprotobyname_r_proto='0'
  122. getprotobynumber_r_proto='0'
  123. getprotoent_r_proto='0'
  124. getpwent_r_proto='0'
  125. getpwnam_r_proto='0'
  126. getpwuid_r_proto='0'
  127. getservbyname_r_proto='0'
  128. getservbyport_r_proto='0'
  129. getservent_r_proto='0'
  130. getspnam_r_proto='0'
  131. gmtime_r_proto='0'
  132. # Defines
  133. d_asctime_r='undef'
  134. d_crypt='define'
  135. d_crypt_r='undef'
  136. d_ctime_r='undef'
  137. d_drand48_r='undef'
  138. d_fds_bits='undef'
  139. d_fegetround='define'
  140. d_getgrent_r='undef'
  141. d_getgrgid_r='undef'
  142. d_getgrnam_r='undef'
  143. d_gethostbyaddr_r='undef'
  144. d_gethostbyname_r='undef'
  145. d_gethostent_r='undef'
  146. d_getlogin_r='undef'
  147. d_getnetbyaddr_r='undef'
  148. d_getnetbyname_r='undef'
  149. d_getnetent_r='undef'
  150. d_getprotobyname_r='undef'
  151. d_getprotobynumber_r='undef'
  152. d_getprotoent_r='undef'
  153. d_getpwent_r='undef'
  154. d_getpwnam_r='undef'
  155. d_getpwuid_r='undef'
  156. d_getservbyname_r='undef'
  157. d_getservbyport_r='undef'
  158. d_getservent_r='undef'
  159. d_getspnam_r='undef'
  160. d_gmtime_r='undef'
  161. d_j0='define'
  162. d_j0l='define'
  163. d_localtime_r='undef'
  164. d_localtime_r_needs_tzset='undef'
  165. d_nexttoward='define'
  166. d_off64_t='undef'
  167. d_pthread_atfork='undef'
  168. d_pthread_yield='undef'
  169. d_random_r='undef'
  170. d_readdir64_r='undef'
  171. d_readdir_r='undef'
  172. d_srand48_r='undef'
  173. d_srandom_r='undef'
  174. d_sresgproto='undef'
  175. d_sresuproto='undef'
  176. d_strerror_r='undef'
  177. d_tmpnam_r='undef'
  178. d_ttyname_r='undef'
  179. i_crypt='define'
  180. localtime_r_proto='0'
  181. random_r_proto='0'
  182. readdir64_r_proto='0'
  183. readdir_r_proto='0'
  184. srand48_r_proto='0'
  185. srandom_r_proto='0'
  186. strerror_r_proto='0'
  187. tmpnam_r_proto='0'
  188. ttyname_r_proto='0'
  189. }