update.
[chise/ruby.git] / ext / extconf.rb
1 require "mkmf"
2 if have_library("db", "db_create") and have_header("db.h")
3   open("config.h", "wb"){|f|
4     f.print <<"EOT"
5 #ifndef CONFIG_H
6 #define CONFIG_H
7 #define CHISE_DB_DIR    "/cygdrive/c/chise/chise-db"
8 #define CHISE_SI_DB_DIR "/cygdrive/c/chise/chise-db"
9 #endif
10 EOT
11   }
12   $defs << "-DHAVE_CONFIG_H"
13   $defs << "-DHAVE_STRNLEN"
14   create_makefile("libchise_c")
15 end