source: trunk/third/bonobo/macros/linger.m4 @ 16750

Revision 16750, 426 bytes checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16749, which included commits to RCS files with non-trunk default branches.
Line 
1dnl
2dnl Check for struct linger
3dnl
4AC_DEFUN([AC_STRUCT_LINGER], [
5av_struct_linger=no
6AC_MSG_CHECKING(struct linger is available)
7AC_TRY_RUN([
8#include <sys/types.h>
9#include <sys/socket.h>
10
11struct linger li;
12
13int main ()
14{
15    li.l_onoff = 1;
16    li.l_linger = 120;
17    return 0;
18}
19],[
20AC_DEFINE(HAVE_STRUCT_LINGER)
21av_struct_linger=yes
22],[
23av_struct_linger=no
24],[
25av_struct_linger=no
26])
27AC_MSG_RESULT($av_struct_linger)
28])
Note: See TracBrowser for help on using the repository browser.