From dd88bc97473ecad755657a587123e6da2653949a Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Fri, 19 Dec 2008 09:18:41 +0000 Subject: [PATCH] acinclude.m4: Guard a variable test against an empty string. * acinclude.m4: Guard a variable test against an empty string. * configure: Regenerate. From-SVN: r142829 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/acinclude.m4 | 2 +- libstdc++-v3/configure | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a1dd9869d65..da8f90b36c1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-12-19 Ben Elliston + + * acinclude.m4: Guard a variable test against an empty string. + * configure: Regenerate. + 2008-12-18 Jack Howarth * testsuite/21_strings/basic_string/element_access/wchar_t/21674.cc: diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index a1356bd7b06..d7e93a83406 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -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 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 78032984fe1..17d59229ff0 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -14914,7 +14914,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu atomicity_dir=cpu/generic/atomicity_mutex { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;} - if test $target_thread_file = single; then + if test "x$target_thread_file" = xsingle; then { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;} { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5