From 60e712d2938da938ab8dcdc672086b7fb37cc911 Mon Sep 17 00:00:00 2001 From: Sven Marnach <sven@dune-project.org> Date: Tue, 16 Feb 2010 15:38:35 +0000 Subject: [PATCH] Fix shared_ptr for the case neither tr1 nor boost is present. The old version tried to look up the shared_ptr in the namespace "missing", so the compilation failed. [[Imported from SVN: r5897]] --- m4/shared_ptr.m4 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/m4/shared_ptr.m4 b/m4/shared_ptr.m4 index 8264dfda4..564cf31aa 100644 --- a/m4/shared_ptr.m4 +++ b/m4/shared_ptr.m4 @@ -49,8 +49,12 @@ shared_ptr<string> test_ptr(new string("test string")); ],[ac_cv_shared_ptr_namespace=missing]) done ]) - AC_DEFINE_UNQUOTED([SHARED_PTR_NAMESPACE], - ${ac_cv_shared_ptr_namespace}, - [The namespace in which SHARED_PTR can be found]) + AS_IF([ test "x$ac_cv_shared_ptr_namespace" = xmissing ], + [], [ + AC_DEFINE_UNQUOTED([SHARED_PTR_NAMESPACE], + ${ac_cv_shared_ptr_namespace}, + [The namespace in which SHARED_PTR can be found]) + ] + ) AC_LANG_POP() ]) -- GitLab