1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

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
This commit is contained in:
Timo Sirainen 2002-01-19 23:36:11 +00:00 committed by cras
parent c20cc9bb1f
commit 59e32a18c9

View File

@ -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