[x264-devel] Add error handling for out-of-tree build

Oka Motofumi git at videolan.org
Wed Mar 7 03:20:12 CET 2012


x264 | branch: master | Oka Motofumi <chikuzen.mo at gmail.com> | Mon Feb  6 06:07:34 2012 +0900| [d3efb00abbedd2bbb70156bd989beefe06468116] | committer: Jason Garrett-Glaser

Add error handling for out-of-tree build

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=d3efb00abbedd2bbb70156bd989beefe06468116
---

 configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index db7ad0e..145d468 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}'



More information about the x264-devel mailing list