Handle gcc version 5.x.y.

Recognize the future versions of gcc will be called 5.x.y.
Ignore line directives in glibc version configure test (newer
gcc/cpp will mark system macros with an extra line comment).

Patch from  Dmitry Djachenko (dimhen@gmail.com). Fixes #338932.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14507 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.ac b/configure.ac
index 336445c..8e16bda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,6 +138,9 @@
      notclang-4.*)
 	AC_MSG_RESULT([ok (${gcc_version})])
 	;;
+     notclang-5.*)
+	AC_MSG_RESULT([ok (${gcc_version})])
+	;;
      clang-2.9|clang-3.*|clang-4.*)
 	AC_MSG_RESULT([ok (clang-${gcc_version})])
 	;;
@@ -855,7 +858,7 @@
 glibc version is: __GLIBC__ __GLIBC_MINOR__
 #endif
 _ACEOF
-  GLIBC_VERSION="`$CPP conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
+  GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`"
 fi
 
 # not really a version check