configure.in
changeset 3012 7e30c2dc7783
parent 3007 b30409e106f2
child 3014 cacb282192a1
equal deleted inserted replaced
3011:8f4ed5ec2b06 3012:7e30c2dc7783
   127             AC_DEFINE(SDL_HAS_64BIT_TYPE)
   127             AC_DEFINE(SDL_HAS_64BIT_TYPE)
   128         fi
   128         fi
   129         have_inttypes=yes
   129         have_inttypes=yes
   130     fi
   130     fi
   131 
   131 
       
   132     dnl Check for defines
       
   133     AC_CHECK_DEFINE(M_PI, math.h)
       
   134 
   132     dnl Checks for library functions.
   135     dnl Checks for library functions.
   133     case "$host" in
   136     case "$host" in
   134     *-*-cygwin* | *-*-mingw32*)
   137     *-*-cygwin* | *-*-mingw32*)
   135         ;;
   138         ;;
   136     *)
   139     *)
   144     fi
   147     fi
   145     AC_FUNC_STRTOD
   148     AC_FUNC_STRTOD
   146     if test x$ac_cv_func_strtod = xyes; then
   149     if test x$ac_cv_func_strtod = xyes; then
   147         AC_DEFINE(HAVE_STRTOD)
   150         AC_DEFINE(HAVE_STRTOD)
   148     fi
   151     fi
   149     AC_CHECK_FUNCS(malloc calloc realloc free getenv 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 sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep)
   152     AC_CHECK_FUNCS(malloc calloc realloc free getenv 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 sscanf snprintf vsnprintf copysign cos cosf fabs floor log pow scalbn sin sinf sqrt iconv sigaction setjmp nanosleep)
   150 
   153 
       
   154     AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
   151     AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
   155     AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
   152     AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
       
   153 fi
   156 fi
   154 
   157 
   155 if test x$have_inttypes != xyes; then
   158 if test x$have_inttypes != xyes; then
   156     AC_CHECK_SIZEOF(char, 1)
   159     AC_CHECK_SIZEOF(char, 1)
   157     AC_CHECK_SIZEOF(short, 2)
   160     AC_CHECK_SIZEOF(short, 2)