patch-configure 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. --- libx264-1.0.1.orig/configure 2014-01-22 11:20:21.000000000 +0100
  2. +++ libx264-1.0.1/configure 2014-02-23 19:48:57.000000000 +0100
  3. @@ -560,7 +560,7 @@ LDFLAGS="$LDFLAGS $libm"
  4. aligned_stack=1
  5. case $host_cpu in
  6. i*86)
  7. - ARCH="X86"
  8. + XARCH="X86"
  9. AS="yasm"
  10. ASFLAGS="$ASFLAGS -O2"
  11. if [ $compiler = GNU ]; then
  12. @@ -600,7 +600,7 @@ case $host_cpu in
  13. fi
  14. ;;
  15. x86_64)
  16. - ARCH="X86_64"
  17. + XARCH="X86_64"
  18. AS="yasm"
  19. [ $compiler = GNU ] && CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS"
  20. if [ "$SYS" = MACOSX ]; then
  21. @@ -620,7 +620,7 @@ case $host_cpu in
  22. fi
  23. ;;
  24. powerpc|powerpc64)
  25. - ARCH="PPC"
  26. + XARCH="PPC"
  27. if [ $asm = auto ] ; then
  28. define HAVE_ALTIVEC
  29. AS="${AS-${cross_prefix}gcc}"
  30. @@ -633,11 +633,11 @@ case $host_cpu in
  31. fi
  32. ;;
  33. sparc)
  34. - ARCH="SPARC"
  35. + XARCH="SPARC"
  36. case $(uname -m) in
  37. sun4u|sun4v)
  38. if [ $asm = auto ]; then
  39. - ARCH="UltraSPARC"
  40. + XARCH="UltraSPARC"
  41. if ! echo $CFLAGS | grep -Eq '\-mcpu' ; then
  42. CFLAGS="$CFLAGS -mcpu=ultrasparc"
  43. LDFLAGS="$LDFLAGS -mcpu=ultrasparc"
  44. @@ -649,10 +649,10 @@ case $host_cpu in
  45. esac
  46. ;;
  47. mips|mipsel|mips64|mips64el)
  48. - ARCH="MIPS"
  49. + XARCH="MIPS"
  50. ;;
  51. arm*)
  52. - ARCH="ARM"
  53. + XARCH="ARM"
  54. if [ "$SYS" = MACOSX ] ; then
  55. AS="${AS-extras/gas-preprocessor.pl $CC}"
  56. ASFLAGS="$ASFLAGS -DPREFIX -DPIC" # apple's ld doesn't support movw/movt relocations at all
  57. @@ -662,23 +662,23 @@ case $host_cpu in
  58. LDFLAGS="$LDFLAGS -arch armv7"
  59. fi
  60. else
  61. - AS="${AS-${cross_prefix}gcc}"
  62. + AS="${cross_prefix}gcc"
  63. fi
  64. ;;
  65. s390|s390x)
  66. - ARCH="S390"
  67. + XARCH="S390"
  68. ;;
  69. hppa*|parisc*)
  70. - ARCH="PARISC"
  71. + XARCH="PARISC"
  72. ;;
  73. ia64)
  74. - ARCH="IA64"
  75. + XARCH="IA64"
  76. ;;
  77. alpha*)
  78. - ARCH="ALPHA"
  79. + XARCH="ALPHA"
  80. ;;
  81. *)
  82. - ARCH="$(echo $host_cpu | tr a-z A-Z)"
  83. + XARCH="$(echo $host_cpu | tr a-z A-Z)"
  84. ;;
  85. esac
  86. ASFLAGS="$ASFLAGS -DHAVE_ALIGNED_STACK=${aligned_stack}"
  87. @@ -713,11 +713,11 @@ if [ $compiler != ICL ]; then
  88. fi
  89. fi
  90. -if [ $shared = yes -a \( $ARCH = "X86_64" -o $ARCH = "PPC" -o $ARCH = "ALPHA" -o $ARCH = "ARM" -o $ARCH = "IA64" -o $ARCH = "PARISC" -o $ARCH = "MIPS" \) ] ; then
  91. +if [ $shared = yes -a \( $XARCH = "X86_64" -o $XARCH = "PPC" -o $XARCH = "ALPHA" -o $XARCH = "ARM" -o $XARCH = "IA64" -o $XARCH = "PARISC" -o $XARCH = "MIPS" \) ] ; then
  92. pic="yes"
  93. fi
  94. -if [ $asm = auto -a \( $ARCH = X86 -o $ARCH = X86_64 \) ] ; then
  95. +if [ $asm = auto -a \( $XARCH = X86 -o $XARCH = X86_64 \) ] ; then
  96. if ! as_check "vpmovzxwd ymm0, xmm0" ; then
  97. VER=`($AS --version || echo no assembler) 2>/dev/null | head -n 1`
  98. echo "Found $VER"
  99. @@ -758,7 +758,7 @@ fi
  100. [ $asm = no ] && AS=""
  101. [ "x$AS" = x ] && asm="no" || asm="yes"
  102. -define ARCH_$ARCH
  103. +define ARCH_$XARCH
  104. define SYS_$SYS
  105. # skip endianness check for Intel Compiler, as all supported platforms are little. the -ipo flag will also cause the check to fail
  106. @@ -834,7 +834,7 @@ if cc_check "math.h" "-Werror" "return l
  107. define HAVE_LOG2F
  108. fi
  109. -if [ "$SYS" = "LINUX" -a \( "$ARCH" = "X86" -o "$ARCH" = "X86_64" \) ] && cc_check "sys/mman.h" "" "MADV_HUGEPAGE;" ; then
  110. +if [ "$SYS" = "LINUX" -a \( "$XARCH" = "X86" -o "$XARCH" = "X86_64" \) ] && cc_check "sys/mman.h" "" "MADV_HUGEPAGE;" ; then
  111. define HAVE_THP
  112. fi
  113. @@ -990,7 +990,7 @@ if [ "$pic" = "yes" ] ; then
  114. ASFLAGS="$ASFLAGS -DPIC"
  115. # resolve textrels in the x86 asm
  116. cc_check stdio.h "-shared -Wl,-Bsymbolic" && SOFLAGS="$SOFLAGS -Wl,-Bsymbolic"
  117. - [ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"
  118. + [ $SYS = SunOS -a "$XARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text"
  119. fi
  120. if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
  121. @@ -1004,19 +1004,19 @@ fi
  122. if [ "$debug" = "yes" ]; then
  123. CFLAGS="-O1 -g $CFLAGS"
  124. -elif [ $ARCH = ARM ]; then
  125. +elif [ $XARCH = ARM ]; then
  126. # arm-gcc-4.2 produces incorrect output with -ffast-math
  127. # and it doesn't save any speed anyway on 4.4, so disable it
  128. - CFLAGS="-O3 -fno-fast-math $CFLAGS"
  129. + CFLAGS="-fno-fast-math $CFLAGS"
  130. else
  131. - CFLAGS="-O3 -ffast-math $CFLAGS"
  132. + CFLAGS="-ffast-math $CFLAGS"
  133. fi
  134. if cc_check '' -fno-tree-vectorize ; then
  135. CFLAGS="$CFLAGS -fno-tree-vectorize"
  136. fi
  137. -if [ $SYS = WINDOWS -a $ARCH = X86 -a $compiler = GNU ] ; then
  138. +if [ $SYS = WINDOWS -a $XARCH = X86 -a $compiler = GNU ] ; then
  139. # workaround gcc/ld bug with alignment of static variables/arrays that are initialized to zero
  140. cc_check '' -fno-zero-initialized-in-bss && CFLAGS="$CFLAGS -fno-zero-initialized-in-bss"
  141. fi
  142. @@ -1117,7 +1117,7 @@ if [ $compiler = GNU ]; then
  143. else
  144. CFLAGS="$(intel_cflags $CFLAGS)"
  145. # icc does not define __SSE__ until SSE2 optimization and icl never defines it or _M_IX86_FP
  146. - [ \( $ARCH = X86_64 -o $ARCH = X86 \) -a $asm = yes ] && ! cpp_check "" "" "defined(__SSE__)" && define __SSE__
  147. + [ \( $XARCH = X86_64 -o $XARCH = X86 \) -a $asm = yes ] && ! cpp_check "" "" "defined(__SSE__)" && define __SSE__
  148. PROF_GEN_CC="${QPRE}prof-gen ${QPRE}prof-dir."
  149. PROF_GEN_LD=
  150. PROF_USE_CC="${QPRE}prof-use ${QPRE}prof-dir."
  151. @@ -1146,7 +1146,7 @@ exec_prefix=$exec_prefix
  152. bindir=$bindir
  153. libdir=$libdir
  154. includedir=$includedir
  155. -ARCH=$ARCH
  156. +XARCH=$XARCH
  157. SYS=$SYS
  158. CC=$CC
  159. CFLAGS=$CFLAGS
  160. @@ -1260,7 +1260,7 @@ gpl_filters=""
  161. [ $gpl = yes ] && filters="$filters $gpl_filters"
  162. cat > conftest.log <<EOF
  163. -platform: $ARCH
  164. +platform: $XARCH
  165. system: $SYS
  166. cli: $cli
  167. libx264: $cli_libx264