This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PATCH, v3: fix error from configure
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Dec 2008 13:05:19 +1100
- Subject: 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