configure.in: Disable hash sync when not using threads.
authorKrister Walfridsson <cato@df.lth.se>
Tue, 29 Oct 2002 23:03:17 +0000 (00:03 +0100)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Tue, 29 Oct 2002 23:03:17 +0000 (23:03 +0000)
        * configure.in: Disable hash sync when not using threads.
        * configure: Regenerated.

From-SVN: r58641

libjava/ChangeLog
libjava/configure
libjava/configure.in

index 4db95b01eea118a570e4df42e3c1b6060e13cfcf..21de27f73d09632579247ea79c6b9225069a59f0 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-25  Krister Walfridsson  <cato@df.lth.se>
+
+       * configure.in: Disable hash sync when not using threads.
+       * configure: Regenerated.
+
 2002-10-24  Tom Tromey  <tromey@redhat.com>
 
        * java/lang/natRuntime.cc (_Jv_SetDLLSearchPath): New function.
index 514a1aa294e59ed60cf6127610806d04d055e31b..4e34cc947068f7a395d5c9fbba8fdaee98ef4a04 100755 (executable)
@@ -3327,7 +3327,7 @@ if test -d sysdep; then true; else mkdir sysdep; fi
 
 HASH_SYNC_SPEC=
 # Hash synchronization is only useful with posix threads right now.
-if test "$enable_hash_synchronization" = yes; then
+if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
    HASH_SYNC_SPEC=-fhash-synchronization
    cat >> confdefs.h <<\EOF
 #define JV_HASH_SYNCHRONIZATION 1
index e11928e70a43068bf3b2269357e72a35b3c05fbe..59f821accce5d16003fd90f58f13e4274bdde728 100644 (file)
@@ -445,7 +445,7 @@ AC_LINK_FILES(sysdep/$sysdeps_dir/locks.h, sysdep/locks.h)
 
 HASH_SYNC_SPEC=
 # Hash synchronization is only useful with posix threads right now.
-if test "$enable_hash_synchronization" = yes; then
+if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
    HASH_SYNC_SPEC=-fhash-synchronization
    AC_DEFINE(JV_HASH_SYNCHRONIZATION, 1, [Define if hash synchronization is in use])
 fi