Commit 2fceab73 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni
Browse files

pkg-autotools: remove redundant shell conditional



The libtool patching function checks whether patching libtool is wanted
before doing the actual patching.

This is redundant now, as all callers are now protected by a conditional
block.

Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Johan Oudinet <johan.oudinet@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent d2ae9010
Loading
Loading
Loading
Loading
+11 −13
Original line number Diff line number Diff line
@@ -44,8 +44,7 @@ endef
#
define PATCH_LIBTOOL
	@$(call MESSAGE,"Patching libtool")
	$(Q)if test "$($(PKG)_LIBTOOL_PATCH)" = "YES" ]; then \
		for i in `find $(1) -name ltmain.sh`; do \
	$(Q)for i in `find $(1) -name ltmain.sh`; do \
		ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' $$i | \
		sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
		if test $${ltmain_version} = '1.5'; then \
@@ -55,8 +54,7 @@ define PATCH_LIBTOOL
		elif test $${ltmain_version} = "2.4"; then\
			$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
		fi \
		done \
	fi
	done
endef

# This function generates the ac_cv_file_<foo> value for a given