mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Don't use -lnsl or -lsocket with irix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2315 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
dff49792ed
commit
bacc22d5ba
36
configure.in
36
configure.in
@ -208,30 +208,36 @@ dnl **
|
||||
dnl ** just some generic stuff...
|
||||
dnl **
|
||||
|
||||
AC_CHECK_FUNCS(mkfifo fcntl)
|
||||
|
||||
AC_CHECK_LIB(socket, socket, [
|
||||
LIBS="$LIBS -lsocket"
|
||||
])
|
||||
|
||||
AC_CHECK_LIB(nsl, inet_addr, [
|
||||
LIBS="$LIBS -lnsl"
|
||||
], -lsocket)
|
||||
|
||||
dnl * gcc specific options
|
||||
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
|
||||
dnl * OS specific options
|
||||
case "$host_os" in
|
||||
hpux*)
|
||||
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
||||
;;
|
||||
irix*)
|
||||
skip_extralibs=true
|
||||
CFLAGS=""
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
AC_CHECK_FUNCS(mkfifo fcntl)
|
||||
|
||||
if test "x$skip_extralibs" != "xtrue"; then
|
||||
AC_CHECK_LIB(socket, socket, [
|
||||
LIBS="$LIBS -lsocket"
|
||||
])
|
||||
|
||||
AC_CHECK_LIB(nsl, inet_addr, [
|
||||
LIBS="$LIBS -lnsl"
|
||||
], -lsocket)
|
||||
fi
|
||||
|
||||
dnl * gcc specific options
|
||||
if test "x$ac_cv_prog_gcc" = "xyes"; then
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
|
||||
dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
|
||||
dnl * accept header files where to find the typedef..
|
||||
AC_MSG_CHECKING([for socklen_t])
|
||||
|
Loading…
Reference in New Issue
Block a user