prevent build-score/configure from picking up $CFLAGS etc., backported from Score-P 2.0.2
author: Markus Geimer (JSC)
--- build-score/configure.orig	2016-05-11 09:21:03.716441529 +0200
+++ build-score/configure	2016-05-11 09:38:14.651525955 +0200
@@ -735,6 +735,7 @@ afs_srcdir
 AFS_PACKAGE_TO_TOP
 AFS_PACKAGE_NAME
 AFS_PACKAGE_name
+CXXFLAGS_FOR_BUILD_SCORE
 target_alias
 host_alias
 build_alias
@@ -790,6 +791,7 @@ enable_libtool_lock
       ac_precious_vars='build_alias
 host_alias
 target_alias
+CXXFLAGS_FOR_BUILD_SCORE
 CC
 CFLAGS
 LDFLAGS
@@ -1444,6 +1446,8 @@ Optional Packages:
                           compiler's sysroot if not specified).
 
 Some influential environment variables:
+  CXXFLAGS_FOR_BUILD_SCORE
+              C++ compiler flags for building scorep-score
   CC          C compiler command
   CFLAGS      C compiler flags
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
@@ -2363,6 +2367,24 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
+# Compilers etc. are set according to Cube installation (see below),
+# so ignore environment variables set in the environment.
+{ CC=; unset CC;}
+{ CFLAGS=; unset CFLAGS;}
+{ LDFLAGS=; unset LDFLAGS;}
+{ LIBS=; unset LIBS;}
+{ CPPFLAGS=; unset CPPFLAGS;}
+{ LT_SYS_LIBRARY_PATH=; unset LT_SYS_LIBRARY_PATH;}
+{ CPP=; unset CPP;}
+{ CXX=; unset CXX;}
+{ CXXFLAGS=; unset CXXFLAGS;}
+{ CXXCPP=; unset CXXCPP;}
+
+
+if test "x${ac_cv_env_CXXFLAGS_FOR_BUILD_SCORE_set}" = xset; then :
+  CXXFLAGS="${ac_cv_env_CXXFLAGS_FOR_BUILD_SCORE_value}"
+fi
+
 
 
 
