~ubuntu-branches/debian/jessie/gpaint/jessie

« back to all changes in this revision

Viewing changes to macros/linger.m4

  • Committer: Bazaar Package Importer
  • Author(s): Goedson Teixeira Paixao
  • Date: 2002-03-17 12:27:19 UTC
  • Revision ID: james.westby@ubuntu.com-20020317122719-a6mowwhvvtbmcxow
Tags: upstream-0.2.2
ImportĀ upstreamĀ versionĀ 0.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl Check for struct linger
 
3
dnl
 
4
AC_DEFUN(AC_STRUCT_LINGER, [
 
5
av_struct_linger=no
 
6
AC_MSG_CHECKING(struct linger is available)
 
7
AC_TRY_RUN([
 
8
#include <sys/types.h>
 
9
#include <sys/socket.h>
 
10
 
 
11
struct linger li;
 
12
 
 
13
main ()
 
14
{
 
15
    li.l_onoff = 1;
 
16
    li.l_linger = 120;
 
17
    exit (0);
 
18
}
 
19
],[
 
20
AC_DEFINE(HAVE_STRUCT_LINGER)
 
21
av_struct_linger=yes
 
22
],[
 
23
av_struct_linger=no
 
24
],[
 
25
av_struct_linger=no
 
26
])
 
27
AC_MSG_RESULT($av_struct_linger)
 
28
])