diff -u mythtv-0.18.1/configure mythtv-0.18.1-p/configure
old
|
new
|
|
1169 | 1169 | |
1170 | 1170 | fi |
1171 | 1171 | |
| 1172 | # "CPU_CLIP" test for SRC / libsamplerate |
| 1173 | # test positive wrap |
| 1174 | cat > $TMPC << EOF |
| 1175 | int main(){ |
| 1176 | float f = (1<<(sizeof(short)*8))>>1; |
| 1177 | short s = (short)f; |
| 1178 | if ( s == --f ) |
| 1179 | return(0); |
| 1180 | return(1); |
| 1181 | } |
| 1182 | EOF |
| 1183 | |
| 1184 | if $cc $CFLAGS $ECFLAGS -o $TMPE $TMPC 2>/dev/null ; then |
| 1185 | $TMPE && cpuclipspositive="yes" |
| 1186 | fi |
| 1187 | |
| 1188 | # test negative wrap |
| 1189 | cat > $TMPC << EOF |
| 1190 | int main(){ |
| 1191 | float f = -((1<<(sizeof(short)*8))>>1) - 1; |
| 1192 | short s = (short)f; |
| 1193 | if ( s == ++f) |
| 1194 | return(0); |
| 1195 | return(1); |
| 1196 | } |
| 1197 | EOF |
| 1198 | |
| 1199 | if $cc $CFLAGS $ECFLAGS -o $TMPE $TMPC 2>/dev/null ; then |
| 1200 | $TMPE && cpuclipsnegative="yes" |
| 1201 | fi |
| 1202 | |
1172 | 1203 | # test for distcc |
1173 | 1204 | if test x"$distcc" = x"yes"; then |
1174 | 1205 | if test x"`distcc --version 2> /dev/null`" = x""; then |
… |
… |
|
1930 | 1961 | echo "#define HAVE_MMX 1" >> $TMPH |
1931 | 1962 | echo "#define __CPU__ 586" >> $TMPH |
1932 | 1963 | fi |
| 1964 | if test "$cpuclipspositive" = "yes"; then |
| 1965 | echo "#define CPU_CLIPS_POSITIVE 1" >> $TMPH |
| 1966 | else |
| 1967 | echo "#define CPU_CLIPS_POSITIVE 0" >> $TMPH |
| 1968 | fi |
| 1969 | if test "$cpuclipsnegative" = "yes"; then |
| 1970 | echo "#define CPU_CLIPS_NEGATIVE 1" >> $TMPH |
| 1971 | else |
| 1972 | echo "#define CPU_CLIPS_NEGATIVE 0" >> $TMPH |
| 1973 | fi |
1933 | 1974 | #if test "$builtin_vector" = "yes" ; then |
1934 | 1975 | # echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak |
1935 | 1976 | # echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH |