Mercurial > mplayer.hg
comparison configure @ 29033:8b797cf46bb8
Rename local TMP variable to TMPRES to avoid a clash with the
variable holding the path used for temporary files - this is used
by mingw-w64 and this change avoids crashes with it.
author | reimar |
---|---|
date | Fri, 27 Mar 2009 17:14:58 +0000 |
parents | 9e1d1197c567 |
children | 54d4e18aa1f4 |
comparison
equal
deleted
inserted
replaced
29032:15e1d6124a6b | 29033:8b797cf46bb8 |
---|---|
62 cat "$1" >> "$TMPLOG" | 62 cat "$1" >> "$TMPLOG" |
63 echo >> "$TMPLOG" | 63 echo >> "$TMPLOG" |
64 echo "$_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG" | 64 echo "$_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG" |
65 rm -f "$TMPEXE" | 65 rm -f "$TMPEXE" |
66 $_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1 | 66 $_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1 |
67 TMP="$?" | 67 TMPRES="$?" |
68 echo >> "$TMPLOG" | 68 echo >> "$TMPLOG" |
69 echo >> "$TMPLOG" | 69 echo >> "$TMPLOG" |
70 return "$TMP" | 70 return "$TMPRES" |
71 } | 71 } |
72 | 72 |
73 cc_check() { | 73 cc_check() { |
74 compile_check $TMPC $@ | 74 compile_check $TMPC $@ |
75 } | 75 } |
83 cat "$TMPS" >> "$TMPLOG" | 83 cat "$TMPS" >> "$TMPLOG" |
84 echo >> "$TMPLOG" | 84 echo >> "$TMPLOG" |
85 echo "$_yasm $YASMFLAGS -o $TMPEXE $TMPS $@" >> "$TMPLOG" | 85 echo "$_yasm $YASMFLAGS -o $TMPEXE $TMPS $@" >> "$TMPLOG" |
86 rm -f "$TMPEXE" | 86 rm -f "$TMPEXE" |
87 $_yasm $YASMFLAGS -o "$TMPEXE" "$TMPS" "$@" >> "$TMPLOG" 2>&1 | 87 $_yasm $YASMFLAGS -o "$TMPEXE" "$TMPS" "$@" >> "$TMPLOG" 2>&1 |
88 TMP="$?" | 88 TMPRES="$?" |
89 echo >> "$TMPLOG" | 89 echo >> "$TMPLOG" |
90 echo >> "$TMPLOG" | 90 echo >> "$TMPLOG" |
91 return "$TMP" | 91 return "$TMPRES" |
92 } | 92 } |
93 | 93 |
94 tmp_run() { | 94 tmp_run() { |
95 "$TMPEXE" >> "$TMPLOG" 2>&1 | 95 "$TMPEXE" >> "$TMPLOG" 2>&1 |
96 } | 96 } |