From 790e16f85923baa31b7a0739fb3db19fe906403f Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Wed, 10 Oct 2012 11:46:37 +0200 Subject: [PATCH] buildtypes: Improve false positive GNU autotools detection The configure script needs to have a matching line to the pattern "generated by.*autoconf" (case insensitive match). --- buildtypes/configure.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/buildtypes/configure.sh.in b/buildtypes/configure.sh.in index 3821f72..b66043b 100644 --- a/buildtypes/configure.sh.in +++ b/buildtypes/configure.sh.in @@ -22,7 +22,13 @@ # along with this program. If not, see . # -if [ ! -x ${S}/configure ] ; then +if [ ! -x "${S}/configure" ] ; then + return +fi + +if ! egrep -qi "generated by.*autoconf" "${S}/configure" ; then + print_warning "GNU autotools detection failed." + print_warning "${S}/configure: does not seem to be generated by GNU autotools." return fi