Browse Source

fix up configure.ac to work on OS X after recent changes. it appears that attempting to -march is unwise on x86 OS X (at least on Tiger)

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@4767 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.124.0
paul 13 years ago
parent
commit
38a26f5b91
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      configure.ac

+ 7
- 2
configure.ac View File

@@ -437,7 +437,12 @@ dnl
if test x$with_cpu_target != x ; then
JACK_OPT_CFLAGS="-march=$with_cpu_target -mtune=$with_cpu_target"
else
JACK_OPT_CFLAGS="-march=native -mtune=native"
case ${host_os} in
darwin*) # apple gcc, not GNU
JACK_OPT_CFLAGS="-mtune=generic" ;;
*) # any other gcc
JACK_OPT_CFLAGS="-march=native -mtune=native" ;;
esac
fi

dnl
@@ -657,7 +662,7 @@ fi

# NetJack backend and internal client need libsamplerate
HAVE_SAMPLERATE=false
PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.2,[HAVE_SAMPLERATE=true], [true])
#PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.1.2,[HAVE_SAMPLERATE=true], [true])
if test x$HAVE_SAMPLERATE = xfalse; then
AC_MSG_WARN([*** the NetJack backend and internal client will not be built])
AC_DEFINE(HAVE_SAMPLERATE,0,"Whether libsamplerate is available")


Loading…
Cancel
Save