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