Index: configure.ac
===================================================================
--- configure.ac	(revision 706)
+++ configure.ac	(working copy)
@@ -166,6 +166,7 @@
 	return (myhashmap.size() == 0);
 	]])], [TRY_STD_CXX11=0], [TRY_STD_CXX11=1])
 if test $TRY_STD_CXX11 -eq 1; then
+	AC_MSG_CHECKING([for c++11])
 	EXTRA_CXXFLAGS="-std=c++11";
 	CXXFLAGS="$CXXFLAGS -std=c++11";
 	AC_COMPILE_IFELSE([
@@ -176,8 +177,26 @@
 		std::hash<const char*>,
 		std::equal_to<const char*> > myhashmap;
 		return (myhashmap.size() == 0);
-		]])], [],
-[AC_MSG_ERROR($CXX not able to compile a sample code with std::unordered_map, please use GCC 4.8 or newer versions)])
+		]])], [AC_MSG_RESULT([yes])],[
+	AC_MSG_RESULT([no])	
+	
+	# c++11 not found, trying c++0x
+	AC_MSG_CHECKING([for c++0x])
+	EXTRA_CXXFLAGS=$(echo "$EXTRA_CXXFLAGS" | sed 's/c++11/c++0x/')
+	CXXFLAGS=$(echo "$CXXFLAGS" | sed 's/c++11/c++0x/')
+	AC_COMPILE_IFELSE([
+		AC_LANG_PROGRAM([[
+			#include <unordered_map>
+			]], [[
+			std::unordered_map<const char*, unsigned,
+			std::hash<const char*>,
+			std::equal_to<const char*> > myhashmap;
+			return (myhashmap.size() == 0);
+			]])], [AC_MSG_RESULT([yes])],[
+
+		AC_MSG_ERROR([$CXX not able to compile a sample code with std::unordered_map using c++11 or c++0x.  Consider using GCC 4.8 or newer])
+	])
+])
 fi
 
 AC_ARG_WITH(getpwuid,
@@ -489,7 +508,7 @@
 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
 
 # make sure FlexLexer.h defines yywrap
-#AC_CHECK_HEADER(FlexLexer.h, [], [CFLAGS="${CFLAGS} -I ${PWD}/win" CXXFLAGS="${CXXFLAGS} -I ${PWD}/win"])
+AC_CHECK_HEADER([FlexLexer.h], [], [AC_MSG_ERROR([unable to find FlexLexer.h])])
 AC_MSG_CHECKING([if the default FlexLexer.h defines yywrap])
 if AC_TRY_COMMAND($CXX $CXXFLAGS -c src/whereLexer.cc) && test -s whereLexer.o; then
   AC_MSG_RESULT([yes])
