Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f8682923
Kaydet (Commit)
f8682923
authored
Eyl 27, 2011
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix system Python configuration for MacOSX SDK >= 10.6
üst
e73bfbf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
configure.in
configure.in
+25
-6
No files found.
configure.in
Dosyayı görüntüle @
f8682923
...
@@ -4809,7 +4809,11 @@ if test "$cross_compiling" = yes; then
...
@@ -4809,7 +4809,11 @@ if test "$cross_compiling" = yes; then
fi
fi
else
else
if test $enable_python = system; then
if test $enable_python = system; then
dnl This causes an error if no Python found
# This causes an error if no python command is found
# Note that this takes the system python called just "python",
# which isn't actually what we want on MacOSX when building
# against the 10.6 SDK. But that shouldn't matter, we
# select the correct python command manually below anyway.
AM_PATH_PYTHON([2.6])
AM_PATH_PYTHON([2.6])
elif test $enable_python = auto; then
elif test $enable_python = auto; then
dnl This allows lack of system Python
dnl This allows lack of system Python
...
@@ -4825,14 +4829,29 @@ fi
...
@@ -4825,14 +4829,29 @@ fi
if test $enable_python = system; then
if test $enable_python = system; then
if test $_os = Darwin; then
if test $_os = Darwin; then
#TODO: conditionalize for chosen Mac-SDK (configure switch not yet available)
# We already have logic above to make sure the system Python
AC_MSG_ERROR([system python is not compatible with pyuno anymore, you need to compile against Mac OSX 10.6 or later (needs Python 2.6 or newer)])
# is used only when building against SDK 10.6 or newer.
PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.6/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6"
# Make sure we use the 2.6 Python when building against the
# 10.6 SDK.
case $with_macosx_sdk in
10.6)
python_version=2.6;;
10.7)
python_version=2.7;;
*)
# ???
python_version=2.7;;
esac
PYTHON=python$python_version
PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX${with_macosx_sdk}.sdk/System/Library/Frameworks/Python.framework/Versions/${python_version}/include/python${python_version}"
PYTHON_LIBS="-framework Python"
PYTHON_LIBS="-framework Python"
fi
fi
if test -n "$PYTHON_CFLAGS" -a -n "$PYTHON_LIBS"; then
if test -n "$PYTHON_CFLAGS" -a -n "$PYTHON_LIBS"; then
dnl Fallback: Accept these in the environment.
# Fallback: Accept these in the environment, or as set above
:
# for MacOSX.
:
elif test "$cross_compiling" != yes; then
elif test "$cross_compiling" != yes; then
python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment