Changeset 4008

Show
Ignore:
Timestamp:
04/01/06 01:36:05 (3 years ago)
Author:
morris
Message:

Check for real symbols

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/configure

    r3491 r4008  
    33533353else 
    33543354 
    3355         echo "$as_me:$LINENO: checking for main in -lm" >&5 
    3356 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 
    3357 if test "${ac_cv_lib_m_main+set}" = set; then 
     3355        echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 
     3356echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 
     3357if test "${ac_cv_lib_m_sqrt+set}" = set; then 
    33583358  echo $ECHO_N "(cached) $ECHO_C" >&6 
    33593359else 
     
    33673367/* end confdefs.h.  */ 
    33683368 
    3369  
     3369/* Override any gcc2 internal prototype to avoid an error.  */ 
     3370#ifdef __cplusplus 
     3371extern "C" 
     3372#endif 
     3373/* We use char because int might match the return type of a gcc2 
     3374   builtin and then its argument prototype would still apply.  */ 
     3375char sqrt (); 
    33703376int 
    33713377main () 
    33723378{ 
    3373 main (); 
     3379sqrt (); 
    33743380  ; 
    33753381  return 0; 
     
    33983404  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    33993405  (exit $ac_status); }; }; then 
    3400   ac_cv_lib_m_main=yes 
     3406  ac_cv_lib_m_sqrt=yes 
    34013407else 
    34023408  echo "$as_me: failed program was:" >&5 
    34033409sed 's/^/| /' conftest.$ac_ext >&5 
    34043410 
    3405 ac_cv_lib_m_main=no 
     3411ac_cv_lib_m_sqrt=no 
    34063412fi 
    34073413rm -f conftest.err conftest.$ac_objext \ 
     
    34093415LIBS=$ac_check_lib_save_LIBS 
    34103416fi 
    3411 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 
    3412 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 
    3413 if test $ac_cv_lib_m_main = yes; then 
     3417echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 
     3418echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 
     3419if test $ac_cv_lib_m_sqrt = yes; then 
    34143420 
    34153421                LIBS="$LIBS -lm" 
     
    43324338_ACEOF 
    43334339 
    4334         echo "$as_me:$LINENO: checking for main in -lcrypto" >&5 
    4335 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 
    4336 if test "${ac_cv_lib_crypto_main+set}" = set; then 
     4340        echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5 
     4341echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6 
     4342if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then 
    43374343  echo $ECHO_N "(cached) $ECHO_C" >&6 
    43384344else 
     
    43464352/* end confdefs.h.  */ 
    43474353 
    4348  
     4354/* Override any gcc2 internal prototype to avoid an error.  */ 
     4355#ifdef __cplusplus 
     4356extern "C" 
     4357#endif 
     4358/* We use char because int might match the return type of a gcc2 
     4359   builtin and then its argument prototype would still apply.  */ 
     4360char MD5_Init (); 
    43494361int 
    43504362main () 
    43514363{ 
    4352 main (); 
     4364MD5_Init (); 
    43534365  ; 
    43544366  return 0; 
     
    43774389  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    43784390  (exit $ac_status); }; }; then 
    4379   ac_cv_lib_crypto_main=yes 
     4391  ac_cv_lib_crypto_MD5_Init=yes 
    43804392else 
    43814393  echo "$as_me: failed program was:" >&5 
    43824394sed 's/^/| /' conftest.$ac_ext >&5 
    43834395 
    4384 ac_cv_lib_crypto_main=no 
     4396ac_cv_lib_crypto_MD5_Init=no 
    43854397fi 
    43864398rm -f conftest.err conftest.$ac_objext \ 
     
    43884400LIBS=$ac_check_lib_save_LIBS 
    43894401fi 
    4390 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5 
    4391 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 
    4392 if test $ac_cv_lib_crypto_main = yes; then 
     4402echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Init" >&5 
     4403echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Init" >&6 
     4404if test $ac_cv_lib_crypto_MD5_Init = yes; then 
    43934405 
    43944406                LIBS="$LIBS -lcrypto" 
     
    45824594_ACEOF 
    45834595 
    4584         echo "$as_me:$LINENO: checking for main in -lssl" >&5 
    4585 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6 
    4586 if test "${ac_cv_lib_ssl_main+set}" = set; then 
     4596        echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 
     4597echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 
     4598if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then 
    45874599  echo $ECHO_N "(cached) $ECHO_C" >&6 
    45884600else 
     
    45964608/* end confdefs.h.  */ 
    45974609 
    4598  
     4610/* Override any gcc2 internal prototype to avoid an error.  */ 
     4611#ifdef __cplusplus 
     4612extern "C" 
     4613#endif 
     4614/* We use char because int might match the return type of a gcc2 
     4615   builtin and then its argument prototype would still apply.  */ 
     4616char SSL_library_init (); 
    45994617int 
    46004618main () 
    46014619{ 
    4602 main (); 
     4620SSL_library_init (); 
    46034621  ; 
    46044622  return 0; 
     
    46274645  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    46284646  (exit $ac_status); }; }; then 
    4629   ac_cv_lib_ssl_main=yes 
     4647  ac_cv_lib_ssl_SSL_library_init=yes 
    46304648else 
    46314649  echo "$as_me: failed program was:" >&5 
    46324650sed 's/^/| /' conftest.$ac_ext >&5 
    46334651 
    4634 ac_cv_lib_ssl_main=no 
     4652ac_cv_lib_ssl_SSL_library_init=no 
    46354653fi 
    46364654rm -f conftest.err conftest.$ac_objext \ 
     
    46384656LIBS=$ac_check_lib_save_LIBS 
    46394657fi 
    4640 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5 
    4641 echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6 
    4642 if test $ac_cv_lib_ssl_main = yes; then 
     4658echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 
     4659echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 
     4660if test $ac_cv_lib_ssl_SSL_library_init = yes; then 
    46434661 
    46444662                LIBS="$LIBS -lssl" 
     
    48324850_ACEOF 
    48334851 
    4834         echo "$as_me:$LINENO: checking for main in -liconv" >&5 
    4835 echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6 
    4836 if test "${ac_cv_lib_iconv_main+set}" = set; then 
     4852        echo "$as_me:$LINENO: checking for iconv in -liconv" >&5 
     4853echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6 
     4854if test "${ac_cv_lib_iconv_iconv+set}" = set; then 
    48374855  echo $ECHO_N "(cached) $ECHO_C" >&6 
    48384856else 
     
    48464864/* end confdefs.h.  */ 
    48474865 
    4848  
     4866/* Override any gcc2 internal prototype to avoid an error.  */ 
     4867#ifdef __cplusplus 
     4868extern "C" 
     4869#endif 
     4870/* We use char because int might match the return type of a gcc2 
     4871   builtin and then its argument prototype would still apply.  */ 
     4872char iconv (); 
    48494873int 
    48504874main () 
    48514875{ 
    4852 main (); 
     4876iconv (); 
    48534877  ; 
    48544878  return 0; 
     
    48774901  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    48784902  (exit $ac_status); }; }; then 
    4879   ac_cv_lib_iconv_main=yes 
     4903  ac_cv_lib_iconv_iconv=yes 
    48804904else 
    48814905  echo "$as_me: failed program was:" >&5 
    48824906sed 's/^/| /' conftest.$ac_ext >&5 
    48834907 
    4884 ac_cv_lib_iconv_main=no 
     4908ac_cv_lib_iconv_iconv=no 
    48854909fi 
    48864910rm -f conftest.err conftest.$ac_objext \ 
     
    48884912LIBS=$ac_check_lib_save_LIBS 
    48894913fi 
    4890 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5 
    4891 echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6 
    4892 if test $ac_cv_lib_iconv_main = yes; then 
     4914echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5 
     4915echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6 
     4916if test $ac_cv_lib_iconv_iconv = yes; then 
    48934917 
    48944918                LIBS="$LIBS -liconv" 
     
    56965720_ACEOF 
    56975721 
    5698         echo "$as_me:$LINENO: checking for main in -lreadline" >&5 
    5699 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 
    5700 if test "${ac_cv_lib_readline_main+set}" = set; then 
     5722        echo "$as_me:$LINENO: checking for rl_initialize in -lreadline" >&5 
     5723echo $ECHO_N "checking for rl_initialize in -lreadline... $ECHO_C" >&6 
     5724if test "${ac_cv_lib_readline_rl_initialize+set}" = set; then 
    57015725  echo $ECHO_N "(cached) $ECHO_C" >&6 
    57025726else 
     
    57105734/* end confdefs.h.  */ 
    57115735 
    5712  
     5736/* Override any gcc2 internal prototype to avoid an error.  */ 
     5737#ifdef __cplusplus 
     5738extern "C" 
     5739#endif 
     5740/* We use char because int might match the return type of a gcc2 
     5741   builtin and then its argument prototype would still apply.  */ 
     5742char rl_initialize (); 
    57135743int 
    57145744main () 
    57155745{ 
    5716 main (); 
     5746rl_initialize (); 
    57175747  ; 
    57185748  return 0; 
     
    57415771  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
    57425772  (exit $ac_status); }; }; then 
    5743   ac_cv_lib_readline_main=yes 
     5773  ac_cv_lib_readline_rl_initialize=yes 
    57445774else 
    57455775  echo "$as_me: failed program was:" >&5 
    57465776sed 's/^/| /' conftest.$ac_ext >&5 
    57475777 
    5748 ac_cv_lib_readline_main=no 
     5778ac_cv_lib_readline_rl_initialize=no 
    57495779fi 
    57505780rm -f conftest.err conftest.$ac_objext \ 
     
    57525782LIBS=$ac_check_lib_save_LIBS 
    57535783fi 
    5754 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 
    5755 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 
    5756 if test $ac_cv_lib_readline_main = yes; then 
     5784echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_initialize" >&5 
     5785echo "${ECHO_T}$ac_cv_lib_readline_rl_initialize" >&6 
     5786if test $ac_cv_lib_readline_rl_initialize = yes; then 
    57575787 
    57585788                LIBS="$LIBS -lreadline" 
  • wire/trunk/configure.in

    r3491 r4008  
    142142# Check if we need the math library 
    143143AC_CHECK_FUNC([pow], [], [ 
    144         AC_CHECK_LIB([m], [main], [ 
     144        AC_CHECK_LIB([m], [sqrt], [ 
    145145                LIBS="$LIBS -lm" 
    146146        ]) 
     
    174174# Check for the OpenSSL crypto library 
    175175AC_CHECK_HEADERS([openssl/sha.h], [ 
    176         AC_CHECK_LIB([crypto], [main], [ 
     176        AC_CHECK_LIB([crypto], [MD5_Init], [ 
    177177                LIBS="$LIBS -lcrypto" 
    178178        ], [ 
     
    186186# Check for the OpenSSL ssl library 
    187187AC_CHECK_HEADERS([openssl/ssl.h], [ 
    188         AC_CHECK_LIB([ssl], [main], [ 
     188        AC_CHECK_LIB([ssl], [SSL_library_init], [ 
    189189                LIBS="$LIBS -lssl" 
    190190        ], [ 
     
    198198# Check for the iconv library 
    199199AC_CHECK_HEADERS([iconv.h], [ 
    200         AC_CHECK_LIB([iconv], [main], [ 
     200        AC_CHECK_LIB([iconv], [iconv], [ 
    201201                LIBS="$LIBS -liconv" 
    202202        ], [ 
     
    245245# Check for the readline library 
    246246AC_CHECK_HEADERS([readline/readline.h], [ 
    247         AC_CHECK_LIB([readline], [main], [ 
     247        AC_CHECK_LIB([readline], [rl_initialize], [ 
    248248                LIBS="$LIBS -lreadline" 
    249249