sip_ok=no
AC_MSG_RESULT(sip not in PATH variable)
else
+ version=`sip -V`
+ case "$version" in
+ 3.2*)
+ sip_vers=old ;;
+ 3.3*)
+ sip_vers=old ;;
+ 3.4*)
+ sip_vers=new ;;
+ 3.5*)
+ sip_vers=new ;;
+ *)
+ sip_vers=no ;;
+ esac
+
+ sip_ok=no
+
+ if test "x$sip_vers" = "xold"
+ then
+ sip_ok=yes
SIP_ROOT="$SIPDIR"
SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}"
SIP_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/site-packages -L${SIPDIR} -lsip"
+ fi
+
+ if test "x$sip_vers" = "xnew"
+ then
+ sip_ok=yes
+ SIP_ROOT="$SIPDIR"
+ SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include"
+ SIP_LIBS="-L${SIPDIR}/lib -lsip"
+ fi
+
fi
AC_SUBST(SIP)