bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Buildability of talk and talkd.


From: Mats Erik Andersson
Subject: [bug-inetutils] Buildability of talk and talkd.
Date: Tue, 22 Nov 2011 01:55:45 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Dear all,

I have observer that recent Solaris versions are lacking <protocols/talkd.h>,
thus "talk" and "talkd" are not buildable there. Efter several experiments
the following alteration to "configure.ac" came up for automatic disabling
of said software. Is this alteration good enough that it might get pushed?
My ability to write autotools code is still very much in doubt, so I need
your blessing before proceeding any further. It was the absolute positioning
of the inserts that made several runs necessary!

The patch has been tested on OpenIndiana, OpenBSD, and GNU/kFreeBSD with
the intended outcome.


Best regards,
  Mats


diff --git a/configure.ac b/configure.ac
index b0259e5..5ebe9fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -190,6 +190,21 @@ fi
 AC_SUBST(LIBLS)
 AC_SUBST(libls_BUILD)
 
+dnl At least OpenSolaris is missing <protocols/talkd.h>.
+AC_CHECK_HEADER(protocols/talkd.h, , ,
+  [IU_FLUSHLEFT([#ifdef HAVE_SYS_TYPES_H
+                # include <sys/types.h>
+                #endif
+                #include <sys/socket.h>])])
+
+if test "$ac_cv_header_protocols_talkd_h" = no; then
+  AC_MSG_WARN([protocols/talkd.h is not available, not building talk, nor 
talkd])
+  enable_talk=no
+  talk_BUILD=''
+  enable_talkd=no
+  talkd_BUILD=''
+fi
+
 # Only talk uses curses, so only check for it if we want that
 if test "$enable_talk" != no; then
   IU_LIB_CURSES



reply via email to

[Prev in Thread] Current Thread [Next in Thread]