Commit fbb93b24 authored by mru's avatar mru

make sure we can create and execute files in $TMPDIR


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6362 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d88f4aa7
......@@ -1110,6 +1110,19 @@ if test $tune != "generic"; then
esac
fi
# make sure we can execute files in $TMPDIR
cat >$TMPE 2>>$logfile <<EOF
#! /bin/sh
EOF
chmod +x $TMPE >>$logfile 2>&1
if ! $TMPE >>$logfile 2>&1; then
cat <<EOF
Unable to create and execute files in $TMPDIR1. Set the TMPDIR environment
variable to another directory.
EOF
die "Sanity test failed."
fi
# compiler sanity check
check_exec <<EOF
int main(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment