mirror of
https://github.com/transmission/transmission
synced 2025-01-03 13:35:36 +00:00
(trunk) #2795 "non-GUI compilation issues on OS X 10.4" -- fixed for 1.90
This commit is contained in:
parent
63bca0fad4
commit
743ef2a3c6
2 changed files with 17 additions and 13 deletions
28
configure.ac
28
configure.ac
|
@ -385,18 +385,7 @@ case $host_os in
|
||||||
|
|
||||||
*darwin*)
|
*darwin*)
|
||||||
have_darwin="yes"
|
have_darwin="yes"
|
||||||
# Make sure the proper Mac SDK is installed
|
CFLAGS="-DMACOSX $CFLAGS"
|
||||||
if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
|
|
||||||
cat << EOF
|
|
||||||
You need to install the Mac OS X 10.5 SDK in order to build Transmission:
|
|
||||||
Get your Xcode CD or package
|
|
||||||
Restart the install
|
|
||||||
When it gets to "Installation Type", select "Customize"
|
|
||||||
Select "Mac OS X 10.5 SDK" under "Cross Development"
|
|
||||||
Finish the install.
|
|
||||||
EOF
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
@ -420,6 +409,21 @@ AC_ARG_ENABLE([daemon],
|
||||||
AM_CONDITIONAL([BUILD_DAEMON],[test "x$build_daemon" = "xyes"])
|
AM_CONDITIONAL([BUILD_DAEMON],[test "x$build_daemon" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$build_mac" = "xyes" ; then
|
||||||
|
# Make sure the proper Mac SDK is installed
|
||||||
|
if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
|
||||||
|
cat << EOF
|
||||||
|
You need to install the Mac OS X 10.5 SDK in order to build Transmission
|
||||||
|
with --enable-mac:
|
||||||
|
Get your Xcode CD or package
|
||||||
|
Restart the install
|
||||||
|
When it gets to "Installation Type", select "Customize"
|
||||||
|
Select "Mac OS X 10.5 SDK" under "Cross Development"
|
||||||
|
Finish the install.
|
||||||
|
EOF
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if test "x$have_darwin" = "xyes"; then
|
if test "x$have_darwin" = "xyes"; then
|
||||||
AC_DEFINE([HAVE_DARWIN], 1)
|
AC_DEFINE([HAVE_DARWIN], 1)
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -13,7 +13,7 @@ if [ -f /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
# use lsb_release (Linux Standard Base) when available
|
# use lsb_release (Linux Standard Base) when available
|
||||||
LSB_RELEASE=`which lsb_release`
|
LSB_RELEASE=`which lsb_release`
|
||||||
if [ 0 -eq $? ]; then
|
if [ 0 -eq $? -a -x "${LSB_RELEASE}" ]; then
|
||||||
OS_NAME=`${LSB_RELEASE} -i -s`
|
OS_NAME=`${LSB_RELEASE} -i -s`
|
||||||
OS_VERSION=`${LSB_RELEASE} -r -s`
|
OS_VERSION=`${LSB_RELEASE} -r -s`
|
||||||
case $OS_NAME in
|
case $OS_NAME in
|
||||||
|
|
Loading…
Reference in a new issue