]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Some further checks in check_for_cxx_features.cmake
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 16:11:36 +0000 (16:11 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 12 Sep 2012 16:11:36 +0000 (16:11 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26317 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/cmake/check/check_for_cxx_features.cmake
deal.II/include/deal.II/base/config.h.in
deal.II/include/deal.II/base/config.h.in.old

index b4fe1a6c1c3d0ccbbd1e08ff0dee58353ebcc06a..dabdf2ba3047ac1b38f0471545ceeca2cd3a3fc5 100644 (file)
@@ -195,8 +195,31 @@ LIST(REMOVE_ITEM CMAKE_REQUIRED_FLAGS "-std=c++0x")
 
 
 
+CHECK_CXX_SOURCE_COMPILES(
+  "
+  #include <cmath>
+  int main(){ double d=0; isnan (d); return 0; }
+  "
+  HAVE_ISNAN)
+
+CHECK_CXX_SOURCE_COMPILES(
+  "
+  #include <cmath>
+  int main(){ double d=0; _isnan (d); return 0; }
+  "
+  HAVE_UNDERSCORE_ISNAN)
+
+CHECK_CXX_SOURCE_COMPILES(
+  "
+  #include <cmath>
+  int main(){ double d=0; std::isfinite (d); return 0; }
+  "
+  DEAL_II_HAVE_ISFINITE)
+
+
+
 #
-# Checks for various header files:
+# Checks for various header files: # TODO: Obsolete?
 #
 
 CHECK_INCLUDE_FILES("stdint.h" HAVE_STDINT_H)
@@ -207,7 +230,3 @@ CHECK_INCLUDE_FILES("sys/stat.h" HAVE_SYS_STAT_H)
 CHECK_INCLUDE_FILES("sys/syscall.h" HAVE_SYS_SYSCALL_H)
 CHECK_INCLUDE_FILES("sys/times.h" HAVE_SYS_TIMES_H)
 CHECK_INCLUDE_FILES("sys/types.h" HAVE_SYS_TYPES_H)
-
-
-
-
index ad9782919f5e6f833682b3f33fe9908a01a4f8b3..e6c1a0bdd990dc37120e403cdf258b9dfd1a8291 100644 (file)
    classes. */
 #cmakedefine DEAL_II_CAN_USE_CXX1X
 
+/* Defined if isnan is available */
+#cmakedefine HAVE_ISNAN
+
+/* Defined if _isnan is available */
+#cmakedefine HAVE_UNDERSCORE_ISNAN
+
+/* Defined if std::isfinite is available */
+#cmakedefine DEAL_II_HAVE_ISFINITE
+
 /* Defined if you have the <stdint.h> header file. */
 #cmakedefine HAVE_STDINT_H
 
 /* Defined if you have the <sys/types.h> header file. */
 #cmakedefine HAVE_SYS_TYPES_H
 
-/* Defined if you have the `strtrs_' function. */
-#cmakedefine HAVE_STRTRS_ /* TODO */
-
-
 
 
 #include <deal.II/base/numbers.h>
index 9b8e2095ecec7c13118b7a8b01d685031c82bb62..6ce0d15cfae0367e6cf70f3c44677a196147f567 100644 (file)
@@ -73,9 +73,6 @@
    libraries */
 #cmakedefine DEAL_II_HAVE_DARWIN_DYNACAST_BUG
 
-/* Defined if std::isfinite is available */
-#cmakedefine DEAL_II_HAVE_ISFINITE
-
 /* Flag indicating whether the library shall be compiled to use the Tecplot
    interface */
 #cmakedefine DEAL_II_HAVE_TECPLOT
 #  pragma warning( disable : 4789 ) // destination of memory copy is too small
 #  pragma warning( disable : 4808 ) // case 'value' is not a valid value for switch condition of type 'bool
 #endif // DEAL_II_MSVC
+
+
+/* Defined if you have the `strtrs_' function. */
+#cmakedefine HAVE_STRTRS_ /* TODO */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.