From: Oka Motofumi Date: Sun, 5 Feb 2012 21:07:34 +0000 (+0900) Subject: Add error handling for out-of-tree build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10e1ba55803970ecd240f2057e7dfe0c22fc8efb;p=libx264 Add error handling for out-of-tree build --- diff --git a/configure b/configure index db7ad0e8..145d4685 100755 --- a/configure +++ b/configure @@ -237,6 +237,7 @@ rm -f x264_config.h config.h config.mak config.log x264.pc x264.def conftest* SRCPATH="$(cd $(dirname $0); pwd)" [ "$SRCPATH" = "$(pwd)" ] && SRCPATH=. [ -n "$(echo $SRCPATH | grep ' ')" ] && die "Out of tree builds are impossible with whitespace in source path." +[ -e "$SRCPATH/config.h" -o -e "$SRCPATH/x264_config.h" ] && die "Out of tree builds are impossible with config.h/x264_config.h in source dir." prefix='/usr/local' exec_prefix='${prefix}'