[Date Prev][Date Next] [Chronological] [Thread] [Top]

testing for pthreads in default libraries



Testing for pthreads in the default libraries doesn't appear
to work because conftest isn't run (as far as I can tell,
autoconf is a bit hairy for me).

If you look at the line:

if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext};
then

it probably needs to be:

if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then

I can't manage to get autoconf to generate this, though,
but I thought it might be possible to replace the part
of configure.in that does this check with a call to
the OL_PTHREAD_TRY() macro, eg:

          OL_PTHREAD_TRY([], [ol_cv_pthread_create])

This works for me on Mac OS X Public Beta.


-- Luke
--
Luke Howard | Darwin Developer | PADL Software Pty Ltd
www.padl.com | lukeh@darwin.apple.com | lukeh@padl.com