Pullup ticket #3336 - requested by gls
[pkgsrcv2.git] / comms / asterisk18 / patches / patch-aq
1 $NetBSD$
2
3 --- configure.orig      2011-01-12 16:52:31.000000000 +0000
4 +++ configure
5 @@ -22973,6 +22973,146 @@ fi
6  
7  
8  
9 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
10 +  { echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
11 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
12 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
13 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14 +fi
15 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
16 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
17 +else
18 +  # Is the header compilable?
19 +{ echo "$as_me:$LINENO: checking sys/atomic.h usability" >&5
20 +echo $ECHO_N "checking sys/atomic.h usability... $ECHO_C" >&6; }
21 +cat >conftest.$ac_ext <<_ACEOF
22 +/* confdefs.h.  */
23 +_ACEOF
24 +cat confdefs.h >>conftest.$ac_ext
25 +cat >>conftest.$ac_ext <<_ACEOF
26 +/* end confdefs.h.  */
27 +$ac_includes_default
28 +#include <sys/atomic.h>
29 +_ACEOF
30 +rm -f conftest.$ac_objext
31 +if { (ac_try="$ac_compile"
32 +case "(($ac_try" in
33 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34 +  *) ac_try_echo=$ac_try;;
35 +esac
36 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37 +  (eval "$ac_compile") 2>conftest.er1
38 +  ac_status=$?
39 +  grep -v '^ *+' conftest.er1 >conftest.err
40 +  rm -f conftest.er1
41 +  cat conftest.err >&5
42 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43 +  (exit $ac_status); } && {
44 +        test -z "$ac_c_werror_flag" ||
45 +        test ! -s conftest.err
46 +       } && test -s conftest.$ac_objext; then
47 +  ac_header_compiler=yes
48 +else
49 +  echo "$as_me: failed program was:" >&5
50 +sed 's/^/| /' conftest.$ac_ext >&5
51 +
52 +       ac_header_compiler=no
53 +fi
54 +
55 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57 +echo "${ECHO_T}$ac_header_compiler" >&6; }
58 +
59 +# Is the header present?
60 +{ echo "$as_me:$LINENO: checking sys/atomic.h presence" >&5
61 +echo $ECHO_N "checking sys/atomic.h presence... $ECHO_C" >&6; }
62 +cat >conftest.$ac_ext <<_ACEOF
63 +/* confdefs.h.  */
64 +_ACEOF
65 +cat confdefs.h >>conftest.$ac_ext
66 +cat >>conftest.$ac_ext <<_ACEOF
67 +/* end confdefs.h.  */
68 +#include <sys/atomic.h>
69 +_ACEOF
70 +if { (ac_try="$ac_cpp conftest.$ac_ext"
71 +case "(($ac_try" in
72 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73 +  *) ac_try_echo=$ac_try;;
74 +esac
75 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
76 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
77 +  ac_status=$?
78 +  grep -v '^ *+' conftest.er1 >conftest.err
79 +  rm -f conftest.er1
80 +  cat conftest.err >&5
81 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
82 +  (exit $ac_status); } >/dev/null && {
83 +        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
84 +        test ! -s conftest.err
85 +       }; then
86 +  ac_header_preproc=yes
87 +else
88 +  echo "$as_me: failed program was:" >&5
89 +sed 's/^/| /' conftest.$ac_ext >&5
90 +
91 +  ac_header_preproc=no
92 +fi
93 +
94 +rm -f conftest.err conftest.$ac_ext
95 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
96 +echo "${ECHO_T}$ac_header_preproc" >&6; }
97 +
98 +# So?  What about this header?
99 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
100 +  yes:no: )
101 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
102 +echo "$as_me: WARNING: sys/atomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
103 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the compiler's result" >&5
104 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the compiler's result" >&2;}
105 +    ac_header_preproc=yes
106 +    ;;
107 +  no:yes:* )
108 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: present but cannot be compiled" >&5
109 +echo "$as_me: WARNING: sys/atomic.h: present but cannot be compiled" >&2;}
110 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h:     check for missing prerequisite headers?" >&5
111 +echo "$as_me: WARNING: sys/atomic.h:     check for missing prerequisite headers?" >&2;}
112 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: see the Autoconf documentation" >&5
113 +echo "$as_me: WARNING: sys/atomic.h: see the Autoconf documentation" >&2;}
114 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h:     section \"Present But Cannot Be Compiled\"" >&5
115 +echo "$as_me: WARNING: sys/atomic.h:     section \"Present But Cannot Be Compiled\"" >&2;}
116 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&5
117 +echo "$as_me: WARNING: sys/atomic.h: proceeding with the preprocessor's result" >&2;}
118 +    { echo "$as_me:$LINENO: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&5
119 +echo "$as_me: WARNING: sys/atomic.h: in the future, the compiler will take precedence" >&2;}
120 +    ( cat <<\_ASBOX
121 +## ------------------------------------------ ##
122 +## Report this to https://issues.asterisk.org ##
123 +## ------------------------------------------ ##
124 +_ASBOX
125 +     ) | sed "s/^/$as_me: WARNING:     /" >&2
126 +    ;;
127 +esac
128 +{ echo "$as_me:$LINENO: checking for sys/atomic.h" >&5
129 +echo $ECHO_N "checking for sys/atomic.h... $ECHO_C" >&6; }
130 +if test "${ac_cv_header_sys_atomic_h+set}" = set; then
131 +  echo $ECHO_N "(cached) $ECHO_C" >&6
132 +else
133 +  ac_cv_header_sys_atomic_h=$ac_header_preproc
134 +fi
135 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_atomic_h" >&5
136 +echo "${ECHO_T}$ac_cv_header_sys_atomic_h" >&6; }
137 +
138 +fi
139 +if test $ac_cv_header_sys_atomic_h = yes; then
140 +
141 +cat >>confdefs.h <<_ACEOF
142 +#define HAVE_OS_ATOMIC_H 1
143 +_ACEOF
144 +
145 +fi
146 +
147 +
148 +
149  { echo "$as_me:$LINENO: checking for int" >&5
150  echo $ECHO_N "checking for int... $ECHO_C" >&6; }
151  if test "${ac_cv_type_int+set}" = set; then
152 @@ -27494,6 +27634,8 @@ _ACEOF
153  cat confdefs.h >>conftest.$ac_ext
154  cat >>conftest.$ac_ext <<_ACEOF
155  /* end confdefs.h.  */
156 +#include <sys/types.h>
157 +#include <sys/socket.h>
158  #include <ifaddrs.h>
159  int
160  main ()