opus-01-configure.ac-fix-bashism-in-ARM-optimization-handling.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From a3d4f4f2385394b822b8f66342de8a1e3b4217bb Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Sun, 8 Dec 2013 10:54:25 +0100
  4. Subject: [PATCH] configure.ac: fix bashism in ARM optimization handling
  5. Submitted upstream:
  6. http://lists.xiph.org/pipermail/opus/2013-December/002422.html
  7. Breaks configure when /bin/sh isn't bash with:
  8. configure: Trying to force-enable ARMv6 media instructions...
  9. checking if assembler supports ARMv6 media instructions on ARM... yes
  10. configure: Trying to force-enable NEON instructions...
  11. checking if assembler supports NEON instructions on ARM... yes
  12. ./configure.lineno: 12799: Bad substitution
  13. Fix it by using the %% expansion to remove everything from the first
  14. space instead.
  15. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  16. ---
  17. configure.ac | 4 ++--
  18. 1 file changed, 2 insertions(+), 2 deletions(-)
  19. diff --git a/configure.ac b/configure.ac
  20. index 0ba4a80..443362f 100644
  21. --- a/configure.ac
  22. +++ b/configure.ac
  23. @@ -333,9 +333,9 @@ AS_IF([test x"${enable_asm}" = x"yes"],[
  24. AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"])
  25. AM_CONDITIONAL([OPUS_ARM_INLINE_ASM],
  26. - [test x"${inline_optimization:0:3}" = x"ARM"])
  27. + [test x"${inline_optimization%% *}" = x"ARM"])
  28. AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM],
  29. - [test x"${asm_optimization:0:3}" = x"ARM"])
  30. + [test x"${asm_optimization%% *}" = x"ARM"])
  31. AS_IF([test x"$enable_rtcd" = x"yes"],[
  32. AS_IF([test x"$rtcd_support" != x"no"],[
  33. --
  34. 1.8.4.rc3