Changeset 4009
- Timestamp:
- 04/01/06 01:40:31 (3 years ago)
- Files:
-
- wired/trunk/configure (modified) (12 diffs)
- wired/trunk/configure.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/configure
r3849 r4009 3252 3252 else 3253 3253 3254 echo "$as_me:$LINENO: checking for mainin -lm" >&53255 echo $ECHO_N "checking for mainin -lm... $ECHO_C" >&63256 if test "${ac_cv_lib_m_ main+set}" = set; then3254 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 3255 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 3256 if test "${ac_cv_lib_m_sqrt+set}" = set; then 3257 3257 echo $ECHO_N "(cached) $ECHO_C" >&6 3258 3258 else … … 3266 3266 /* end confdefs.h. */ 3267 3267 3268 3268 /* Override any gcc2 internal prototype to avoid an error. */ 3269 #ifdef __cplusplus 3270 extern "C" 3271 #endif 3272 /* We use char because int might match the return type of a gcc2 3273 builtin and then its argument prototype would still apply. */ 3274 char sqrt (); 3269 3275 int 3270 3276 main () 3271 3277 { 3272 main();3278 sqrt (); 3273 3279 ; 3274 3280 return 0; … … 3297 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 3304 (exit $ac_status); }; }; then 3299 ac_cv_lib_m_ main=yes3305 ac_cv_lib_m_sqrt=yes 3300 3306 else 3301 3307 echo "$as_me: failed program was:" >&5 3302 3308 sed 's/^/| /' conftest.$ac_ext >&5 3303 3309 3304 ac_cv_lib_m_ main=no3310 ac_cv_lib_m_sqrt=no 3305 3311 fi 3306 3312 rm -f conftest.err conftest.$ac_objext \ … … 3308 3314 LIBS=$ac_check_lib_save_LIBS 3309 3315 fi 3310 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ main" >&53311 echo "${ECHO_T}$ac_cv_lib_m_ main" >&63312 if test $ac_cv_lib_m_ main= yes; then3316 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 3317 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 3318 if test $ac_cv_lib_m_sqrt = yes; then 3313 3319 3314 3320 LIBS="$LIBS -lm" … … 4466 4472 _ACEOF 4467 4473 4468 echo "$as_me:$LINENO: checking for mainin -lcrypto" >&54469 echo $ECHO_N "checking for mainin -lcrypto... $ECHO_C" >&64470 if test "${ac_cv_lib_crypto_ main+set}" = set; then4474 echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 4475 echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6 4476 if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then 4471 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4472 4478 else … … 4480 4486 /* end confdefs.h. */ 4481 4487 4482 4488 /* Override any gcc2 internal prototype to avoid an error. */ 4489 #ifdef __cplusplus 4490 extern "C" 4491 #endif 4492 /* We use char because int might match the return type of a gcc2 4493 builtin and then its argument prototype would still apply. */ 4494 char MD5_Init (); 4483 4495 int 4484 4496 main () 4485 4497 { 4486 main();4498 MD5_Init (); 4487 4499 ; 4488 4500 return 0; … … 4511 4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 4524 (exit $ac_status); }; }; then 4513 ac_cv_lib_crypto_ main=yes4525 ac_cv_lib_crypto_MD5_Init=yes 4514 4526 else 4515 4527 echo "$as_me: failed program was:" >&5 4516 4528 sed 's/^/| /' conftest.$ac_ext >&5 4517 4529 4518 ac_cv_lib_crypto_ main=no4530 ac_cv_lib_crypto_MD5_Init=no 4519 4531 fi 4520 4532 rm -f conftest.err conftest.$ac_objext \ … … 4522 4534 LIBS=$ac_check_lib_save_LIBS 4523 4535 fi 4524 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ main" >&54525 echo "${ECHO_T}$ac_cv_lib_crypto_ main" >&64526 if test $ac_cv_lib_crypto_ main= yes; then4536 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Init" >&5 4537 echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Init" >&6 4538 if test $ac_cv_lib_crypto_MD5_Init = yes; then 4527 4539 4528 4540 LIBS="$LIBS -lcrypto" … … 4716 4728 _ACEOF 4717 4729 4718 echo "$as_me:$LINENO: checking for mainin -lssl" >&54719 echo $ECHO_N "checking for mainin -lssl... $ECHO_C" >&64720 if test "${ac_cv_lib_ssl_ main+set}" = set; then4730 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 4731 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 4732 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 4721 4733 echo $ECHO_N "(cached) $ECHO_C" >&6 4722 4734 else … … 4730 4742 /* end confdefs.h. */ 4731 4743 4732 4744 /* Override any gcc2 internal prototype to avoid an error. */ 4745 #ifdef __cplusplus 4746 extern "C" 4747 #endif 4748 /* We use char because int might match the return type of a gcc2 4749 builtin and then its argument prototype would still apply. */ 4750 char SSL_library_init (); 4733 4751 int 4734 4752 main () 4735 4753 { 4736 main();4754 SSL_library_init (); 4737 4755 ; 4738 4756 return 0; … … 4761 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 4780 (exit $ac_status); }; }; then 4763 ac_cv_lib_ssl_ main=yes4781 ac_cv_lib_ssl_SSL_library_init=yes 4764 4782 else 4765 4783 echo "$as_me: failed program was:" >&5 4766 4784 sed 's/^/| /' conftest.$ac_ext >&5 4767 4785 4768 ac_cv_lib_ssl_ main=no4786 ac_cv_lib_ssl_SSL_library_init=no 4769 4787 fi 4770 4788 rm -f conftest.err conftest.$ac_objext \ … … 4772 4790 LIBS=$ac_check_lib_save_LIBS 4773 4791 fi 4774 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ main" >&54775 echo "${ECHO_T}$ac_cv_lib_ssl_ main" >&64776 if test $ac_cv_lib_ssl_ main= yes; then4792 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 4793 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 4794 if test $ac_cv_lib_ssl_SSL_library_init = yes; then 4777 4795 4778 4796 LIBS="$LIBS -lssl" wired/trunk/configure.in
r3849 r4009 218 218 # Check if we need the math library 219 219 AC_CHECK_FUNC([pow], [], [ 220 AC_CHECK_LIB([m], [ main], [220 AC_CHECK_LIB([m], [sqrt], [ 221 221 LIBS="$LIBS -lm" 222 222 ]) … … 250 250 # Check for the OpenSSL crypto library 251 251 AC_CHECK_HEADERS([openssl/sha.h], [ 252 AC_CHECK_LIB([crypto], [ main], [252 AC_CHECK_LIB([crypto], [MD5_Init], [ 253 253 LIBS="$LIBS -lcrypto" 254 254 ], [ … … 262 262 # Check for the OpenSSL ssl library 263 263 AC_CHECK_HEADERS([openssl/ssl.h], [ 264 AC_CHECK_LIB([ssl], [ main], [264 AC_CHECK_LIB([ssl], [SSL_library_init], [ 265 265 LIBS="$LIBS -lssl" 266 266 ], [
