Commit 6a49e292 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove --with-tuning

With the wide range of deployed 686 processors, -mtune=generic is saner
and it is the default anyway. The VLC defaults did not even make sense
anymore (Pentium 2, seriously?).

You might need to set -march explicitly as with other build systems,
e.g.: -march=i686
parent 77807fa1
Changes between 2.0.x and 2.1.0-git:
--------------------------------
Important changes for packagers:
* The --with-tuning and --without-tuning options are removed. To tune
compilation for a specific processor type, set CFLAGS manually.
3rd party libraries (contrib):
* /extras/contrib has been replaced by a better system in /contrib
......
......@@ -1481,44 +1481,6 @@ dnl - Others: test should fail
])
AM_CONDITIONAL([HAVE_ALTIVEC], [test "$have_altivec" = "yes"])
dnl
dnl Special arch tuning
dnl
AC_ARG_WITH(tuning,
[AS_HELP_STRING([--with-tuning=ARCH],
[tune compilation for an architecture (default varies)])])
if test -n "${with_tuning}"; then
if test "${with_tuning}" != "no"; then
CFLAGS_TUNING="-mtune=${with_tuning}"
fi
else
if test "${SYS}" = "darwin" -a "${host_cpu}" = "i686"; then
CFLAGS_TUNING="-march=prescott -mtune=generic"
elif test "${SYS}" = "darwin" -a "${host_cpu}" = "x86_64"; then
CFLAGS_TUNING="-march=core2 -mtune=core2"
elif test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "i386"; then
CFLAGS_TUNING="-mtune=pentium2"
elif test "${host_cpu}" = "x86_64"; then
CFLAGS_TUNING="-mtune=athlon64"
elif test "${host_cpu}" = "powerpc"; then
CFLAGS_TUNING="-mtune=G4";
fi
fi
dnl NOTE: this can't be cached cleanly
AS_IF([test -n "${CFLAGS_TUNING}"], [
VLC_SAVE_FLAGS
CFLAGS="${CFLAGS} ${CFLAGS_TUNING}"
AC_MSG_CHECKING([whether $CC accepts ${CFLAGS_TUNING}])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([])], [
AC_MSG_RESULT([yes])
], [
VLC_RESTORE_FLAGS
AC_MSG_RESULT([no])
AS_IF([test "${with_tuning}"], [AC_MSG_ERROR([requested tuning not supported])])
])
])
dnl
dnl Memory usage
dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment