File: linger.m4

package info (click to toggle)
mathwar 0.1.1-2.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,304 kB
  • ctags: 484
  • sloc: sh: 8,816; ansic: 4,614; makefile: 320; sed: 93
file content (28 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (222)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 <sys/types.h>
#include <sys/socket.h>

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)
])