summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-10-05 18:00:06 (GMT)
committerGuido van Rossum <guido@python.org>2000-10-05 18:00:06 (GMT)
commit3dc0a514e6d6dd1e1b6ed3aa82fcdaa909bfea7f (patch)
tree375f7a48ddb7e2df05569f16d29d57bb3b359f8e /configure.in
parent77317ca7dc4d4267c2c23b3825ba95c3978c9cdd (diff)
downloadcpython-3dc0a514e6d6dd1e1b6ed3aa82fcdaa909bfea7f.zip
cpython-3dc0a514e6d6dd1e1b6ed3aa82fcdaa909bfea7f.tar.gz
cpython-3dc0a514e6d6dd1e1b6ed3aa82fcdaa909bfea7f.tar.bz2
[ Patch #101730 ] Add initial static support for Darwin/MacOSX.
By D.K. Wolfe.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in22
1 files changed, 14 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index b7352da..e2adc75 100644
--- a/configure.in
+++ b/configure.in
@@ -8,7 +8,7 @@ AC_CONFIG_HEADER(config.h)
AC_SUBST(VERSION)
VERSION=2.0
-# NEXTSTEP stuff
+# NEXTSTEP|MacOSX|Darwin stuff
if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then
AC_MSG_CHECKING(for --with-next-archs)
@@ -24,18 +24,23 @@ if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices
if test -z "$MACHDEP"
then
+ ac_sys_system=`uname -s`
+ if test "$ac_sys_system" = "Darwin" ; then
+ ac_sys_release=`uname -r`
+ else
set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
- sed -e 's/://' -e 's/\./_/'` && \
- ac_sys_system=next && ac_sys_release=$4
+ sed -e 's/://' -e 's/\./_/'` && \
+ ac_sys_system=next && ac_sys_release=$4
+ fi
- MACHDEP="$ac_sys_system$ac_sys_release"
+ MACHDEP="$ac_sys_system$ac_sys_release"
fi
fi
AC_ARG_WITH(next-framework,
-[ --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework],,)
+[ --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework],,)
AC_ARG_WITH(dyld,
-[ --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker],,)
+[ --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker],,)
# Set name for machine-dependent library files
AC_SUBST(MACHDEP)
@@ -574,12 +579,12 @@ then
hp*|HP*) LDSHARED="ld -b";;
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
DYNIX/ptx*) LDSHARED="ld -G";;
- next/*)
+ Darwin/*|next/*)
if test "$ns_dyld"
then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
fi
- if test "$with_next_framework" ; then
+ if test "$with_next_framework" ; then
LDSHARED="$LDSHARED \$(LDLIBRARY)"
fi ;;
Linux*) LDSHARED="gcc -shared";;
@@ -1150,6 +1155,7 @@ fi],
# check for --with-libm=...
AC_SUBST(LIBM)
case $ac_sys_system in
+Darwin) ;;
next) ;;
BeOS) ;;
*) LIBM=-lm