Index: configure
===================================================================
--- configure	(revision ee5153450a63c4ce207bc8006df0fefce0f172ae)
+++ configure	(revision 6e4b91391fb1232cd2844955fb350539bfd4511b)
@@ -639,4 +639,5 @@
 CXXFLAGS
 CXX
+CFA_FLAGS
 CFA_LIBDIR
 CFA_BINDIR
@@ -2456,7 +2457,7 @@
 
 if test "x${CXXFLAGS}" = "x"; then
-   export CXXFLAGS="-std=c++11 -g -O2 ${CXXFLAGS}"
-else
-   export CXXFLAGS="-std=c++11 ${CXXFLAGS}"
+   export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}"	# defaults, no -O2 for debugging and failures
+else
+   export CXXFLAGS="-std=c++11 ${CXXFLAGS}"	# flags from configure command
 fi
 
@@ -2961,5 +2962,5 @@
   MAINT=$MAINTAINER_MODE_TRUE
 
-	# may require auto* software to be installed
+			# may require auto* software to be installed
 
 # Installation paths
@@ -2973,5 +2974,5 @@
 fi
 
-if test "x$backendcompiler" != x; then
+if test "x$backendcompiler" != "x"; then
 	BACKEND_CC=${backendcompiler}
 else
@@ -3015,5 +3016,5 @@
 fi
 
-
+	# check gcc installed
 	if test "x$BACKEND_CC" = "x"; then
 		as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5
@@ -3078,4 +3079,12 @@
 
 CFA_LIBDIR=${cfa_libdir}
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define CFA_FLAGS "${CFAFLAGS}"
+_ACEOF
+
+CFA_FLAGS=${CFAFLAGS}
 
 
