Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
You should check for the C compiler before you set CFLAGS. :)
  • Loading branch information
slouken committed Oct 2, 2009
1 parent e5b2a53 commit a54f337
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions configure.in
Expand Up @@ -49,6 +49,20 @@ else
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
Expand Down Expand Up @@ -89,20 +103,6 @@ CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
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
Expand Down

0 comments on commit a54f337

Please sign in to comment.