Hi Valdis, > AIX 4.3.3 pthread.h prototypes 'pthread_attr_init' as follows: > > extern int > pthread_attr_init __((pthread_attr_t *)); > > The attached patch allows configure to find Posix pthreads. I added > a similar check for DCE threads just in case. The patch should be > harmless on other machines. Ok, thanks, see below for more comments. > (Did I do this patch before, or was that against a 1.2.X glib, or some > other package? I'm having severe deja vu on this...) I don't remember a patch, but that doesn't mean, your wrong... ;-) > glib_save_CPPFLAGS="$CPPFLAGS" > CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES" > if test "x$have_threads" = xnone; then > ! AC_EGREP_HEADER([[^a-zA-Z_]*pthread_attr_init[^a-zA-Z_]], > pthread.h, > have_threads=posix) > fi > if test "x$have_threads" = xnone; then > ! AC_EGREP_HEADER([[^a-zA-Z_]*pthread_attr_create[^a-zA-Z_]], > pthread.h, > have_threads=dce) > fi This actually is equivalent to fully removing the first [^a-zA-Z_]. So I made the patch bit different. Please check it out and tell me, whether it works. The patch is attached and commited to CVS. Bye, Sebastian -- Sebastian Wilhelmi | här ovanför alla molnen mailto:[EMAIL PROTECTED] | är himmlen så förunderligt blå http://goethe.ira.uka.de/~wilhelmi |
--- configure.in 2000/02/18 09:57:19 1.121 +++ configure.in 2000/03/03 09:35:59 @@ -687,12 +687,12 @@ glib_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES" if test "x$have_threads" = xnone; then - AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_init[^a-zA-Z_]], + AC_EGREP_HEADER([^(|.*[^a-zA-Z_])pthread_attr_init[^a-zA-Z_]], pthread.h, have_threads=posix) fi if test "x$have_threads" = xnone; then - AC_EGREP_HEADER([[^a-zA-Z_]pthread_attr_create[^a-zA-Z_]], + AC_EGREP_HEADER([^(|.*[^a-zA-Z_])pthread_attr_create[^a-zA-Z_]], pthread.h, have_threads=dce) fi