CMakeLists.txt
changeset 9414 669bf9fb901e
parent 9411 6810478a60e9
child 9431 a9c73f29a15e
     1.1 --- a/CMakeLists.txt	Fri Mar 20 12:23:53 2015 -0400
     1.2 +++ b/CMakeLists.txt	Fri Mar 20 21:57:15 2015 -0400
     1.3 @@ -596,7 +596,7 @@
     1.4        set(CMAKE_REQUIRED_LIBRARIES m)
     1.5        foreach(_FN
     1.6                atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
     1.7 -              sinf sqrt sqrtf tan tanf)
     1.8 +              sinf sqrt sqrtf tan tanf acos asin)
     1.9          string(TOUPPER ${_FN} _UPPER)
    1.10          set(_HAVEVAR "HAVE_${_UPPER}")
    1.11          check_function_exists("${_FN}" ${_HAVEVAR})
    1.12 @@ -608,6 +608,15 @@
    1.13      check_library_exists(iconv iconv_open "" HAVE_LIBICONV)
    1.14      if(HAVE_LIBICONV)
    1.15        list(APPEND EXTRA_LIBS iconv)
    1.16 +      set(HAVE_ICONV 1)
    1.17 +    endif()
    1.18 +
    1.19 +    if(NOT APPLE)
    1.20 +      check_include_file(alloca.h HAVE_ALLOCA_H)
    1.21 +      check_function_exists(alloca HAVE_ALLOCA)
    1.22 +    else()
    1.23 +      set(HAVE_ALLOCA_H 1)
    1.24 +      set(HAVE_ALLOCA 1)
    1.25      endif()
    1.26  
    1.27      check_struct_has_member("struct sigaction" "sa_sigaction" "signal.h" HAVE_SA_SIGACTION)