File: acinclude.m4

package info (click to toggle)
httptunnel 3.3%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 924 kB
  • ctags: 457
  • sloc: ansic: 4,707; sh: 330; makefile: 26
file content (41 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
dnl HTTPTUNNEL_TYPE_SOCKLEN_T
dnl Check for the existance of type socklen_t.

AC_DEFUN([HTTPTUNNEL_TYPE_SOCKLEN_T],
[AC_CACHE_CHECK([for socklen_t], ac_cv_httptunnel_type_socklen_t,
[
  AC_TRY_COMPILE(
  [#include <sys/types.h>
   #include <sys/socket.h>],
  [socklen_t len = 42; return 0;],
  ac_cv_httptunnel_type_socklen_t=yes,
  ac_cv_httptunnel_type_socklen_t=no)
])
  if test $ac_cv_httptunnel_type_socklen_t != yes; then
    AC_DEFINE(socklen_t, int,
	[Define to 'int' if <sys/socket.h> doesn't define.])
  fi
])


dnl HTTPTUNNEL_DEFINE_INADDR_NONE
dnl Check for the existance of define INADDR_NONE

AC_DEFUN([HTTPTUNNEL_DEFINE_INADDR_NONE],
[AC_CACHE_CHECK([whether INADDR_NONE is defined], ac_cv_httptunnel_define_inaddr_none,
[
  AC_TRY_COMPILE(
  [#include <sys/types.h>
   #include <netinet/in.h>],
  [return INADDR_NONE;],
  ac_cv_httptunnel_define_inaddr_none=yes,
  ac_cv_httptunnel_define_inaddr_none=no)
])
  if test $ac_cv_httptunnel_define_inaddr_none != yes; then
    AC_DEFINE(INADDR_NONE, 0xffffffff)
  fi
])

AH_BOTTOM([/* Define to 0xffffffff if <netinet/in.h> doesn't define. */
#undef INADDR_NONE])