Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d474be

Browse files
author
Skip Montanaro
committed
remove DGUX support.
1 parent b9820a3 commit 4d474be

4 files changed

Lines changed: 5 additions & 37 deletions

File tree

Python/thread.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ extern char *getenv(const char *);
1919
#endif
2020
#endif
2121

22-
#ifdef __DGUX
23-
#define _USING_POSIX4A_DRAFT6
24-
#endif
25-
2622
#ifdef __sgi
2723
#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */
2824
#undef _POSIX_THREADS

Python/thread_pthread.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
# error Systems with PY_PTHREAD_D7 are unsupported. See README.
5656
# endif
5757

58-
#elif defined(__DGUX)
59-
# define PY_PTHREAD_D6
60-
# error Systems with PY_PTHREAD_D6 are unsupported. See README.
61-
6258
#elif defined(__hpux) && defined(_DECTHREADS_)
6359
# define PY_PTHREAD_D4
6460
# error Systems with PY_PTHREAD_D4 are unsupported. See README.
@@ -80,7 +76,7 @@
8076
#if !defined(pthread_condattr_default)
8177
# define pthread_condattr_default pthread_condattr_default
8278
#endif
83-
#elif defined(PY_PTHREAD_STD) || defined(PY_PTHREAD_D6)
79+
#elif defined(PY_PTHREAD_STD)
8480
#if !defined(pthread_attr_default)
8581
# define pthread_attr_default ((pthread_attr_t *)NULL)
8682
#endif
@@ -211,10 +207,6 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
211207
pthread_attr_default,
212208
(pthread_startroutine_t)func,
213209
(pthread_addr_t)arg
214-
#elif defined(PY_PTHREAD_D6)
215-
pthread_attr_default,
216-
(void* (*)(void *))func,
217-
arg
218210
#elif defined(PY_PTHREAD_D7)
219211
pthread_attr_default,
220212
func,
@@ -239,7 +231,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
239231
if (status != 0)
240232
return -1;
241233

242-
#if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D6) || defined(PY_PTHREAD_D7)
234+
#if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7)
243235
pthread_detach(&th);
244236
#elif defined(PY_PTHREAD_STD)
245237
pthread_detach(th);

configure

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 1.442 .
2+
# From configure.in Revision: 1.443 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.57 for python 2.4.
55
#
@@ -3010,7 +3010,7 @@ rm -f conftest*
30103010

30113011
# Check for unsupported systems
30123012
case $ac_sys_system/$ac_sys_release in
3013-
SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*)
3013+
SunOS/4*|DYNIX/*|IRIX/4*|Linux*/1*)
30143014
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
30153015
echo See README for details.
30163016
exit 1;;
@@ -3150,8 +3150,6 @@ then
31503150
exp_extra="."
31513151
fi
31523152
LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3153-
dgux*)
3154-
LINKCC="LD_RUN_PATH=$libdir $LINKCC";;
31553153
Monterey64*)
31563154
LINKCC="$LINKCC -L/usr/lib/ia64l64";;
31573155
esac
@@ -3241,13 +3239,6 @@ _ACEOF
32413239
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
32423240
;;
32433241
esac
3244-
# DG/UX requires some fancy ld contortions to produce a .so from an .a
3245-
case $MACHDEP in
3246-
dguxR4)
3247-
LDLIBRARY='libpython$(VERSION).so'
3248-
BASECFLAGS="$BASECFLAGS -pic"
3249-
;;
3250-
esac
32513242
else # shared is disabled
32523243
case $ac_sys_system in
32533244
CYGWIN*)
@@ -9422,7 +9413,6 @@ then
94229413
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
94239414
fi ;;
94249415
Linux*|GNU*) LDSHARED='$(CC) -shared';;
9425-
dgux*) LDSHARED="ld -G";;
94269416
BSD/OS*/4*) LDSHARED="gcc -shared";;
94279417
OpenBSD*|FreeBSD*)
94289418
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]

configure.in

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ AC_AIX
332332

333333
# Check for unsupported systems
334334
case $ac_sys_system/$ac_sys_release in
335-
SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*)
335+
SunOS/4*|DYNIX/*|IRIX/4*|Linux*/1*)
336336
echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
337337
echo See README for details.
338338
exit 1;;
@@ -457,8 +457,6 @@ then
457457
exp_extra="."
458458
fi
459459
LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
460-
dgux*)
461-
LINKCC="LD_RUN_PATH=$libdir $LINKCC";;
462460
Monterey64*)
463461
LINKCC="$LINKCC -L/usr/lib/ia64l64";;
464462
esac
@@ -537,13 +535,6 @@ if test $enable_shared = "yes"; then
537535
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
538536
;;
539537
esac
540-
# DG/UX requires some fancy ld contortions to produce a .so from an .a
541-
case $MACHDEP in
542-
dguxR4)
543-
LDLIBRARY='libpython$(VERSION).so'
544-
BASECFLAGS="$BASECFLAGS -pic"
545-
;;
546-
esac
547538
else # shared is disabled
548539
case $ac_sys_system in
549540
CYGWIN*)
@@ -1278,7 +1269,6 @@ then
12781269
LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12791270
fi ;;
12801271
Linux*|GNU*) LDSHARED='$(CC) -shared';;
1281-
dgux*) LDSHARED="ld -G";;
12821272
BSD/OS*/4*) LDSHARED="gcc -shared";;
12831273
OpenBSD*|FreeBSD*)
12841274
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]

0 commit comments

Comments
 (0)