comparison configure.in @ 2079:1ed2155b7ee4

From: Torsten Giebl Subject: ALLOCA Patch for SDL-1.2 Newsgroups: gmane.comp.lib.sdl Date: 2006-10-24 00:31:16 GMT Hello ! As alloca.h is not available on CYGWIN and MinGW32 it should not be checked there or it should be checked with -mno-cygwin using. I am a total configure.in newbie, but i found the way that things are handled in configure.in pretty bad for the case CYGWIN with MinGW Mode or not. Maybe this is not possible but i would like to have a way to detect at the start for example CYGWIN and then add. ask if configure was called with --enable-cygwin for example. --enable-cygwin should be optional and disabled by default as we want to have MinGW Mode by default. Only if the user wants it he should be able to use it. Then the whole configure.in would get add. questions okay the system is CYGWIN with or without MinGW Mode. The alloca.h thing for example is only available under CYGWIN ( without MinGW Mode ). CU
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 01 Dec 2006 20:25:03 +0000
parents dbfa1ebd73b0
children 962aa10fa95b
comparison
equal deleted inserted replaced
2078:f932ac47a331 2079:1ed2155b7ee4
122 fi 122 fi
123 have_inttypes=yes 123 have_inttypes=yes
124 fi 124 fi
125 125
126 dnl Checks for library functions. 126 dnl Checks for library functions.
127 AC_FUNC_ALLOCA 127 case "$host" in
128 *-*-cygwin* | *-*-mingw32*)
129 ;;
130 *)
131 AC_FUNC_ALLOCA
132 ;;
133 esac
134
128 AC_FUNC_MEMCMP 135 AC_FUNC_MEMCMP
129 if test x$ac_cv_func_memcmp_working = xyes; then 136 if test x$ac_cv_func_memcmp_working = xyes; then
130 AC_DEFINE(HAVE_MEMCMP) 137 AC_DEFINE(HAVE_MEMCMP)
131 fi 138 fi
132 AC_FUNC_STRTOD 139 AC_FUNC_STRTOD