# HG changeset patch # User diego # Date 1277974854 0 # Node ID ec8cb01e57d1f8d2573202be27a572d0ac43168a # Parent dd2b64511f055c14b566bc4652b6ff17971329fc Place temporary files in a subdirectory of their own. diff -r dd2b64511f05 -r ec8cb01e57d1 configure --- a/configure Wed Jun 30 10:09:19 2010 +0000 +++ b/configure Thu Jul 01 09:00:54 2010 +0000 @@ -1533,13 +1533,15 @@ test "$I" && break done - -TMPLOG="config.log" -TMPC="$I/mplayer-conf-$RANDOM-$$.c" -TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" -TMPEXE="$I/mplayer-conf-$RANDOM-$$$_exesuf" -TMPH="$I/mplayer-conf-$RANDOM-$$.h" -TMPS="$I/mplayer-conf-$RANDOM-$$.S" +mplayer_tmpdir="$tmpdir/mplayer-configure-$RANDOM-$$" +mkdir $mplayer_tmpdir || die "Unable to create tmpdir." + +TMPLOG="$mplayer_tmpdir/config.log" +TMPC="$mplayer_tmpdir/tmp.c" +TMPCPP="$mplayer_tmpdir/tmp.cpp" +TMPEXE="$mplayer_tmpdir/tmp$_exesuf" +TMPH="$mplayer_tmpdir/tmp.h" +TMPS="$mplayer_tmpdir/tmp.S" rm -f "$TMPLOG" echo configuration: $configuration > "$TMPLOG" @@ -9381,4 +9383,4 @@ fi # Last move: -rm -f "$TMPEXE" "$TMPC" "$TMPS" "$TMPCPP" "$TMPH" +rm -rf "$mplayer_tmpdir"