diff options
author | Rob Holland <rob@inversepath.com> | 2008-05-19 18:35:05 +0100 |
---|---|---|
committer | Rob Holland <rob@inversepath.com> | 2008-05-19 18:35:05 +0100 |
commit | e0791352124317682105e341b3ab11aadb6a9414 (patch) | |
tree | b04427b64117a770d603dc28da2945e8f1ddf7af | |
parent | ffceae8e0e493cd3f2c782238367c861742ad55e (diff) | |
download | third_party-sqlite3-ruby-e0791352124317682105e341b3ab11aadb6a9414.tar.gz third_party-sqlite3-ruby-e0791352124317682105e341b3ab11aadb6a9414.tar.xz third_party-sqlite3-ruby-e0791352124317682105e341b3ab11aadb6a9414.zip |
check for the rt library and fdatasync so we link against that when needed
-rw-r--r-- | ext/sqlite3_api/extconf.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/sqlite3_api/extconf.rb b/ext/sqlite3_api/extconf.rb index 67006f6..b6c9bd6 100644 --- a/ext/sqlite3_api/extconf.rb +++ b/ext/sqlite3_api/extconf.rb @@ -4,10 +4,13 @@ SWIG_WRAP = "sqlite3_api_wrap.c" dir_config( "sqlite3", "/usr/local" ) +have_library( "rt", "fdatasync" ) + if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) if !File.exists?( SWIG_WRAP ) || with_config( "swig", false ) puts "creating #{SWIG_WRAP}" system "swig -ruby sqlite3_api.i" or raise "could not build wrapper via swig (perhaps swig is not installed?)" end + create_makefile( "sqlite3_api" ) end |