From 21b39dee9793ece0e06cc47d2bf959380abcdfd4 Mon Sep 17 00:00:00 2001 From: smorlat <smorlat@3f6dc0c8-ddfe-455d-9043-3cd528dc4637> Date: Wed, 22 Jul 2009 20:52:54 +0000 Subject: [PATCH] enable fixed-point on arm and blackfin processors by default. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@548 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/mediastreamer2/configure.ac | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/linphone/mediastreamer2/configure.ac b/linphone/mediastreamer2/configure.ac index 1eda7a7cf4..ea020a1af4 100644 --- a/linphone/mediastreamer2/configure.ac +++ b/linphone/mediastreamer2/configure.ac @@ -159,12 +159,31 @@ fi dnl prefer fixed point computations AC_ARG_ENABLE(fixed_point, - [ --enable-fixed-point Turn on ipv6 support], + [ --enable-fixed-point Turn on fixed point computations (default: guess)], [case "${enableval}" in yes) fixed_point=true;; no) fixed_point=false;; + guess) fixed_point=guess;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-fixed-point) ;; - esac],[fixed_point=no]) + esac],[fixed_point=guess]) + +if test "$fixed_point" = "guess" ; then + AC_MSG_CHECKING([whether fixed point arithmetic is preferred]) + case ${target_cpu}${host_cpu} in + *bfin*) + fixed_point=true + ;; + *arm*) + fixed_point=true + ;; + *) + fixed_point=false + ;; + esac + AC_MSG_RESULT([$fixed_point]) +fi + + if test x$fixed_point = xtrue ; then MS_PUBLIC_CFLAGS="$MS_PUBLIC_CFLAGS -DMS_FIXED_POINT" fi -- GitLab