Skip to content

Commit

Permalink
buildtypes: Improve false positive GNU autotools detection
Browse files Browse the repository at this point in the history
The configure script needs to have a matching line to the pattern
"generated by.*autoconf" (case insensitive match).
  • Loading branch information
mariux committed Oct 10, 2012
1 parent d6f6e92 commit 790e16f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildtypes/configure.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

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

Expand Down

0 comments on commit 790e16f

Please sign in to comment.