susumu.yata
null+****@clear*****
Tue Mar 25 14:17:11 JST 2014
susumu.yata 2014-03-25 14:17:11 +0900 (Tue, 25 Mar 2014) New Revision: b91a2b309eb1d8fe387e511355d9d3a5974d487c https://github.com/groonga/groonga/commit/b91a2b309eb1d8fe387e511355d9d3a5974d487c Message: cmake: define HAVE_FPCLASSIFY if fpclassify is available Modified files: CMakeLists.txt Modified: CMakeLists.txt (+10 -0) =================================================================== --- CMakeLists.txt 2014-03-25 11:13:13 +0900 (c33c412) +++ CMakeLists.txt 2014-03-25 14:17:11 +0900 (b6e5418) @@ -38,6 +38,7 @@ string(REGEX REPLACE "(^.*=|\n)" "" GRN_VERSION "${GRN_VERSION}") include(CheckIncludeFile) include(CheckFunctionExists) include(CheckLibraryExists) +include(CheckSymbolExists) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) include(FindPkgConfig) @@ -186,6 +187,13 @@ macro(ac_check_funcs function) check_function_exists(${function} ${output_variable_name}) endmacro() +macro(ac_check_symbols symbol files) + string(TOUPPER "${symbol}" output_variable_name) + set(output_variable_name "HAVE_${output_variable_name}") + unset(${output_variable_name}) + check_symbol_exists(${symbol} ${files} ${output_variable_name}) +endmacro() + macro(ac_check_lib library function) string(REGEX REPLACE "[/.]" "_" output_variable_base_name ${library}) string(TOUPPER "${output_variable_base_name}" output_variable_base_name) @@ -202,6 +210,8 @@ endmacro() include(build/ac_macros/check_headers.m4) include(build/ac_macros/check_functions.m4) +ac_check_symbols(fpclassify math.h) + ac_check_lib(dl dlopen) ac_check_lib(execinfo backtrace) if(HAVE_LIBEXECINFO) -------------- next part -------------- HTML����������������������������...Download