From bacc22d5baa422d1264ee851d009a6846cb51693 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 14 Jan 2002 13:30:21 +0000 Subject: [PATCH] Don't use -lnsl or -lsocket with irix. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2315 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/configure.in b/configure.in index 792e6221..f4cede40 100644 --- a/configure.in +++ b/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])