sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_sdltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
- ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
- CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
dnl
dnl Now check if the installed SDL is sufficiently new. (Also sanity
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
else
echo "*** Could not run SDL test program, checking why..."
CFLAGS="$CFLAGS $SDL_CFLAGS"
- CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
esac
AC_MSG_RESULT([gcc])
elif test "x$MWCC" = "xyes"; then
- DEPSMODE=mwcc
+ DEPSMODE=gcc
DEPS_TRACKING=1
- DEPSFLAG_MWCC="-MM"
+ DEPSFLAG_GCC="-MMD"
AC_MSG_RESULT([mwcc])
else
AC_MSG_RESULT([none])
AC_BAKEFILE_DEPS
AC_BAKEFILE_RES_COMPILERS
- BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
+ BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
m4_include([autoconf_inc.m4])
DEPSMODE=${DEPSMODE}
DEPSDIR=.deps
DEPSFLAG_GCC="${DEPSFLAG_GCC}"
-DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
mkdir -p ${D}DEPSDIR
fi
fi
exit 0
-elif test ${D}DEPSMODE = mwcc ; then
- ${D}*
- status=${D}?
- if test ${D}{status} != 0 ; then
- exit ${D}{status}
- fi
- # Run mwcc again with -MM and redirect into the dep file we want
- # NOTE: We can't use shift here because we need ${D}* to be valid
- prevarg=
- for arg in ${D}* ; do
- if test "${D}prevarg" = "-o"; then
- objfile=${D}arg
- else
- case "${D}arg" in
- -* )
- ;;
- * )
- srcfile=${D}arg
- ;;
- esac
- fi
- prevarg="${D}arg"
- done
- ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
- exit 0
else
${D}*
exit ${D}?