$NetBSD: patch-aa,v 1.3 2007/01/28 15:21:07 taca Exp $ --- extconf.rb.orig 2006-10-29 23:59:44.000000000 +0900 +++ extconf.rb @@ -12,7 +12,7 @@ elsif mc = with_config('mysql-config') t $CPPFLAGS += ' ' + cflags $libs = libs + " " + $libs else - inc, lib = dir_config('mysql', '/usr/local') + inc, lib = dir_config('mysql', config['prefix']) libs = ['m', 'z', 'socket', 'nsl', 'mygcc'] while not find_library('mysqlclient', 'mysql_query', lib, "#{lib}/mysql") do exit 1 if libs.empty?