From 1369e3f28c00467a08771d03087c9b593ddf30e1 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Thu, 11 Jan 2001 10:04:08 +0000 Subject: [PATCH] Cleaned up the x86 compiler setting stuff. --- configure.in | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/configure.in b/configure.in index 00ab201..7a51dff 100644 --- a/configure.in +++ b/configure.in @@ -977,25 +977,12 @@ if test "x$optimize" = xyes; then if test "x$GCC" = xyes; then CFLAGS="$CFLAGS -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations" AC_MSG_CHECKING(for special compiler settings) - case "${host}" in - i386-*-*) - MORE_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2" - ;; - i486-*-*) - MORE_CFLAGS="-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2" - ;; - i586-*-*) + 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" else - MORE_CFLAGS="-mpentium -march=pentium -malign-loops=2 -malign-jumps=2 -malign-functions=2" - fi - ;; - i686-*-*) - 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" + MORE_CFLAGS="-march=${host_cpu} -malign-loops=2 -malign-jumps=2 -malign-functions=2" fi ;; *)