Files
evolution/macros/linger.m4
Pavel Roskin 98c843107b Always explicitly declare main() with the return type `int'. Don't use
* gnome-fileutils.m4: Always explicitly declare main() with the
return type `int'. Don't use exit() since it may be undeclared.
Use `return' instead.
* gnome-pilot.m4: Likewise.
* gperf-check.m4: Likewise.
* linger.m4: Likewise.

svn path=/trunk/; revision=10209
2001-06-13 19:17:16 +00:00

29 lines
426 B
Plaintext

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;
int main ()
{
li.l_onoff = 1;
li.l_linger = 120;
return 0;
}
],[
AC_DEFINE(HAVE_STRUCT_LINGER)
av_struct_linger=yes
],[
av_struct_linger=no
],[
av_struct_linger=no
])
AC_MSG_RESULT($av_struct_linger)
])