When removing checks then the appropriate #ifdef in the source code need to be reworked.
e.g.
Missing HAVE_DECL_ISTREAMBUF_ITERATOR is the reason why now with cmake in lyxsum.cpp the function sum(...) is no longer compiled with istreambuf_iterator and therefore (according to the comment in the source code) lacks performance. Without HAVE_ISTREAM and HAVE_OSTREAM the files std_istream.h and std_ostream.h are obsolete.
CXX_GLOBAL_CSTD is also used in many places in the source code.

bernhard

[EMAIL PROTECTED] schrieb:
Author: poenitz
Date: Thu Aug 23 23:18:53 2007
New Revision: 19762

URL: http://www.lyx.org/trac/changeset/19762
Log:
do not check for Standard C++ features anymore.

Modified:
    lyx-devel/trunk/development/cmake/ConfigureChecks.cmake
    lyx-devel/trunk/development/cmake/src/support/CMakeLists.txt

Modified: lyx-devel/trunk/development/cmake/ConfigureChecks.cmake
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/development/cmake/ConfigureChecks.cmake?rev=19762
==============================================================================
--- lyx-devel/trunk/development/cmake/ConfigureChecks.cmake (original)
+++ lyx-devel/trunk/development/cmake/ConfigureChecks.cmake Thu Aug 23 23:18:53 
2007
@@ -16,11 +16,11 @@
check_include_file_cxx(aspell.h HAVE_ASPELL_H)
 check_include_file_cxx(aspell/aspell.h HAVE_ASPELL_ASPELL_H)
-check_include_file_cxx(istream HAVE_ISTREAM)
-check_include_file_cxx(ostream HAVE_OSTREAM)
-check_include_file_cxx(ios HAVE_IOS)
-check_include_file_cxx(sstream HAVE_SSTREAM)
-check_include_file_cxx(locale HAVE_LOCALE)
+#check_include_file_cxx(istream HAVE_ISTREAM)
+#check_include_file_cxx(ostream HAVE_OSTREAM)
+#check_include_file_cxx(ios HAVE_IOS)
+#check_include_file_cxx(sstream HAVE_SSTREAM)
+#check_include_file_cxx(locale HAVE_LOCALE)
check_include_files(io.h HAVE_IO_H)
 check_include_files(limits.h HAVE_LIMITS_H)
@@ -93,34 +93,34 @@
 check_type_size(wint_t  HAVE_WINT_T)
-check_cxx_source_compiles(
-       "
-       #include <algorithm>
-       using std::count;
-       int countChar(char * b, char * e, char const c)
-       {
-               return count(b, e, c);
-       }
-       int main(){return 0;}
-       "
-HAVE_STD_COUNT)
+#check_cxx_source_compiles(
+#      "
+#      #include <algorithm>
+#      using std::count;
+#      int countChar(char * b, char * e, char const c)
+#      {
+#              return count(b, e, c);
+#      }
+#      int main(){return 0;}
+#      "
+#HAVE_STD_COUNT)
-check_cxx_source_compiles(
-       "
-       #include <streambuf>
-       #include <istream>
-       typedef std::istreambuf_iterator<char> type;
-       int main(){return 0;}
-       "
-HAVE_DECL_ISTREAMBUF_ITERATOR)
+#check_cxx_source_compiles(
+#      "
+#      #include <streambuf>
+#      #include <istream>
+#      typedef std::istreambuf_iterator<char> type;
+#      int main(){return 0;}
+#      "
+#HAVE_DECL_ISTREAMBUF_ITERATOR)
-check_cxx_source_compiles(
-       "
-       #include <cctype>
-       using std::tolower;
-       int main(){return 0;}
-       "
-CXX_GLOBAL_CSTD)
+#check_cxx_source_compiles(
+#      "
+#      #include <cctype>
+#      using std::tolower;
+#      int main(){return 0;}
+#      "
+#CXX_GLOBAL_CSTD)
check_cxx_source_compiles(
        "

Reply via email to