GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Motto-mysql is a complementary library to enhance and make faster 'mysql-ruby' library.
Clone URL: git://github.com/kwatch/motto-mysql.git
Fix a bug on 'ext/extconf.rb' to add 'have_header("mysql.h")'.
kwatch (author)
Sat Oct 04 20:48:35 -0700 2008
commit  d68747269710f354314e20050a86c97627cddb49
tree    4ef7956f33b8e5324993fcd865266568992d9695
parent  311da51a06ecbab184da5961ed7709393012fa8b
...
29
30
31
 
32
33
34
 
35
36
37
...
45
46
47
 
 
 
 
 
48
49
50
...
52
53
54
55
 
56
57
58
...
29
30
31
32
33
34
35
36
37
38
39
...
47
48
49
50
51
52
53
54
55
56
57
...
59
60
61
 
62
63
64
65
0
@@ -29,9 +29,11 @@ else
0
   $stderr.puts "Trying to detect MySQL configuration with mysql_config..."
0
   if (cflags = `mysql_config --cflags`.strip) && $? == 0 &&
0
      (libs = `mysql_config --libs`.strip) && $? == 0
0
+ $stderr.puts "Succeeded to detect MySQL configuration with mysql_config."
0
     $CPPFLAGS += ' ' + cflags.strip
0
     $libs = libs.strip + " " + $libs
0
   else
0
+ $stderr.puts "Failed to detect MySQL configuration with mysql_config."
0
     $stderr.puts "Trying to detect MySQL client library..."
0
     inc, lib = dir_config('mysql', '/usr/local')
0
     libs = ['m', 'z', 'socket', 'nsl', 'mygcc']
0
@@ -45,6 +47,11 @@ end
0
 have_func('mysql_ssl_set')
0
 have_func('rb_str_set_len')
0
 
0
+
0
+## define HAVE_MYSQL_H if mysql.h is found
0
+have_header('mysql.h') or have_header('mysql/mysql.h') or die "can't find 'mysql.h'."
0
+
0
+
0
 #if have_header('mysql.h') then
0
 # src = "#include <errmsg.h>\n#include <mysqld_error.h>\n"
0
 #elsif have_header('mysql/mysql.h') then
0
@@ -52,7 +59,7 @@ have_func('rb_str_set_len')
0
 #else
0
 # die "can't find 'mysql.h'."
0
 #end
0
-#
0
+
0
 ## make mysql constant
0
 #File.open("conftest.c", "w") do |f|
0
 # f.puts src

Comments

    No one has commented yet.