diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-19 23:36:11 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-19 23:36:11 +0000 |
commit | 59e32a18c9fb50058e588693907ad7b02a7b9daf (patch) | |
tree | 147d46d2e51de49de65f06a1f848f95f10de66e0 | |
parent | c20cc9bb1f43c44485f37cbb64e4857c3b678d55 (diff) | |
download | irssi-59e32a18c9fb50058e588693907ad7b02a7b9daf.zip |
Don't use -lnsl or -lsocket if it's not needed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2323 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | configure.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 44f28e2d..1282e2fd 100644 --- a/configure.in +++ b/configure.in @@ -213,9 +213,6 @@ case "$host_os" in hpux*) CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" ;; - irix*) - skip_extralibs=true - ;; *) ;; esac @@ -223,15 +220,17 @@ esac AC_CHECK_FUNCS(mkfifo fcntl) -if test "x$skip_extralibs" != "xtrue"; then +AC_CHECK_FUNC(socket, [], [ AC_CHECK_LIB(socket, socket, [ LIBS="$LIBS -lsocket" ]) +]) +AC_CHECK_FUNC(inet_addr, [], [ AC_CHECK_LIB(nsl, inet_addr, [ LIBS="$LIBS -lnsl" ], -lsocket) -fi +]) dnl * gcc specific options if test "x$ac_cv_prog_gcc" = "xyes"; then |