[package] ipv6: add tayga
[packages.git] / net / bind / patches / 100-cross_compile.patch
1 --- a/configure
2 +++ b/configure
3 @@ -22418,8 +22418,7 @@ $as_echo_n "checking epoll support... "
4    { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5  See \`config.log' for more details." >&5
6  $as_echo "$as_me: error: cannot run test program while cross compiling
7 -See \`config.log' for more details." >&2;}
8 -   { (exit 1); exit 1; }; }
9 +See \`config.log' for more details." >&2;} }
10  else
11    cat >conftest.$ac_ext <<_ACEOF
12  /* confdefs.h.  */
13 @@ -24275,8 +24274,7 @@ if { as_var=$as_ac_File; eval "test \"\$
14  else
15    test "$cross_compiling" = yes &&
16    { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
17 -$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
18 -   { (exit 1); exit 1; }; }
19 +$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} }
20  if test -r "$devrandom"; then
21    eval "$as_ac_File=yes"
22  else
23 @@ -27949,73 +27947,6 @@ rm -f core conftest.err conftest.$ac_obj
24  # which provides some (all?) of the desired functions.
25  #
26  
27 -{ $as_echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
28 -$as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
29 -if test "$cross_compiling" = yes; then
30 -  { $as_echo "$as_me:$LINENO: result: assuming inet_ntop needed" >&5
31 -$as_echo "assuming inet_ntop needed" >&6; }
32 -       ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
33 -       ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
34 -       ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
35 -else
36 -  cat >conftest.$ac_ext <<_ACEOF
37 -/* confdefs.h.  */
38 -_ACEOF
39 -cat confdefs.h >>conftest.$ac_ext
40 -cat >>conftest.$ac_ext <<_ACEOF
41 -/* end confdefs.h.  */
42 -
43 -#include <sys/types.h>
44 -#include <sys/socket.h>
45 -#include <netinet/in.h>
46 -#include <arpa/inet.h>
47 -main() {
48 -char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
49 -_ACEOF
50 -rm -f conftest$ac_exeext
51 -if { (ac_try="$ac_link"
52 -case "(($ac_try" in
53 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54 -  *) ac_try_echo=$ac_try;;
55 -esac
56 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57 -$as_echo "$ac_try_echo") >&5
58 -  (eval "$ac_link") 2>&5
59 -  ac_status=$?
60 -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61 -  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62 -  { (case "(($ac_try" in
63 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64 -  *) ac_try_echo=$ac_try;;
65 -esac
66 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67 -$as_echo "$ac_try_echo") >&5
68 -  (eval "$ac_try") 2>&5
69 -  ac_status=$?
70 -  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71 -  (exit $ac_status); }; }; then
72 -  { $as_echo "$as_me:$LINENO: result: yes" >&5
73 -$as_echo "yes" >&6; }
74 -       ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
75 -else
76 -  $as_echo "$as_me: program exited with status $ac_status" >&5
77 -$as_echo "$as_me: failed program was:" >&5
78 -sed 's/^/| /' conftest.$ac_ext >&5
79 -
80 -( exit $ac_status )
81 -{ $as_echo "$as_me:$LINENO: result: no" >&5
82 -$as_echo "no" >&6; }
83 -       ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
84 -       ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
85 -       ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
86 -fi
87 -rm -rf conftest.dSYM
88 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
89 -fi
90 -
91 -
92 -
93 -
94  # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
95  # addresses with less than four octets, like "1.2.3".  Also leading
96  # zeros should also be rejected.