diff options
author | Måns Rullgård <mans@mansr.com> | 2008-12-29 12:55:24 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-12-29 12:55:24 +0000 |
commit | a49d42c24eb2b5b1810c454c6f1f5b45b33aac4e (patch) | |
tree | f9c025282294ec994815c7f4ced3bbaf618fbdf8 | |
parent | 91535e5f38914e998496023fbf56a1d05e29ffeb (diff) | |
download | ffmpeg-a49d42c24eb2b5b1810c454c6f1f5b45b33aac4e.tar.gz |
configure: simplify TMPDIR setting
Originally committed as revision 16385 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -1278,20 +1278,15 @@ enabled cross_compile || host_cc_default=$cc set_default host_cc # set temporary file name -if test ! -z "$TMPDIR" ; then - TMPDIR1="${TMPDIR}" -elif test ! -z "$TEMPDIR" ; then - TMPDIR1="${TEMPDIR}" -else - TMPDIR1="/tmp" -fi +: ${TMPDIR:=$TEMPDIR} +: ${TMPDIR:=/tmp} -TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" -TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" -TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" -TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" -TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" -TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" +TMPC="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c" +TMPE="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}${EXESUF}" +TMPH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h" +TMPO="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o" +TMPS="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S" +TMPSH="${TMPDIR}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh" check_cflags -std=c99 @@ -1690,9 +1685,8 @@ EOF chmod +x $TMPSH >> $logfile 2>&1 if ! $TMPSH >> $logfile 2>&1; then cat <<EOF -Unable to create and execute files in $TMPDIR1. Set the TMPDIR environment -variable to another directory and make sure that $TMPDIR1 is not mounted -noexec. +Unable to create and execute files in $TMPDIR. Set the TMPDIR environment +variable to another directory and make sure that it is not mounted noexec. EOF die "Sanity test failed." fi |