|
|
|
@@ -15,7 +15,7 @@ dnl changes are made |
|
|
|
dnl --- |
|
|
|
JACK_MAJOR_VERSION=0 |
|
|
|
JACK_MINOR_VERSION=98 |
|
|
|
JACK_MICRO_VERSION=1beta2 |
|
|
|
JACK_MICRO_VERSION=1beta3 |
|
|
|
|
|
|
|
dnl --- |
|
|
|
dnl HOWTO: updating the jack protocol version |
|
|
|
@@ -172,79 +172,12 @@ if test "$target_cpu" = "powerpc"; then |
|
|
|
|
|
|
|
AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?") |
|
|
|
|
|
|
|
############################ |
|
|
|
# Check for Altivec assembly |
|
|
|
############################ |
|
|
|
|
|
|
|
AC_ARG_ENABLE(altivec, |
|
|
|
[ --enable-altivec enable Altivec support (default=auto)],, |
|
|
|
[ enable_altivec=yes ]) |
|
|
|
|
|
|
|
if test "x$enable_altivec" = xyes; then |
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether we can compile Altivec code) |
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([asm ("vand %v0, %v0, %v0");], |
|
|
|
AC_DEFINE(USE_ALTIVEC, 1, [Define to 1 if Altivec assembly is available.]) |
|
|
|
AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?") |
|
|
|
ALTIVEC_OPT_FLAGS="-maltivec -mabi=altivec" |
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
, |
|
|
|
enable_altivec=no |
|
|
|
AC_MSG_RESULT(no) |
|
|
|
AC_MSG_WARN([The assembler does not support the Altivec command set.]) |
|
|
|
) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
dnl -mcpu=7450 does not reliably work with gcc 3.* |
|
|
|
|
|
|
|
JACK_OPT_CFLAGS="-D_REENTRANT -O2 -mcpu=7400 $ALTIVEC_OPT_FLAGS_FLAGS -mhard-float -mpowerpc-gfxopt" |
|
|
|
|
|
|
|
elif echo $target_cpu | grep "i*86" >/dev/null; then |
|
|
|
|
|
|
|
dnl Check for MMX assembly |
|
|
|
|
|
|
|
AC_ARG_ENABLE(mmx, |
|
|
|
[ --enable-mmx enable MMX support (default=auto)],, |
|
|
|
enable_mmx=yes) |
|
|
|
|
|
|
|
AC_ARG_ENABLE(sse, |
|
|
|
[ --enable-sse enable SSE support (default=auto)],, |
|
|
|
enable_sse=$enable_mmx) |
|
|
|
|
|
|
|
if test "x$enable_mmx" = xyes; then |
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether we can compile MMX code) |
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([asm ("movq 0, %mm0");], |
|
|
|
|
|
|
|
AC_DEFINE(USE_MMX, 1, [Define to 1 if MMX assembly is available.]) |
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
MMX_FLAGS="-mmmx" |
|
|
|
|
|
|
|
if test "x$enable_sse" = xyes; then |
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether we can compile SSE code) |
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([asm ("movntps %xmm0, 0");], |
|
|
|
AC_DEFINE(USE_SSE, 1, [Define to 1 if SSE assembly is available.]) |
|
|
|
SSE_FLAGS="-msse -mfpmath=sse" |
|
|
|
AC_MSG_RESULT(yes) |
|
|
|
, |
|
|
|
enable_sse=no |
|
|
|
AC_MSG_RESULT(no) |
|
|
|
AC_MSG_WARN([The assembler does not support the SSE command set.]) |
|
|
|
) |
|
|
|
|
|
|
|
fi |
|
|
|
, |
|
|
|
enable_mmx=no |
|
|
|
AC_MSG_RESULT(no) |
|
|
|
AC_MSG_WARN([The assembler does not support the MMX command set.]) |
|
|
|
) |
|
|
|
fi |
|
|
|
|
|
|
|
AC_DEFINE(x86, 1, "Nope its intel") |
|
|
|
COMMON_X86_OPT_FLAGS="-DREENTRANT -O3 -fomit-frame-pointer -ffast-math -funroll-loops -fmove-all-movables" |
|
|
|
|
|
|
|
|