|
From: <ego...@us...> - 2015-03-30 14:34:35
|
Revision: 61162
http://sourceforge.net/p/firebird/code/61162
Author: egorpugin
Date: 2015-03-30 14:34:28 +0000 (Mon, 30 Mar 2015)
Log Message:
-----------
[build] [cmake] Search for accept4 and SOCK_CLOEXEC symbols during configuration step.
Modified Paths:
--------------
firebird/trunk/builds/cmake/Configure.cmake
firebird/trunk/src/include/gen/autoconfig.h.in
Modified: firebird/trunk/builds/cmake/Configure.cmake
===================================================================
--- firebird/trunk/builds/cmake/Configure.cmake 2015-03-30 13:49:30 UTC (rev 61161)
+++ firebird/trunk/builds/cmake/Configure.cmake 2015-03-30 14:34:28 UTC (rev 61162)
@@ -47,7 +47,20 @@
endfunction(check_type_alignment)
#######################################
+# FUNCTION check_symbol
+#######################################
+function(check_symbol symbol var)
+ foreach(f ${ARGN})
+ if (NOT ${var})
+ unset(${var} CACHE)
+ message(STATUS "Looking for ${symbol} - ${f}")
+ check_symbol_exists(${symbol} ${f} ${var})
+ endif()
+ endforeach()
+endfunction(check_symbol)
+#######################################
+
include(CheckCSourceCompiles)
include(CheckCSourceRuns)
include(CheckCXXSourceCompiles)
@@ -181,6 +194,7 @@
#fi
set(functions_list
+ accept4
AO_compare_and_swap_full
clock_gettime
dirname
@@ -259,6 +273,7 @@
test_big_endian(WORDS_BIGENDIAN)
check_symbol_exists(INFINITY math.h HAVE_INFINITY)
check_symbol_exists(va_copy stdarg.h HAVE_VA_COPY)
+check_symbol(SOCK_CLOEXEC HAVE_DECL_SOCK_CLOEXEC socket.h sys/socket.h)
set(CMAKE_EXTRA_INCLUDE_FILES Windows.h)
check_type_size("char[MAX_PATH]" MAXPATHLEN)
Modified: firebird/trunk/src/include/gen/autoconfig.h.in
===================================================================
--- firebird/trunk/src/include/gen/autoconfig.h.in 2015-03-30 13:49:30 UTC (rev 61161)
+++ firebird/trunk/src/include/gen/autoconfig.h.in 2015-03-30 14:34:28 UTC (rev 61162)
@@ -393,6 +393,9 @@
* Functions
*
******************************************************************************/
+
+/* Define to 1 if you have the `accept4' function. */
+#cmakedefine HAVE_ACCEPT4 1
/* Define to 1 if you have the `AO_compare_and_swap_full' function. */
#cmakedefine HAVE_AO_COMPARE_AND_SWAP_FULL 1
@@ -624,6 +627,9 @@
/* Define this if va_copy() is defined in stdarg.h */
#cmakedefine HAVE_VA_COPY 1
+/* Define this if SOCK_CLOEXEC is defined in socket.h */
+#cmakedefine HAVE_DECL_SOCK_CLOEXEC 1
+
/* Number of bits in a file offset, on hosts where this is settable. */
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|