# HG changeset patch # User Sam Lantinga # Date 1254491450 0 # Node ID 6eb492bd89fe808ae643a345301f59921b281ef9 # Parent 3af45468df665d61c3bd8efe94c6c0859eea2f08 You should check for the C compiler before you set CFLAGS. :) diff -r 3af45468df66 -r 6eb492bd89fe configure.in --- a/configure.in Fri Oct 02 11:26:59 2009 +0000 +++ b/configure.in Fri Oct 02 13:50:50 2009 +0000 @@ -49,6 +49,20 @@ AC_DEFINE(SDL_BYTEORDER, 1234) fi +dnl Check for tools +AC_LIBTOOL_WIN32_DLL +AC_PROG_LIBTOOL +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL +AC_PROG_MAKE_SET +if test -z "$host_alias"; then + hostaliaswindres= +else + hostaliaswindres="$host_alias-windres" +fi +AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) + dnl Set up the compiler and linker flags INCLUDE="-I$srcdir/include" if test x$srcdir != x.; then @@ -89,20 +103,6 @@ CFLAGS="$CFLAGS $EXTRA_CFLAGS" LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" -dnl Check for tools -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL -AC_PROG_CC -AC_PROG_CXX -AC_PROG_INSTALL -AC_PROG_MAKE_SET -if test -z "$host_alias"; then - hostaliaswindres= -else - hostaliaswindres="$host_alias-windres" -fi -AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres]) - dnl Check for compiler characteristics AC_C_CONST AC_C_INLINE