Mercurial > sdl-ios-xcode
comparison configure.in @ 4112:0c3559059d6d SDL-1.2
Improved detection of mprotect()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 06:06:03 +0000 |
parents | cd2ab40f1219 |
children | 21d48dbc2ca8 |
comparison
equal
deleted
inserted
replaced
4111:42f34d595d8b | 4112:0c3559059d6d |
---|---|
144 fi | 144 fi |
145 AC_FUNC_STRTOD | 145 AC_FUNC_STRTOD |
146 if test x$ac_cv_func_strtod = xyes; then | 146 if test x$ac_cv_func_strtod = xyes; then |
147 AC_DEFINE(HAVE_STRTOD) | 147 AC_DEFINE(HAVE_STRTOD) |
148 fi | 148 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 mprotect) | 149 AC_CHECK_FUNC(mprotect, |
150 AC_TRY_COMPILE([ | |
151 #include <sys/types.h> | |
152 #include <sys/mman.h> | |
153 ],[ | |
154 ],[ | |
155 AC_DEFINE(HAVE_MPROTECT) | |
156 ]), | |
157 ) | |
158 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) | |
150 | 159 |
151 AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) | 160 AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"]) |
152 AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) | 161 AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"]) |
153 fi | 162 fi |
154 | 163 |