mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
Add --with-amd argument to optimize for AMD processors on x86. Does
nothing elsewhere, of course.
This commit is contained in:
parent
8247d35d32
commit
7bc5f87d53
1 changed files with 15 additions and 3 deletions
18
configure.in
18
configure.in
|
@ -965,7 +965,11 @@ AC_ARG_ENABLE(optimize,
|
|||
optimize=$disable_optimize,
|
||||
optimize=yes
|
||||
)
|
||||
|
||||
AC_ARG_WITH(amd,
|
||||
[ --with-amd Optimize for AMD processors instead of Intel],
|
||||
HAVE_AMD="yes",
|
||||
HAVE_AMD="no"
|
||||
)
|
||||
AC_MSG_CHECKING(for optimization)
|
||||
if test "x$optimize" = xyes; then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
@ -981,10 +985,18 @@ if test "x$optimize" = xyes; then
|
|||
MORE_CFLAGS="-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
;;
|
||||
i586-*-*)
|
||||
MORE_CFLAGS="-march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
if test "x$HAVE_AMD" = "xyes"; then
|
||||
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
else
|
||||
MORE_CFLAGS="-mpentium -march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
fi
|
||||
;;
|
||||
i686-*-*)
|
||||
MORE_CFLAGS="-mpentiumpro -march=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
if test "x$HAVE_AMD" = "xyes"; then
|
||||
MORE_CFLAGS="-march=k6 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
else
|
||||
MORE_CFLAGS="-mpentiumpro -march=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
MORE_CFLAGS=""
|
||||
|
|
Loading…
Reference in a new issue