summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-01 18:41:33 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-01 18:41:33 (GMT)
commita6e975801e37bef27deb3207f6fc8f0c59affb46 (patch)
treee70dffff459f4a6f6041604334b4cd5ea74a0bcb /configure.in
parent65293680aa6a4f62024eb25ba8ff4c731c126a60 (diff)
downloadcpython-a6e975801e37bef27deb3207f6fc8f0c59affb46.zip
cpython-a6e975801e37bef27deb3207f6fc8f0c59affb46.tar.gz
cpython-a6e975801e37bef27deb3207f6fc8f0c59affb46.tar.bz2
Patch #497098: build support for GNU/Hurd.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 15f5ee1..b0d5b1f 100644
--- a/configure.in
+++ b/configure.in
@@ -796,7 +796,7 @@ then
# No framework. Ignore undefined symbols, assuming they come from Python
LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
fi ;;
- Linux*) LDSHARED="gcc -shared";;
+ Linux*|GNU*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
OpenBSD*|NetBSD*|FreeBSD*)
@@ -832,7 +832,7 @@ then
then CCSHARED="-fPIC";
else CCSHARED="+z";
fi;;
- Linux*) CCSHARED="-fPIC";;
+ Linux*|GNU*) CCSHARED="-fPIC";;
BSD/OS*/4*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
OpenUNIX*|UnixWare*)
@@ -860,7 +860,7 @@ then
hp*|HP*)
LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
- Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
+ Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys
Darwin/*)
# -u __dummy makes the linker aware of the objc runtime
@@ -1033,8 +1033,14 @@ else
AC_MSG_RESULT($unistd_defines_pthreads)
AC_DEFINE(_REENTRANT)
+ AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
+ AC_DEFINE(C_THREADS)
+ AC_DEFINE(HURD_C_THREADS)
+ LIBS="$LIBS -lthreads"
+ LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
+ AC_DEFINE(MACH_C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_MSG_CHECKING(for --with-pth)
AC_ARG_WITH(pth,
@@ -1088,7 +1094,7 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"],[
USE_THREAD_MODULE="#"])
- ])])])])])])])])])
+ ])])])])])])])])])])
if test "$posix_threads" = "yes"; then
if test "$unistd_defines_pthreads" = "no"; then