diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-libc.m4 | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index 0b7ffb0..b1b5ef4 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -148,88 +148,3 @@ if test "x$ac_cv_have___va_copy" = "xyes" ; then | |||
148 | AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists]) | 148 | AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists]) |
149 | fi | 149 | fi |
150 | ]) | 150 | ]) |
151 | |||
152 | AC_DEFUN([GENERATE_CRYPTO_PORTABLE_SYM], [ | ||
153 | AS_CASE([$host_cpu], | ||
154 | [i?86], [HOSTARCH=intel], | ||
155 | [x86_64], [HOSTARCH=intel], | ||
156 | [amd64], [HOSTARCH=intel], | ||
157 | ) | ||
158 | AC_SUBST([HOSTARCH]) | ||
159 | crypto_sym=$srcdir/crypto/crypto.sym | ||
160 | crypto_p_sym=./crypto/crypto_portable.sym | ||
161 | echo "generating $crypto_p_sym ..." | ||
162 | mkdir -p ./crypto | ||
163 | cp $crypto_sym $crypto_p_sym | ||
164 | chmod u+w $crypto_p_sym | ||
165 | if test "x$ac_cv_func_arc4random_buf" = "xno" ; then | ||
166 | echo arc4random >> $crypto_p_sym | ||
167 | echo arc4random_buf >> $crypto_p_sym | ||
168 | echo arc4random_uniform >> $crypto_p_sym | ||
169 | if test "x$ac_cv_func_getentropy" = "xno" ; then | ||
170 | echo getentropy >> $crypto_p_sym | ||
171 | fi | ||
172 | fi | ||
173 | if test "x$ac_cv_func_asprintf" = "xno" ; then | ||
174 | echo asprintf >> $crypto_p_sym | ||
175 | echo vasprintf >> $crypto_p_sym | ||
176 | fi | ||
177 | if test "x$ac_cv_func_explicit_bzero" = "xno" ; then | ||
178 | echo explicit_bzero >> $crypto_p_sym | ||
179 | fi | ||
180 | if test "x$ac_cv_func_freezero" = "xno" ; then | ||
181 | echo freezero >> $crypto_p_sym | ||
182 | fi | ||
183 | if test "x$ac_cv_func_inet_pton" = "xno" ; then | ||
184 | echo inet_pton >> $crypto_p_sym | ||
185 | fi | ||
186 | if test "x$ac_cv_func_reallocarray" = "xno" ; then | ||
187 | echo reallocarray >> $crypto_p_sym | ||
188 | fi | ||
189 | if test "x$ac_cv_func_recallocarray" = "xno" ; then | ||
190 | echo recallocarray >> $crypto_p_sym | ||
191 | fi | ||
192 | if test "x$ac_cv_func_strlcat" = "xno" ; then | ||
193 | echo strlcat >> $crypto_p_sym | ||
194 | fi | ||
195 | if test "x$ac_cv_func_strlcpy" = "xno" ; then | ||
196 | echo strlcpy >> $crypto_p_sym | ||
197 | fi | ||
198 | if test "x$ac_cv_func_strndup" = "xno" ; then | ||
199 | echo strndup >> $crypto_p_sym | ||
200 | fi | ||
201 | if test "x$ac_cv_func_strnlen" = "xno" ; then | ||
202 | echo strnlen >> $crypto_p_sym | ||
203 | fi | ||
204 | if test "x$ac_cv_func_strsep" = "xno" ; then | ||
205 | echo strsep >> $crypto_p_sym | ||
206 | fi | ||
207 | if test "x$ac_cv_func_timegm" = "xno" ; then | ||
208 | echo timegm >> $crypto_p_sym | ||
209 | fi | ||
210 | if test "x$ac_cv_func_timingsafe_bcmp" = "xno" ; then | ||
211 | echo timingsafe_bcmp >> $crypto_p_sym | ||
212 | fi | ||
213 | if test "x$ac_cv_func_timingsafe_memcmp" = "xno" ; then | ||
214 | echo timingsafe_memcmp >> $crypto_p_sym | ||
215 | fi | ||
216 | if test "x$HOSTARCH" = "xintel" ; then | ||
217 | echo OPENSSL_ia32cap_P >> $crypto_p_sym | ||
218 | fi | ||
219 | if test "x$HOST_OS" = "xwin" ; then | ||
220 | echo posix_perror >> $crypto_p_sym | ||
221 | echo posix_fopen >> $crypto_p_sym | ||
222 | echo posix_fgets >> $crypto_p_sym | ||
223 | echo posix_open >> $crypto_p_sym | ||
224 | echo posix_rename >> $crypto_p_sym | ||
225 | echo posix_connect >> $crypto_p_sym | ||
226 | echo posix_close >> $crypto_p_sym | ||
227 | echo posix_read >> $crypto_p_sym | ||
228 | echo posix_write >> $crypto_p_sym | ||
229 | echo posix_getsockopt >> $crypto_p_sym | ||
230 | echo posix_setsockopt >> $crypto_p_sym | ||
231 | |||
232 | grep -v BIO_s_log $crypto_p_sym > $crypto_p_sym.tmp | ||
233 | mv $crypto_p_sym.tmp $crypto_p_sym | ||
234 | fi | ||
235 | ]) | ||