@@ -3148,71 +3148,6 @@ if test "$modules" = yes; then
3148
3148
fi
3149
3149
fi
3150
3150
3151
- # #########################################
3152
- # pthread probe
3153
- PTHREADLIBS_LIST=" -pthread -lpthread -lpthreadGC2"
3154
-
3155
- pthread=no
3156
- cat > $TMPC << EOF
3157
- #include <pthread.h>
3158
- static void *f(void *p) { return NULL; }
3159
- int main(void) {
3160
- pthread_t thread;
3161
- pthread_create(&thread, 0, f, 0);
3162
- return 0;
3163
- }
3164
- EOF
3165
- if compile_prog " " " " ; then
3166
- pthread=yes
3167
- else
3168
- for pthread_lib in $PTHREADLIBS_LIST ; do
3169
- if compile_prog " " " $pthread_lib " ; then
3170
- pthread=yes
3171
- break
3172
- fi
3173
- done
3174
- fi
3175
-
3176
- if test " $mingw32 " ! = yes && test " $pthread " = no; then
3177
- error_exit " pthread check failed" \
3178
- " Make sure to have the pthread libs and headers installed."
3179
- fi
3180
-
3181
- # check for pthread_setname_np with thread id
3182
- pthread_setname_np_w_tid=no
3183
- cat > $TMPC << EOF
3184
- #include <pthread.h>
3185
-
3186
- static void *f(void *p) { return NULL; }
3187
- int main(void)
3188
- {
3189
- pthread_t thread;
3190
- pthread_create(&thread, 0, f, 0);
3191
- pthread_setname_np(thread, "QEMU");
3192
- return 0;
3193
- }
3194
- EOF
3195
- if compile_prog " " " $pthread_lib " ; then
3196
- pthread_setname_np_w_tid=yes
3197
- fi
3198
-
3199
- # check for pthread_setname_np without thread id
3200
- pthread_setname_np_wo_tid=no
3201
- cat > $TMPC << EOF
3202
- #include <pthread.h>
3203
-
3204
- static void *f(void *p) { pthread_setname_np("QEMU"); return NULL; }
3205
- int main(void)
3206
- {
3207
- pthread_t thread;
3208
- pthread_create(&thread, 0, f, 0);
3209
- return 0;
3210
- }
3211
- EOF
3212
- if compile_prog " " " $pthread_lib " ; then
3213
- pthread_setname_np_wo_tid=yes
3214
- fi
3215
-
3216
3151
# #########################################
3217
3152
# libssh probe
3218
3153
if test " $libssh " ! = " no" ; then
@@ -4498,19 +4433,6 @@ if test "$debug_mutex" = "yes" ; then
4498
4433
echo " CONFIG_DEBUG_MUTEX=y" >> $config_host_mak
4499
4434
fi
4500
4435
4501
- # Hold two types of flag:
4502
- # CONFIG_THREAD_SETNAME_BYTHREAD - we've got a way of setting the name on
4503
- # a thread we have a handle to
4504
- # CONFIG_PTHREAD_SETNAME_NP_W_TID - A way of doing it on a particular
4505
- # platform
4506
- if test " $pthread_setname_np_w_tid " = " yes" ; then
4507
- echo " CONFIG_THREAD_SETNAME_BYTHREAD=y" >> $config_host_mak
4508
- echo " CONFIG_PTHREAD_SETNAME_NP_W_TID=y" >> $config_host_mak
4509
- elif test " $pthread_setname_np_wo_tid " = " yes" ; then
4510
- echo " CONFIG_THREAD_SETNAME_BYTHREAD=y" >> $config_host_mak
4511
- echo " CONFIG_PTHREAD_SETNAME_NP_WO_TID=y" >> $config_host_mak
4512
- fi
4513
-
4514
4436
if test " $bochs " = " yes" ; then
4515
4437
echo " CONFIG_BOCHS=y" >> $config_host_mak
4516
4438
fi
0 commit comments