]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/snort/0002-configure.in-Allow-to-override-the-INADDR_NONE-check.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / snort / 0002-configure.in-Allow-to-override-the-INADDR_NONE-check.patch
1 From a6817677a42d1294f1a3ce7b9f46b10ec557ddfa Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@smile.fr>
3 Date: Sun, 1 Apr 2018 15:23:59 +0200
4 Subject: [PATCH] configure.in: Allow to override the INADDR_NONE check
5
6 Prevent configure script from trying to run programs in a cross
7 compilation environment to check if INADDR_NONE is defined.
8
9 In the context of Buildroot, INADDR_NONE is always defined.
10 The snort package will set have_inaddr_none=yes in
11 SNORT_CONF_ENV.
12
13 Signed-off-by: Romain Naour <romain.naour@smile.fr>
14 Cc: Sergio Prado <sergio.prado@e-labworks.com>
15 ---
16  configure.in | 4 ++--
17  1 file changed, 2 insertions(+), 2 deletions(-)
18
19 diff --git a/configure.in b/configure.in
20 index 1e940b1..938409f 100644
21 --- a/configure.in
22 +++ b/configure.in
23 @@ -284,8 +284,8 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,int64_t])
24  AC_CHECK_TYPES([boolean])
25  
26  # In case INADDR_NONE is not defined (like on Solaris)
27 +AC_CACHE_CHECK([for INADDR_NONE], [have_inaddr_none], [
28  have_inaddr_none="no"
29 -AC_MSG_CHECKING([for INADDR_NONE])
30  AC_RUN_IFELSE(
31  [AC_LANG_PROGRAM(
32  [[
33 @@ -298,7 +298,7 @@ AC_RUN_IFELSE(
34      return 0;
35  ]])],
36  [have_inaddr_none="yes"],
37 -[have_inaddr_none="no"])
38 +[have_inaddr_none="no"])])
39  AC_MSG_RESULT($have_inaddr_none)
40  if test "x$have_inaddr_none" = "xno"; then
41         AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
42 -- 
43 2.14.3
44