diff options
author | Guido van Rossum <guido@python.org> | 1998-05-07 13:25:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-07 13:25:56 (GMT) |
commit | 2cb5660da1b290c17888b449492c329e772bb2ea (patch) | |
tree | f970d53dd7b87623912af3681a621436cf976ba0 | |
parent | 0072b8d994264ab413d5e52ddfe4a666a671aa2f (diff) | |
download | cpython-2cb5660da1b290c17888b449492c329e772bb2ea.zip cpython-2cb5660da1b290c17888b449492c329e772bb2ea.tar.gz cpython-2cb5660da1b290c17888b449492c329e772bb2ea.tar.bz2 |
Get rid of test for -lsun (very old IRIX); add test for -lm (needed on
enough platforms).
-rw-r--r-- | config.h.in | 3 | ||||
-rw-r--r-- | configure.in | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/config.h.in b/config.h.in index f2393da..6d01d3b 100644 --- a/config.h.in +++ b/config.h.in @@ -396,3 +396,6 @@ /* Define if you have the ieee library (-lieee). */ #undef HAVE_LIBIEEE + +/* Define if you have the m library (-lm). */ +#undef HAVE_LIBM diff --git a/configure.in b/configure.in index af122df..e96402c 100644 --- a/configure.in +++ b/configure.in @@ -345,14 +345,14 @@ AC_MSG_RESULT($LINKFORSHARED) # checks for libraries AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX -AC_CHECK_LIB(sun, getpwnam) # NIS (== YP) interface for IRIX 4 +AC_CHECK_LIB(m, pow) # Std math lib -- assume needed if it exists # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. # However on SGI IRIX, these exist but are broken. -if test "$ac_sys_system" != IRIX -then +case "$ac_sys_system" in IRIX*) ;; +*) AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4 AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets -fi +;; esac AC_MSG_CHECKING(for --with-libs) AC_ARG_WITH(libs, [--with-libs='lib1 ...' link against additional libs], [ |