Browse Source

Better configure.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@707 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
trutkin 22 years ago
parent
commit
8c8e26f73c
2 changed files with 1 additions and 81 deletions
  1. +1
    -68
      configure.in
  2. +0
    -13
      jack/jack.h

+ 1
- 68
configure.in View File

@@ -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"



+ 0
- 13
jack/jack.h View File

@@ -568,19 +568,6 @@ int jack_disconnect (jack_client_t *,
const char *source_port,
const char *destination_port);

/**
* Perform the same function as jack_connect() using port handles
* rather than names. This avoids the name lookup inherent in the
* name-based version.
*
* Clients connecting their own ports are likely to use this function,
* while generic connection clients (e.g. patchbays) would use
* jack_connect().
*
* @return 0 on success, otherwise a non-zero error code.
*/
int jack_port_connect (jack_client_t *, jack_port_t *src, jack_port_t *dst);

/**
* Perform the same function as jack_disconnect() using port handles
* rather than names. This avoids the name lookup inherent in the


Loading…
Cancel
Save