diff --git a/configure b/configure index 6b086c564387642abe761967571a84e73240e77d..e0d34fd29bba93f12c01b96f060944dd4e682167 100755 --- a/configure +++ b/configure @@ -1710,13 +1710,17 @@ cat > $TMPC << EOF #include int main(void) { pthread_create(0,0,0,0); return 0; } EOF -for pthread_lib in $PTHREADLIBS_LIST; do - if compile_prog "" "$pthread_lib" ; then - pthread=yes - LIBS="$pthread_lib $LIBS" - break - fi -done +if compile_prog "" "" ; then + pthread=yes +else + for pthread_lib in $PTHREADLIBS_LIST; do + if compile_prog "" "$pthread_lib" ; then + pthread=yes + LIBS="$pthread_lib $LIBS" + break + fi + done +fi if test "$mingw32" != yes -a "$pthread" = no; then echo