On Tue, Aug 23, 2005 at 03:56:12PM +0100, Simon Morgan wrote: > On 8/23/05, Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> wrote: > > I'd try to get the ACX_PTHREAD macro from the autoconf archive and > > work with that. Any of its shortcomings should be discussed with > > its maintainer (or on this list, FWIW) and incorporated into an > > improved version of the macro. That way, others can profit, too > > (both those that use the improved macro, as well as those that will > > eventually try to compile your package and don't have to hack around > > to get it to work with their threads support). > > Thanks for the info, I'll be sure to look into it. Before reading your mail > I managed to come up with the following: > > AC_CHECK_LIB(pthread,pthread_create,THREAD_LIBS="-lpthread",THREAD_LIBS="-lkse") > > which "seems to work". Can you or anybody else with more experience > than me see any problems with it? Depends. Won't work on Tru64 because pthread_create is a #define. Some platforms have stub functions in libc so you don't need to -lpthread. Getting pthread correct is rather involved. Read through this month's bug-gnulib list for some work by Bruno Haible. -- albert chin (china@xxxxxxxxxxxxxxxxxx) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf