mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
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
This commit is contained in:
parent
9abe4acb6c
commit
21b39dee97
1 changed files with 21 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue