@@ -9132,14 +9132,12 @@ $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9132
9132
fi
9133
9133
9134
9134
else
9135
-
9136
- { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9137
- $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9138
- if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9135
+ { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9136
+ $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9137
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9139
9138
$as_echo_n "(cached) " >&6
9140
9139
else
9141
- ac_check_lib_save_LIBS=$LIBS
9142
- LIBS="-leay32 $LIBS"
9140
+ ac_func_search_save_LIBS=$LIBS
9143
9141
cat >conftest.$ac_ext <<_ACEOF
9144
9142
/* confdefs.h. */
9145
9143
_ACEOF
@@ -9162,7 +9160,14 @@ return CRYPTO_new_ex_data ();
9162
9160
return 0;
9163
9161
}
9164
9162
_ACEOF
9165
- rm -f conftest.$ac_objext conftest$ac_exeext
9163
+ for ac_lib in '' eay32 crypto; do
9164
+ if test -z "$ac_lib"; then
9165
+ ac_res="none required"
9166
+ else
9167
+ ac_res=-l$ac_lib
9168
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9169
+ fi
9170
+ rm -f conftest.$ac_objext conftest$ac_exeext
9166
9171
if { (ac_try="$ac_link"
9167
9172
case "(($ac_try" in
9168
9173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9183,42 +9188,47 @@ $as_echo "$ac_try_echo") >&5
9183
9188
test "$cross_compiling" = yes ||
9184
9189
$as_test_x conftest$ac_exeext
9185
9190
}; then
9186
- ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9191
+ ac_cv_search_CRYPTO_new_ex_data=$ac_res
9187
9192
else
9188
9193
$as_echo "$as_me: failed program was:" >&5
9189
9194
sed 's/^/| /' conftest.$ac_ext >&5
9190
9195
9191
- ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9196
+
9192
9197
fi
9193
9198
9194
9199
rm -rf conftest.dSYM
9195
9200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9196
- conftest$ac_exeext conftest.$ac_ext
9197
- LIBS=$ac_check_lib_save_LIBS
9201
+ conftest$ac_exeext
9202
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9203
+ break
9198
9204
fi
9199
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9200
- $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9201
- if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9202
- cat >>confdefs.h <<_ACEOF
9203
- #define HAVE_LIBEAY32 1
9204
- _ACEOF
9205
-
9206
- LIBS="-leay32 $LIBS"
9205
+ done
9206
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9207
+ :
9208
+ else
9209
+ ac_cv_search_CRYPTO_new_ex_data=no
9210
+ fi
9211
+ rm conftest.$ac_ext
9212
+ LIBS=$ac_func_search_save_LIBS
9213
+ fi
9214
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9215
+ $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9216
+ ac_res=$ac_cv_search_CRYPTO_new_ex_data
9217
+ if test "$ac_res" != no; then
9218
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207
9219
9208
9220
else
9209
- { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9210
- $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9221
+ { { $as_echo "$as_me:$LINENO: error: library 'eay32'or 'crypto' is required for OpenSSL" >&5
9222
+ $as_echo "$as_me: error: library 'eay32'or 'crypto' is required for OpenSSL" >&2;}
9211
9223
{ (exit 1); exit 1; }; }
9212
9224
fi
9213
9225
9214
-
9215
- { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9216
- $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9217
- if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9226
+ { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9227
+ $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9228
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9218
9229
$as_echo_n "(cached) " >&6
9219
9230
else
9220
- ac_check_lib_save_LIBS=$LIBS
9221
- LIBS="-lssleay32 $LIBS"
9231
+ ac_func_search_save_LIBS=$LIBS
9222
9232
cat >conftest.$ac_ext <<_ACEOF
9223
9233
/* confdefs.h. */
9224
9234
_ACEOF
@@ -9241,7 +9251,14 @@ return SSL_library_init ();
9241
9251
return 0;
9242
9252
}
9243
9253
_ACEOF
9244
- rm -f conftest.$ac_objext conftest$ac_exeext
9254
+ for ac_lib in '' ssleay32 ssl; do
9255
+ if test -z "$ac_lib"; then
9256
+ ac_res="none required"
9257
+ else
9258
+ ac_res=-l$ac_lib
9259
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9260
+ fi
9261
+ rm -f conftest.$ac_objext conftest$ac_exeext
9245
9262
if { (ac_try="$ac_link"
9246
9263
case "(($ac_try" in
9247
9264
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9262,31 +9279,38 @@ $as_echo "$ac_try_echo") >&5
9262
9279
test "$cross_compiling" = yes ||
9263
9280
$as_test_x conftest$ac_exeext
9264
9281
}; then
9265
- ac_cv_lib_ssleay32_SSL_library_init=yes
9282
+ ac_cv_search_SSL_library_init=$ac_res
9266
9283
else
9267
9284
$as_echo "$as_me: failed program was:" >&5
9268
9285
sed 's/^/| /' conftest.$ac_ext >&5
9269
9286
9270
- ac_cv_lib_ssleay32_SSL_library_init=no
9287
+
9271
9288
fi
9272
9289
9273
9290
rm -rf conftest.dSYM
9274
9291
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9275
- conftest$ac_exeext conftest.$ac_ext
9276
- LIBS=$ac_check_lib_save_LIBS
9292
+ conftest$ac_exeext
9293
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9294
+ break
9277
9295
fi
9278
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9279
- $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9280
- if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9281
- cat >>confdefs.h <<_ACEOF
9282
- #define HAVE_LIBSSLEAY32 1
9283
- _ACEOF
9284
-
9285
- LIBS="-lssleay32 $LIBS"
9296
+ done
9297
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9298
+ :
9299
+ else
9300
+ ac_cv_search_SSL_library_init=no
9301
+ fi
9302
+ rm conftest.$ac_ext
9303
+ LIBS=$ac_func_search_save_LIBS
9304
+ fi
9305
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9306
+ $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9307
+ ac_res=$ac_cv_search_SSL_library_init
9308
+ if test "$ac_res" != no; then
9309
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9286
9310
9287
9311
else
9288
- { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9289
- $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9312
+ { { $as_echo "$as_me:$LINENO: error: library 'ssleay32'or 'ssl' is required for OpenSSL" >&5
9313
+ $as_echo "$as_me: error: library 'ssleay32'or 'ssl' is required for OpenSSL" >&2;}
9290
9314
{ (exit 1); exit 1; }; }
9291
9315
fi
9292
9316