You should check for the C compiler before you set CFLAGS. :)
authorSam Lantinga
Fri, 02 Oct 2009 13:50:36 +0000
changeset 3332da1cb54d74ef
parent 3331 d44a0a913aa2
child 3333 b334b4f7dfa0
You should check for the C compiler before you set CFLAGS. :)
configure.in
     1.1 --- a/configure.in	Thu Oct 01 15:30:26 2009 +0000
     1.2 +++ b/configure.in	Fri Oct 02 13:50:36 2009 +0000
     1.3 @@ -51,6 +51,19 @@
     1.4      AC_DEFINE(SDL_BYTEORDER, 1234)
     1.5  fi
     1.6  
     1.7 +dnl Check for tools
     1.8 +AC_PROG_LIBTOOL
     1.9 +AC_PROG_CC
    1.10 +AC_PROG_CXX
    1.11 +AC_PROG_INSTALL
    1.12 +AC_PROG_MAKE_SET
    1.13 +if test -z "$host_alias"; then
    1.14 +    hostaliaswindres=
    1.15 +else
    1.16 +    hostaliaswindres="$host_alias-windres"
    1.17 +fi
    1.18 +AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
    1.19 +
    1.20  dnl Set up the compiler and linker flags
    1.21  INCLUDE="-I$srcdir/include"
    1.22  if test x$srcdir != x.; then
    1.23 @@ -91,19 +104,6 @@
    1.24  CFLAGS="$CFLAGS $EXTRA_CFLAGS"
    1.25  LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
    1.26  
    1.27 -dnl Check for tools
    1.28 -AC_PROG_LIBTOOL
    1.29 -AC_PROG_CC
    1.30 -AC_PROG_CXX
    1.31 -AC_PROG_INSTALL
    1.32 -AC_PROG_MAKE_SET
    1.33 -if test -z "$host_alias"; then
    1.34 -    hostaliaswindres=
    1.35 -else
    1.36 -    hostaliaswindres="$host_alias-windres"
    1.37 -fi
    1.38 -AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
    1.39 -
    1.40  dnl Check for compiler characteristics
    1.41  AC_C_CONST
    1.42  AC_C_INLINE