Merged revisions 74672 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74672 | ronald.oussoren | 2009-09-06 12:00:26 +0200 (Sun, 06 Sep 2009) | 1 line Fix build issues on OSX 10.6 (issue 6802) ........
This commit is contained in:
parent
2b6705fb1c
commit
5bbab3e64f
|
@ -184,6 +184,8 @@ Extension Modules
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #6802: Fix build issues on MacOSX 10.6
|
||||||
|
|
||||||
- Issue #6244: Allow detect_tkinter to look for Tcl/Tk 8.6.
|
- Issue #6244: Allow detect_tkinter to look for Tcl/Tk 8.6.
|
||||||
|
|
||||||
- Issue 4601: 'make install' did not set the appropriate permissions on
|
- Issue 4601: 'make install' did not set the appropriate permissions on
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 74073 .
|
# From configure.in Revision: 74669 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for python 3.2.
|
# Generated by GNU Autoconf 2.61 for python 3.2.
|
||||||
#
|
#
|
||||||
|
@ -1908,7 +1908,6 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ARCH_RUN_32BIT=
|
|
||||||
|
|
||||||
|
|
||||||
UNIVERSAL_ARCHS="32-bit"
|
UNIVERSAL_ARCHS="32-bit"
|
||||||
|
@ -3806,7 +3805,7 @@ else
|
||||||
{ echo "$as_me:$LINENO: result: no" >&5
|
{ echo "$as_me:$LINENO: result: no" >&5
|
||||||
echo "${ECHO_T}no" >&6; }
|
echo "${ECHO_T}no" >&6; }
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4654,6 +4653,7 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
|
||||||
|
|
||||||
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
|
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
|
||||||
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
|
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
|
||||||
|
ARCH_RUN_32BIT="true"
|
||||||
|
|
||||||
elif test "$UNIVERSAL_ARCHS" = "all" ; then
|
elif test "$UNIVERSAL_ARCHS" = "all" ; then
|
||||||
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
|
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
|
||||||
|
@ -4679,12 +4679,22 @@ echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2
|
||||||
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
|
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
|
||||||
if test ${cur_target} '>' 10.2; then
|
if test ${cur_target} '>' 10.2; then
|
||||||
cur_target=10.3
|
cur_target=10.3
|
||||||
fi
|
if test ${enable_universalsdk}; then
|
||||||
if test "${UNIVERSAL_ARCHS}" = "all"; then
|
if test "${UNIVERSAL_ARCHS}" = "all"; then
|
||||||
# Ensure that the default platform for a 4-way
|
# Ensure that the default platform for a
|
||||||
# universal build is OSX 10.5, that's the first
|
# 4-way universal build is OSX 10.5,
|
||||||
# OS release where 4-way builds make sense.
|
# that's the first OS release where
|
||||||
cur_target='10.5'
|
# 4-way builds make sense.
|
||||||
|
cur_target='10.5'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test `arch` = "i386"; then
|
||||||
|
# On Intel macs default to a deployment
|
||||||
|
# target of 10.4, that's the first OSX
|
||||||
|
# release with Intel support.
|
||||||
|
cur_target="10.4"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
|
||||||
|
|
||||||
|
@ -5346,7 +5356,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5367,7 +5377,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -6465,7 +6475,7 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
||||||
echo "${ECHO_T}$was_it_defined" >&6; }
|
echo "${ECHO_T}$was_it_defined" >&6; }
|
||||||
|
@ -6995,7 +7005,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_type_uid_t=no
|
ac_cv_type_uid_t=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
||||||
|
@ -14388,13 +14398,15 @@ case $ac_sys_system/$ac_sys_release in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
ARCH_RUN_32BIT=""
|
||||||
|
|
||||||
case $ac_sys_system/$ac_sys_release in
|
case $ac_sys_system/$ac_sys_release in
|
||||||
Darwin/[01567]\..*)
|
Darwin/[01567]\..*)
|
||||||
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
|
LIBTOOL_CRUFT="-framework System -lcc_dynamic"
|
||||||
if test "${enable_universalsdk}"; then
|
if test "${enable_universalsdk}"; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
|
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
|
||||||
fi
|
fi
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
||||||
|
@ -14406,7 +14418,93 @@ case $ac_sys_system/$ac_sys_release in
|
||||||
else
|
else
|
||||||
LIBTOOL_CRUFT=""
|
LIBTOOL_CRUFT=""
|
||||||
fi
|
fi
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
|
if test "$cross_compiling" = yes; then
|
||||||
|
ac_osx_32bit=no
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
[
|
||||||
|
#include <unistd.h>
|
||||||
|
int main(int argc, char*argv[])
|
||||||
|
{
|
||||||
|
if (sizeof(long) == 4) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
]
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest$ac_exeext
|
||||||
|
if { (ac_try="$ac_link"
|
||||||
|
case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||||
|
(eval "$ac_link") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
||||||
|
{ (case "(($ac_try" in
|
||||||
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||||
|
*) ac_try_echo=$ac_try;;
|
||||||
|
esac
|
||||||
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
||||||
|
(eval "$ac_try") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_osx_32bit=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: program exited with status $ac_status" >&5
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
( exit $ac_status )
|
||||||
|
ac_osx_32bit=no
|
||||||
|
fi
|
||||||
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test "${ac_osx_32bit}" = "yes"; then
|
||||||
|
case `arch` in
|
||||||
|
i386)
|
||||||
|
MACOSX_DEFAULT_ARCH="i386"
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
MACOSX_DEFAULT_ARCH="ppc"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
{ { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
|
||||||
|
echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
case `arch` in
|
||||||
|
i386)
|
||||||
|
MACOSX_DEFAULT_ARCH="x86_64"
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
MACOSX_DEFAULT_ARCH="ppc64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
{ { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
|
||||||
|
echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#ARCH_RUN_32BIT="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
||||||
esac
|
esac
|
||||||
|
@ -15452,7 +15550,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
unistd_defines_pthreads=no
|
unistd_defines_pthreads=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
||||||
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
||||||
|
@ -16920,7 +17018,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
$EGREP "yes" >/dev/null 2>&1; then
|
$EGREP "yes" >/dev/null 2>&1; then
|
||||||
ipv6type=$i
|
ipv6type=$i
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
kame)
|
kame)
|
||||||
|
@ -16943,7 +17041,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-glibc)
|
linux-glibc)
|
||||||
|
@ -16964,7 +17062,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6type=$i;
|
ipv6type=$i;
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-inet6)
|
linux-inet6)
|
||||||
|
@ -17002,7 +17100,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
v6d)
|
v6d)
|
||||||
|
@ -17025,7 +17123,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib;
|
ipv6libdir=/usr/local/v6/lib;
|
||||||
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
zeta)
|
zeta)
|
||||||
|
@ -17047,7 +17145,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -25139,7 +25237,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -25409,7 +25507,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
71
configure.in
71
configure.in
|
@ -109,7 +109,6 @@ AC_ARG_ENABLE(universalsdk,
|
||||||
])
|
])
|
||||||
AC_SUBST(UNIVERSALSDK)
|
AC_SUBST(UNIVERSALSDK)
|
||||||
|
|
||||||
ARCH_RUN_32BIT=
|
|
||||||
AC_SUBST(ARCH_RUN_32BIT)
|
AC_SUBST(ARCH_RUN_32BIT)
|
||||||
|
|
||||||
UNIVERSAL_ARCHS="32-bit"
|
UNIVERSAL_ARCHS="32-bit"
|
||||||
|
@ -920,6 +919,7 @@ yes)
|
||||||
|
|
||||||
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
|
elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
|
||||||
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
|
UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
|
||||||
|
ARCH_RUN_32BIT="true"
|
||||||
|
|
||||||
elif test "$UNIVERSAL_ARCHS" = "all" ; then
|
elif test "$UNIVERSAL_ARCHS" = "all" ; then
|
||||||
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
|
UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
|
||||||
|
@ -943,12 +943,22 @@ yes)
|
||||||
cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
|
cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
|
||||||
if test ${cur_target} '>' 10.2; then
|
if test ${cur_target} '>' 10.2; then
|
||||||
cur_target=10.3
|
cur_target=10.3
|
||||||
fi
|
if test ${enable_universalsdk}; then
|
||||||
if test "${UNIVERSAL_ARCHS}" = "all"; then
|
if test "${UNIVERSAL_ARCHS}" = "all"; then
|
||||||
# Ensure that the default platform for a 4-way
|
# Ensure that the default platform for a
|
||||||
# universal build is OSX 10.5, that's the first
|
# 4-way universal build is OSX 10.5,
|
||||||
# OS release where 4-way builds make sense.
|
# that's the first OS release where
|
||||||
cur_target='10.5'
|
# 4-way builds make sense.
|
||||||
|
cur_target='10.5'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test `arch` = "i386"; then
|
||||||
|
# On Intel macs default to a deployment
|
||||||
|
# target of 10.4, that's the first OSX
|
||||||
|
# release with Intel support.
|
||||||
|
cur_target="10.4"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
|
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
|
||||||
|
|
||||||
|
@ -1455,6 +1465,8 @@ case $ac_sys_system/$ac_sys_release in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
ARCH_RUN_32BIT=""
|
||||||
AC_SUBST(LIBTOOL_CRUFT)
|
AC_SUBST(LIBTOOL_CRUFT)
|
||||||
case $ac_sys_system/$ac_sys_release in
|
case $ac_sys_system/$ac_sys_release in
|
||||||
Darwin/@<:@01567@:>@\..*)
|
Darwin/@<:@01567@:>@\..*)
|
||||||
|
@ -1462,7 +1474,7 @@ case $ac_sys_system/$ac_sys_release in
|
||||||
if test "${enable_universalsdk}"; then
|
if test "${enable_universalsdk}"; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
|
LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
|
||||||
fi
|
fi
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
||||||
|
@ -1474,7 +1486,48 @@ case $ac_sys_system/$ac_sys_release in
|
||||||
else
|
else
|
||||||
LIBTOOL_CRUFT=""
|
LIBTOOL_CRUFT=""
|
||||||
fi
|
fi
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
|
AC_TRY_RUN([[
|
||||||
|
#include <unistd.h>
|
||||||
|
int main(int argc, char*argv[])
|
||||||
|
{
|
||||||
|
if (sizeof(long) == 4) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
]], ac_osx_32bit=yes,
|
||||||
|
ac_osx_32bit=no,
|
||||||
|
ac_osx_32bit=no)
|
||||||
|
|
||||||
|
if test "${ac_osx_32bit}" = "yes"; then
|
||||||
|
case `arch` in
|
||||||
|
i386)
|
||||||
|
MACOSX_DEFAULT_ARCH="i386"
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
MACOSX_DEFAULT_ARCH="ppc"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
case `arch` in
|
||||||
|
i386)
|
||||||
|
MACOSX_DEFAULT_ARCH="x86_64"
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
MACOSX_DEFAULT_ARCH="ppc64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#ARCH_RUN_32BIT="true"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||||
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue