|
From: Dale H. <da...@us...> - 2002-06-13 22:03:22
|
Update of /cvsroot/corelinux/corelinux/admin
In directory usw-pr-cvs1:/tmp/cvs-serv20327
Modified Files:
ac_cxx_have_std.m4 ac_cxx_namespaces.m4
Log Message:
Formatted for better clarity.
Index: ac_cxx_have_std.m4
===================================================================
RCS file: /cvsroot/corelinux/corelinux/admin/ac_cxx_have_std.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ac_cxx_have_std.m4 12 Jun 2002 23:02:56 -0000 1.1
--- ac_cxx_have_std.m4 13 Jun 2002 22:03:19 -0000 1.2
***************
*** 8,28 ****
dnl
AC_DEFUN([AC_CXX_HAVE_STD],
! [AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
! ac_cv_cxx_have_std,
! [AC_REQUIRE([AC_CXX_NAMESPACES])
! AC_LANG_SAVE
! AC_LANG_CPLUSPLUS
! AC_TRY_COMPILE([#include <iostream>
! #include <map>
! #include <iomanip>
! #include <cmath>
! #ifdef HAVE_NAMESPACES
! using namespace std;
! #endif],[return 0;],
! ac_cv_cxx_have_std=yes, ac_cv_cxx_have_std=no)
! AC_LANG_RESTORE
! ])
! if test "$ac_cv_cxx_have_std" = yes; then
! AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard library])
! fi
! ])
--- 8,33 ----
dnl
AC_DEFUN([AC_CXX_HAVE_STD],
! [
! AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
! ac_cv_cxx_have_std,
! [
! AC_REQUIRE([AC_CXX_NAMESPACES])
! AC_LANG_SAVE
! AC_LANG_CPLUSPLUS
! AC_TRY_COMPILE([#include <iostream>
! #include <map>
! #include <iomanip>
! #include <cmath>
! #ifdef HAVE_NAMESPACES
! using namespace std;
! #endif],
! [return 0;],
! ac_cv_cxx_have_std=yes,
! ac_cv_cxx_have_std=no)
! AC_LANG_RESTORE
! ])
! if test "$ac_cv_cxx_have_std" = yes; then
! AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard library])
! fi
! ]
! )
Index: ac_cxx_namespaces.m4
===================================================================
RCS file: /cvsroot/corelinux/corelinux/admin/ac_cxx_namespaces.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ac_cxx_namespaces.m4 12 Jun 2002 23:02:57 -0000 1.1
--- ac_cxx_namespaces.m4 13 Jun 2002 22:03:19 -0000 1.2
***************
*** 8,22 ****
dnl
AC_DEFUN([AC_CXX_NAMESPACES],
! [AC_CACHE_CHECK(whether the compiler implements namespaces,
! ac_cv_cxx_namespaces,
! [AC_LANG_SAVE
! AC_LANG_CPLUSPLUS
! AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],
! [using namespace Outer::Inner; return i;],
! ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)
! AC_LANG_RESTORE
! ])
! if test "$ac_cv_cxx_namespaces" = yes; then
! AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
! fi
! ])
--- 8,30 ----
dnl
AC_DEFUN([AC_CXX_NAMESPACES],
! [
! AC_CACHE_CHECK(whether the compiler implements namespaces,
! ac_cv_cxx_namespaces,
! [
! AC_LANG_SAVE
! AC_LANG_CPLUSPLUS
! AC_TRY_COMPILE(
! [
! namespace Outer { namespace Inner { int i = 0; }}
! ],
! [using namespace Outer::Inner; return i;],
! ac_cv_cxx_namespaces=yes,
! ac_cv_cxx_namespaces=no)
! AC_LANG_RESTORE
! ]
! )
! if test "$ac_cv_cxx_namespaces" = yes; then
! AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
! fi
! ]
! )
|