ext/polarssl/extconf.rb in polarssl-1.0.1 vs ext/polarssl/extconf.rb in polarssl-1.0.2

- old
+ new

@@ -34,13 +34,13 @@ ] dir_config('polarssl', HEADER_DIRS, LIB_DIRS) unless find_header('polarssl/entropy.h') - abort "libpolarssl is missing. please install libpolarssl" + abort "libpolarssl or libmbedtls is missing. please install libpolarssl" end -unless find_library('polarssl', 'entropy_init') - abort "libpolarssl is missing. please install libpolarssl" +unless find_library('mbedtls', 'entropy_init') || find_library('polarssl', 'entropy_init') + abort "libpolarssl or libmbedtls is missing. please install libpolarssl or libmbedtls" end -create_makefile('polarssl/polarssl') \ No newline at end of file +create_makefile('polarssl/polarssl')