summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-31 22:45:54 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-31 22:45:54 (GMT)
commit8a2574e09eedb0fd348ca2e914c1d2d4d53cfbff (patch)
tree0514a9b0738748bba9e380cd5bee04d7e5927e77
parentd5962adb44a3b17f9435fe35d32ac3e165f311f7 (diff)
downloadcpython-8a2574e09eedb0fd348ca2e914c1d2d4d53cfbff.zip
cpython-8a2574e09eedb0fd348ca2e914c1d2d4d53cfbff.tar.gz
cpython-8a2574e09eedb0fd348ca2e914c1d2d4d53cfbff.tar.bz2
Changes for AIX; also remove all references to _REENTRANT.
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index dde8520..226ab68 100644
--- a/configure.in
+++ b/configure.in
@@ -29,7 +29,11 @@ then
MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
else
ac_sys_system=`uname -s`
- ac_sys_release=`uname -r`
+ if test "$ac_sys_system" = "AIX" ; then
+ ac_sys_release=`uname -v`
+ else
+ ac_sys_release=`uname -r`
+ fi
ac_md_system=`echo $ac_sys_system |
tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
ac_md_release=`echo $ac_sys_release |
@@ -148,6 +152,7 @@ AC_MSG_CHECKING(LDSHARED)
if test -z "$LDSHARED"
then
case $ac_sys_system/$ac_sys_release in
+ AIX*) LDSHARED="ld_so_aix";;
IRIX*) LDSHARED="ld -shared";;
SunOS/4*) LDSHARED="ld";;
SunOS/5*) LDSHARED="ld -G";;
@@ -182,6 +187,7 @@ AC_MSG_CHECKING(LINKFORSHARED)
if test -z "$LINKFORSHARED"
then
case $ac_sys_system in
+ AIX*) LINKFORSHARED="-Wl,-bE:python.exp";;
hp*|HP*) LINKFORSHARED="-Wl,-E";;
Linux*) LINKFORSHARED="-rdynamic";;
esac
@@ -246,12 +252,10 @@ AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
-AC_DEFINE(_REENTRANT)
LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
-AC_DEFINE(_REENTRANT)
LIBS="$LIBS -lpthread"
LIBOBJS="$LIBOBJS thread.o"])
])])