diff options
author | Guido van Rossum <guido@python.org> | 1997-12-02 19:28:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-02 19:28:29 (GMT) |
commit | 4954595036eacfcdf424dd2e25cf7f567a471a27 (patch) | |
tree | d06c2f288eaf242ab30a5b15141405c96e23e715 /configure.in | |
parent | 8e29a59b39c9264fac6551aa6a67eeb7fa1b675e (diff) | |
download | cpython-4954595036eacfcdf424dd2e25cf7f567a471a27.zip cpython-4954595036eacfcdf424dd2e25cf7f567a471a27.tar.gz cpython-4954595036eacfcdf424dd2e25cf7f567a471a27.tar.bz2 |
Changes for FreeBSD and NetBSD: NetBSD does shared libs just like FreeBSD
(big surprise), and FreeBSD has pthread support in -lc_r -- maybe NetBSD
has too.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 09e3a65..c7bd276 100644 --- a/configure.in +++ b/configure.in @@ -279,7 +279,7 @@ then DYNIX/ptx*) LDSHARED="ld -G";; next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; Linux*) LDSHARED="gcc -shared";; - FreeBSD*) LDSHARED="ld -Bshareable";; + FreeBSD*|NetBSD*) LDSHARED="ld -Bshareable";; SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; *) LDSHARED="ld";; esac @@ -296,7 +296,7 @@ then else CCSHARED="+z"; fi;; Linux*) CCSHARED="-fpic";; - FreeBSD*) CCSHARED="-fpic";; + FreeBSD*|NetBSD*) CCSHARED="-fpic";; SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; IRIX*/6*) CCSHARED="-all";; esac @@ -385,11 +385,15 @@ AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD) AC_DEFINE(_POSIX_THREADS) LIBS="$LIBS -lpthread" LIBOBJS="$LIBOBJS thread.o"], [ +AC_CHECK_LIB(c_r, pthread_create, [AC_DEFINE(WITH_THREAD) +AC_DEFINE(_POSIX_THREADS) +LIBS="$LIBS -lc_r" +LIBOBJS="$LIBOBJS thread.o"], [ AC_CHECK_LIB(thread, __d6_pthread_create, [AC_DEFINE(WITH_THREAD) AC_DEFINE(_POSIX_THREADS) LIBS="$LIBS -lthread" LIBOBJS="$LIBOBJS thread.o"]) -])])]) +])])])]) AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) LIBS="$LIBS -lmpc" |