Skip to content
Snippets Groups Projects
Commit 48135c1e authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1310: Added checks for (system) header files and preprocessor definitions.

parent 65876651
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,24 @@ if(NOT DEFINED LOFAR_GENERAL_INCLUDED) ...@@ -48,6 +48,24 @@ if(NOT DEFINED LOFAR_GENERAL_INCLUDED)
check_type_size("ulong" HAVE_ULONG ) check_type_size("ulong" HAVE_ULONG )
check_type_size("long long" HAVE_LONG_LONG) check_type_size("long long" HAVE_LONG_LONG)
## --------------------------------------------------------------------------
## Check for several system header files
## --------------------------------------------------------------------------
include(CheckIncludeFile)
check_include_file(dlfcn.h HAVE_DLFCN_H)
check_include_file(inttypes.h HAVE_INTTYPES_H)
check_include_file(memory.h HAVE_MEMORY_H)
check_include_file(signal.h HAVE_SIGNAL_H)
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/resource.h HAVE_SYS_RESOURCE_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
check_include_file(unistd.h HAVE_UNISTD_H)
## -------------------------------------------------------------------------- ## --------------------------------------------------------------------------
## Check endianess ## Check endianess
## -------------------------------------------------------------------------- ## --------------------------------------------------------------------------
......
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
/* Defined if shared memory is used */ /* Defined if shared memory is used */
#cmakedefine HAVE_SHMEM 1 #cmakedefine HAVE_SHMEM 1
/* Define to 1 if you have the <signal.h> header file. */
#cmakedefine HAVE_SIGNAL_H 1
/* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine HAVE_STDINT_H 1 #cmakedefine HAVE_STDINT_H 1
...@@ -81,15 +84,18 @@ ...@@ -81,15 +84,18 @@
/* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H 1 #cmakedefine HAVE_STRING_H 1
/* Define to 1 if you have the <sys/resource.h> header file. */
#cmakedefine HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */ /* Define to 1 if you have the <sys/stat.h> header file. */
#cmakedefine HAVE_SYS_STAT_H 1 #cmakedefine HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/time.h> header file. */
#cmakedefine HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */ /* Define to 1 if you have the <sys/types.h> header file. */
#cmakedefine HAVE_SYS_TYPES_H 1 #cmakedefine HAVE_SYS_TYPES_H 1
/* Define if TOOLS is installed */
#cmakedefine HAVE_TOOLS 1
/* Define if `ushort' is supported */ /* Define if `ushort' is supported */
#cmakedefine HAVE_USHORT 1 #cmakedefine HAVE_USHORT 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment