Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 415439
Collapse All | Expand All

(-)a/configure (-30 / +23 lines)
Lines 42286-42340 fi Link Here
42286
42248
42287
   LIB_PTHREAD=
42249
   LIB_PTHREAD=
42288
   if test $ac_cv_header_pthread_h = yes; then
42250
   if test $ac_cv_header_pthread_h = yes; then
42289
                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_join" >&5
42251
                              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create and pthread_join" >&5
42290
$as_echo_n "checking for library containing pthread_join... " >&6; }
42252
$as_echo_n "checking for library containing pthread_create and pthread_join... " >&6; }
42291
if ${gl_cv_search_pthread_join+:} false; then :
42253
if ${gl_cv_lib_pthread+:} false; then :
42292
  $as_echo_n "(cached) " >&6
42254
  $as_echo_n "(cached) " >&6
42293
else
42255
else
42294
  gl_saved_libs="$LIBS"
42256
  gl_saved_libs=$LIBS
42295
        gl_cv_search_pthread_join=
42257
        gl_cv_lib_pthread=
42296
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42258
        for gl_lib_prefix in '' '-lpthread'; do
42297
/* end confdefs.h.  */
42259
          LIBS="$gl_lib_prefix $gl_saved_libs"
42298
#include <pthread.h>
42299
int
42300
main ()
42301
{
42302
pthread_join (pthread_self (), (void **) 0);
42303
  ;
42304
  return 0;
42305
}
42306
_ACEOF
42307
if ac_fn_c_try_link "$LINENO"; then :
42308
  gl_cv_search_pthread_join="none required"
42309
fi
42310
rm -f core conftest.err conftest.$ac_objext \
42311
    conftest$ac_exeext conftest.$ac_ext
42312
        if test -z "$gl_cv_search_pthread_join"; then
42313
          LIBS="-lpthread $gl_saved_libs"
42314
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42260
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42315
/* end confdefs.h.  */
42261
/* end confdefs.h.  */
42316
#include <pthread.h>
42262
#include <pthread.h>
42263
                 void *noop (void *p) { return p; }
42317
int
42264
int
42318
main ()
42265
main ()
42319
{
42266
{
42320
pthread_join (pthread_self (), (void **) 0);
42267
pthread_t pt;
42268
                 void *arg = 0;
42269
                 pthread_create (&pt, 0, noop, arg);
42270
                 pthread_join (pthread_self (), &arg);
42321
  ;
42271
  ;
42322
  return 0;
42272
  return 0;
42323
}
42273
}
42324
_ACEOF
42274
_ACEOF
42325
if ac_fn_c_try_link "$LINENO"; then :
42275
if ac_fn_c_try_link "$LINENO"; then :
42326
  gl_cv_search_pthread_join="-lpthread"
42276
  if test -z "$gl_lib_prefix"; then
42277
               gl_cv_lib_pthread="none required"
42278
             else
42279
               gl_cv_lib_pthread=$gl_lib_prefix
42280
             fi
42327
fi
42281
fi
42328
rm -f core conftest.err conftest.$ac_objext \
42282
rm -f core conftest.err conftest.$ac_objext \
42329
    conftest$ac_exeext conftest.$ac_ext
42283
    conftest$ac_exeext conftest.$ac_ext
42330
        fi
42284
          test -n "$gl_cv_lib_pthread" && break
42285
        done
42331
        LIBS="$gl_saved_libs"
42286
        LIBS="$gl_saved_libs"
42332
42287
42333
fi
42288
fi
42334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_search_pthread_join" >&5
42289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_pthread" >&5
42335
$as_echo "$gl_cv_search_pthread_join" >&6; }
42290
$as_echo "$gl_cv_lib_pthread" >&6; }
42336
     if test "$gl_cv_search_pthread_join" != "none required"; then
42291
     if test "$gl_cv_lib_pthread" != "none required"; then
42337
       LIB_PTHREAD="$gl_cv_search_pthread_join"
42292
       LIB_PTHREAD="$gl_cv_lib_pthread"
42338
     fi
42293
     fi
42339
   fi
42294
   fi
42340
42295

Return to bug 415439