]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Reorganization of langauge and system checks
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 14:09:25 +0000 (14:09 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 14:09:25 +0000 (14:09 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26836 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/check_for_cxx_features.cmake
deal.II/cmake/checks/check_for_system_features.cmake [new file with mode: 0644]
deal.II/include/deal.II/base/config.h.in
deal.II/include/deal.II/base/config.h.in.old

index 86d42a0931558978302b86db67481c4f1403b10b..8b242b32692549de1b32e6918bc970c49c000b89 100644 (file)
@@ -3,14 +3,6 @@
 #
 
 
-CHECK_CXX_SOURCE_COMPILES(
-  "
-  #include <iosfwd>
-  int main(){return 0;}
-  "
-  HAVE_STD_IOSFWD_HEADER)
-
-
 #
 # C++11 Support:
 #
@@ -213,6 +205,7 @@ CHECK_CXX_SOURCE_COMPILES(
   "
   HAVE_ISNAN)
 
+
 CHECK_CXX_SOURCE_COMPILES(
   "
   #include <cmath>
@@ -220,6 +213,7 @@ CHECK_CXX_SOURCE_COMPILES(
   "
   HAVE_UNDERSCORE_ISNAN)
 
+
 CHECK_CXX_SOURCE_COMPILES(
   "
   #include <cmath>
@@ -234,11 +228,9 @@ CHECK_CXX_SOURCE_COMPILES(
 #
 
 CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)
+
 CHECK_INCLUDE_FILE("stdlib.h" HAVE_STDLIB_H)
+
 CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H)
+
 CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H)
-CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
-CHECK_INCLUDE_FILE("sys/syscall.h" HAVE_SYS_SYSCALL_H)
-CHECK_INCLUDE_FILE("sys/times.h" HAVE_SYS_TIMES_H)
-CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
-CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
diff --git a/deal.II/cmake/checks/check_for_system_features.cmake b/deal.II/cmake/checks/check_for_system_features.cmake
new file mode 100644 (file)
index 0000000..46b5fa9
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# Check for various system features:
+#
+
+
+CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
+
+CHECK_INCLUDE_FILE("sys/syscall.h" HAVE_SYS_SYSCALL_H)
+
+CHECK_INCLUDE_FILE("sys/times.h" HAVE_SYS_TIMES_H)
+
+CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
+
+CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
index e9aa8738289ef8b9c9d9f1c84fe62a713dc7673b..3b0af02f50b6c49a67026bd02069a0ce117b7531 100644 (file)
@@ -19,6 +19,7 @@
 #define DEAL_II_NAMESPACE_OPEN namespace dealii {
 #define DEAL_II_NAMESPACE_CLOSE }
 
+
 /* Define to the full name of this package. */
 #define DEAL_II_PACKAGE_NAME "@DEAL_II_PACKAGE_NAME@"
 
 #cmakedefine HAVE_LIBZ
 
 
-
-
 /**********************************************
  * Configured in check_for_compiler_features: *
  **********************************************/
  */
 #define DEAL_II_MIN_BOOL_VECTOR_CAPACITY @DEAL_II_MIN_BOOL_VECTOR_CAPACITY@
 
-
+/* If the compiler supports it, then this variable is defined to a string
+ * that when written after a function name makes the compiler emit a warning
+ * whenever this function is used somewhere that its use is deprecated.
+ */
+#cmakedefine DEAL_II_DEPRECATED @DEAL_II_DEPRECATED@
 
 
 /******************************************
 #cmakedefine DEAL_II_EXPLICIT_DESTRUCTOR_BUG
 
 
-
-
 /*****************************************
  * Configured in check_for_cxx_features: *
  *****************************************/
 /* Defined if you have the <string.h> header file. */
 #cmakedefine HAVE_STRING_H
 
+
+/********************************************
+ * Configured in check_for_system_features: *
+ ********************************************/
+
+
+/* Defined if you have the <unistd.h> header file. */
+#cmakedefine HAVE_UNISTD_H
+
 /* Defined if you have the <sys/stat.h> header file. */
 #cmakedefine HAVE_SYS_STAT_H
 
 /* Defined if you have the <sys/types.h> header file. */
 #cmakedefine HAVE_SYS_TYPES_H
 
-/* Define to 1 if you have the <unistd.h> header file. */
-#cmakedefine HAVE_UNISTD_H
+/* Defined if you have the "gethostname" function. */
+#cmakedefine HAVE_GETHOSTNAME
+
+/* Defined if you have the "getpid' function. */
+#cmakedefine HAVE_GETPID
+
+/* Defined if you have the "rand_r" function */
+#cmakedefine HAVE_RAND_R
+
+/* Defined if you have the "times" function. */
+#cmakedefine HAVE_TIMES
+
+/* Defined if you have the "jn" function. */
+#cmakedefine HAVE_JN
+
+/* Defined if the system stores words with the most significant byte first */
+#cmakedefine DEAL_II_WORDS_BIGENDIAN
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+   significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+#  define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+#  undef WORDS_BIGENDIAN
+# endif
+#endif
+
+
 
-/* If the compiler supports it, then this variable is defined to a string
-   that when written after a function name makes the compiler emit a warning
-   whenever this function is used somewhere that its use is deprecated. */
-#cmakedefine DEAL_II_DEPRECATED @DEAL_II_DEPRECATED@
 
 
 
index 221195a5dcacd388db085f0e2b329d185a2c6a30..45e0467129f788f182c4eeef7ea3a80c0fb4d1df 100644 (file)
@@ -3,36 +3,6 @@ TODO:
 /* enable multigrid compatibility mode */
 #cmakedefine DEAL_II_MULTIGRID_COMPATIBILITY
 
-/* Defined if the system stores words with the most significant byte first */
-#cmakedefine DEAL_II_WORDS_BIGENDIAN
-
-/* Define to 1 if you have the `gethostname' function. */
-#cmakedefine HAVE_GETHOSTNAME
-
-/* Define to 1 if you have the `getpid' function. */
-#cmakedefine HAVE_GETPID
-
-/* Define if you have the rand_r function */
-#cmakedefine HAVE_RAND_R
-
-/* Define to 1 if you have the `times' function. */
-#cmakedefine HAVE_TIMES
-
-/* Define to 1 if you have the `jn' function. */
-#cmakedefine HAVE_JN
-
-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
-   significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-#  define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-#  undef WORDS_BIGENDIAN
-# endif
-#endif
-
 
 
 

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.