summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 10:44:46 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-01-02 10:44:46 (GMT)
commit79f90498bc16172527615888e3cd622ccb2478af (patch)
tree06a71b0811413df65d69b5bacba4ff211c60e7e4 /configure
parent57eb0e90c12d5944602eb9944c963b31021481b5 (diff)
downloadcpython-79f90498bc16172527615888e3cd622ccb2478af.zip
cpython-79f90498bc16172527615888e3cd622ccb2478af.tar.gz
cpython-79f90498bc16172527615888e3cd622ccb2478af.tar.bz2
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 0b922f4..7425216 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 67227 .
+# From configure.in Revision: 67463 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
@@ -4139,6 +4139,12 @@ _ACEOF
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
;;
+ Darwin*)
+ LDLIBRARY='libpython$(VERSION).dylib'
+ BLDLIBRARY='-L. -lpython$(VERSION)'
+ RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
+ ;;
+
esac
else # shared is disabled
case $ac_sys_system in
@@ -13003,6 +13009,7 @@ fi
{ echo "$as_me:$LINENO: result: $SO" >&5
echo "${ECHO_T}$SO" >&6; }
+
cat >>confdefs.h <<_ACEOF
#define SHLIB_EXT "$SO"
_ACEOF
@@ -13403,7 +13410,7 @@ _ACEOF
fi
# Dynamic linking for HP-UX
-# only check for sem_ini if thread support is requested
+# only check for sem_init if thread support is requested
if test "$with_threads" = "yes" -o -z "$with_threads"; then
{ echo "$as_me:$LINENO: checking for library containing sem_init" >&5
echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }