diff options
author | Vladislav Vaintroub <wlad@sun.com> | 2010-01-29 03:49:13 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@sun.com> | 2010-01-29 03:49:13 +0100 |
commit | 14d905200f6ba9d8c9e70b11233a6fc19f77839a (patch) | |
tree | 0104928e56033c091f11d0eb95839f1705f14827 /configure.cmake | |
parent | 6580cdb27bd8931ad17584bf5fd9e9889069aebb (diff) | |
download | mariadb-git-14d905200f6ba9d8c9e70b11233a6fc19f77839a.tar.gz |
Fix syntax errors in configure.cmake
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 47 |
1 files changed, 6 insertions, 41 deletions
diff --git a/configure.cmake b/configure.cmake index 9a1fdfa7942..7374575dfdc 100644 --- a/configure.cmake +++ b/configure.cmake @@ -149,41 +149,6 @@ IF(UNIX) ENDIF() ENDIF() -# System check macros that do nothing on Windows. -# Very often, it is known that some function is not available -# on Windows. In such cases it makes sense to use these macros -# as build with Visual Studio is considerably faster if irrelevant -# checks are omitted. -MACRO(CHECK_INCLUDE_FILES INCLUDES VAR) -IF(UNIX) - CHECK_INCLUDE_FILES ("${INCLUDES}" ${VAR}) -ENDIF() -ENDMACRO() - -MACRO(CHECK_C_SOURCE_COMPILES_UNIX SRC VAR) -IF(UNIX) - CHECK_C_SOURCE_COMPILES("${SRC}" ${VAR}) -ENDIF() -ENDMACRO() - -MACRO(CHECK_CXX_SOURCE_COMPILES SRC VAR) -IF(UNIX) - CHECK_CXX_SOURCE_COMPILES("${SRC}" ${VAR}) -ENDIF() -ENDMACRO() - -MACRO(CHECK_FUNCTION_EXISTS FUNC VAR) -IF(UNIX) - CHECK_FUNCTION_EXISTS("${FUNC}" ${VAR}) -ENDIF() -ENDMACRO() - -MACRO (CHECK_SYMBOL_EXISTS SYM HEADER VAR) -IF(UNIX) - CHECK_SYMBOL_EXISTS("${SYM}" "${HEADER}" ${VAR}) -ENDIF() -ENDMACRO() - # # Tests for header files # @@ -582,7 +547,7 @@ HAVE_SELECT) # Check if timespec has ts_sec and ts_nsec fields # -CHECK_C_SOURCE_COMPILES_UNIX(" +CHECK_C_SOURCE_COMPILES(" #include <pthread.h> int main(int ac, char **av) @@ -760,7 +725,7 @@ CHECK_INCLUDE_FILES(sys/ioctl.h HAVE_SYS_IOCTL 1) # # Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7) # -CHECK_C_SOURCE_COMPILES_UNIX(" +CHECK_C_SOURCE_COMPILES(" #include <signal.h> int main(int ac, char **av) { @@ -773,7 +738,7 @@ CHECK_C_SOURCE_COMPILES_UNIX(" HAVE_POSIX_SIGNALS) IF(NOT HAVE_POSIX_SIGNALS) - CHECK_C_SOURCE_COMPILES_UNIX(" + CHECK_C_SOURCE_COMPILES(" #include <signal.h> int main(int ac, char **av) { @@ -782,7 +747,7 @@ IF(NOT HAVE_POSIX_SIGNALS) }" HAVE_BSD_SIGNALS) IF (NOT HAVE_BSD_SIGNALS) - CHECK_C_SOURCE_COMPILES_UNIX(" + CHECK_C_SOURCE_COMPILES(" #include <signal.h> void foo() { } int main(int ac, char **av) @@ -816,7 +781,7 @@ IF(HAVE_ABI_CXA_DEMANGLE) ENDIF() ENDIF() -CHECK_C_SOURCE_COMPILES_UNIX(" +CHECK_C_SOURCE_COMPILES(" int main(int argc, char **argv) { extern char *__bss_start; @@ -824,7 +789,7 @@ CHECK_C_SOURCE_COMPILES_UNIX(" }" HAVE_BSS_START) -CHECK_C_SOURCE_COMPILES_UNIX(" +CHECK_C_SOURCE_COMPILES(" int main() { extern void __attribute__((weak)) foo(void); |