This commit is contained in:
committed by
Git OBS Bridge
parent
28974b8436
commit
87bfedae71
20
build.diff
20
build.diff
@@ -167,12 +167,24 @@ Index: Makefile.am
|
||||
dnl TVM:
|
||||
dnl horrible *temporary* hack to make sure that if we found gettext() in
|
||||
dnl -lintl that we add -lintl *back* to $LIBS.
|
||||
@@ -943,54 +919,74 @@ withval=auto
|
||||
@@ -943,54 +919,86 @@ withval=auto
|
||||
AC_ARG_WITH(python, [ --with-python build rpm python bindings ])
|
||||
|
||||
WITH_PYTHON_VERSION=$withval
|
||||
-if test $withval = auto ; then
|
||||
|
||||
+if test "$WITH_PYTHON_VERSION" = auto ; then
|
||||
+AC_MSG_CHECKING(for python 2.6)
|
||||
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
+#include <python2.6/Python.h>
|
||||
+main() {
|
||||
+ exit(strncmp("2.6", PY_VERSION, 3));
|
||||
+} ]])],[withval=yes],[withval=no],[withval=yes])
|
||||
+AC_MSG_RESULT($withval)
|
||||
+if test $withval = yes ; then
|
||||
+ WITH_PYTHON_VERSION="2.6"
|
||||
+fi
|
||||
+fi
|
||||
+if test "$WITH_PYTHON_VERSION" = auto ; then
|
||||
+AC_MSG_CHECKING(for python 2.5)
|
||||
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
@@ -283,7 +295,7 @@ Index: Makefile.am
|
||||
fi
|
||||
|
||||
if test "$WITH_PYTHON_VERSION" != no ; then
|
||||
@@ -1283,6 +1279,7 @@ arm*) RPMCANONCOLOR=0; RPMCANONARCH="${
|
||||
@@ -1283,6 +1291,7 @@ arm*) RPMCANONCOLOR=0; RPMCANONARCH="${
|
||||
mipsel*) RPMCANONCOLOR=0; RPMCANONARCH=mipsel ;;
|
||||
mips*) RPMCANONCOLOR=0; RPMCANONARCH=mips ;;
|
||||
m68k*) RPMCANONCOLOR=0; RPMCANONARCH=m68k ;;
|
||||
@@ -291,7 +303,7 @@ Index: Makefile.am
|
||||
*) RPMCANONCOLOR=0; RPMCANONARCH=unknown ;;
|
||||
esac
|
||||
case "${build_os_noversion}" in
|
||||
@@ -1290,7 +1287,8 @@ mint) RPMCANONARCH=m68kmint ;;
|
||||
@@ -1290,7 +1299,8 @@ mint) RPMCANONARCH=m68kmint ;;
|
||||
esac
|
||||
RPMCANONVENDOR="$build_vendor"
|
||||
case "${build_vendor}" in
|
||||
@@ -301,7 +313,7 @@ Index: Makefile.am
|
||||
test -f /etc/redhat-release && RPMCANONVENDOR=redhat
|
||||
test -f /etc/pld-release && RPMCANONVENDOR=pld
|
||||
test -f /etc/mandrake-release && RPMCANONVENDOR=mandrake
|
||||
@@ -1372,7 +1370,7 @@ dnl XXX this causes popt to depend on zl
|
||||
@@ -1372,7 +1382,7 @@ dnl XXX this causes popt to depend on zl
|
||||
dnl # XXX Propagate -lucb to popt ...
|
||||
dnl export LIBS INCPATH CONFIG_SITE
|
||||
|
||||
|
Reference in New Issue
Block a user