[libav-devel] [PATCH] configure: Report correctly if the program is non-existing

Luca Barbato lu_zero at gentoo.org
Mon Aug 3 13:46:40 CEST 2015


Makes easier spot typos while passing --cc --as --ld to configure.
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 482be43..056147e 100755
--- a/configure
+++ b/configure
@@ -2932,6 +2932,9 @@ probe_cc(){
     pfx=$1
     _cc=$2
 
+    test -f $_cc || die "The program \"$_cc\" does not exist."
+    test -x $_cc || die "The program \"$_cc\" is not executable."
+
     unset _type _ident _cc_c _cc_e _cc_o _flags _cflags
     unset _ld_o _ldflags _ld_lib _ld_path
     unset _depflags _DEPCMD _DEPFLAGS
-- 
1.9.0



More information about the libav-devel mailing list