The glibc testing patch for libstdc++ v3

H . J . Lu hjl@valinux.com
Fri Jul 21 12:42:00 GMT 2000


When you test __GLIBC__, you have to at least include <features.h>.
Othetwise, __GLIBC__ won't get defined.


-- 
H.J. Lu (hjl@gnu.org)
--
2000-07-21  H.J. Lu  (hjl@gnu.org)

        * acinclude.m4: Include <features.h> for glibc testing.
	* aclocal.m4: Likewise.

	* configure: Rebuild.

Index: acinclude.m4
===================================================================
RCS file: /work/cvs/gnu/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.1.1.12
diff -u -p -r1.1.1.12 acinclude.m4
--- acinclude.m4	2000/07/21 17:20:52	1.1.1.12
+++ acinclude.m4	2000/07/21 19:37:44
@@ -1186,6 +1186,7 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
           *-*-linux*)
   	    AC_MSG_CHECKING([for glibc version >= 2.2])
   	    AC_EGREP_CPP([ok], [
+	    #include <features.h>
   	    #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
     		ok
   	    #endif
Index: aclocal.m4
===================================================================
RCS file: /work/cvs/gnu/egcs/libstdc++-v3/aclocal.m4,v
retrieving revision 1.1.1.12
diff -u -p -r1.1.1.12 aclocal.m4
--- aclocal.m4	2000/07/21 17:20:53	1.1.1.12
+++ aclocal.m4	2000/07/21 19:37:16
@@ -1198,6 +1198,7 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
           *-*-linux*)
   	    AC_MSG_CHECKING([for glibc version >= 2.2])
   	    AC_EGREP_CPP([ok], [
+	    #include <features.h>
   	    #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
     		ok
   	    #endif


More information about the Gcc-patches mailing list