mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02: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
1 changed files with 21 additions and 15 deletions
36
configure.in
36
configure.in
|
|
@ -208,30 +208,36 @@ dnl **
|
||||||
dnl ** just some generic stuff...
|
dnl ** just some generic stuff...
|
||||||
dnl **
|
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
|
dnl * OS specific options
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
hpux*)
|
hpux*)
|
||||||
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
||||||
;;
|
;;
|
||||||
|
irix*)
|
||||||
|
skip_extralibs=true
|
||||||
|
CFLAGS=""
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
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 * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would
|
||||||
dnl * accept header files where to find the typedef..
|
dnl * accept header files where to find the typedef..
|
||||||
AC_MSG_CHECKING([for socklen_t])
|
AC_MSG_CHECKING([for socklen_t])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue