Fixed --with-threads, small 64-bit prob
authorJeff Garzik <jgarzik@src.gnome.org>
Tue, 15 Dec 1998 15:47:13 +0000 (15:47 +0000)
committerJeff Garzik <jgarzik@src.gnome.org>
Tue, 15 Dec 1998 15:47:13 +0000 (15:47 +0000)
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gthread/testgthread.c

index 9f24787..216a967 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 9f24787..216a967 100644 (file)
@@ -1,3 +1,9 @@
+1998-12-15  Jeff Garzik  <jgarzik@Pobox.com>
+
+       * configure.in: correctly support --without-threads and friends
+
+       * gthread/testgthread.c: corrected 64-bitness problem
+
 Tue Dec 15 10:40:09 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gnode.c glist.c gslist.c: Make sure all
index 6b7fc2a..fd96c97 100644 (file)
@@ -539,13 +539,13 @@ LIBS_NOT_FOUND_2=". Please choose another thread implementation or
 dnl determination of thread implementation
 dnl ***************************************
 
-if test x"$with_threads" = x; then
+if test "x$with_threads" != xno; then
         case $host in
                 *-*-solaris*)
                         AC_CHECK_LIB(thread,cond_init,with_threads=solaris)
                         ;;
         esac
-        if test x"$with_threads" = x; then
+        if test "x$with_threads" != xsolaris; then
                 AC_CHECK_LIB(pthread,pthread_cond_init,with_threads=posix)
                AC_CHECK_LIB(pthreads,pthread_attr_init,with_threads=posix)
                AC_CHECK_LIB(nspr21,PRP_NewNakedCondVar,with_threads=nspr)
@@ -556,10 +556,12 @@ AC_MSG_CHECKING(for thread implementation)
 
 if test x"$with_threads" = x; then
         with_threads=none
+       AC_MSG_RESULT(none available)
         AC_MSG_WARN($THREAD_NO_IMPLEMENTATION)
+else
+       AC_MSG_RESULT($with_threads)
 fi
 
-AC_MSG_RESULT($with_threads)
 
 dnl determination of G_THREAD_LIBS
 dnl ******************************
index be81f04..b82a252 100644 (file)
@@ -173,7 +173,7 @@ test_private ()
   gpointer threads[TEST_PRIVATE_THREADS];
   for (i = 0; i < TEST_PRIVATE_THREADS; i++)
     {
-      threads[i] = new_thread (test_private_func, (gpointer) i);
+      threads[i] = new_thread (test_private_func, GINT_TO_POINTER(i));
     }
   for (i = 0; i < TEST_PRIVATE_THREADS; i++)
     {