This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH, v3: fix error from configure


On some targets, $target_thread_file can be unset (I'm not sure if that
is the right behaviour or not).  This patch protects against a "unary
operator expected" error from the configure script.  OK for mainline?

Ben


2008-12-19  Ben Elliston  <bje@au.ibm.com>

        * acinclude.m4: Guard a variable test against an empty string.
        * configure: Regenerate.

(diff against configure omitted for brevity.)

Index: acinclude.m4
===================================================================
--- acinclude.m4        (revision 142828)
+++ acinclude.m4        (working copy)
@@ -2570,7 +2570,7 @@ EOF
   if test $atomicity_dir = "cpu/generic" ; then
     atomicity_dir=cpu/generic/atomicity_mutex
     AC_MSG_WARN([No native atomic operations are provided for this platform.])
-      if test $target_thread_file = single; then
+      if test "x$target_thread_file" = xsingle; then
         AC_MSG_WARN([They cannot be faked when thread support is disabled.])
         AC_MSG_WARN([Thread-safety of certain classes is not guaranteed.])
       else



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]