Re: [gtk-list] configure.in buglet in CVS glib 1.3.1



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:wilhelmi@ira.uka.de           |     ä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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]