From 25faacf1396a1221114733e7a12c89d502c7212d Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Sun, 13 Feb 2000 11:05:13 +0000 Subject: I am sure that kabalak didn't mean to remove gnome-common/macros :) svn path=/trunk/; revision=1747 --- macros/linger.m4 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 macros/linger.m4 (limited to 'macros/linger.m4') diff --git a/macros/linger.m4 b/macros/linger.m4 new file mode 100644 index 0000000000..dfa7c8aea0 --- /dev/null +++ b/macros/linger.m4 @@ -0,0 +1,28 @@ +dnl +dnl Check for struct linger +dnl +AC_DEFUN(AC_STRUCT_LINGER, [ +av_struct_linger=no +AC_MSG_CHECKING(struct linger is available) +AC_TRY_RUN([ +#include +#include + +struct linger li; + +main () +{ + li.l_onoff = 1; + li.l_linger = 120; + exit (0); +} +],[ +AC_DEFINE(HAVE_STRUCT_LINGER) +av_struct_linger=yes +],[ +av_struct_linger=no +],[ +av_struct_linger=no +]) +AC_MSG_RESULT($av_struct_linger) +]) -- cgit v1.2.3