You should check for the C compiler before you set CFLAGS. :)
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Oct 2009 13:50:36 +0000
changeset 3332 da1cb54d74ef
parent 3331 d44a0a913aa2
child 3333 b334b4f7dfa0
You should check for the C compiler before you set CFLAGS. :)
configure.in
--- a/configure.in	Thu Oct 01 15:30:26 2009 +0000
+++ b/configure.in	Fri Oct 02 13:50:36 2009 +0000
@@ -51,6 +51,19 @@
     AC_DEFINE(SDL_BYTEORDER, 1234)
 fi
 
+dnl Check for tools
+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
@@ -91,19 +104,6 @@
 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
 
-dnl Check for tools
-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