From: Michael Büsch Date: Sat, 23 Oct 2010 20:16:12 +0000 (+0000) Subject: python-sip: Check for python-dev prereq X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=5dbad82eb6dd63d9989a6de661ce15f638729054 python-sip: Check for python-dev prereq SVN-Revision: 23597 --- diff --git a/lang/python-sip/Makefile b/lang/python-sip/Makefile index 6f50adfa02..3b9368e7e9 100644 --- a/lang/python-sip/Makefile +++ b/lang/python-sip/Makefile @@ -127,7 +127,16 @@ define Host/Install install endef -#TODO check for host python-dev headers. +define Require/python2-dev + [ -e /usr/include/Python.h ] || \ + [ -e /usr/include/python/Python.h ] || \ + [ -e /usr/include/python2.5/Python.h ] || \ + [ -e /usr/include/python2.6/Python.h ] +endef + +$(eval $(call Require,python2-dev, \ + Please install Python 2.x headers (python-dev) \ +)) $(eval $(call RequireCommand,python, \ Please install Python 2.x \