comparison configure.in @ 3014:cacb282192a1

Check for functions after including the libraries that they might be in.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jan 2009 22:36:30 +0000
parents 7e30c2dc7783
children 54fac87e1f34
comparison
equal deleted inserted replaced
3013:8cc00819c8d6 3014:cacb282192a1
147 fi 147 fi
148 AC_FUNC_STRTOD 148 AC_FUNC_STRTOD
149 if test x$ac_cv_func_strtod = xyes; then 149 if test x$ac_cv_func_strtod = xyes; then
150 AC_DEFINE(HAVE_STRTOD) 150 AC_DEFINE(HAVE_STRTOD)
151 fi 151 fi
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) 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 sigaction setjmp nanosleep)
153 153
154 AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) 154 AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
155 AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) 155 AC_CHECK_FUNCS(copysign cos cosf fabs floor log pow scalbn sin sinf sqrt)
156
157 AC_CHECK_LIB(iconv, libiconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
158 AC_CHECK_FUNCS(iconv)
156 fi 159 fi
157 160
158 if test x$have_inttypes != xyes; then 161 if test x$have_inttypes != xyes; then
159 AC_CHECK_SIZEOF(char, 1) 162 AC_CHECK_SIZEOF(char, 1)
160 AC_CHECK_SIZEOF(short, 2) 163 AC_CHECK_SIZEOF(short, 2)