libjava.exp (libjava_arguments): If `libtool' not found in build tree, just use ...
authorTom Tromey <tromey@cygnus.com>
Thu, 24 Jun 1999 19:06:28 +0000 (19:06 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 24 Jun 1999 19:06:28 +0000 (19:06 +0000)
* lib/libjava.exp (libjava_arguments): If `libtool' not found in
build tree, just use $GCJ_UNDER_TEST as compiler.

From-SVN: r27728

libjava/testsuite/ChangeLog
libjava/testsuite/lib/libjava.exp

index fd52a13a05e664faf2afafb64312c78dd0f1f262..47e493d2c00cc81660c52153cfc9f31c2019cba0 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-24  Tom Tromey  <tromey@cygnus.com>
+
+       * lib/libjava.exp (libjava_arguments): If `libtool' not found in
+       build tree, just use $GCJ_UNDER_TEST as compiler.
+
 1999-06-23  Tom Tromey  <tromey@cygnus.com>
 
        * lib/libjava.exp (libjava_arguments): Handle -lzgcj.
index 88691a8663ef73071792e67a65f839cf7782be5c..78818fc37158af811fc0eb73214a374cde853d28 100644 (file)
@@ -200,15 +200,20 @@ proc libjava_arguments {{mode compile}} {
     }
 
     # Search for libtool.  We need it to link.
+    set found_compiler 0
     set d [absolute $objdir]
     foreach x {. .. ../.. ../../..} {
        if {[file exists $d/$x/libtool]} then {
            # We have to run silently to avoid DejaGNU lossage.
            lappend args \
              "compiler=$d/$x/libtool --silent --mode=$mode $GCJ_UNDER_TEST"
+           set found_compiler 1
            break
        }
     }
+    if {! $found_compiler} {
+       lappend args "compiler=$GCJ_UNDER_TEST"
+    }
 
     return $args
 }