]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add the last bunch of system checks
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 14:45:46 +0000 (14:45 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Sep 2012 14:45:46 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26838 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/TODO.CMAKE
deal.II/cmake/checks/check_for_system_features.cmake
deal.II/include/deal.II/base/config.h.in

index e97ff26ce7989ba0c1882d75f874612dd40a434c..095a7ca394710db6564152205254cc1e701e736d 100644 (file)
@@ -28,6 +28,8 @@ Major:
 
 Minor:
 
+* HAVE_JN_ ?
+
 * There is still a perl script for generating lapack_templates.h. Is this
   necessary.
 
index 46b5fa9d63972ddc777f6fb24af1de999bc1522c..a30c10b855a7c29bbaf906e7c591b10ba41d8897 100644 (file)
@@ -2,6 +2,14 @@
 # Check for various system features:
 #
 
+INCLUDE(TestBigEndian)
+
+
+#
+# Check for various posix specific header files:
+#
+
+CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
 
 CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
 
@@ -11,4 +19,18 @@ 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)
+
+#
+# Check for various posix specific functions:
+#
+
+CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME)
+
+CHECK_FUNCTION_EXISTS(getpid HAVE_GETPID)
+
+CHECK_FUNCTION_EXISTS(rand_r HAVE_RAND_R)
+
+CHECK_FUNCTION_EXISTS(times HAVE_TIMES)
+
+TEST_BIG_ENDIAN(DEAL_II_WORDS_BIGENDIAN)
+
index 3b0af02f50b6c49a67026bd02069a0ce117b7531..40c45c9287fc165992ddc9ecbafa8110ea7b1706 100644 (file)
 /* 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
-
-
-
 
 
 

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.