- remove align flags from gcc command line

- only use usleep if HAVE_USLEEP is defined
This commit is contained in:
Adam Olsen 2001-05-22 05:39:16 +00:00
parent 5369e82456
commit 920de43af9
2 changed files with 6 additions and 2 deletions

View file

@ -137,6 +137,8 @@ else
AC_C_BIGENDIAN
fi
AC_CHECK_FUNCS(usleep)
AC_MSG_CHECKING(that fnmatch is in fnmatch.h)
AC_TRY_COMPILE(
[#include "fnmatch.h"],
@ -1125,9 +1127,9 @@ if test "x$optimize" = xyes; then
case "${host_cpu}" in
i?86)
if test "x$HAVE_AMD" = "xyes"; then
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
MORE_CFLAGS="-march=k6"
else
MORE_CFLAGS="-march=${host_cpu} -malign-loops=2 -malign-jumps=2 -malign-functions=2"
MORE_CFLAGS="-march=${host_cpu}"
fi
;;
*)

View file

@ -1456,8 +1456,10 @@ Host_Frame (float time)
// decide the simulation time
if ((sleeptime = Host_SimulationTime (time)) != 0) {
#ifdef HAVE_USLEEP
if (sleeptime > 0.01) // minimum sleep time
usleep((unsigned long)((sleeptime - 0.001) * 1000000));
#endif
return; // framerate is too high
}