Fixed building on command line Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jun 2014 20:43:12 -0700
changeset 8842 f587255157cf
parent 8841 b7f41b4a7929
child 8843 ef2955271c4f
Fixed building on command line Mac OS X
CMakeLists.txt
configure
configure.in
src/libm/s_tan.c
--- a/CMakeLists.txt	Sat Jun 07 18:20:25 2014 -0700
+++ b/CMakeLists.txt	Sat Jun 07 20:43:12 2014 -0700
@@ -494,7 +494,7 @@
             strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
             _ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
             _stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
-            cosf fabs floor log pow scalbn sin sinf sqrt)
+            cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
       string(TOUPPER ${_FN} _UPPER)
       set(HAVE_${_UPPER} 1)
     endforeach()
@@ -541,7 +541,7 @@
       set(CMAKE_REQUIRED_LIBRARIES m)
       foreach(_FN
               atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
-              sinf sqrt)
+              sinf sqrt sqrtf tan tanf)
         string(TOUPPER ${_FN} _UPPER)
         set(_HAVEVAR "HAVE_${_UPPER}")
         check_function_exists("${_FN}" ${_HAVEVAR})
--- a/configure	Sat Jun 07 18:20:25 2014 -0700
+++ b/configure	Sat Jun 07 20:43:12 2014 -0700
@@ -16639,7 +16639,7 @@
   LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
 fi
 
-    for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt tan tanf
+    for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
--- a/configure.in	Sat Jun 07 18:20:25 2014 -0700
+++ b/configure.in	Sat Jun 07 20:43:12 2014 -0700
@@ -271,7 +271,7 @@
     AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname)
 
     AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
-    AC_CHECK_FUNCS(atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt tan tanf)
+    AC_CHECK_FUNCS(atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
 
     AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
     AC_CHECK_FUNCS(iconv)
--- a/src/libm/s_tan.c	Sat Jun 07 18:20:25 2014 -0700
+++ b/src/libm/s_tan.c	Sat Jun 07 20:43:12 2014 -0700
@@ -39,7 +39,7 @@
  *	TRIG(x) returns trig(x) nearly rounded
  */
 
-#include "math.h"
+#include "math_libm.h"
 #include "math_private.h"
 
 double tan(double x)